FAILED: patch "[PATCH] drm/amd/display: Fix sending VSC (+ colorimetry) packets for" failed to apply to 6.7-stable tree
[email protected]
maintainerThe patch below does not apply to the 6.7-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.7.y
git checkout FETCH_HEAD
git cherry-pick -x 30afdffb3f600d8fd1d5afa1b7187081e1ac85be
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024012718-winner-vanity-0d5c@gregkh' --subject-prefix 'PATCH 6.7.y' HEAD^..
Possible dependencies:
30afdffb3f60 ("drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR")
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 30afdffb3f600d8fd1d5afa1b7187081e1ac85be Mon Sep 17 00:00:00 2001
From: Joshua Ashton <[email protected]>
Date: Mon, 1 Jan 2024 18:28:22 +0000
Subject: [PATCH] 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.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5 -3
@@ -6236,8 +6236,9 @@ create_stream_for_sink(struct drm_connector *connector,if (stream->signal ==SIGNAL_TYPE_HDMI_TYPE_A )mod_build_hf_vsif_infopacket (stream, &stream->vsp_infopacket); - -if (stream->link->psr_settings.psr_feature_enabled || stream->link->replay_settings.replay_feature_enabled) { +else if (stream->signal ==SIGNAL_TYPE_DISPLAY_PORT || + stream->signal ==SIGNAL_TYPE_DISPLAY_PORT_MST || + stream->signal ==SIGNAL_TYPE_EDP ) {// // should decide stream support vsc sdp colorimetry capability // before building vsc info packet
@@ -6253,8 +6254,9 @@ create_stream_for_sink(struct drm_connector *connector,if (stream->out_transfer_func->tf ==TRANSFER_FUNCTION_GAMMA22 ) tf =TRANSFER_FUNC_GAMMA_22 ;mod_build_vsc_infopacket (stream, &stream->vsc_infopacket, stream->output_color_space, tf); - aconnector->psr_skip_count =AMDGPU_DM_PSR_ENTRY_DELAY ; +if (stream->link->psr_settings.psr_feature_enabled) + aconnector->psr_skip_count =AMDGPU_DM_PSR_ENTRY_DELAY ; } finish:dc_sink_release (sink);
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c +8 -5
@@ -147,12 +147,15 @@ void mod_build_vsc_infopacket(const struct dc_stream_state *stream, }/* VSC packet set to 4 for PSR-SU, or 2 for PSR1 */ -if (stream->link->psr_settings.psr_version ==DC_PSR_VERSION_SU_1 ) - vsc_packet_revision = vsc_packet_rev4; -else if (stream->link->replay_settings.config.replay_supported) +if (stream->link->psr_settings.psr_feature_enabled) { +if (stream->link->psr_settings.psr_version ==DC_PSR_VERSION_SU_1 ) + vsc_packet_revision = vsc_packet_rev4; +else if (stream->link->psr_settings.psr_version ==DC_PSR_VERSION_1 ) + vsc_packet_revision = vsc_packet_rev2; + } + +if (stream->link->replay_settings.config.replay_supported) vsc_packet_revision = vsc_packet_rev4; -else if (stream->link->psr_settings.psr_version ==DC_PSR_VERSION_1 ) - vsc_packet_revision = vsc_packet_rev2;/* Update to revision 5 for extended colorimetry support */ if (stream->use_vsc_sdp_for_colorimetry)