]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit74a166759d692efe18996076736b61533936892b
tree76972cb31139b64d23a8a089752f4159d22f808b
parent0a25e8eb95cd7bf28857ef671296154c25b1fb44
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