]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amd/display: Reduce dmesg error to a debug print
authorLeo (Hanghong) Ma <hanghong.ma@amd.com>
Fri, 12 Nov 2021 15:11:35 +0000 (10:11 -0500)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:17:52 +0000 (15:17 +0100)
BugLink: https://bugs.launchpad.net/bugs/1964361
commit 1d925758ba1a5d2716a847903e2fd04efcbd9862 upstream.

[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.

Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/include/logger_types.h

index 3fc41e25937fda64374e705eb058084f5d0cb9c1..34a5e14e80964b17454f50ae2f70c3c67b14ed9b 100644 (file)
@@ -3723,7 +3723,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;
                }
 
index 571fcf23cea92d761c07b77848387971c4268753..a3a9ea077f50528145d1555ff5a8b4940828bf84 100644 (file)
@@ -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;