Skip to content

Commit

Permalink
drm/amd/display: Reduce dmesg error to a debug print
Browse files Browse the repository at this point in the history
commit 1d92575 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>
  • Loading branch information
Leo (Hanghong) Ma authored and gregkh committed Mar 8, 2022
1 parent 7508ac3 commit dab06be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/display/include/logger_types.h
Expand Up @@ -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;

Expand Down

0 comments on commit dab06be

Please sign in to comment.