New: amdgpu: failed to write reg 28b4 wait reg 28c6 and amdgpu: failed to write reg 1a6f4 wait reg 1a706
https://bugzilla.kernel.org/show_bug.cgi?id=219492
Bug ID: 219492
Summary: amdgpu: failed to write reg 28b4 wait reg 28c6 and
amdgpu: failed to write reg 1a6f4 wait reg 1a706
Product: Drivers
Version: 2.5
Hardware: AMD
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Created attachment 307209
--> https://bugzilla.kernel.org/attachment.cgi?id=307209&action=edit
Kernel log for hardware
I get the below two kernel errors in log when I resume from hibernate and while using DRI probably. I have latest amdgpu non-free firmware and mesa v24 installed.
amdgpu 0000:04:00.0: amdgpu: failed to write reg 28b4 wait reg 28c6 amdgpu 0000:04:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706
I have the following kernel parameter set to try and mitigate the above issue but still the issue happens.
iommu=soft
The above issue does not occur during s2idle sleep/wakeup but only after resuming from hibernate.
Attaching some kernel log if that would be of any help.
I found this issue with kernel version 6.6.x and 6.10.x
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219492] amdgpu: failed to write reg 28b4 wait reg 28c6 and amdgpu: failed to write reg 1a6f4 wait reg 1a706
https://bugzilla.kernel.org/show_bug.cgi?id=219492
Shubhra Prakash Nandi ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Kernel Version| |6.6.x and 6.10.x
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219492] amdgpu: failed to write reg 28b4 wait reg 28c6 and amdgpu: failed to write reg 1a6f4 wait reg 1a706
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219492
Artem S. Tashkinov ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |ANSWERED--- Comment #1 from Artem S. Tashkinov ([email protected]) --- Please first test 6.11.7 and if it's still reproducible, report here:
https://gitlab.freedesktop.org/drm/amd/-/issues
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219492] amdgpu: failed to write reg 28b4 wait reg 28c6 and amdgpu: failed to write reg 1a6f4 wait reg 1a706
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219492
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #2 from [email protected] ---
This still happens with 6.12.11 and a AMD Ryzen 5 PRO 4650U.
[174713.452341] amdgpu 0000:06:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706 [174721.488476] amdgpu 0000:06:00.0: amdgpu: failed to write reg 28b4 wait reg 28c6 [174721.494879] amdgpu 0000:06:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706 [174721.501252] amdgpu 0000:06:00.0: amdgpu: failed to write reg 28b4 wait reg 28c6 [174721.507537] amdgpu 0000:06:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706 [174780.330661] amdgpu 0000:06:00.0: amdgpu: failed to write reg 28b4 wait reg 28c6 [174780.337011] amdgpu 0000:06:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706 [174780.360568] amdgpu 0000:06:00.0: amdgpu: failed to write reg 28b4 wait reg 28c6 [174780.367548] amdgpu 0000:06:00.0: amdgpu: failed to write reg 1a6f4 wait reg
1a706
It seems to be related to playing video with VAAPI in Firefox after suspend/resume.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219492] amdgpu: failed to write reg 28b4 wait reg 28c6 and amdgpu: failed to write reg 1a6f4 wait reg 1a706
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219492
--- Comment #3 from Shubhra Prakash Nandi ([email protected]) --- Issue reported here - https://gitlab.freedesktop.org/drm/amd/-/issues/2347
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219492] amdgpu: failed to write reg 28b4 wait reg 28c6 and amdgpu: failed to write reg 1a6f4 wait reg 1a706
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219492
--- Comment #4 from Shubhra Prakash Nandi ([email protected]) --- Since the issue is still not resolved. The below bug is the better one to track.
https://gitlab.freedesktop.org/drm/amd/-/issues/4152
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219492] amdgpu: failed to write reg 28b4 wait reg 28c6 and amdgpu: failed to write reg 1a6f4 wait reg 1a706
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219492
Denis Pisarev ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] | |om
--- Comment #5 from Denis Pisarev ([email protected]) --- "failed to write reg 28b4 wait reg 28c6" persists for hours after every S4 (hibernate) resume, Cezanne, kernel 7.1.8
Adding another reproduction on a different setup (desktop use, no ROCm), with two observations that go beyond the original report:
1. The failures are NOT limited to early resume. They continue indefinitely (80-140 per hour for 9+ hours) until reboot.
2. On this machine there are no "TLB flush failed for PASID" lines at all - only the two reg write/wait pairs.
HARDWARE / ENVIRONMENT
----------------------
CPU: AMD Ryzen 7 PRO 5850U GPU: AMD Cezanne iGPU [1002:1638] (rev d1), amdgpu, DMUB 0x0101002B Kernel: 7.1.8-1-MANJARO Desktop: KDE Plasma / KWin Wayland, no ROCm or compute workloads Trigger: resume from hibernation (S4), 100% reproducible over multiple
cycles across two days; does not occur on a fresh boot
LOG EXCERPT (resume at Aug 19 10:52:39)
---------------------------------------
Aug 19 10:52:39 horsehead kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds) Aug 19 10:52:39 horsehead kernel: amdgpu 0000:07:00.0: failed to write reg 28b4 wait reg 28c6 Aug 19 10:52:39 horsehead kernel: amdgpu 0000:07:00.0: failed to write reg 1a6f4 wait reg 1a706 Aug 19 10:52:39 horsehead kernel: amdgpu 0000:07:00.0: failed to write reg 28b4 wait reg 28c6 Aug 19 10:52:39 horsehead kernel: amdgpu 0000:07:00.0: failed to write reg 1a6f4 wait reg 1a706 Aug 19 10:52:39 horsehead systemd-sleep[1062034]: System returned from sleep
operation 'hibernate'.
The first failures appear in the same second as the thaw, interleaved with the hibernation-exit messages. On an earlier cycle the resume also produced:
Aug 18 10:04:42 horsehead kernel: amdgpu 0000:07:00.0: MODE2 reset Aug 18 10:04:42 horsehead kernel: usb usb5: root hub lost power or was reset
(... usb6, usb7, usb1 ...)
ONGOING RATE AFTER RESUME (Aug 19, single cycle)
------------------------------------------------
hour 10 (resume 10:52): 138 errors
hour 11: 140 errors hour 12: 78 errors (still ongoing at time of writing)
Previous cycle (Aug 18, resumed 10:04): 1414 errors over the day, still occurring 9+ hours later. No "TLB flush failed for PASID" messages appear on this machine, only the 28b4/28c6 and 1a6f4/1a706 pairs, always together.
USER-VISIBLE IMPACT
-------------------
The retry path makes the whole desktop sluggish (stalls in the compositor and apps). CPU and memory are idle; the disk is not involved (NVMe <2% busy, fsync latency normal), yet PSI "some" io pressure reads ~80% because tasks spend their time sleeping in the retry loop.
WORKAROUND
----------
Reboot clears it until the next S4 resume. Using suspend-to-RAM avoids triggering it (S4 is the only trigger observed).
NOTE
---------------
the resume_gpu_stable proposal from January
(https://lore.kernel.org/amd-gfx/[email protected]/)
was rejected because it disabled the KIQ path permanently, but the persistent-hours-long failure pattern seen here suggests KIQ does not recover on its own after S4 resume on gmc_v9 + Cezanne - at least not under a plain Wayland desktop workload.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.