]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR
authorJoshua Ashton <joshua@froggi.es>
Mon, 1 Jan 2024 18:28:22 +0000 (18:28 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jan 2024 14:48:15 +0000 (09:48 -0500)
commit202260f64519e591b5cd99626e441b6559f571a3
treedc7a508a4f174ccb363c6d47414ddaf69e9cba0d
parent21f6137c64c65d6808c4a81006956197ca203383
drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR

The check for sending the vsc infopacket to the display was gated behind
PSR (Panel Self Refresh) being enabled.

The vsc infopacket also contains the colorimetry (specifically the
container color gamut) information for the stream on modern DP.

PSR is typically only supported on mobile phone eDP displays, thus this
was not getting sent for typical desktop monitors or TV screens.

This functionality is needed for proper HDR10 functionality on DP as it
wants BT2020 RGB/YCbCr for the container color space.

Cc: stable@vger.kernel.org
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Xaver Hugl <xaver.hugl@gmail.com>
Cc: Melissa Wen <mwen@igalia.com>
Fixes: 15f9dfd545a1 ("drm/amd/display: Register Colorspace property for DP and HDMI")
Tested-by: Simon Berz <simon@berz.me>
Tested-by: Xaver Hugl <xaver.hugl@kde.org>
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@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/modules/info_packet/info_packet.c