From e126f9676e92ae5ee3af611179f1354751799ba3 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 7 Apr 2022 07:56:04 +0000 Subject: [PATCH] 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 --- sys/dev/pci/drm/amd/display/dc/core/dc_link_dp.c | 4 +++- sys/dev/pci/drm/amd/display/include/logger_types.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.20.1