]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.2-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Oct 2019 15:35:42 +0000 (17:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Oct 2019 15:35:42 +0000 (17:35 +0200)
added patches:
drm-amd-display-restore-backlight-brightness-after-system-resume.patch

queue-5.2/drm-amd-display-restore-backlight-brightness-after-system-resume.patch [new file with mode: 0644]
queue-5.2/series

diff --git a/queue-5.2/drm-amd-display-restore-backlight-brightness-after-system-resume.patch b/queue-5.2/drm-amd-display-restore-backlight-brightness-after-system-resume.patch
new file mode 100644 (file)
index 0000000..d7e151f
--- /dev/null
@@ -0,0 +1,40 @@
+From bb264220d9316f6bd7c1fd84b8da398c93912931 Mon Sep 17 00:00:00 2001
+From: Kai-Heng Feng <kai.heng.feng@canonical.com>
+Date: Mon, 2 Sep 2019 16:33:42 +0800
+Subject: drm/amd/display: Restore backlight brightness after system resume
+
+From: Kai-Heng Feng <kai.heng.feng@canonical.com>
+
+commit bb264220d9316f6bd7c1fd84b8da398c93912931 upstream.
+
+Laptops with AMD APU doesn't restore display backlight brightness after
+system resume.
+
+This issue started when DC was introduced.
+
+Let's use BL_CORE_SUSPENDRESUME so the backlight core calls
+update_status callback after system resume to restore the backlight
+level.
+
+Tested on Dell Inspiron 3180 (Stoney Ridge) and Dell Latitude 5495
+(Raven Ridge).
+
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.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
+@@ -1958,6 +1958,7 @@ static int amdgpu_dm_backlight_get_brigh
+ }
+ static const struct backlight_ops amdgpu_dm_backlight_ops = {
++      .options = BL_CORE_SUSPENDRESUME,
+       .get_brightness = amdgpu_dm_backlight_get_brightness,
+       .update_status  = amdgpu_dm_backlight_update_status,
+ };
index 95adc30429fd24b100bcd00e8cb87b71d1e2e716..7854383380ede4a2f840ad0423417fc9a3aa2fee 100644 (file)
@@ -99,7 +99,6 @@ perf-unwind-fix-libunwind-when-tid-pid.patch
 media-rc-imon-allow-imon-rc-protocol-for-ffdc-7e-dev.patch
 dmaengine-iop-adma-use-correct-printk-format-strings.patch
 arm-xscale-fix-multi-cpu-compilation.patch
-perf-ftrace-use-cap_sys_admin-instead-of-euid-0.patch
 perf-record-support-aarch64-random-socket_id-assignm.patch
 media-vsp1-fix-memory-leak-of-dl-on-error-return-pat.patch
 media-i2c-ov5645-fix-power-sequence.patch
@@ -307,6 +306,7 @@ hwrng-core-don-t-wait-on-add_early_randomness.patch
 i2c-riic-clear-nack-in-tend-isr.patch
 cifs-fix-max-ea-value-size.patch
 cifs-fix-oplock-handling-for-smb-2.1-protocols.patch
+drm-amd-display-restore-backlight-brightness-after-system-resume.patch
 md-raid0-avoid-raid0-data-corruption-due-to-layout-c.patch
 mt76-mt7615-always-release-sem-in-mt7615_load_patch.patch
 mt76-mt7615-fix-mt7615-firmware-path-definitions.patch