AMD: Suspend not working when some cores are disabled through cpufreq
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HWE Next |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
High
|
You-Sheng Yang | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
High
|
You-Sheng Yang | ||
Jammy |
Fix Released
|
High
|
You-Sheng Yang | ||
linux-oem-5.14 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
High
|
You-Sheng Yang | ||
Impish |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification]
[Impact]
Detailed in https:/
some cpu cores offline using cpufreq gadgets or via sysfs may hang the
system.
[Fix]
In v5.16-rc1 commit d6b88ce2eb9d ("ACPI: processor idle: Allow playing
dead in C3 state") fixes this issue.
[Test Case]
As stated in aforementioned bug url, setup cpufreq extention to take
down a few cpu cores, and trigger system suspend. There are ~50% chances
that networking/
sysrq keys.
[Where problems could occur]
According to the patch discussion thread in
https://<email address hidden>/,
the limitation to allow enter_dead in no more than ACPI_STATE_C2 might
not have a practical meaning, but simply C2 was the deepest supported
then.
[Other Info]
While this is currently only available in v5.16-rc1 and affects AMD
Cezanne/Barcelo, oem-5.14/impish and jammy are nominated.
========== original bug report ==========
https:/
Reproduce steps:
1. Install cpufeq gnome extension (https:/
2. Click on the cpu freq extention in the top bar
3. Slide the "cores online" from 16 to 3
4. close lid of laptop
Expected result: the laptop goes into suspend
Actual result: the laptop stay on but screen is now always black and keyboard input is ignored
Fix committed to v5.16-rc1: https:/
---
ProblemType: Bug
ApportVersion: 2.20.11-
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
/dev/snd/
CasperMD5CheckR
Dependencies:
DistributionCha
# This is the distribution channel descriptor for the OEM CDs
# For more information see http://
canonical-
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2021-09-09 (97 days ago)
InstallationMedia: Ubuntu 20.04 "Focal" - Build amd64 LIVE Binary 20200502-05:58
IwConfig:
lo no wireless extensions.
enp1s0f0 no wireless extensions.
Lsusb:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 062a:4c01 MosArt Semiconductor Corp. 2.4G INPUT DEVICE
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: AMD Celadon-CZN
Package: linux-firmware 1.187.23+staging.38 [origin: LP-PPA-
PackageArchitec
ProcFB: 0 amdgpu
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.187.23+staging.38
RfKill:
Tags: third-party-
Uname: Linux 5.14.0-9011-oem x86_64
UnreportableReason: This is not an official Ubuntu package. Please remove any third party package and try again.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 06/30/2021
dmi.bios.release: 19.1
dmi.bios.vendor: INSYDE Corp.
dmi.bios.version: RLD1005B_AB
dmi.board.
dmi.board.name: Celadon-CZN
dmi.board.vendor: AMD
dmi.board.version: Base Board Version
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Chassis Manufacturer
dmi.chassis.
dmi.modalias: dmi:bvnINSYDECo
dmi.product.family: Renoir
dmi.product.name: Celadon-CZN
dmi.product.sku: 123456789
dmi.product.
dmi.sys.vendor: AMD
CVE References
tags: | added: amd oem-priority originate-from-1954322 |
description: | updated |
Changed in linux (Ubuntu Focal): | |
status: | New → Invalid |
Changed in linux-oem-5.14 (Ubuntu Impish): | |
status: | New → Invalid |
Changed in linux-oem-5.14 (Ubuntu Jammy): | |
status: | New → Invalid |
Changed in linux (Ubuntu Impish): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → You-Sheng Yang (vicamo) |
Changed in linux (Ubuntu Jammy): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → You-Sheng Yang (vicamo) |
Changed in linux-oem-5.14 (Ubuntu Focal): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → You-Sheng Yang (vicamo) |
Changed in linux-oem-5.14 (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Impish): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in hwe-next: | |
status: | New → Fix Released |
[ 123.964355] r8169 0000:01:00.0 enp1s0f0: Link is Down ring_test_ helper [amdgpu]] *ERROR* ring sdma0 test failed (-110) device_ ip_resume_ phase2 [amdgpu]] *ERROR* resume of IP block <sdma_v4_0> failed -110 device_ ip_resume failed (-110). resume+ 0x0/0x90 returns -110
[ 124.353255] PM: suspend entry (s2idle)
[ 124.366348] Filesystems sync: 0.013 seconds
[ 124.983434] rfkill: input handler enabled
[ 125.062413] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 125.064287] OOM killer disabled.
[ 125.064288] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 125.390929] ACPI: EC: interrupt blocked
[ 125.469200] ACPI: EC: interrupt unblocked
[ 125.510332] pci 0000:00:00.2: can't derive routing for PCI INT A
[ 125.510335] pci 0000:00:00.2: PCI INT A: no GSI
[ 125.511064] [drm] PCIE GART of 1024M enabled.
[ 125.511068] [drm] PTB located at 0x000000F400900000
[ 125.511083] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[ 125.512588] amdgpu 0000:03:00.0: amdgpu: dpm has been disabled
[ 125.513573] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[ 125.522694] nvme nvme0: Shutdown timeout set to 10 seconds
[ 125.526041] nvme nvme0: 16/0/0 default/read/poll queues
[ 125.691534] amdgpu 0000:03:00.0: [drm:amdgpu_
[ 125.691698] [drm:amdgpu_
[ 125.691806] amdgpu 0000:03:00.0: amdgpu: amdgpu_
[ 125.691808] PM: dpm_run_callback(): pci_pm_
[ 125.691820] amdgpu 0000:03:00.0: PM: failed to resume async: error -110
[ 125.693966] OOM killer enabled.
[ 125.693967] Restarting tasks ... done.
[ 125.702960] PM: suspend exit
[ 201.335694] sysrq: This sysrq operation is disabled.
[ 201.543676] sysrq: This sysrq operation is disabled.
[ 201.719682] sysrq: This sysrq operation is disabled.
[ 202.231681] sysrq: Emergency Sync
[ 202.240025] Emergency Sync complete
[ 203.031695] sysrq: Emergency Remount R/O