From ab50e394182cbf9a797ff1c771be41402294abb7 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 24 May 2025 18:00:21 +0200 Subject: [PATCH] 5.10-stable patches added patches: drm-edid-fixed-the-bug-that-hdr-metadata-was-not-reset.patch --- ...-bug-that-hdr-metadata-was-not-reset.patch | 35 +++++++++++++++++++ queue-5.10/series | 1 + 2 files changed, 36 insertions(+) create mode 100644 queue-5.10/drm-edid-fixed-the-bug-that-hdr-metadata-was-not-reset.patch diff --git a/queue-5.10/drm-edid-fixed-the-bug-that-hdr-metadata-was-not-reset.patch b/queue-5.10/drm-edid-fixed-the-bug-that-hdr-metadata-was-not-reset.patch new file mode 100644 index 0000000000..33f8e204e6 --- /dev/null +++ b/queue-5.10/drm-edid-fixed-the-bug-that-hdr-metadata-was-not-reset.patch @@ -0,0 +1,35 @@ +From 6692dbc15e5ed40a3aa037aced65d7b8826c58cd Mon Sep 17 00:00:00 2001 +From: "feijuan.li" +Date: Wed, 14 May 2025 14:35:11 +0800 +Subject: drm/edid: fixed the bug that hdr metadata was not reset + +From: feijuan.li + +commit 6692dbc15e5ed40a3aa037aced65d7b8826c58cd upstream. + +When DP connected to a device with HDR capability, +the hdr structure was filled.Then connected to another +sink device without hdr capability, but the hdr info +still exist. + +Fixes: e85959d6cbe0 ("drm: Parse HDR metadata info from EDID") +Cc: # v5.3+ +Signed-off-by: "feijuan.li" +Reviewed-by: Jani Nikula +Link: https://lore.kernel.org/r/20250514063511.4151780-1-feijuan.li@samsung.com +Signed-off-by: Jani Nikula +Signed-off-by: Greg Kroah-Hartman +--- + drivers/gpu/drm/drm_edid.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/gpu/drm/drm_edid.c ++++ b/drivers/gpu/drm/drm_edid.c +@@ -5097,6 +5097,7 @@ drm_reset_display_info(struct drm_connec + info->has_hdmi_infoframe = false; + info->rgb_quant_range_selectable = false; + memset(&info->hdmi, 0, sizeof(info->hdmi)); ++ memset(&connector->hdr_sink_metadata, 0, sizeof(connector->hdr_sink_metadata)); + + info->non_desktop = 0; + memset(&info->monitor_range, 0, sizeof(info->monitor_range)); diff --git a/queue-5.10/series b/queue-5.10/series index 5b8cf5cf7f..6619f49f69 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -245,3 +245,4 @@ can-bcm-add-missing-rcu-read-protection-for-procfs-content.patch alsa-pcm-fix-race-of-buffer-access-at-pcm-oss-layer.patch alsa-hda-realtek-add-quirk-for-lenovo-yoga-pro-7-14asp10.patch llc-fix-data-loss-when-reading-from-a-socket-in-llc_ui_recvmsg.patch +drm-edid-fixed-the-bug-that-hdr-metadata-was-not-reset.patch -- 2.47.2