Skip to contentSkip to conversation

drm/amdgpu/display: fix interrupt client id for navi

PATCH In review Alex Deucher 2 participants 2 messages Jul 2, 2019 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/display: fix interrupt client id for navi

All asics newer than vega10 use client ids, so simplify the check.

---
 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
index cef44ce8099f..be5a5610c165 100644
@@ -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

Reviewed-by Nicholas Kazlauskas
#2 lore raw
Quoted 4 lines · Alex Deucher

All asics newer than vega10 use client ids, so simplify the check.

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
index cef44ce8099f..be5a5610c165 100644
@@ -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 -4
  	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;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx