drm/amd/display: Add connector debugfs for "output_bpc"
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 3 Jun 2019 17:44:37 +0000 (13:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:40:14 +0000 (12:40 -0500)
commit4b7ef85cc65e7ae137c43a0269365289f1b5ee68
treecf06c98e6d9293234b343e45594da46b0b30aec8
parent80f41f84ae2c99ff2fd88163f2293f86c3c68af1
drm/amd/display: Add connector debugfs for "output_bpc"

[Why]
This will be useful for verifying whether we enter the correct output
color depth from IGT.

[How]
Locks the connector and associated CRTC if available and outputs
the current and maximum output bpc values.

Example:

cat /sys/kernel/debug/dri/0/DP-1/output_bpc
Current: 8
Maximum: 10

v2: Drop unneeded connector status check

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c