Skip to contentSkip to conversation

New: [amdgpu CARRIZO] disabled backlight after S3 resume

Bug 199047 [email protected] 1 participant 9 messages Mar 7, 2018 – Apr 17, 2018

lore
Share & tools
lore

[email protected]

author Reviewed-by Harry Wentland Acked-by Christian König
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=199047

            Bug ID: 199047
           Summary: [amdgpu CARRIZO] disabled backlight after S3 resume
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.16-rc1
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

After S3 resume, the backlight stays disabled. Re-enabling is possible with brightness-hotkeys. The regression was introduced with:

commit 4ec6ecf48c64d1da82a008f6fb0be86c4044287d (refs/bisect/bad)

Author: Alex Deucher <[email protected]>
Date:   Tue Dec 12 15:20:22 2017 -0500

drm/amdgpu: drop scratch regs save and restore from S3/S4 handling

The expectation is that the base driver doesn't mess with these. Some components interact with these directly so let the components handle these directly.

lspci:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1576 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1577 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Carrizo (rev c5)
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157b 00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c 00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c 00:02.5 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c 00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157b 00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1578 00:09.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157d 00:09.2 Audio device: Advanced Micro Devices, Inc. [AMD] Device 157a 00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 20)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 49)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 49)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 4a) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1570 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1571 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1572 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1573 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1574 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1575 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a) 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 199047] [amdgpu CARRIZO] disabled backlight after S3 resume

https://bugzilla.kernel.org/show_bug.cgi?id=199047

--- Comment #1 from Alex Deucher ([email protected]) --- Are you using DC? Please attach your dmesg output.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 199047] [amdgpu CARRIZO] disabled backlight after S3 resume

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199047

--- Comment #2 from Johannes Hirte ([email protected]) --- (In reply to Alex Deucher from comment #1)

Quoted 1 line

Are you using DC? Please attach your dmesg output.

Not using DC. dmesg after a S3 suspend/resume cycle attached

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 199047] [amdgpu CARRIZO] disabled backlight after S3 resume

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199047

--- Comment #3 from Johannes Hirte ([email protected]) --- Created attachment 274617
--> https://bugzilla.kernel.org/attachment.cgi?id=274617&action=edit
dmesg.log

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 199047] [amdgpu CARRIZO] disabled backlight after S3 resume

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199047

--- Comment #4 from Alex Deucher ([email protected]) --- Does it work with DC enabled?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

[Bug 199047] [amdgpu CARRIZO] disabled backlight after S3 resume

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199047

--- Comment #5 from Johannes Hirte ([email protected]) --- (In reply to Alex Deucher from comment #4)

Quoted 1 line

Does it work with DC enabled?

With DC it works as expected. Unfortunately this is not a workaround for me, cause there is still the use-after-free.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 199047] [amdgpu CARRIZO] disabled backlight after S3 resume

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199047

--- Comment #6 from Alex Deucher ([email protected]) --- Created attachment 274621
--> https://bugzilla.kernel.org/attachment.cgi?id=274621&action=edit
possible fix

Does this fix it?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

[Bug 199047] [amdgpu CARRIZO] disabled backlight after S3 resume

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199047

--- Comment #7 from Johannes Hirte ([email protected]) --- (In reply to Alex Deucher from comment #6)

Quoted 4 lines

Created attachment 274621 [details]
possible fix

Does this fix it?

Yes, fixed with this patch.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 199047] [amdgpu CARRIZO] disabled backlight after S3 resume

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199047

Johannes Hirte ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #8 from Johannes Hirte ([email protected]) --- fixed

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel