From 5e29774947d5f0be949b3cee4d62e6236351e3b9 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 3 Oct 2019 17:35:42 +0200 Subject: [PATCH] 5.2-stable patches added patches: drm-amd-display-restore-backlight-brightness-after-system-resume.patch --- ...light-brightness-after-system-resume.patch | 40 +++++++++++++++++++ queue-5.2/series | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 queue-5.2/drm-amd-display-restore-backlight-brightness-after-system-resume.patch 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 index 00000000000..d7e151f2447 --- /dev/null +++ b/queue-5.2/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 +@@ -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, + }; diff --git a/queue-5.2/series b/queue-5.2/series index 95adc30429f..7854383380e 100644 --- a/queue-5.2/series +++ b/queue-5.2/series @@ -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 -- 2.47.2