]> Git Repo - J-linux.git/commitdiff
drm/amdgpu/nbio7.0: fix IP version check
authorAlex Deucher <[email protected]>
Thu, 12 Dec 2024 21:49:20 +0000 (16:49 -0500)
committerAlex Deucher <[email protected]>
Wed, 18 Dec 2024 20:20:57 +0000 (15:20 -0500)
Use the helper function rather than reading it directly.

Reviewed-by: Yang Wang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit 0ec43fbece784215d3c4469973e4556d70bce915)
Cc: [email protected]
drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c

index 49e953f86ced4b5787f2eeec741f632c72683a0c..d1032e9992b49cb4c8d8612af49f490a7a2c9f0f 100644 (file)
@@ -278,7 +278,7 @@ static void nbio_v7_0_init_registers(struct amdgpu_device *adev)
 {
        uint32_t data;
 
-       switch (adev->ip_versions[NBIO_HWIP][0]) {
+       switch (amdgpu_ip_version(adev, NBIO_HWIP, 0)) {
        case IP_VERSION(2, 5, 0):
                data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4) & ~BIT(23);
                WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4, data);
This page took 0.052394 seconds and 4 git commands to generate.