]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/amd/display: Try YCbCr420 color when YCbCr444 fails
authorWerner Sembach <wse@tuxedocomputers.com>
Wed, 28 Apr 2021 08:00:00 +0000 (10:00 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:54:08 +0000 (09:54 +0200)
commit94457a8f22a30452bd368bf66cf10636c15f0d58
treee4b219c5f7407af9480264135b2626a8623d144a
parent0ba7d5c625258a0fba7d3797d5a204802b9d7040
drm/amd/display: Try YCbCr420 color when YCbCr444 fails

BugLink: https://bugs.launchpad.net/bugs/1922754
When encoder validation of a display mode fails, retry with less bandwidth
heavy YCbCr420 color mode, if available. This enables some HDMI 1.4 setups
to support 4k60Hz output, which previously failed silently.

On some setups, while the monitor and the gpu support display modes with
pixel clocks of up to 600MHz, the link encoder might not. This prevents
YCbCr444 and RGB encoding for 4k60Hz, but YCbCr420 encoding might still be
possible. However, which color mode is used is decided before the link
encoder capabilities are checked. This patch fixes the problem by retrying
to find a display mode with YCbCr420 enforced and using it, if it is
valid.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 68eb3ae3c63708f823aeeb63bb15197c727bd9bf)
Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c