<div dir="ltr"><div>Hi,</div><div><br></div><div>I tested the patch and it fixes the issue for me too. Consider it</div><div>Tested-By Xaver Hugl <<a href="mailto:xaver.hugl@kde.org">xaver.hugl@kde.org</a>></div><div><br></div><div>- Xaver<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 1. Jan. 2024 um 22:37 Uhr schrieb Joshua Ashton <<a href="mailto:joshua@froggi.es">joshua@froggi.es</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> From the issue:<br>
<br>
```<br>
Thank you for for fixing this!<br>
I built a custom kernel with this patch on the fedora rawhide kernel <br>
(6.7.0-0.rc8.61.fc40.x86_64) and now the colors look correct. SDR <br>
content is now displayed as sRGB and HDR/WCG content can use the full <br>
capabilities of the display.<br>
I currently don't have a desktop mail client installed to comment on the <br>
mailing list directly, so I'll post it here (not sure if it counts or <br>
matters 😀 )<br>
<br>
Tested-By: Simon Berz <<a href="mailto:simon@berz.me" target="_blank">simon@berz.me</a>><br>
```<br>
<br>
- Joshie 🐸✨<br>
<br>
On 1/1/24 18:28, Joshua Ashton wrote:<br>
> The check for sending the vsc infopacket to the display was gated behind<br>
> PSR (Panel Self Refresh) being enabled.<br>
> <br>
> The vsc infopacket also contains the colorimetry (specifically the<br>
> container color gamut) information for the stream on modern DP.<br>
> <br>
> PSR is typically only supported on mobile phone eDP displays, thus this<br>
> was not getting sent for typical desktop monitors or TV screens.<br>
> <br>
> This functionality is needed for proper HDR10 functionality on DP as it<br>
> wants BT2020 RGB/YCbCr for the container color space.<br>
> <br>
> Signed-off-by: Joshua Ashton <<a href="mailto:joshua@froggi.es" target="_blank">joshua@froggi.es</a>><br>
> <br>
> Cc: Harry Wentland <<a href="mailto:harry.wentland@amd.com" target="_blank">harry.wentland@amd.com</a>><br>
> Cc: Xaver Hugl <<a href="mailto:xaver.hugl@gmail.com" target="_blank">xaver.hugl@gmail.com</a>><br>
> Cc: Melissa Wen <<a href="mailto:mwen@igalia.com" target="_blank">mwen@igalia.com</a>><br>
> ---<br>
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 +++++---<br>
> .../amd/display/modules/info_packet/info_packet.c | 13 ++++++++-----<br>
> 2 files changed, 13 insertions(+), 8 deletions(-)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> index 2845c884398e..6dff56408bf4 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> @@ -6233,8 +6233,9 @@ create_stream_for_sink(struct drm_connector *connector,<br>
> <br>
> if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A)<br>
> mod_build_hf_vsif_infopacket(stream, &stream->vsp_infopacket);<br>
> -<br>
> - if (stream->link->psr_settings.psr_feature_enabled || stream->link->replay_settings.replay_feature_enabled) {<br>
> + else if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT ||<br>
> + stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST ||<br>
> + stream->signal == SIGNAL_TYPE_EDP) {<br>
> //<br>
> // should decide stream support vsc sdp colorimetry capability<br>
> // before building vsc info packet<br>
> @@ -6250,8 +6251,9 @@ create_stream_for_sink(struct drm_connector *connector,<br>
> if (stream->out_transfer_func->tf == TRANSFER_FUNCTION_GAMMA22)<br>
> tf = TRANSFER_FUNC_GAMMA_22;<br>
> mod_build_vsc_infopacket(stream, &stream->vsc_infopacket, stream->output_color_space, tf);<br>
> - aconnector->psr_skip_count = AMDGPU_DM_PSR_ENTRY_DELAY;<br>
> <br>
> + if (stream->link->psr_settings.psr_feature_enabled)<br>
> + aconnector->psr_skip_count = AMDGPU_DM_PSR_ENTRY_DELAY;<br>
> }<br>
> finish:<br>
> dc_sink_release(sink);<br>
> diff --git a/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c b/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c<br>
> index 84f9b412a4f1..738ee763f24a 100644<br>
> --- a/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c<br>
> +++ b/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c<br>
> @@ -147,12 +147,15 @@ void mod_build_vsc_infopacket(const struct dc_stream_state *stream,<br>
> }<br>
> <br>
> /* VSC packet set to 4 for PSR-SU, or 2 for PSR1 */<br>
> - if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1)<br>
> - vsc_packet_revision = vsc_packet_rev4;<br>
> - else if (stream->link->replay_settings.config.replay_supported)<br>
> + if (stream->link->psr_settings.psr_feature_enabled) {<br>
> + if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1)<br>
> + vsc_packet_revision = vsc_packet_rev4;<br>
> + else if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_1)<br>
> + vsc_packet_revision = vsc_packet_rev2;<br>
> + }<br>
> +<br>
> + if (stream->link->replay_settings.config.replay_supported)<br>
> vsc_packet_revision = vsc_packet_rev4;<br>
> - else if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_1)<br>
> - vsc_packet_revision = vsc_packet_rev2;<br>
> <br>
> /* Update to revision 5 for extended colorimetry support */<br>
> if (stream->use_vsc_sdp_for_colorimetry)<br>
<br>
</blockquote></div>