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>
Fri, 5 Jan 2024 21:04:42 +0000 (16:04 -0500)
commit30afdffb3f600d8fd1d5afa1b7187081e1ac85be
tree04ef813712fdeca4322390c4a015ae5223254e30
parent6697dbf0afff73fcf2b53e99c4accdab58892e39
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