summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-04-07 07:56:05 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-04-07 07:56:05 +0000
commit736171f781999304616eeaa7f34ac316828c648a (patch)
treebcb5801a2c2cca178b350564ae5684bb5098118e
parent0299d7aa1281fab5873b6061b0ed19cfb1050d5e (diff)
drm/amd/display: Reduce dmesg error to a debug print
From Leo (Hanghong) Ma dab06be16184b087228a55efec878546ffeda491 in linux 5.15.y/5.15.27 1d925758ba1a5d2716a847903e2fd04efcbd9862 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/display/dc/core/dc_link_dp.c4
-rw-r--r--sys/dev/pci/drm/amd/display/include/logger_types.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/core/dc_link_dp.c b/sys/dev/pci/drm/amd/display/dc/core/dc_link_dp.c
index 095020648a3..4c1daf22d3f 100644
--- a/sys/dev/pci/drm/amd/display/dc/core/dc_link_dp.c
+++ b/sys/dev/pci/drm/amd/display/dc/core/dc_link_dp.c
@@ -3650,7 +3650,9 @@ 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__);
+#if defined(CONFIG_DRM_AMD_DC_DCN)
+ DC_LOG_DP2("%s: Read LTTPR caps data failed.\n", __func__);
+#endif
return false;
}
diff --git a/sys/dev/pci/drm/amd/display/include/logger_types.h b/sys/dev/pci/drm/amd/display/include/logger_types.h
index 571fcf23cea..a3a9ea077f5 100644
--- a/sys/dev/pci/drm/amd/display/include/logger_types.h
+++ b/sys/dev/pci/drm/amd/display/include/logger_types.h
@@ -72,6 +72,9 @@
#define DC_LOG_DSC(...) DRM_DEBUG_KMS(__VA_ARGS__)
#define DC_LOG_SMU(...) pr_debug("[SMU_MSG]:"__VA_ARGS__)
#define DC_LOG_DWB(...) DRM_DEBUG_KMS(__VA_ARGS__)
+#if defined(CONFIG_DRM_AMD_DC_DCN)
+#define DC_LOG_DP2(...) DRM_DEBUG_KMS(__VA_ARGS__)
+#endif
struct dal_logger;