]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add helper to convert DC status
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tue, 26 May 2020 20:53:38 +0000 (16:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:20 +0000 (01:59 -0400)
commit81c5550e6b3d10f7585e851c1318f74a8c5a02de
tree76972cb31139b64d23a8a089752f4159d22f808b
parentdf2d3cf24d7fcd9bc83ab94b96c9342eeca825d1
drm/amd/display: Add helper to convert DC status

During the debugging process related to a hot-plug
problem with 4k display, we realized that we had
some issues related to the global state validation.
This problem was not explicitly highlighted in the
dmesg log, for this reason, this commit adds a function
that converts `enum dc_status` to a human-readable
string and appends the proper warning message in case
of failure.

Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_debug.c
drivers/gpu/drm/amd/display/dc/inc/core_status.h