Steam Deck wakes up from hibernates with max brightness
Brief summary of the problem:
Steam deck sets dc_link_set_backlight_level to 769 after the device wakes up from hibernate.
I would like to thank Takashi Iwai for pinpointing the issue.
Hardware description:
- CPU: Custom APU 0405
- GPU: VanGogh AMD Custom GPU 0405
- System Memory: 16 GB LPDDR5
- Display(s): FTS3528:00 2808:1015? Probably Lenovo MIIX display
- Type of Display Connection: Internal
System information:
- Distro name and Version: openSUSE Tumbleweed - 20220817
- Kernel version: Linux steamdeck 6.0.0-rc1-1.gd997b88-default #1 (closed) SMP PREEMPT_DYNAMIC Thu Aug 18 14:44:01 UTC 2022 (d997b88) x86_64 x86_64 x86_64 GNU/Linux
https://software.opensuse.org/download/package?package=kernel-default&project=Kernel%3AHEAD
How to reproduce the issue:
- echo disk | sudo tee -a /sys/power/state
- Press the power button
Attached files:
Screenshots/video files
[ TODO: For rendering errors, attach screenshots of the problem and (if possible) of how it should look. For freezes, it may be useful to provide a screenshot of the affected game scene. Prefer screenshots over videos. ]
Log files (for system lockups / game freezes / crashes)
[ 120.406627] smpboot: CPU 2 is now offline
[ 120.408886] smpboot: CPU 3 is now offline
[ 120.411118] smpboot: CPU 4 is now offline
[ 120.413103] smpboot: CPU 5 is now offline
[ 120.415273] smpboot: CPU 6 is now offline
[ 120.415712] Spectre V2 : Update user space SMT mitigation: STIBP off
[ 120.417175] smpboot: CPU 7 is now offline
[ 120.418037] PM: hibernation: Creating image:
[ 120.782972] PM: hibernation: Need to copy 1140424 pages
[ 120.782978] PM: hibernation: Normal pages needed: 1140424 + 1024, available pages: 2751228
[ 120.418348] ACPI: PM: Restoring platform NVS memory
[ 120.423960] ACPI: EC: EC started
[ 120.424012] LVT offset 0 assigned for vector 0x400
[ 120.424576] Enabling non-boot CPUs ...
[ 120.424649] x86: Booting SMP configuration:
[ 120.424650] smpboot: Booting Node 0 Processor 1 APIC 0x1
[ 120.424979] microcode: CPU1: patch_level=0x08900201
[ 120.427334] ACPI: \_SB_.PLTF.C001: Found 3 idle states
[ 120.427805] Spectre V2 : Update user space SMT mitigation: STIBP always-on
[ 120.427825] CPU1 is up
[ 120.427907] smpboot: Booting Node 0 Processor 2 APIC 0x2
[ 120.428158] microcode: CPU2: patch_level=0x08900201
[ 120.430448] ACPI: \_SB_.PLTF.C002: Found 3 idle states
[ 120.431141] CPU2 is up
[ 120.431171] smpboot: Booting Node 0 Processor 3 APIC 0x3
[ 120.431343] microcode: CPU3: patch_level=0x08900201
[ 120.433595] ACPI: \_SB_.PLTF.C003: Found 3 idle states
[ 120.434104] CPU3 is up
[ 120.434144] smpboot: Booting Node 0 Processor 4 APIC 0x4
[ 120.434387] microcode: CPU4: patch_level=0x08900201
[ 120.436772] ACPI: \_SB_.PLTF.C004: Found 3 idle states
[ 120.437299] CPU4 is up
[ 120.437330] smpboot: Booting Node 0 Processor 5 APIC 0x5
[ 120.437548] microcode: CPU5: patch_level=0x08900201
[ 120.439801] ACPI: \_SB_.PLTF.C005: Found 3 idle states
[ 120.440363] CPU5 is up
[ 120.440394] smpboot: Booting Node 0 Processor 6 APIC 0x6
[ 120.440597] microcode: CPU6: patch_level=0x08900201
[ 120.442885] ACPI: \_SB_.PLTF.C006: Found 3 idle states
[ 120.443532] CPU6 is up
[ 120.443566] smpboot: Booting Node 0 Processor 7 APIC 0x7
[ 120.443780] microcode: CPU7: patch_level=0x08900201
[ 120.446070] ACPI: \_SB_.PLTF.C007: Found 3 idle states
[ 120.446898] CPU7 is up
[ 120.454486] ACPI: PM: Waking up from system sleep state S4
[ 120.455467] ACPI: EC: interrupt unblocked
[ 120.610501] ACPI: EC: event unblocked
[ 120.610506] usb usb3: root hub lost power or was reset
[ 120.610509] usb usb1: root hub lost power or was reset
[ 120.610513] usb usb4: root hub lost power or was reset
[ 120.610515] usb usb2: root hub lost power or was reset
[ 120.611076] [drm] PCIE GART of 1024M enabled (table at 0x000000F400200000).
[ 120.611100] [drm] PSP is resuming...
[ 120.633326] [drm] reserve 0xa00000 from 0xf43e000000 for PSP TMR
[ 120.682982] nvme nvme0: 8/0/0 default/read/poll queues
[ 120.686490] [drm] failed to load ucode GLOBAL_TAP_DELAYS(0x23)
[ 120.686496] [drm] psp gfx command LOAD_IP_FW(0x6) failed and response status is (0xFFFF0010)
[ 120.686715] [drm] failed to load ucode SE0_TAP_DELAYS(0x24)
[ 120.686718] [drm] psp gfx command LOAD_IP_FW(0x6) failed and response status is (0xFFFF0010)
[ 120.686994] [drm] failed to load ucode SE1_TAP_DELAYS(0x25)
[ 120.686997] [drm] psp gfx command LOAD_IP_FW(0x6) failed and response status is (0xFFFF0010)
[ 120.687221] [drm] failed to load ucode SE2_TAP_DELAYS(0x26)
[ 120.687224] [drm] psp gfx command LOAD_IP_FW(0x6) failed and response status is (0xFFFF0010)
[ 120.687442] [drm] failed to load ucode SE3_TAP_DELAYS(0x27)
[ 120.687446] [drm] psp gfx command LOAD_IP_FW(0x6) failed and response status is (0xFFFF0010)
[ 120.902905] usb 1-1: reset high-speed USB device number 5 using xhci_hcd
[ 120.906898] usb 3-5: reset full-speed USB device number 3 using xhci_hcd
[ 120.923103] amdgpu 0000:04:00.0: amdgpu: SMU is resuming...
[ 120.923236] amdgpu 0000:04:00.0: amdgpu: dpm has been disabled
[ 120.923405] amdgpu 0000:04:00.0: amdgpu: SMU is resumed successfully!
[ 120.924133] [drm] DMUB hardware initialized: version=0x03000006
[ 120.924373] [drm:dcn301_smu_set_dram_addr_high [amdgpu]] dcn301_smu_set_dram_addr_high(f4)
[ 120.924993] [drm:dcn301_smu_set_dram_addr_low [amdgpu]] dcn301_smu_set_dram_addr_low(7a3000)
[ 120.926223] [drm:amdgpu_dm_irq_resume_early [amdgpu]] DM_IRQ: early resume
[ 120.926686] [drm:amdgpu_dm_update_connector_after_detect [amdgpu]] DCHPD: connector_id=0: Old sink=0000000000000000 New sink=00000000cf1573b3
[ 120.928808] [drm:update_display_info] Supported Monitor Refresh rate range is 0 Hz - 0 Hz
[ 120.930483] [drm:detect_link_and_local_sink [amdgpu]] link=1, dc_sink_in=0000000000000000 is now Disconnected prev_sink=0000000000000000 edid same=0
[ 120.930913] [drm:dm_resume [amdgpu]] DCHPD: connector_id=1: dc_sink didn't change.
[ 120.931408] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:800 height:1280
[ 120.931896] [drm:dm_update_crtc_state [amdgpu]] Destination Rectangle x:0 y:0 width:800 height:1280
[ 120.933799] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
[ 120.934238] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
[ 120.934664] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
[ 120.935104] amdgpu: Move buffer fallback to memcpy unavailable
[ 120.935108] amdgpu 0000:04:00.0: amdgpu: 00000000d9755e34 pin failed
[ 120.935110] [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -19
[ 120.935542] [drm:amdgpu_dm_irq_resume_late [amdgpu]] DM_IRQ: resume
[ 120.936223] [drm] kiq ring mec 2 pipe 1 q 0
[ 120.937761] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[ 120.938051] [drm] JPEG decode initialized successfully.
[ 120.938064] amdgpu 0000:04:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[ 120.938066] amdgpu 0000:04:00.0: amdgpu: ring gfx_0.1.0 uses VM inv eng 1 on hub 0
[ 120.938068] amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 4 on hub 0
[ 120.938069] amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 5 on hub 0
[ 120.938071] amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[ 120.938072] amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[ 120.938074] amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[ 120.938075] amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[ 120.938076] amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[ 120.938078] amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[ 120.938079] amdgpu 0000:04:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 12 on hub 0
[ 120.938081] amdgpu 0000:04:00.0: amdgpu: ring sdma0 uses VM inv eng 13 on hub 0
[ 120.938082] amdgpu 0000:04:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 1
[ 120.938084] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 1
[ 120.938085] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 1
[ 120.938087] amdgpu 0000:04:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1
[ 120.940635] amdgpu 0000:04:00.0: [drm:drm_client_dev_hotplug] fbdev: ret=0
[ 121.182939] usb 3-3: reset full-speed USB device number 2 using xhci_hcd
[ 121.367005] [drm:dc_link_set_backlight_level [amdgpu]] New Backlight level: 769 (0x301)
[ 121.367571] usb 2-1: reset SuperSpeed USB device number 2 using xhci_hcd
[ 121.807315] usb 1-1.1: reset full-speed USB device number 6 using xhci_hcd
[ 121.987217] usb 1-1.2: reset high-speed USB device number 7 using xhci_hcd
[ 122.103708] PM: hibernation: Basic memory bitmaps freed
[ 122.103714] OOM killer enabled.
[ 122.103715] Restarting tasks ... done.
[ 122.106845] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[ 122.107706] Bluetooth: hci0: RTL: rom_version status=0 version=3
[ 122.107716] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_fw.bin
[ 122.107750] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_config.bin
[ 122.107776] Bluetooth: hci0: RTL: cfg_sz 6, total sz 35086
[ 122.126754] [drm:drm_mode_addfb2] [FB:84]
[ 122.127575] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:78:eDP-1]
[ 122.127597] [drm:update_display_info] Supported Monitor Refresh rate range is 0 Hz - 0 Hz
[ 122.127605] [drm:_drm_edid_connector_update] ELD monitor ANX7530 U
[ 122.127610] [drm:_drm_edid_connector_update] ELD size 32, SAD count 0
[ 122.128564] PM: hibernation: hibernation exit