From: Greg Kroah-Hartman Date: Thu, 3 Oct 2019 15:35:13 +0000 (+0200) Subject: 4.19-stable patches X-Git-Tag: v4.4.195~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4da89dde679bb97225138e946a92df857bdceadf;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: drm-amd-display-restore-backlight-brightness-after-system-resume.patch --- 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 index 00000000000..665af6f6247 --- /dev/null +++ b/queue-4.19/drm-amd-display-restore-backlight-brightness-after-system-resume.patch @@ -0,0 +1,40 @@ +From bb264220d9316f6bd7c1fd84b8da398c93912931 Mon Sep 17 00:00:00 2001 +From: Kai-Heng Feng +Date: Mon, 2 Sep 2019 16:33:42 +0800 +Subject: drm/amd/display: Restore backlight brightness after system resume + +From: Kai-Heng Feng + +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: +Signed-off-by: Kai-Heng Feng +Signed-off-by: Alex Deucher +Signed-off-by: Greg Kroah-Hartman + +--- + 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, + }; diff --git a/queue-4.19/series b/queue-4.19/series index 5a748c5d433..6e0cf0d659f 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -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