OSDN Git Service

drm/amdgpu/display: fix interrupt client id for navi
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jul 2019 16:39:50 +0000 (11:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jul 2019 20:46:24 +0000 (15:46 -0500)
All asics newer than vega10 use client ids, so simplify the
check.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index df08ea1..0242d69 100644 (file)
@@ -1535,10 +1535,7 @@ static int dce110_register_irq_handlers(struct amdgpu_device *adev)
        int i;
        unsigned client_id = AMDGPU_IRQ_CLIENTID_LEGACY;
 
-       if (adev->asic_type == CHIP_VEGA10 ||
-           adev->asic_type == CHIP_VEGA12 ||
-           adev->asic_type == CHIP_VEGA20 ||
-           adev->asic_type == CHIP_RAVEN)
+       if (adev->asic_type >= CHIP_VEGA10)
                client_id = SOC15_IH_CLIENTID_DCE;
 
        int_params.requested_polarity = INTERRUPT_POLARITY_DEFAULT;