Skip to contentSkip to conversation

drm/amd/display: Avoid HPD IRQ in GPU reset state

PATCH In review Zhan Liu 2 participants 2 messages May 10, 2021

Subsystems (3)
lore
Share & tools
lore

Zhan Liu

author
#0 lore raw

PATCH 1/1 drm/amd/display: Avoid HPD IRQ in GPU reset state

[Why]
If GPU is in reset state, force enabling link will cause unexpected behaviour.

[How]
Avoid handling HPD IRQ when GPU is in reset state.

Change-Id I29d80501e44096068e98b5d5984e63822dfcef82
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -2
index cc048c348a92..58b59152a8be 100644
@@ -2769,15 +2769,15 @@ static void handle_hpd_rx_irq(void *param)
 		}
 	}
 
-	if (!amdgpu_in_reset(adev))
+	if (!amdgpu_in_reset(adev)) {
 		mutex_lock(&adev->dm.dc_lock);
 #ifdef CONFIG_DRM_AMD_DC_HDCP
 	result = dc_link_handle_hpd_rx_irq(dc_link, &hpd_irq_data, NULL);
 #else
 	result = dc_link_handle_hpd_rx_irq(dc_link, NULL, NULL);
 #endif
-	if (!amdgpu_in_reset(adev))
 		mutex_unlock(&adev->dm.dc_lock);
+	}
 
 out:
 	if (result && !is_mst_root_connector) {
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - Internal Distribution Only]

Quoted 38 lines

-----Original Message-----
From: Liu, Zhan <[email protected]>
Sent: Sunday, May 9, 2021 10:30 PM
To: [email protected]; Liu, Zhan <[email protected]>; Cornij, Nikola <[email protected]>
Subject: [PATCH] drm/amd/display: Avoid HPD IRQ in GPU reset state

[Why]
If GPU is in reset state, force enabling link will cause unexpected behaviour.

[How]
Avoid handling HPD IRQ when GPU is in reset state.

Change-Id I29d80501e44096068e98b5d5984e63822dfcef82

---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -2
index cc048c348a92..58b59152a8be 100644
@@ -2769,15 +2769,15 @@ static void handle_hpd_rx_irq(void *param)
              }
      }
 
-      if (!amdgpu_in_reset(adev))
+      if (!amdgpu_in_reset(adev)) {
              mutex_lock(&adev->dm.dc_lock);
 #ifdef CONFIG_DRM_AMD_DC_HDCP
      result = dc_link_handle_hpd_rx_irq(dc_link, &hpd_irq_data, NULL);  #else
      result = dc_link_handle_hpd_rx_irq(dc_link, NULL, NULL);  #endif
-      if (!amdgpu_in_reset(adev))
              mutex_unlock(&adev->dm.dc_lock);
+      }
 

out:

Quoted 5 lines
      if (result && !is_mst_root_connector) {

--
2.25.1

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