Skip to contentSkip to conversation

drm/amd/display: Don't show stack trace for missing eDP

PATCH Superseded Mario Limonciello 2 participants 3 messages Jul 31, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: Don't show stack trace for missing eDP

Some systems are only connected by HDMI or DP, so warning related to missing eDP is unnecessary. Downgrade to debug instead.

Cc Hamza Mahfooz <[email protected]>
Fixes 6d9b6dceaa51 ("drm/amd/display: only warn once in dce110_edp_wait_for_hpd_ready()")
Reported-and-tested-by [email protected]
---
 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -1
index 20d4d08a6a2f3..3ce3d3367b288 100644
@@ -777,7 +777,8 @@ void dce110_edp_wait_for_hpd_ready(
 	dal_gpio_destroy_irq(&hpd);
 
 	/* ensure that the panel is detected */
-	ASSERT(edp_hpd_high);
+	if (!edp_hpd_high)
+		BREAK_TO_DEBUGGER();
 }
 
 void dce110_edp_power_control(
Signature · 1 line
2.34.1
#1 lore raw
Quoted 16 lines · Mario Limonciello

Some systems are only connected by HDMI or DP, so warning related to missing eDP is unnecessary. Downgrade to debug instead.

Cc Hamza Mahfooz <[email protected]>
Fixes 6d9b6dceaa51 ("drm/amd/display: only warn once in dce110_edp_wait_for_hpd_ready()")
Reported-and-tested-by [email protected]
---
  drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +0 -0
index 20d4d08a6a2f3..3ce3d3367b288 100644

drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c void dce110_edp_wait_for_hpd_ready( · line 781

Quoted 6 lines
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -1
@@ -777,7 +777,8 @@ void dce110_edp_wait_for_hpd_ready(
  	dal_gpio_destroy_irq(&hpd);
 
  	/* ensure that the panel is detected */
-	ASSERT(edp_hpd_high);
+	if (!edp_hpd_high)
+		BREAK_TO_DEBUGGER();

Can you print a message using DC_LOG_DC() here instead?

Quoted 3 lines
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +0 -0
  }
 
  void dce110_edp_power_control(
Signature · 1 line
Hamza
#2 lore raw
Quoted 12 lines · Hamza Mahfooz
Quoted 11 lines · Mario Limonciello

Some systems are only connected by HDMI or DP, so warning related to missing eDP is unnecessary.  Downgrade to debug instead.

Cc Hamza Mahfooz <[email protected]>
Fixes 6d9b6dceaa51 ("drm/amd/display: only warn once in dce110_edp_wait_for_hpd_ready()")
Reported-and-tested-by [email protected]

---
  drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 ++-

  1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 12 lines

drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c void dce110_edp_wait_for_hpd_ready( · line 780

Quoted 10 lines
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -1
index 20d4d08a6a2f3..3ce3d3367b288 100644
@@ -777,7 +777,8 @@ void dce110_edp_wait_for_hpd_ready(
       dal_gpio_destroy_irq(&hpd);
       /* ensure that the panel is detected */
-    ASSERT(edp_hpd_high);
+    if (!edp_hpd_high)
+        BREAK_TO_DEBUGGER();

Can you print a message using DC_LOG_DC() here instead?

Sure, will respin it.

Quoted 3 lines
Quoted 3 lines
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +0 -0
   }

  void dce110_edp_power_control(