]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Reduce HDMI pixel encoding if max clock is exceeded
authorThomas Anderson <thomasanderson@google.com>
Mon, 2 Dec 2019 21:47:13 +0000 (13:47 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 17:13:48 +0000 (12:13 -0500)
commit4c07ccc7d3f4dca4dc22067dde86887749b22c2c
tree856fa860287535af8b636a021eb7bc108b15a361
parent2218b836a30fbfd4f7267fe561a3d1cb111e57e6
drm/amd/display: Reduce HDMI pixel encoding if max clock is exceeded

For high-res (8K) or HFR (4K120) displays, using uncompressed pixel
formats like YCbCr444 would exceed the bandwidth of HDMI 2.0, so the
"interesting" modes would be disabled, leaving only low-res or low
framerate modes.

This change lowers the pixel encoding to 4:2:2 or 4:2:0 if the max TMDS
clock is exceeded. Verified that 8K30 and 4K120 are now available and
working with a Samsung Q900R over an HDMI 2.0b link from a Radeon 5700.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Thomas Anderson <thomasanderson@google.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c