Repository navigation
[Issue]: gfx1201 (Radeon AI PRO R9700) GPU page fault (PERMISSION_FAULTS) + GPU reset during sustained PyTorch/ROCm training, reproducible 2x same session #6413
Description
Problem Description
Hello,
Running a LoRA fine-tuning workload (PyTorch + HIP backend, via ComfyUI) against a large diffusion transformer model, the GPU reliably faults a few minutes into sustained training (not at start — happens after several minutes / a couple dozen training steps of high VRAM utilization, ~25–31GB out of 32GB). Kernel log shows a [gfxhub] page fault from the training process, decoded as:
GCVM_L2_PROTECTION_FAULT_STATUS:0x00801031
Faulty UTCL2 client ID: TCP (0x8)
MORE_FAULTS: 0x1
WALKER_ERROR: 0x0
PERMISSION_FAULTS: 0x3
MAPPING_ERROR: 0x0
RW: 0x0
The fault address each time is a normal userspace heap-style pointer belonging to the training process (e.g. 0x00007f6638400000), not 0x0/NULL. This is followed by the hardware queue becoming stuck (MES(0) failed to respond to msg=REMOVE_QUEUE, Failed to evict queue), forcing a full MODE1 GPU reset. The reset itself generally succeeds and the driver recovers (GPU reset succeeded, trying to resume), though display output does not always come back cleanly without a manual reboot.
Reproduced twice in one session with the identical PERMISSION_FAULTS: 0x3 / WALKER_ERROR: 0x0 / MAPPING_ERROR: 0x0 signature and the same protection-fault-status register value (0x801031), under two different configurations (with pinned host memory enabled vs. --disable-pinned-memory, and with/without partial CPU block-swap offloading of model weights) — so this doesn't appear to be specific to either memory-management strategy tried as a workaround.
A full devcoredump was captured for the second occurrence and is attached (amdgpu_coredump_20260714_222347.txt).
Operating System
Ubuntu 24.04.4 LTS, kernel 6.17.0-40-generic
CPU
Intel Xeon W-2145 @ 3.70GHz (single socket, 16 threads)
GPU
AMD Radeon AI PRO R9700 (Sapphire board), gfx1201, Chip ID 0x7551, VBIOS 023.008.000.068.000001 (dated 2025/07/25)
ROCm Version
7.2.4 (amdgpu-dkms 6.16.13-2341068.24.04)
ROCm Component
No response
Steps to Reproduce
Steps to Reproduce:
- Load a large (~13B parameter) diffusion transformer in fp8 onto the GPU alongside a LoRA adapter and optimizer state, occupying most of available VRAM.
- Run a training loop performing repeated forward+backward+optimizer steps for several minutes.
- Fault occurs after a variable number of steps (observed at ~17-18 steps in one run, ~3 minutes into another) — not immediately, and not tied to any specific step count.
rocminfo (GPU agent) output:
Agent 2
Name: gfx1201
Uuid: GPU-5c5383ed20b3fc7d
Marketing Name: AMD Radeon AI PRO R9700
Vendor Name: AMD
Feature: KERNEL_DISPATCH
Profile: BASE_PROFILE
Max Queue Number: 128(0x80)
Queue Type: MULTI
Node: 1
Device Type: GPU
Cache Info:
L1: 32(0x20) KB
L2: 8192(0x2000) KB
L3: 65536(0x10000) KB
Chip ID: 30033(0x7551)
ASIC Revision: 1(0x1)
Max Clock Freq. (MHz): 2350
Compute Unit: 64
SIMDs per CU: 2
Shader Engines: 4
Shader Arrs. per Eng.: 2
Wavefront Size: 32(0x20)
IOMMU Support:: None
Full dmesg excerpt (second occurrence):
amdgpu 0000:67:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:8 pasid:32772)
amdgpu 0000:67:00.0: amdgpu: Process python pid 17752 thread python pid 17752
amdgpu 0000:67:00.0: amdgpu: in page starting at address 0x00007f6638400000 from client 10
amdgpu 0000:67:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00801031
amdgpu 0000:67:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8)
amdgpu 0000:67:00.0: amdgpu: MORE_FAULTS: 0x1
amdgpu 0000:67:00.0: amdgpu: WALKER_ERROR: 0x0
amdgpu 0000:67:00.0: amdgpu: PERMISSION_FAULTS: 0x3
amdgpu 0000:67:00.0: amdgpu: MAPPING_ERROR: 0x0
amdgpu 0000:67:00.0: amdgpu: RW: 0x0
amdgpu 0000:67:00.0: amdgpu: MES(0) failed to respond to msg=REMOVE_QUEUE
amdgpu 0000:67:00.0: amdgpu: failed to remove hardware queue from MES, doorbell=0x1002
amdgpu 0000:67:00.0: amdgpu: MES might be in unrecoverable state, issue a GPU reset
amdgpu 0000:67:00.0: amdgpu: Failed to evict queue 1
amdgpu 0000:67:00.0: amdgpu: Failed to evict process queues
amdgpu 0000:67:00.0: amdgpu: GPU reset begin!. Source: 3
amdgpu 0000:67:00.0: amdgpu: MODE1 reset
amdgpu 0000:67:00.0: amdgpu: GPU mode1 reset
amdgpu 0000:67:00.0: amdgpu: GPU smu mode1 reset
amdgpu 0000:67:00.0: amdgpu: GPU reset succeeded, trying to resume
amdgpu 0000:67:00.0: amdgpu: VRAM is lost due to GPU reset!
amdgpu 0000:67:00.0: amdgpu: PSP is resuming...
Pytorch 2.14.0.dev20260708+rocm7.2, torch.version.hip = 7.2.53211
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
amdgpu_coredump_20260714_222347.txt
rocminfo --support output
Paste output here
Additional Information
Full devcoredump attached (amdgpu_coredump_20260714_222347.txt) — captured via sudo cat /sys/class/drm/card1/device/devcoredump/data. Notable from the coredump: ring buffer was heavily backed up at fault time (CP_RB_RPTR: 0x700 vs CP_RB_WPTR: 0xe700, ~57k dwords unconsumed), consistent with the stuck-queue driver messages above.
Related-but-distinct issues I found for context (different fault signatures/architectures, not duplicates): #5825 (gfx1201 OpenCL→Vulkan wedge), #5670 (gfx1101, all three fault flags set), ROCm/TheRock#9084 (older page-fault report).
Sources:
Activity
harkgill-amd commentedon Jul 17, 2026
Hey @FR-Mister-T, thanks for the report.
I haven't been able to reproduce the page faults reported here on an identical gfx1201 +
torch 2.14.0.dev+rocm7.2config. Tried to follow your steps to repro as best as possible running Flux LoRA training for ~90 steps without seeing any errors. Trying to iron out any specifics that could be causing the discrepancy in results - could you share the exact flow (Model, Trainer Node/workflow, block swap value) that triggers this on your end?FR-Mister-T commentedon Jul 18, 2026
It's an unpublished alpha version of a lora training node for comfyui, it works for a while then the gpu give up... the anima version are done in a similar fashion and worked several time (for hours...)
For the workflow use KREA2-LoRa-6LOOPS-Trainer.json
ComfyUI-FluxTrainer.zip
bmanga commentedon Jul 19, 2026
Seeing this same fault on an R9700 with a different software path. Posting the details in case
they help narrow it — including a workaround that stops it for me, and a set of negative
results from trying to reduce it to a minimal reproducer.
Environment
1002:7551/ subsystem1da2:e499, vBIOS113-1E4990U-S83amdgpuonly, no amdgpu-dkms installed(4, 112, 144))Three details that may help bound the cause:
fragmentation.
torch 2.13.0+rocm7.2wheel, not only on nightlies.Fault signature
PERMISSION_FAULTSwith a clean page-table walk, on both the data and instruction paths:I also see
Faulty UTCL2 client ID: TCP (0x8)withPERMISSION_FAULTS: 0x3.WALKER_ERRORandMAPPING_ERRORare always0x0— the walk succeeds and only permissionsare wrong.
Userspace surfaces this as one of three, seemingly interchangeably:
HSA_STATUS_ERROR_ILLEGAL_INSTRUCTIONcode 0x2aHSA_STATUS_ERROR_EXCEPTIONcode 0x1016hipErrorIllegalAddressinsideF.linearThe
SQC (inst)variant looks like the mechanism behind the illegal-instruction abort: theshader faults fetching its own code, then executes whatever it got.
Kernel 7.0.0-28 is dramatically worse
Same script, 4 trials x 50 training steps each:
On 7.0.0-28 the GPU also never ramped clocks, and one run took the whole machine down with a
hard reset — no graceful shutdown, with the display server losing the GPU
(
amdgpu_query_info(ACCEL_WORKING) failed (-13)) one second beforehand. I understand 7.x isnot currently supported; flagging it because the failure mode is severe and silent, and a
routine Ubuntu update moved the machine onto it without any warning.
The trigger appears to be the flash / mem-efficient SDPA backends
On ROCm those backends dispatch into AOTriton. Forcing math-only attention:
Controlled comparison, same script, same kernel (6.17.0-35), 50 training steps per trial,
varying only the SDPA backend and the allocator:
expandable_segmentsRows 3 and 4 isolate it. With
expandable_segmentsalready disabled, re-enabling theAOTriton-backed attention reproduced the fault almost immediately —
0x00801031, TCP (0x8),PERMISSION_FAULTS: 0x3, the same signature as the original report. So in my case theallocator is not the trigger; the AOTriton attention path is.
Row 4 also shows this is not specific to the flash backend — disabling flash but leaving
mem-efficient enabled still faults within seconds, with an identical signature. Only the pure
math backend avoids it.
The cost is steep — 1.93 s/it vs 0.81 s/it, about 2.4x slower — so this is a workaround
rather than a fix, but it does make training possible.
Note that the fault does not always abort the process. In that third run the GPU faulted
and the queue then wedged: python sat blocked on a futex with the GPU at idle power
indefinitely, with no exception raised and no MODE1 reset. Anything running unattended will
hang rather than fail, so a wall-clock timeout is worth having in any test harness for this.
FR-Mister-T commentedon Jul 19, 2026
For keeping the gpu active I forced gpu at highest clock using LACT

