]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.16-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jan 2022 06:01:47 +0000 (07:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jan 2022 06:01:47 +0000 (07:01 +0100)
added patches:
drm-amd-display-explicitly-set-is_dsc_supported-to-false-before-use.patch

queue-5.16/drm-amd-display-explicitly-set-is_dsc_supported-to-false-before-use.patch [new file with mode: 0644]
queue-5.16/series

diff --git a/queue-5.16/drm-amd-display-explicitly-set-is_dsc_supported-to-false-before-use.patch b/queue-5.16/drm-amd-display-explicitly-set-is_dsc_supported-to-false-before-use.patch
new file mode 100644 (file)
index 0000000..729c7f5
--- /dev/null
@@ -0,0 +1,32 @@
+From 63ad5371cd1e379519395c49a4b6a652c36c98e5 Mon Sep 17 00:00:00 2001
+From: Mario Limonciello <mario.limonciello@amd.com>
+Date: Wed, 5 Jan 2022 12:48:16 -0600
+Subject: drm/amd/display: explicitly set is_dsc_supported to false before use
+
+From: Mario Limonciello <mario.limonciello@amd.com>
+
+commit 63ad5371cd1e379519395c49a4b6a652c36c98e5 upstream.
+
+When UBSAN is enabled a case is shown on unplugging the display that
+this variable hasn't been initialized by `update_dsc_caps`, presumably
+when the display was unplugged it wasn't copied from the DPCD.
+
+Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1956497
+Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -6065,6 +6065,7 @@ static void update_dsc_caps(struct amdgp
+                                                       struct dsc_dec_dpcd_caps *dsc_caps)
+ {
+       stream->timing.flags.DSC = 0;
++      dsc_caps->is_dsc_supported = false;
+       if (aconnector->dc_link && sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT) {
+               dc_dsc_parse_dsc_dpcd(aconnector->dc_link->ctx->dc,
index 12787d2c4b564d49b3bafbcd41974ebb905378d5..440987ade447610124f854a86cc24148991e618f 100644 (file)
@@ -1 +1,2 @@
 devtmpfs-regression-fix-reconfigure-on-each-mount.patch
+drm-amd-display-explicitly-set-is_dsc_supported-to-false-before-use.patch