Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
debugging suspend2ram with x570
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
s|mon
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2004
Posts: 127
Location: Bayern [de]

PostPosted: Thu Jan 16, 2020 3:46 pm    Post subject: debugging suspend2ram with x570 Reply with quote

Hello
since my switch to my new hardware suspend to ram is not working any more and i'd need some support on the investigation.
It enters suspend state but it does not resume (neither network or graphic card is activated but system is running - at least power consumption is up)

System information
Quote:

MB: Gigabyte Aorus Ultra x570
CPU: Ryzen 3700x


Gigabyte forums
With windows 10 i'm able to suspend and resume now on that system so i guess there might be some hardware quirks left which are not expected in the kernel.

I tried to use "sync && echo 1 > /sys/power/pm_trace && pm-suspend" to identify the cause
Quote:

[ 1.181356] Key type encrypted registered
[ 1.182094] PM: Magic number: 0:571:178
[ 1.182609] PM: hash matches drivers/base/power/main.c:1331
[ 1.183152] acpi PNP0C02:0b: hash matches
[ 1.183680] acpi device:0e: hash matches
[ 1.184196] platform: hash matches


main.c for my kernel is the TRACE call in the end of
Quote:
static int __device_suspend_noirq(struct device *dev, pm_message_t state, bool async)
..
Complete:
complete_all(&dev->power.completion);
TRACE_SUSPEND(error);
return error;
}


The other hash matches do not help me much (yet) - if i understand it hints to motherboard resources but i've got no clue what to do from here.
Any advice on next steps would be appreciated.

Thanks
s|mon

lspnp
Quote:


00:00 PNP0c01 System board
state = active
mem 0xf8000000-0xfbffffff

00:01 PNP0c02 Motherboard resources
state = active
mem 0xfd000000-0xfd0fffff

00:02 PNP0b00 AT real-time clock
state = active
io 0x70-0x71

00:03 PNP0c02 Motherboard resources
state = active
io 0xa00-0xa2f
io 0xa30-0xa3f
io 0xa40-0xa4f

00:04 PNP0c02 Motherboard resources
state = active
io 0x10-0x1f
io 0x22-0x3f
io 0x63-0x63
io 0x65-0x65
io 0x67-0x6f
io 0x72-0x7f
io 0x80-0x80
io 0x84-0x86
io 0x88-0x88
io 0x8c-0x8e
io 0x90-0x9f
io 0xa2-0xbf
io 0xb1-0xb1
io 0xe0-0xef
io 0x4d0-0x4d1
io 0x40b-0x40b
io 0x4d6-0x4d6
io 0xc00-0xc01
io 0xc14-0xc14
io 0xc50-0xc51
io 0xc52-0xc52
io 0xc6c-0xc6c
io 0xc6f-0xc6f
io 0xcd0-0xcd1
io 0xcd2-0xcd3
io 0xcd4-0xcd5
io 0xcd6-0xcd7
io 0xcd8-0xcdf
io 0x800-0x89f
io 0xb00-0xb0f
io 0xb20-0xb3f
io 0x900-0x90f
io 0x910-0x91f
mem 0xfec00000-0xfec00fff
mem 0xfec01000-0xfec01fff
mem 0xfedc0000-0xfedc0fff
mem 0xfee00000-0xfee00fff
mem 0xfed80000-0xfed8ffff
mem 0xfec10000-0xfec10fff
mem 0xff000000-0xffffffff


lspci
Quote:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
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] Matisse Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 7
01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 57ad
03:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 57a3
03:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 57a3
03:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 57a4
03:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 57a4
03:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 57a4
04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
05:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
06:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
06:00.1 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
07:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
08:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
09:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 660] (rev a1)
09:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)
0a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
0b:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
0b:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP
0b:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
0b:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
0c:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
0d:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)


ACPI from config
Quote:

CONFIG_X86_64_ACPI_NUMA=y
CONFIG_ARCH_SUPPORTS_ACPI=y
CONFIG_ACPI=y
CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y
CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
CONFIG_ACPI_SPCR_TABLE=y
CONFIG_ACPI_LPIT=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_ACPI_PROCESSOR_CSTATE=y
CONFIG_ACPI_PROCESSOR_IDLE=y
CONFIG_ACPI_CPPC_LIB=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_HOTPLUG_IOAPIC=y
CONFIG_HAVE_ACPI_APEI=y
CONFIG_HAVE_ACPI_APEI_NMI=y
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_PNPACPI=y
CONFIG_ATA_ACPI=y
CONFIG_ACPI_I2C_OPREGION=y
CONFIG_DMA_ACPI=y
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum