Public bug reported: Hardware - GPU: AMD Radeon RX 580 (ASUS, Polaris 20, PCI 1002:67df rev e7, subsystem 1043:0521, VBIOS 115-D009PI2-101), 8 GB VRAM - CPU: AMD FX-8350; board: Gigabyte GA-990FXA-UD3 R5, BIOS F2; IOMMU disabled in BIOS (kernel uses GART IOMMU) - RAM: 20 GB DDR3-1333 (4 DIMMs)
Software - Ubuntu 26.04.1 LTS, kernel 7.0.0-44-generic (also seen on 7.0.0-43-generic) - Mesa 26.0.8-1ubuntu0.3 (radeonsi), linux-firmware-amd-graphics 20260319.git217ca6e4-0ubuntu3.1 - GNOME Shell 50.1, Wayland session; Google Chrome 157.0.8103.78 Problem The whole system hard-freezes (no log output, needs power button) when the system is under memory pressure and a GPU client allocates/moves buffers: opening/loading pages in Chrome with hardware acceleration, opening the Apport window (XWayland), unlocking the screen, login screen, opening Electron apps. Once kdump captured a kernel Oops instead of a freeze (attached crash file): Oops: invalid opcode: 0000 [#1] SMP NOPTI CPU: 7 UID: 1000 PID: 7431 Comm: chrome Kdump: loaded Tainted: G O 7.0.0-44-generic #44-Ubuntu RIP: 0010:do_user_addr_fault+0x24/0x860 Code: ... 48 83 f8 10 <1f> 84 66 04 00 00 ... (expected 0f 84: one bit flipped in kernel text) ? amdgpu_bo_move+0x1bd/0x3c0 [amdgpu] exc_page_fault -> asm_exc_page_fault RIP: 0010:amdgpu_cs_report_moved_bytes+0x28/0x80 [amdgpu] (CR2 and RDI hold stack addresses with the upper 32 bits cleared, e.g. 000000000854ba10 vs ffffd55b0854ba10) ? amdgpu_bo_create / amdgpu_bo_create_user / amdgpu_gem_create_ioctl ? drm_ioctl -> amdgpu_drm_ioctl -> __x64_sys_ioctl Reproducer A userspace program alternates random idle periods (0.5-9.5 s) with bursts in which 8 threads mmap, fill, verify, memmove and munmap several GB at once (source available on request). With Chrome open (hardware acceleration ON) and some tabs, the system freezes or oopses after 7-18 bursts (1-2 minutes), reproducibly. What was ruled out (each test ~10-30 min) - RAM/memory controller: the same burst test with Chrome closed passes (e.g. 119 bursts of up to 8 GB with all 4 DIMMs), and passes with every DIMM/channel combination tested. memtest86+ and continuous pattern tests (600+ GB verified) show no errors. - CPU/PSU: a CPU-only burst test (cache-resident) passes 92 bursts, 0 errors. - Chrome-only: with Chrome hardware acceleration OFF the test lasted 67 bursts, then froze when the Apport window (XWayland, GPU) opened. So any GPU client allocating buffers under memory pressure can trigger it. Workaround With amdgpu.vm_update_mode=3 (page tables updated by CPU instead of SDMA), the same test ran 30 minutes: 238 bursts (~1.1 TB allocated), Chrome with hardware acceleration in use, the Apport window opened mid-test and 86 cycles opening/closing glxgears + es2gears_wayland + vkcube at the same time: no freeze, no errors. Related reports - Chromium 442860477 (system freeze with HW acceleration on Ubuntu Wayland, AMD; same vm_update_mode=3 workaround): https://issues.chromium.org/issues/442860477 - CachyOS #930 (Polaris RX 580/590 freezes on 7.x kernels, attributed to amdgpu commit 0fdf257286d7 "change mappings to store UAPIs flags"; LTS 6.18 OK): https://github.com/CachyOS/linux-cachyos/issues/930 - Upstream AMD report: <ADD LINK AFTER FILING> ** Affects: linux (Ubuntu) Importance: Undecided Status: New ** Tags: amdgpu kernel-oops resolute ** Attachment added: "Apport kernel crash report (kdump) with full system info" https://bugs.launchpad.net/bugs/2175801/+attachment/6020759/+files/LIMPO-linux-image-7.0.0-44-generic-202611241819.crash -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2175801 Title: amdgpu (Polaris RX 580): kernel Oops in amdgpu_bo_move / hard freezes under memory pressure while GPU clients allocate buffers; amdgpu.vm_update_mode=3 avoids it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2175801/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