I only moved to kernel 7.0 today, If I had know that it is even worse I would have hold it back :/
Only8Bits commentedon Jul 23, 2026
Not sure if it's related but here's another data point, except different GPU family. I get these errors randomly and they crash my jobs, though so far there hasn't been a single case of MES queue hang/GPU reset (and I'm quite familiar with those):
Radeon 7900XT (gfx1100) with 7.0.0-28-generic #28~24.04.1-Ubuntu kernel. ROCm 7.14 with DKMS driver. I'm mostly using v1 SageAttention and not SDPA/FA - and I haven't tried any training yet. AMD driver versioning confuses me so here's dkms status output:
In general I have new issues in tasks that used to work well on ROCm 7.2.4 but it has to be said that Kubuntu 24.04 moved to 7.0.0 driver pretty much at the same time as me installing ROCm 7.14 so I can't quite tell where all these problems came from.
harkgill-amd commentedon Jul 23, 2026
Thanks for the added datapoints @bmanga and @Only8Bits. The fail signatures for all three reports differ slightly so I'm hesitant to group them all as the same issue just yet. Sticking with the original page fault
Faulty UTCL2 client ID: TCP (0x8)for now, I haven't been able to reproduce this locally having tried both the KREA2 fp8 ComfyUI and SDXL+T2I based workloads. Is it possible to share a minimal reproducer script that consistently fails?I do however see some precedent of a similar page fault +
hipErrorIllegalAddressfailure reported internally w/ Gemma-3-1B-Instruct training via llama-factory. This had to do with an out-of-bounds read in a hipBLASLt/Tensile GEMM transpose-load kernel with ROCm/rocm-libraries#8909 being drafted as a potential fix. The easiest way to narrow down if the existing issue/fix cover the case you're presenting is to see if the same kernel is faulting during your training workload. @FR-Mister-T, please give your failing workload a run withAMD_LOG_LEVEL=3and share the log generated by it. It may end up being pretty long depending on how long the workload runs for - we're only really interested in the tail end of the log. @bmanga's test of running with only the math backend is also worth giving a try to see if both your failures are the same and AOTriton related vs the current hipBLASLt/Tensile assumption.FR-Mister-T commentedon Jul 23, 2026
Hello,
Thanks @harkgill-amd — ran the failing Krea2 LoRA training workload again with
AMD_LOG_LEVEL=3and reproduced the fault. One caveat first: this isn't a strict 1:1 retest of my original report — my stack has moved on since then ,rocm6413_crash_excerpt.log
If more testing is required on my side I will roll back to the previous kernel and ROCm stack, but currently it's doesn't really change much the consequences :) :
7.0.0-28-generic(same "dramatically worse" kernel @bmanga flagged in their A/B, vs. the6.17.0-35-genericthey found more stable)7.14.0(upgraded from7.2on 2026-07-18, after the original report)2.12.0+rocm7.14.0(hip7.14.60850) — note @harkgill-amd's own repro attempt usedtorch 2.14.0.dev+rocm7.2, so we're now on different ROCm/torch versions in both directions6.19.14.31400000-2364437.24.04So the fault below reproduces on newer ROCm/torch than originally filed with, on the kernel version already flagged as worse. Wanted to flag that in case the fix status/repro conditions differ across these versions. Onto the actual fault — same signature as before at the kernel level (
PERMISSION_FAULTS: 0x3,WALKER_ERROR: 0x0,MAPPING_ERROR: 0x0,Faulty UTCL2 client ID: TCP (0x8)), but this time the log captured the actual kernel that was running when it faulted:That's a Tensile/hipBLASLt GEMM kernel (
Cijk_Ailk_Bljknaming), which lines up with the hipBLASLt/Tensile GEMM transpose-load lead you mentioned from the Gemma-3-1B/llama-factory case (ROCm/rocm-libraries#8909). The fault escalates the same way each time:...followed by a Python
Fatal Python error: Aborted(faulthandler dump) and process death. The GPU itself recovered cleanly on its own — kernel log showsreset compute queue/Queues reset on process python ... is reset, no reboot needed, only the training process died.A couple of other data points from this run:
orthograd_) of a Krea2 LoRA training run on ComfyUI-FluxTrainer/musubi_tuner, same workflow as originally reported (KREA2-LoRa-6LOOPS-Trainer.json).I have a ~380KB excerpt of the log centered on the fault (a few thousand lines either side, since the full
AMD_LOG_LEVEL=3log for this run hit 6.28GB) — happy to attach it here or trim it further if there's a specific window you want. Haven't run the math-only-SDPA A/B yet (will follow up with that too), but given the kernel name here, this looks more like the hipBLASLt/Tensile path than the AOTriton one.Only8Bits commentedon Jul 23, 2026
While my issue might be unrelated it's thanks to @bmanga comment here that I narrowed it down, perhaps even found the culprit. It seems that removing expandable_segments:True from PYTORCH_CUDA_ALLOC_CONF stabilized my system a lot. With it I was getting these page faults and tons of other, seemingly unrelated errors like NaNs in the output (switching from FP16 to BF16 helped a bit but other issues would manifest instead), NumPy complaining about indexing zero size axis, and even weird "socket.accept() out of system resource" ones. Total mayhem, all of it random but occuring only with compute tasks either big enough or running long enough to use a lot of VRAM.
This setting never really worked on gfx1100 but I kept it around hoping it would eventually help with issues I had on ROCm <7.14. It was also the recommended fix for random OOM errors where there should be enough VRAM but it got fragmented. Seems like it does something now but not what it should.
In case it's of interest - I've also tried (with expandable_segments:True) disabling other settings, and none of it seemed to make any difference:
I'll need to run some more tests but I figured I'll report it right away, maybe it helps someone.
nixon-hub commentedon Aug 4, 2026
We hit what looks like the same fault on gfx1201 (4× Radeon AI PRO R9700, in-tree amdgpu, ROCm 7.2.4 and 7.14) during LoRA/QLoRA fine-tuning, and have traced it to a specific instruction in hipBLASLt's Tensile codegen. Full write-up, since it belongs in the library repo rather than here:
ROCm/rocm-libraries#7992 (comment)
Summary of what may be useful to others on this issue:
global_load_tr(a bare 64-bit address, no bounds field) where 7.0.2 usedbuffer_load, whose SRD makes the hardware clamp out-of-range reads. A 64-wide macro tile is selected for a 16-wide operand, so the read runs past the end; whether it faults depends on whether that address is mapped, which is why the same config passes once and fails later.GCVM_L2_PROTECTION_FAULT_STATUS:0x0080113B→CID 0x8(TCP, vector L1),RW 0x0(read),PERMISSION_FAULTS 0x3,MAPPING_ERROR 0x1. Field-for-field the same as [Issue]: amdgpu pagefault under rocm7.2 on gfx1151 #5890 on gfx1151.lora_r=64(rank matches the tile) or restricting LoRA to the attention projections. Both clean across multiple layouts. ROCm 7.0.2 is clean with no workaround.amdgpu.cwsr_enable=0is circulating as a fix for this and is not one. We tested it with the parameter verified0in sysfs: the fault persisted and 3 of 4 GPUs degraded from a clean fault toGPU Hang, requiring a reboot.Root cause and a validated before/after are in the linked comment.
harkgill-amd commentedon Aug 10, 2026
Hey @FR-Mister-T, can you try running your workload with hipBLASLt disabled (rocBLAS in use) via
TORCH_BLAS_PREFER_HIPBLASLT=0andROCBLAS_USE_HIPBLASLT=0? We're aware of the training based page faults occurring with hipBLASLt enabled and this'll help solidify if what you're seeing is the same.nixon-hub commentedon Aug 12, 2026
@harkgill-amd — we ran exactly that test on our own reproducer for this fault (4× Radeon AI PRO R9700 / gfx1201, in-tree amdgpu, ROCm 7.14), so here is the data while @FR-Mister-T checks their workload.
Yes, disabling hipBLASLt avoids it.
TORCH_BLAS_PREFER_HIPBLASLT=0+ROCBLAS_USE_HIPBLASLT=0The stock control faulted in the same round on the same GPUs, so the clean arms are interpretable rather than luck. Reproducer: a single LoRA adapter on
up_proj, rank 16, Qwen3.6-27B, seq 1024.We also tested the fix itself. Building PR#8909 at
2e9612fand running the same reproducer: clean at 3 of 3 allocation layouts with a pristine pre-PR control faulting alongside. Correctness (batched / full-tile / narrow-N shapes against a float32 CPU reference) showed no growth in error versus stock, kernel-object coverage went 144 → 146, and throughput cost was ~1.5%. Full write-up here:ROCm/rocm-libraries#8909 (comment) → results in the follow-up comment on that PR.
Two notes that may save time for anyone else reproducing this:
FR-Mister-T commentedon Aug 12, 2026
Hello,
I will try it as soon as possible. I'm currently having hardware issue (possible worn out ssd) so the setup to test is currently down , sorry :(
harkgill-amd commentedon Aug 14, 2026
No worries. ROCm/rocm-libraries#8909 is merged now and will make it's way into a nightly sometime next week so you have a bit of buffer room :)
I was able to give the patch a test and it resolved similar torch training workload based page faults (#6600) on my end. Fairly confident we'll see the same here but we can wait for the patch to make it into nightlies and your conclusive test to close this out.
angelhalo commentedon Aug 16, 2026
I reproduced a closely related failure on a single Radeon AI PRO R9700 (gfx1201), using AMD's official ROCm 7.14 vLLM image.
My initial page-fault signature is different from the one reported here, but the subsequent MES failure and GPU reset sequence are very similar. In my case, reset recovery fails at PSP and a reboot(poweroff) is required.
Environment
1002:7551, 32 GB113-R9700AT-F50, version023.008.000.068.0000017.0.0-29-generic6.19.14.31400000amdgpu.vm_update_mode=-1(driver default)amdgpu.runpm=0 iommu=pt pcie_ports=nativerocm/vllm:rocm7.14.0_rdna_ubuntu24.04_py3.14_pytorch_2.11.0_vllm_0.23.00.23.1.dev1+g9ddef7117.d20260715Minimal workload
Qwen/Qwen3-1.7B--enforce-eagerRelevant launch arguments:
The model loaded successfully and vLLM allocated the KV cache. Immediately afterward, while vLLM was falling back to the Triton paged-attention implementation, the HSA runtime reported:
No inference request had been sent yet.
Kernel fault
This was followed by:
The MODE1 reset itself appeared to succeed, but PSP recovery failed:
The GPU remained unusable until the host was rebooted. After reboot, amdgpu/KFD initialized normally again and Vulkan workloads resumed working.
Comparison with this issue
The overall sequence is similar, but my initial fault differs:
PERMISSION_FAULTS: 0x3, read faultPERMISSION_FAULTS: 0x5, write faultPSP resume failed/-62This minimal reproduction excludes AITER, FP8, torch.compile, CUDAGraph, tensor parallelism, and large-model memory pressure.
Please let me know if the full vLLM log, complete previous-boot kernel journal, or reproduction script would be useful.
angelhalo commentedon Aug 19, 2026
Follow-up to my earlier report above. I completed the remaining host-side A/B, including the exact Ubuntu 24.04 / kernel 6.17.0-40 / amdgpu-dkms 6.19.4 alignment.
Important scope note: this new failure did not log a gfxhub page fault or
PERMISSION_FAULTS, and no inference request was sent. It therefore does not look like the hipBLASLt/Tensile fault fixed by rocm-libraries#8909. I am adding it here because the KFD/MES teardown and reset tail overlaps my earlier report; I am happy to open a separate issue if AMD prefers.Result
The exact
6.17.0-40 + amdgpu-dkms 6.19.4reference alignment did not fix the startup hang. Both model shards loaded, but the GPU then wedged before API readiness. ROCr emittedreason :GPU Hangtwice. The device stayed at 100% GPU busy / 0% memory busy with no log or IRQ progress, then entered an SDMA/KFD/MES reset storm and eventually caused a CPU soft lockup. A forced power cycle was required.Configuration
6.17.0-40-generic(6.17.0-40.40~24.04.1-generic)amdgpu-dkms 6.19.4amdgpu.runpm=0 iommu=pt pcie_ports=nativegfx1201); NVIDIA card physically removed; Intel UHD remained as a separate display devicestilldeadcode/vllm-radiance:0.5.8Qwen/Qwen3-8B-FP8, FP8 KV cache, max context 8192The same Radiance workload on
6.17.0-42 + amdgpu-dkms 6.19.4also stalled before API readiness, although it did not reset during the observation window. A separate minimal official-container baseline on 6.17.0-42 (Qwen3-1.7B, BF16, eager mode, AITER disabled) also hung before any request.Failure timeline (UTC, 2026-08-18)
18:59:53: last userspace progress (Dynamo bytecode transform: 7.29 sec); ROCr later reportsreason :GPU Hangtwice.19:00:22: GPU busy remained 100%, memory busy 0%, VRAM 10,023,534,592 bytes; server log and GPU IRQ counters stopped progressing.19:03:00: devcoredump created; firstring sdma0 timeout, signaled seq=2260, emitted seq=2262.Starting sdma0 ring reset,Ring sdma0 reset failed,Failed to evict queue 2, and repeatedMES(1) failed REMOVE_QUEUE/remove_all_kfd_queues_mes: Failed to remove queue 1.GPU reset(10) succeeded!, but the device remained wedged.19:04:04:watchdog: BUG: soft lockup - CPU#6 stuck for 26s! [vllm:6888].19:06:10.The root port (
0000:00:01.0) also logged correctable PCIe Physical LayerRxErrevents shortly before the hang. I have not treated those as the root cause because they were correctable and Vulkan is stable, but I included them in the filtered journal so AMD can assess whether they are relevant.Artifacts
Prepared bundle:
rocm-6413-r9700-k61740-reset-storm-20260818.tar.gzIt contains:
devcoredump-card0-20260818-190301.bin— 562,343 bytes — SHA-25626d3f2bc4962b0f81e357cd51fa1209bc43c70b4d18c54a0a48d700e9f6e93c418:59:40–19:04:10UTC), including the PCIe RxErr, SDMA timeout, KFD/MES failures, reset loop, and soft lockupBundle SHA-256:
f42ee6395959473d5e8c8b785b153d2d10cf61f24beb8672d1a4381eab793e78(106,234 bytes)Evidence bundle (unlisted Gist): https://gist.github.com/angelhalo/b9b0432022d18691804130006aee71f1
Restore it with:
curl -L https://gist.githubusercontent.com/angelhalo/b9b0432022d18691804130006aee71f1/raw/rocm-6413-r9700-k61740-reset-storm-20260818.tar.gz.b64 | base64 -d > rocm-6413-r9700-k61740-reset-storm-20260818.tar.gzCould AMD advise:
chrisfranson commentedon Aug 21, 2026
Cross-referencing two other gfx1201 GPU-reset reports that may be the same underlying MES/KFD issue triggered by different workloads: #5825 (OpenCL via Darktable, closed as "resolved" via a kernel fix that clearly doesn't cover all cases — I hit a near-identical
ih_fifo overflow/MES failed to respond to msg=REMOVE_QUEUE/MODE1 resetsequence on kernel 7.1.8, months after that fix landed, triggered by headless LibreOffice + ROCm OpenCL) and ROCm/TheRock#9279 (same signature via llama.cpp). Three independent reproducers on the same gfx1201 silicon from three unrelated compute workloads (image processing, spreadsheet OpenCL, LLM inference) points at a general KFD compute-queue-teardown/MES firmware issue rather than anything app-specific. Full details on my case in my comment on ROCm/TheRock#9279.angelhalo commentedon Aug 24, 2026
Additional second-card data point: F40 R9700, SQC null-address permission fault, official vLLM, zero AER
Following up on my earlier F50 official-vLLM report: I independently tested the
second physical R9700 in this host (
0000:07:00.0, VBIOS113-R9700AT-F40). It also generated a gfxhub permission fault in AMD'sofficial ROCm 7.14 RDNA vLLM image.
This is not the exact TCP/hipBLASLt signature tracked by the original report,
and I am not claiming that PR #8909 should cover it. The initial client here is
SQC (data), but thePERMISSION_FAULTS -> MES REMOVE_QUEUE failure -> MODE1 reset -> VRAM lostsequence overlaps this issue.Minimum configuration: Qwen3-1.7B BF16, TP=1, eager mode, AITER/FP8/compile/
CUDAGraph/P2P disabled. The model and KV cache loaded successfully,
/healthreturned 200, and the fault occurred on the first short inference request at
low VRAM use:
All AER counters on the second CPU root port, card switch, and GPU endpoint
remained zero. A 564311-byte devcoredump was captured, SHA-256
ac17313326d295c27ea243d561bfc52f505b3b1212f7b5d70ad25bc3cd81873e.The fuller report, exact environment, F50/F40 comparison, and evidence bundle
are in ROCm/TheRock#9279:
ROCm/TheRock#9279 (comment)
The main value of this data point is hardware/VBIOS isolation: the same host
has now failed on two physical R9700s, two VBIOS revisions (F50 and F40), and
both CPU root-port paths. The initial fault signatures differ, so they may
still represent different offending kernels or mechanisms.
harkgill-amd commentedon Aug 24, 2026
As you mentioned, the fail signatures are similiar but not entirely the same. Let's keep this issue scoped to the original report ,which ROCm/rocm-libraries#8909 has merit to resolve, and continue on ROCm/TheRock#9279 for the
Faulty UTCL2 client ID: SQC (data) (0xa)based page fault.oisindrury-sys commentedon Sep 9, 2026
Hey FR-Mister-T,
I had an issue whilst fine-tuning (LoRA) tuning llama 3.1 8B, shortly after the model was loaded and it began to train I would experience a GPU hand and later an unrecoverable GPU hang.
I have since been able to get the model to train successfully and quantise on my gfx 1201 GPU (RX 9070 XT).
Early in my troubleshooting 'adventure', I was experiencing GPU hangs that were in fact recoverable. Looking at logs i was consistently seeing "MES failed to respond". I attempted to resolve this with a kernel boot parameter,
amdgpu.cwsr_enable=0. This did not allow me to train the model successfully and following this the unrecoverable hangs started to occur.These unrecoverable hangs meant there were no logs available to me. I attempted to try and resolve the issue, I found that the issue was related to the specialised/optimised GPU kernels PyTorch was using to compute the attention mechanism during training. The flash and memory-efficent kernels were not handled correctly by the drivers leading to the hang, the fix I applied was simply to disable the flash and memory-efficent kernels and only using the less efficent/optimised math kernel. This has increased VRAM and training time but it has allowed me to continue to train the model.
The kernel boot parameter and the disabling of the specialised/optimised GPU kernels have only ever been applied together, untested in isolation. Since then I have an no issues whilst training other than issues related to exceeding my VRAM capacity.
The changes I implimented to my script were to add :
torch.backends.cuda.enable_flash_sdp(False) torch.backends.cuda.enable_mem_efficient_sdp(False)these lines were added immediately below 'import torch' to prevent these kernels from being used.additionally,
attn_implementation="sdpa",was included at the end of my 'model load' segment of the script to ensure that only PyTorches Scaled Dot Product Attention interface was used [Math Kernal].if you are interested in reading a more extensive report on this issue and solution, may i redirect you to Waylon Richer's post where he has written 15 pages going into much greater depth. His report greatly aided me in finding this solution with my setup.
https://forum.level1techs.com/t/amd-r9700-gfx1201-rocm-7-2-1-ubuntu-24-04-4-lts-5-qlora-training-bugs-vulkan-co-residency-measurements-multi-model-orchestration/250960
Good luck and I hope this helps,
kind regards,
Oisín.
BaconMaster255 commentedon Sep 21, 2026
Confirming this on a Radeon AI PRO R9700 (gfx1201), with a control — including the
TORCH_BLAS_PREFER_HIPBLASLT=0test asked for in#6413 (comment) that the thread never
got an answer to. Also one finding about which kernels carry the instruction that may explain why
this reproduces for some people and not others on identical hardware.
Environment
1002:7551amdgpu(no amdgpu-dkms)3 latent buckets, ~30.6GB of 32GB VRAM. Deterministic: it faults at step 32, every run, across
reboots, fixed seed.
Faulty UTCL2 client ID: TCP (0x8),PERMISSION_FAULTS: 0x3,WALKER_ERROR: 0x0,MAPPING_ERROR: 0x0.1. The workaround, with a control
TORCH_BLAS_PREFER_HIPBLASLT=0+ROCBLAS_USE_HIPBLASLT=0Same session, same dataset, seed 42, control first. It works — and it costs 5.8x on this
workload, which I don't think has been quantified here. A 4-minute run becomes ~28 minutes.
2. #8909 backported to 7.2 resolves it
The
KernelWriterAssembly.pyhunk applies torelease/rocm-rel-7.2(theSolutionStructs/Solution.pyhunk is a no-op there, as its own comment predicts — no shipped solution reaches that combination).
Rebuilt kernels selected at runtime via
HIPBLASLT_TENSILE_LIBPATH, nothing installed over the stocklibrary.
The fix is verifiably in the binary — order-independent mnemonic histograms, stock vs rebuilt, same
bundle:
B8B8_B8B8_..._Ailk_Bjlk_..._gfx1201s_min_u32s_sub_co_u32s_cselect_b32BB_BB_..._Ailk_Bjlk_..._gfx1201s_min_u32s_cselect_b32A mnemonic absent from stock appearing in exact lockstep triples — the clamp against
Srd+2minusone load width. n=1 on the clean rebuilt arm; the structural evidence and the control make it
stronger than a bare clean run, but it is one run.
Two notes for anyone reproducing:
HIPBLASLT_TENSILE_LIBPATHhard-errors on an invalid path(
HIPBLAS_STATUS_INVALID_VALUE) rather than silently falling back, so a clean run can't be afallback in disguise; and with
HIPBLASLT_LOG_LEVEL=4the library logsUsing HIPBLASLT_TENSILE_LIBPATH=<path>, which makes that check positive rather than inferential.3. Only transposed-B bundles carry the instruction — this may explain divergent reports
Sweeping the gfx1201 bundles for a transpose load:
..._Ailk_**Bjlk**_...(B-transposed): 14,148global_load_tr_b64in the fp8 pair, 4,752 and5,392
global_load_tr_b128in two bf16 bundles..._Ailk_**Bljk**_...: zero — onlybuffer_load_*, which the SRD bounds in hardwareI diffed a
Bljkbundle first, found no change, and nearly concluded #8909 was a no-op for ROCm7.2.4 on this card. It isn't — it's layout-specific. From
Solution.py:gfx1201 reports
HasGLTr8B64=1andHasGLTr16B128=1(viamakeIsaInfoMap), and the shippedgfx1201 tuning configs carry
DirectToVgprB: 1on 13,127 solutions — so neither the capability norDirectToVgpr is what varies. TLU — the transpose layout — is. A workload whose GEMMs land in the
non-transposed family will never hit this, on the same card and the same ROCm.
Also worth knowing when triaging from a trace: the faulting kernel is not the one named in the
crash trace. The error surfaces asynchronously at a later dispatch — ours named a
Bljkkernelwhile the fault is in a
Bjlkone. We measured 0 dangling dispatches out of 413,893, so the lastdispatch is the surfacing point, not the culprit.
The question
e40604eb96cbaf482ba51e18ed31d48872181199appears to be ondeveloponly — a commit search returnsthat single commit with no cherry-picks, and it is not an ancestor of
release/rocm-rel-7.2,gpuep-releases/therock-7.14ortherock-10.0. Is there a target release for it yet? Until itships, the options on this card are a 5.8x slowdown, avoiding multi-bucket training, or a local
rebuild.
BaconMaster255 commentedon Sep 21, 2026
Two further things from the same machine, gathered after the comment above: a stronger confirmation that the
backport resolves it, and a measurement that may explain why this reproduces in a trainer but not in
a minimal test case — which I think is relevant to the earlier "cannot reproduce" reply.
1. Backport confirmation is now stronger than the single clean run I reported
Same build, #8909 backported to
release/rocm-rel-7.2and installed:That first row is the script that failed 5 out of 5 times at step 32 before the backport. Nothing
about it changed except the hipBLASLt kernels. Two scripts, two clean completions.
Stated plainly: this establishes the fix's presence on this build, not its stability under
repetition — I have not run a sweep and am not implying one.
2. Why a standalone reproducer comes back clean: allocation size, not allocation pattern
This is the part I think is useful upstream.
global_load_trover-reads past the operand; whether thatfaults depends entirely on whether anything is mapped after it. Measured on this card with a 25-line
HIP program (no torch, no framework), sweeping requested size and read offset:
hipMalloc maps in 2 MiB granules. Any allocation gets free mapped slack up to the next granule
boundary, so a small over-read lands in mapped memory and is harmless. An allocation whose size is an
exact multiple of 2 MiB gets zero slack, and the same over-read faults.
Now the framework side. PyTorch's caching allocator rounds every segment to a 2 MiB multiple — verified
live via
torch.cuda.memory_snapshot()on 2.13.0+rocm7.2:So in PyTorch every segment begins and ends flush on a granule with no partial granule at either end,
by construction — while a hand-written reproducer almost never lands on an exact multiple and
therefore almost always has slack to absorb the over-read.
If that holds generally, it would explain the divergence in this thread: the bug is real and
architectural, but a minimal test case is the case least likely to expose it. A reproducer that wants
to fault should request an exact multiple of 2 MiB and read just past the end.
3. Magnitude of the over-read, from the generator
For anyone assessing severity: the over-read is bounded by one load.
Solution.pyrejectsenableGLTrunlessGlobalReadVectorWidth == 8(elements), and the instruction width follows the datatype —
global_load_tr_b64= 8 bytes for 8-bit,global_load_tr_b128= 16 bytes for 16-bit. So abf16/fp16 operand over-reads by 16 bytes.
KernelWriterAssembly.pystates the cause in its owncomment: "global_load_tr has no num_records field, so nothing bounds it in hardware."
Caveat on that number: 16 bytes bounds the load width. I could not verify from the generator alone
that the address handed to the load is always within one vector of the operand end, since the lanes
are masked. So treat 16 bytes as the load size, not as a proven maximum overrun distance.
4. Not claiming
I also tried giving every allocation guaranteed slack via a custom allocator, as a possible mitigation.
That experiment was confounded — the custom allocator also bypassed PyTorch's caching layer entirely,
so its arms are not a clean test of padding and I am not reporting a result from them either way.
harkgill-amd commentedon Sep 21, 2026
With the page faults reported in this being confirmed resolved by ROCm/rocm-libraries#8909, I'll be closing this out. The fix is currently present in the latest ROCm 10.2 nightlies and will make it's way into an official release as well.
For any further gfx1201 page fault issues, please open a new ticket. Thanks!