[Regression] RX 6700 XT fails to enter S3 after 6290fed026c1; reverting restores S3

Open
#1,195 6 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c

Research direction

Start by inspecting commit 6290fed026c1 and the related AMD DRM work item 5620, then trace the MP1 unload preparation for SMU 11.0.11 and the later MODE1 reset in the kernel source. Reproduce with deep sleep on the specified RX 6700 XT and compare the failing build with one that reverts the commit; done means S3 completes without falling back to s2idle.

Written by the indexing model from the issue text.

Description

Summary

ACPI S3 (deep) aborts during AMDGPU's MODE1 reset on a Gigabyte Radeon RX 6700 XT (Navi 22, PCI ID 1002:73df, rev c5, subsystem 1458:2331). The reproducing build is a local 7.4.0-rc5-1 kernel built from the CachyOS cachyos-7.4-rc5-1 source release. Reverting only 6290fed026c1 restores S3 with the same kernel configuration.

Reproduction

With deep selected in /sys/power/mem_sleep, run systemctl suspend. The unmodified build aborts deep and the system falls back to s2idle.

PM: suspend entry (deep)
amdgpu 0000:2b:00.0: SMU: valid command, bad prerequisites msg_reg: 30 resp_reg: fd
amdgpu 0000:2b:00.0: GPU mode1 reset failed
amdgpu 0000:2b:00.0: PM: failed to suspend async noirq: error -22
PM: suspend exit
PM: suspend entry (s2idle)

With only the commit reverted:

PM: suspend entry (deep)
ACPI: PM: Waking up from system sleep state S3
PM: suspend exit

Comparisons and hardware

  • Local 7.4.0-rc5-1 build before revert: fails both with and without amdgpu.ppfeaturemask=0xffff7fff.
  • Same kernel source and .config with only the commit reverted: completed one S3 cycle with amdgpu.ppfeaturemask=0xffff7fff.
  • CachyOS 7.3.5-2: S3 works with the same flag. CachyOS LTS 6.18.64-1 also works.
  • MP1/SMU IP 11.0.11, SMU firmware 65.63.0. MSI B450M PRO-VDH MAX (MS-7A38), BIOS B.P1.

I found this change in CachyOS's 7.4-rc5-1 tag, and did not find the corresponding suspend change in its 7.4-rc1-1 through rc4-1 tags or the upstream v7.4-rc5 source. I have not boot-tested those earlier RCs. The patch adds MP1 unload preparation for active system suspend on SMU 11.0.11 before the later MODE1 reset. The firmware response identifies the failing command but does not specify its unmet prerequisite.

Related original fix: https://gitlab.freedesktop.org/drm/amd/-/work_items/5620.

I have not attempted reproduction on the Arch stock kernel or on the latest official CachyOS binary. The failing and reverted builds use the same CachyOS source release and kernel configuration.

Dominant language
Shell
Stars
4.9k
Forks
190
Avg merge
1d 3h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CachyOS/linux-cachyos

All issues in CachyOS/linux-cachyos

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.