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

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

diff --git a/queue-4.19/drm-amd-display-restore-backlight-brightness-after-system-resume.patch b/queue-4.19/drm-amd-display-restore-backlight-brightness-after-system-resume.patch
new file mode 100644 (file)
index 0000000..665af6f
--- /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
+@@ -1462,6 +1462,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 5a748c5d43312ac770cd57bd92a474854e7105a7..6e0cf0d659fc3db23667a8093d432d53260c286c 100644 (file)
@@ -71,7 +71,6 @@ media-fdp1-reduce-fcp-not-found-message-level-to-deb.patch
 media-em28xx-modules-workqueue-not-inited-for-2nd-de.patch
 media-rc-imon-allow-imon-rc-protocol-for-ffdc-7e-dev.patch
 dmaengine-iop-adma-use-correct-printk-format-strings.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
@@ -209,3 +208,4 @@ cifs-fix-oplock-handling-for-smb-2.1-protocols.patch
 md-raid0-avoid-raid0-data-corruption-due-to-layout-c.patch
 fuse-fix-deadlock-with-aio-poll-and-fuse_iqueue-wait.patch
 mm-compaction.c-clear-total_-migrate-free-_scanned-b.patch
+drm-amd-display-restore-backlight-brightness-after-system-resume.patch