From: jsg Date: Thu, 7 Apr 2022 07:56:04 +0000 (+0000) Subject: drm/amd/display: Reduce dmesg error to a debug print X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e126f9676e92ae5ee3af611179f1354751799ba3;p=openbsd 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 --- 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;