Terminal GPU acceletion causing GPU page faults on AMD (hangs, soft-timeouts and resets) #238088
Open
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.16.2
- OS Version: nixos unstable
Steps to Reproduce:
N/A; Intermittent failure while scrolling the terminal view in fullscreen with a lot of long, wrapped text
journalctl/dmesg logs from amdgpu:
(actually the specific text on screen seemingly triggered this issue consistently, and i got hangs and soft-recovers two times consecutively, both of the soft-recover events can be seen in the log below;
first time the vscode window freezed for a bit, and the second my entire display output froze and then soft-recovered:)
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:5 pasid:32802)
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: in process code pid 456236 thread code:cs0 pid 456253)
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: in page starting at address 0x0000aaab39e6c000 from client 10
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00501430
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: Faulty UTCL2 client ID: SQC (data) (0xa)
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: MORE_FAULTS: 0x0
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: WALKER_ERROR: 0x0
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: PERMISSION_FAULTS: 0x3
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: MAPPING_ERROR: 0x0
Jan 16 23:32:37 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: RW: 0x0
Jan 16 23:32:47 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: Dumping IP State
Jan 16 23:32:47 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: Dumping IP State Completed
Jan 16 23:32:47 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 timeout, but soft recovered
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:5 pasid:32802)
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: in process code pid 456236 thread code:cs0 pid 456253)
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: in page starting at address 0x000000003f800000 from client 10
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00501430
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: Faulty UTCL2 client ID: SQC (data) (0xa)
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: MORE_FAULTS: 0x0
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: WALKER_ERROR: 0x0
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: PERMISSION_FAULTS: 0x3
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: MAPPING_ERROR: 0x0
Jan 16 23:33:00 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: RW: 0x0
Jan 16 23:33:10 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: Dumping IP State
Jan 16 23:33:10 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: Dumping IP State Completed
Jan 16 23:33:10 fw13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 timeout, but soft recovered
The gpu is the integrated AMD 760M graphics (Phoenix), the mobile variant
Hardware/firmware information:
inxi -MSCG
System:
Host: fw13 Kernel: 6.12.9 arch: x86_64 bits: 64
Desktop: KDE Plasma v: 6.2.5 Distro: NixOS 25.05 (Warbler)
Machine:
Type: Laptop System: Framework product: Laptop 13 (AMD Ryzen 7040Series)
v: A5 serial: <superuser required>
Mobo: Framework model: FRANMDCP05 v: A5 serial: <superuser required>
UEFI: INSYDE v: 03.05 date: 03/29/2024
CPU:
Info: 6-core model: AMD Ryzen 5 7640U w/ Radeon 760M Graphics bits: 64
type: MT MCP cache: L2: 6 MiB
Speed (MHz): avg: 1537 min/max: 400/4971 cores: 1: 1114 2: 1411 3: 1982
4: 2199 5: 1338 6: 1114 7: 1550 8: 1114 9: 1621 10: 2281 11: 1392 12: 1338
Graphics:
Device-1: AMD Phoenix1 driver: amdgpu v: kernel
Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
compositor: kwin_wayland driver: gpu: amdgpu resolution: 2256x1504~60Hz
API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.3.3 renderer: AMD
Radeon 760M (radeonsi gfx1103_r1 LLVM 19.1.5 DRM 3.59 6.12.9)
API: Vulkan v: 1.3.296 drivers: N/A surfaces: xcb,xlib,wayland
As a workaround, this can be set:
terminal.integrated.gpuAcceleration": "off"
Metadata
Assignees
Labels
No labels