drm/amdgpu/display: fix interrupt client id for navi
Subsystems (3)
PATCH 1/1 drm/amdgpu/display: fix interrupt client id for navi
All asics newer than vega10 use client ids, so simplify the check.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -4
@@ -1533,10 +1533,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 ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20190702164558.24846-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Kazlauskas, Nicholas
Reviewed-by Nicholas KazlauskasQuoted 4 lines · Alex Deucher
All asics newer than vega10 use client ids, so simplify the check.
Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Nicholas Kazlauskas <[email protected]>
Quoted 11 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0
-0@@ -1533,10 +1533,7 @@ static int dce110_register_irq_handlers(struct amdgpu_device *adev)int i;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int dce110_register_irq_handlers(struct amdgpu_device *adev) · line 1539
Quoted 10 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1
-4unsigned 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 ;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx