Bug 209375

Summary: sleep does not work on HP EliteBook 845 G7 Notebook PC/8760
Product: ACPI Reporter: wxg4net (wxg4net)
Component: Power-Sleep-WakeAssignee: acpi_power-sleep-wake
Status: RESOLVED CODE_FIX    
Severity: high CC: rui.zhang, wxg4net
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: Linux arch 5.9.0-rc6-1-mainline Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg after suspend failed
dsdt table
acpidump
with initcall_debug

Description wxg4net 2020-09-24 09:47:59 UTC
Created attachment 292615 [details]
dmesg  after suspend failed

[arch:~] cat /sys/power/state
freeze mem disk
[arch:~] cat /sys/power/mem_sleep
[s2idle]
[arch:~] uname -a
Linux arch 5.9.0-rc6-1-mainline #1 SMP PREEMPT Mon, 21 Sep 2020 10:51:55 +0000 x86_64 GNU/Linux
[arch:~] dmesg | grep elite      
[arch:~] dmesg | grep book 
[    0.000000] DMI: HP HP EliteBook 845 G7 Notebook PC/8760, BIOS S77 Ver. 01.01.02 07/21/2020
[    3.215295] Hardware name: HP HP EliteBook 845 G7 Notebook PC/8760, BIOS S77 Ver. 01.01.02 07/21/2020
[   49.027524] Hardware name: HP HP EliteBook 845 G7 Notebook PC/8760, BIOS S77 Ver. 01.01.02 07/21/2020
[arch:~] dmesg|grep DSDT 
[    0.004996] ACPI: DSDT 0x00000000B45CE000 0133C7 (v02 HPQOEM 8760     00000000 INTL 20160527)
[    0.373385] ACPI: \_SB_.PCI0.LPCB.EC0_: Boot DSDT EC used to handle transactions
[    0.390532] ACPI: \_SB_.PCI0.LPCB.EC0_: Boot DSDT EC initialization complete
Comment 1 wxg4net 2020-09-24 09:49:48 UTC
Created attachment 292617 [details]
dsdt table
Comment 2 wxg4net 2020-09-24 09:58:32 UTC
[arch:~] lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
01:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev d3)
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637
03:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
03:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1
03:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1
03:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
03:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
Comment 3 wxg4net 2020-09-24 09:58:56 UTC
[arch:~] sudo journalctl -p err  -b
-- Logs begin at Tue 2020-09-15 19:40:08 CST, end at Thu 2020-09-24 17:58:42 CST. --
9月 24 17:35:24 archlinux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.BUSB.SAT1], AE_NOT_FOUND (20200717/dswload2-162)
9月 24 17:35:24 archlinux kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20200717/psobject-220)
9月 24 17:35:24 archlinux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PEP._STA.TPOS], AE_NOT_FOUND (20200717/psargs-330)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_SB.PEP._STA due to previous error (AE_NOT_FOUND) (20200717/psparse-529)
9月 24 17:35:24 archlinux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PEP._STA.TPOS], AE_NOT_FOUND (20200717/psargs-330)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_SB.PEP._STA due to previous error (AE_NOT_FOUND) (20200717/psparse-529)
9月 24 17:35:24 archlinux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PEP._STA.TPOS], AE_NOT_FOUND (20200717/psargs-330)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_SB.PEP._STA due to previous error (AE_NOT_FOUND) (20200717/psparse-529)
9月 24 17:35:24 archlinux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PEP._STA.TPOS], AE_NOT_FOUND (20200717/psargs-330)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_SB.PEP._STA due to previous error (AE_NOT_FOUND) (20200717/psparse-529)
9月 24 17:35:24 archlinux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PEP._STA.TPOS], AE_NOT_FOUND (20200717/psargs-330)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_SB.PEP._STA due to previous error (AE_NOT_FOUND) (20200717/psparse-529)
9月 24 17:35:24 archlinux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PEP._STA.TPOS], AE_NOT_FOUND (20200717/psargs-330)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_SB.PEP._STA due to previous error (AE_NOT_FOUND) (20200717/psparse-529)
9月 24 17:35:24 archlinux kernel: pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter.
9月 24 17:35:24 archlinux kernel: ACPI BIOS Error (bug): AE_AML_PACKAGE_LIMIT, Index (0x000000005) is beyond end of object (length 0x5) (20200717/exoparg2-393)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_TZ.GTTP due to previous error (AE_AML_PACKAGE_LIMIT) (20200717/psparse-529)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_TZ.CHGZ._TMP due to previous error (AE_AML_PACKAGE_LIMIT) (20200717/psparse-529)
9月 24 17:35:24 archlinux kernel: ACPI BIOS Error (bug): AE_AML_PACKAGE_LIMIT, Index (0x000000005) is beyond end of object (length 0x5) (20200717/exoparg2-393)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_TZ.GTTP due to previous error (AE_AML_PACKAGE_LIMIT) (20200717/psparse-529)
9月 24 17:35:24 archlinux kernel: ACPI Error: Aborting method \_TZ.CHGZ._TMP due to previous error (AE_AML_PACKAGE_LIMIT) (20200717/psparse-529)
9月 24 17:35:25 arch kernel: ACPI Error: No handler for Region [ECRM] (000000009ffb5756) [EmbeddedControl] (20200717/evregion-127)
9月 24 17:35:25 arch kernel: ACPI Error: Region EmbeddedControl (ID=3) has no handler (20200717/exfldio-261)
9月 24 17:35:25 arch kernel: ACPI Error: Aborting method \_SB.GPIO._EVT due to previous error (AE_NOT_EXIST) (20200717/psparse-529)
9月 24 17:35:25 arch kernel: sp5100-tco sp5100-tco: Watchdog hardware is disabled
9月 24 17:35:25 arch kernel: snd_pci_acp3x 0000:03:00.5: Invalid ACP audio mode : 1
Comment 4 wxg4net 2020-09-25 00:20:38 UTC
Created attachment 292635 [details]
acpidump
Comment 5 Zhang Rui 2021-01-03 13:11:01 UTC
please 
1. boot with initcall_debug
2. run "echo 1 > /sys/power/pm_debug_messages"
3. run "echo freeze> /sys/power/states"
4. attach the dmesg output
Comment 6 wxg4net 2021-01-09 13:55:24 UTC
Created attachment 294583 [details]
with initcall_debug
Comment 7 wxg4net 2021-01-09 14:04:20 UTC
(In reply to Zhang Rui from comment #5)
> please 
> 1. boot with initcall_debug
> 2. run "echo 1 > /sys/power/pm_debug_messages"
> 3. run "echo freeze> /sys/power/states"
> 4. attach the dmesg output

thx for your reply. the dmesg's log has been appended
Comment 8 wxg4net 2021-03-08 00:36:59 UTC
some fix patch is here
https://gitlab.freedesktop.org/drm/amd/-/issues/1230