Skip to contentSkip to conversation

drm/amd/display: Reduce dmesg error to a debug print

PATCH In review Leo (Hanghong) Ma 2 participants 2 messages Nov 12, 2021

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

PATCH 1/1 drm/amd/display: Reduce dmesg error to a debug print

[Why & How]
Dmesg errors are found on dcn3.1 during reset test, but it's not a really failure. So reduce it to a debug print.

---
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +1 -1
index cb7bf9148904..c7785e29b1c0 100644
@@ -4454,7 +4454,7 @@ bool dp_retrieve_lttpr_cap(struct dc_link *link)
 				lttpr_dpcd_data,
 				sizeof(lttpr_dpcd_data));
 		if (status != DC_OK) {
-			dm_error("%s: Read LTTPR caps data failed.\n", __func__);
+			DC_LOG_DP2("%s: Read LTTPR caps data failed.\n", __func__);
 			return false;
 		}
 
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Leo (Hanghong) Ma

[Why & How]
Dmesg errors are found on dcn3.1 during reset test, but it's not a really failure. So reduce it to a debug print.

This is expected to occur on displays that aren't connected/don't support LTTPR so this is fine.

Regards,
Nicholas Kazlauskas

Quoted 18 lines
---
  drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +1 -1
index cb7bf9148904..c7785e29b1c0 100644
@@ -4454,7 +4454,7 @@ bool dp_retrieve_lttpr_cap(struct dc_link *link)
  				lttpr_dpcd_data,
  				sizeof(lttpr_dpcd_data));
  		if (status != DC_OK) {
-			dm_error("%s: Read LTTPR caps data failed.\n", __func__);
+			DC_LOG_DP2("%s: Read LTTPR caps data failed.\n", __func__);
  			return false;
  		}