drm/amdgpu: convert nbio_v2_3_clear_doorbell_interrupt() to IP version
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 24 May 2022 14:27:33 +0000 (10:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:45:00 +0000 (16:45 -0400)
Check IP version rather than asic type.

Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c

index 6cd1fb2..34c610b 100644 (file)
@@ -547,7 +547,7 @@ static void nbio_v2_3_clear_doorbell_interrupt(struct amdgpu_device *adev)
 {
        uint32_t reg, reg_data;
 
-       if (adev->asic_type != CHIP_SIENNA_CICHLID)
+       if (adev->ip_versions[NBIO_HWIP][0] != IP_VERSION(3, 3, 0))
                return;
 
        reg = RREG32_SOC15(NBIO, 0, mmBIF_RB_CNTL);