Skip to content
This repository was archived by the owner on Oct 19, 2026. It is now read-only.
This repository was archived by the owner on Oct 19, 2026. It is now read-only.

[Issue]: gfx1201 (Radeon AI PRO R9700) GPU page fault (PERMISSION_FAULTS) + GPU reset during sustained PyTorch/ROCm training, reproducible 2x same session #6413

Closed
ROCm/rocm-libraries
#8909

Description

@FR-Mister-T

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:

  1. Load a large (~13B parameter) diffusion transformer in fp8 onto the GPU alongside a LoRA adapter and optimizer state, occupying most of available VRAM.
  2. Run a training loop performing repeated forward+backward+optimizer steps for several minutes.
  3. 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

  1. harkgill-amd commented on Jul 17, 2026

    @harkgill-amd
    Contributor

    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.2 config. 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?

  2. FR-Mister-T commented on Jul 18, 2026

    @FR-Mister-T
    Author

    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

  3. bmanga commented on Jul 19, 2026

    @bmanga

    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

    • GPU: Radeon AI PRO R9700 (gfx1201), 32GB — Sapphire, 1002:7551 / subsystem 1da2:e499, vBIOS 113-1E4990U-S83
    • Driver: in-tree amdgpu only, no amdgpu-dkms installed
    • Kernel: 6.17.0-35-generic, Ubuntu 24.04
    • ROCm: 7.2.4 (HIP 7.2.53211)
    • PyTorch: 2.13.0+rocm7.2 (stable wheel from the ROCm index)
    • Stack: stock diffusers 0.39.0 + transformers 5.13.1, plain PyTorch training loop
    • Workload: SDXL UNet LoRA (rank 16) + T2I-Adapter, bf16, Adafactor, gradient checkpointing, batch 1 @ 1152x896 (cached latents, (4, 112, 144))
    • VRAM: peaks at ~7GB of 32GB

    Three details that may help bound the cause:

    1. It reproduces on the pure in-tree driver, with no amdgpu-dkms present at all.
    2. It reproduces at ~7GB of 32GB VRAM, so it does not appear to be memory pressure or
      fragmentation.
    3. It reproduces on the stable torch 2.13.0+rocm7.2 wheel, not only on nightlies.

    Fault signature

    PERMISSION_FAULTS with a clean page-table walk, on both the data and instruction paths:

    [gfxhub] page fault (src_id:0 ring:88 vmid:8 pasid:157)
      in page starting at address 0x0000004000000000 from client 10
    GCVM_L2_PROTECTION_FAULT_STATUS:0x008012B1
      Faulty UTCL2 client ID: SQC (inst) (0x9)     <-- instruction fetch
      MORE_FAULTS: 0x1  WALKER_ERROR: 0x0
      PERMISSION_FAULTS: 0xb  MAPPING_ERROR: 0x0
    

    I also see Faulty UTCL2 client ID: TCP (0x8) with PERMISSION_FAULTS: 0x3.
    WALKER_ERROR and MAPPING_ERROR are always 0x0 — the walk succeeds and only permissions
    are wrong.

    Userspace surfaces this as one of three, seemingly interchangeably:

    • HSA_STATUS_ERROR_ILLEGAL_INSTRUCTION code 0x2a
    • HSA_STATUS_ERROR_EXCEPTION code 0x1016
    • hipErrorIllegalAddress inside F.linear

    The SQC (inst) variant looks like the mechanism behind the illegal-instruction abort: the
    shader 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:

    kernel trials crashed amdgpu page faults board power under compute shader clock
    7.0.0-28-generic 4/4 24 + 4 10-15 W pinned low
    6.17.0-35-generic 1/4 0 93-163 W 2075-2658 MHz

    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 is
    not 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:

    torch.backends.cuda.enable_flash_sdp(False)
    torch.backends.cuda.enable_mem_efficient_sdp(False)
    torch.backends.cuda.enable_math_sdp(True)

    Controlled comparison, same script, same kernel (6.17.0-35), 50 training steps per trial,
    varying only the SDPA backend and the allocator:

    SDPA backend expandable_segments result
    flash + mem-efficient on 1/4 trials crashed
    math only off 0/4 crashed, 200 steps, zero page faults
    flash + mem-efficient off page fault 3 seconds in, then wedged
    mem-efficient only (flash disabled) off page fault 3 seconds in

    Rows 3 and 4 isolate it. With expandable_segments already disabled, re-enabling the
    AOTriton-backed attention reproduced the fault almost immediately — 0x00801031, TCP (0x8),
    PERMISSION_FAULTS: 0x3, the same signature as the original report. So in my case the
    allocator 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.

  4. FR-Mister-T commented on Jul 19, 2026

    @FR-Mister-T
    Author

    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 :/
    Image

  5. Only8Bits commented on Jul 23, 2026

    @Only8Bits

    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):

    amdgpu 0000:0c:00.0: [gfxhub] page fault (src_id:0 ring:40 vmid:8 pasid:688)
    amdgpu 0000:0c:00.0: Process python pid 272031 thread python pid 272031
    amdgpu 0000:0c:00.0: in page starting at address 0x00007c55e907a000 from client 10
    amdgpu 0000:0c:00.0: GCVM_L2_PROTECTION_FAULT_STATUS:0x00841A51
    amdgpu 0000:0c:00.0: Faulty UTCL2 client ID: SDMA0 (0xd)
    amdgpu 0000:0c:00.0: MORE_FAULTS: 0x1
    amdgpu 0000:0c:00.0: WALKER_ERROR: 0x0
    amdgpu 0000:0c:00.0: PERMISSION_FAULTS: 0x5
    amdgpu 0000:0c:00.0: MAPPING_ERROR: 0x0
    amdgpu 0000:0c:00.0: RW: 0x1

    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:

    amdgpu/6.19.14-2364437.24.04, 7.0.0-28-generic, x86_64: installed

    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.

  6. harkgill-amd commented on Jul 23, 2026

    @harkgill-amd
    Contributor

    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 + hipErrorIllegalAddress failure 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 with AMD_LOG_LEVEL=3 and 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.

  7. FR-Mister-T commented on Jul 23, 2026

    @FR-Mister-T
    Author

    Hello,

    Thanks @harkgill-amd — ran the failing Krea2 LoRA training workload again with AMD_LOG_LEVEL=3 and 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 :) :

    • Kernel: 7.0.0-28-generic (same "dramatically worse" kernel @bmanga flagged in their A/B, vs. the 6.17.0-35-generic they found more stable)
    • ROCm: 7.14.0 (upgraded from 7.2 on 2026-07-18, after the original report)
    • torch: 2.12.0+rocm7.14.0 (hip 7.14.60850) — note @harkgill-amd's own repro attempt used torch 2.14.0.dev+rocm7.2, so we're now on different ROCm/torch versions in both directions
    • amdgpu-dkms: 6.19.14.31400000-2364437.24.04
    • Ubuntu 24.04.4 LTS

    So 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:

    rocdevice.cpp:3678: Memory Fault Error [host: ..., GPU index: 0, faulting addr: 0x78dc2fe00000,
    kernel: Cijk_Ailk_Bljk_BBS_BH_Bias_HA_S_SAV_UserArgs_MT16x16x32_MI16x16x1_SN_LDSB1_AFC1_AG0_...ISA1201...]
    

    That's a Tensile/hipBLASLt GEMM kernel (Cijk_Ailk_Bljk naming), 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:

    hipStreamSynchronize: Returned hipErrorIllegalAddress
    hipGetLastError: Returned hipErrorIllegalAddress
    ...
    terminate called after throwing an instance of 'c10::AcceleratorError'
      what():  CUDA error: an illegal memory access was encountered
    

    ...followed by a Python Fatal Python error: Aborted (faulthandler dump) and process death. The GPU itself recovered cleanly on its own — kernel log shows reset 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:

    • No VRAM/OOM pressure immediately preceded this particular fault — it was an isolated hit, not an OOM-churn-adjacent one.
    • Happened during the optimizer step (Prodigy+ScheduleFree, 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=3 log 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.

  8. Only8Bits commented on Jul 23, 2026

    @Only8Bits

    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 now use COMFYUI_ENABLE_MIOPEN=1 with 7.14, commenting it out didn't help
    • Setting HSA_ENABLE_ASYNC_COPY=0 and HSA_ENABLE_SDMA=0 didn't help either
    • Neither did commenting out TORCH_BLAS_PREFER_HIPBLASLT=1

    I'll need to run some more tests but I figured I'll report it right away, maybe it helps someone.

  9. nixon-hub commented on Aug 4, 2026

    @nixon-hub

    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:

    • Reproducer — a single LoRA adapter on one MLP projection at rank 16 faults in about seven minutes, at 3 of 3 allocation layouts. No 27B model or multi-GPU setup needed for the fault itself. An 8B model also reproduces (2 of 3 layouts).
    • Mechanism — ROCm ≥ 7.2 loads GEMM operands with global_load_tr (a bare 64-bit address, no bounds field) where 7.0.2 used buffer_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.
    • Fault signature on our box — 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.
    • Timing — it lands at step 5 in about two thirds of runs, range 1 to 12. Note a faulting run usually prints no loss lines at all, because the abort discards buffered stdout; that is not evidence of an immediate crash. Read the progress bar instead.
    • Workarounds we measured — 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=0 is circulating as a fix for this and is not one. We tested it with the parameter verified 0 in sysfs: the fault persisted and 3 of 4 GPUs degraded from a clean fault to GPU Hang, requiring a reboot.

    Root cause and a validated before/after are in the linked comment.

  10. harkgill-amd commented on Aug 10, 2026

    @harkgill-amd
    Contributor

    Hey @FR-Mister-T, can you try running your workload with hipBLASLt disabled (rocBLAS in use) via TORCH_BLAS_PREFER_HIPBLASLT=0 and ROCBLAS_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.

  11. nixon-hub commented on Aug 12, 2026

    @nixon-hub

    @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.

    arm env layout result
    workaround TORCH_BLAS_PREFER_HIPBLASLT=0 + ROCBLAS_USE_HIPBLASLT=0 0 clean, 12 steps
    workaround same 433 clean, 12 steps
    control unset (stock) 0 Memory access fault

    The 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 2e9612f and 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:

    • A faulting run usually prints no loss lines at all — the abort discards buffered stdout, so "no losses" is not evidence of an immediate crash. Read the progress bar.
    • The fault lands at step 5 in about two thirds of runs, range 1–12, so anything shorter than ~12 steps can look clean without having reached the hazard. It is also allocation-layout dependent, which is why we vary the layout and always run a control that must fault.

    ⚠️ One caveat on the workaround: it is a diagnostic, not something we would run in production — on gfx1201 it pushes GEMMs onto a different path with its own performance characteristics. PR#8909 looks like the right fix from our side.

  12. FR-Mister-T commented on Aug 12, 2026

    @FR-Mister-T
    Author

    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 :(

  13. harkgill-amd commented on Aug 14, 2026

    @harkgill-amd
    Contributor

    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 :(

    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.

  14. angelhalo commented on Aug 16, 2026

    @angelhalo

    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

    • GPU: AMD Radeon AI PRO R9700, PCI ID 1002:7551, 32 GB
    • VBIOS: 113-R9700AT-F50, version 023.008.000.068.000001
    • Host OS: Ubuntu 26.04 LTS
    • Host kernel: 7.0.0-29-generic
    • amdgpu module: 6.19.14.31400000
    • CPU: Intel Core i7-11700
    • Single-GPU, AMD-only configuration; the NVIDIA GPU was physically removed
    • amdgpu.vm_update_mode=-1 (driver default)
    • Kernel parameters include:
      amdgpu.runpm=0 iommu=pt pcie_ports=native
    • Container image:
      rocm/vllm:rocm7.14.0_rdna_ubuntu24.04_py3.14_pytorch_2.11.0_vllm_0.23.0
    • vLLM inside the image:
      0.23.1.dev1+g9ddef7117.d20260715

    Minimal workload

    • Model: Qwen/Qwen3-1.7B
    • dtype: BF16
    • Tensor parallel size: 1
    • Max model length: 4096
    • GPU memory utilization: 0.80
    • --enforce-eager
    • torch.compile disabled
    • CUDAGraph disabled
    • AITER disabled
    • No FP8, speculative decoding, multimodal model, or multi-GPU communication

    Relevant launch arguments:

    python3 -m vllm.entrypoints.openai.api_server \
      --model Qwen/Qwen3-1.7B \
      --served-model-name official-rocm-smoke \
      --tensor-parallel-size 1 \
      --max-model-len 4096 \
      --gpu-memory-utilization 0.80 \
      --enforce-eager
    

    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:

    HW Exception by GPU node-1 reason: GPU Hang
    Memory access fault by GPU node-1 on address 0x100000000.
    Reason: Page not present or supervisor privilege.
    

    No inference request had been sent yet.

    Kernel fault

    amdgpu 0000:04:00.0: [gfxhub] page fault (src_id:0 ring:40 vmid:8 pasid:18)
    amdgpu 0000:04:00.0: Process VLLM::EngineCor pid 13198
    amdgpu 0000:04:00.0: in page starting at address 0x0000000100000000 from client 10
    amdgpu 0000:04:00.0: GCVM_L2_PROTECTION_FAULT_STATUS:0x00840A50
    amdgpu 0000:04:00.0: Faulty UTCL2 client ID: CPC (0x5)
    amdgpu 0000:04:00.0: MORE_FAULTS: 0x0
    amdgpu 0000:04:00.0: WALKER_ERROR: 0x0
    amdgpu 0000:04:00.0: PERMISSION_FAULTS: 0x5
    amdgpu 0000:04:00.0: MAPPING_ERROR: 0x0
    amdgpu 0000:04:00.0: RW: 0x1
    

    This was followed by:

    MES(0) failed to respond to msg=REMOVE_QUEUE
    MES(0) failed to respond to msg=SUSPEND
    failed to suspend all gangs
    MES(0) failed to respond to msg=RESET
    Failed to detect hung queues
    MES(0) failed to respond to msg=RESUME
    failed to resume all gangs
    MES might be in unrecoverable state, issue a GPU reset
    Failed to evict queue 4
    GPU reset begin!. Source: 3
    

    The MODE1 reset itself appeared to succeed, but PSP recovery failed:

    GPU mode1 reset
    GPU reset succeeded, trying to resume
    AMDGPU device coredump file has been created
    VRAM is lost due to GPU reset!
    PSP is resuming...
    PSP load kdb failed!
    PSP resume failed
    resume of IP block <psp> failed -62
    GPU reset end with ret = -62
    

    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:

    • This issue: TCP client, PERMISSION_FAULTS: 0x3, read fault
    • My reproduction: CPC client, PERMISSION_FAULTS: 0x5, write fault
    • My reset additionally ends with PSP resume failed / -62

    This 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.

  15. angelhalo commented on Aug 19, 2026

    @angelhalo

    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.4 reference alignment did not fix the startup hang. Both model shards loaded, but the GPU then wedged before API readiness. ROCr emitted reason :GPU Hang twice. 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

    • Ubuntu 24.04.4
    • Kernel 6.17.0-40-generic (6.17.0-40.40~24.04.1-generic)
    • amdgpu-dkms 6.19.4
    • Kernel args: amdgpu.runpm=0 iommu=pt pcie_ports=native
    • Radeon AI PRO R9700 (gfx1201); NVIDIA card physically removed; Intel UHD remained as a separate display device
    • stilldeadcode/vllm-radiance:0.5.8
    • Qwen/Qwen3-8B-FP8, FP8 KV cache, max context 8192
    • ROCm 7.14, vLLM 0.26.0, Radiance 0.5.8
    • AITER unified attention
    • No API request was sent

    The same Radiance workload on 6.17.0-42 + amdgpu-dkms 6.19.4 also 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 reports reason :GPU Hang twice.
    • From 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; first ring sdma0 timeout, signaled seq=2260, emitted seq=2262.
    • Queue recovery failed: Starting sdma0 ring reset, Ring sdma0 reset failed, Failed to evict queue 2, and repeated MES(1) failed REMOVE_QUEUE / remove_all_kfd_queues_mes: Failed to remove queue 1.
    • GPU resets continued through GPU reset(10) succeeded!, but the device remained wedged.
    • Workqueue/NMI/perf stalls followed; at 19:04:04: watchdog: BUG: soft lockup - CPU#6 stuck for 26s! [vllm:6888].
    • Forced power cycle; next boot began at 19:06:10.

    The root port (0000:00:01.0) also logged correctable PCIe Physical Layer RxErr events 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.gz

    It contains:

    • Canonical GPU devcoredump: devcoredump-card0-20260818-190301.bin — 562,343 bytes — SHA-256 26d3f2bc4962b0f81e357cd51fa1209bc43c70b4d18c54a0a48d700e9f6e93c4
    • Filtered kernel reset-storm journal (18:59:40–19:04:10 UTC), including the PCIe RxErr, SDMA timeout, KFD/MES failures, reset loop, and soft lockup
    • Full server log and status sampler
    • devcoredump watcher log
    • Incident report and exact launch script

    Bundle 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.gz

    Could AMD advise:

    1. Whether this no-page-fault startup hang/reset storm should be tracked in a separate issue from [Issue]: gfx1201 (Radeon AI PRO R9700) GPU page fault (PERMISSION_FAULTS) + GPU reset during sustained PyTorch/ROCm training, reproducible 2x same session #6413.
    2. Whether the dump points to SDMA, KFD/MES queue teardown, PCIe transport, or another block.
    3. Whether there is a diagnostic amdgpu/KFD/MES build or additional trace/dump section you want me to collect.
  16. chrisfranson commented on Aug 21, 2026

    @chrisfranson

    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 reset sequence 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.

  17. angelhalo commented on Aug 24, 2026

    @angelhalo

    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, VBIOS
    113-R9700AT-F40). It also generated a gfxhub permission fault in AMD's
    official 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 the PERMISSION_FAULTS -> MES REMOVE_QUEUE failure -> MODE1 reset -> VRAM lost sequence 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, /health
    returned 200, and the fault occurred on the first short inference request at
    low VRAM use:

    amdgpu 0000:07:00.0: [gfxhub] page fault (src_id:0 ring:24 vmid:8 pasid:41)
    amdgpu 0000:07:00.0: in page starting at address 0x0000000000000000 from client 10
    amdgpu 0000:07:00.0: GCVM_L2_PROTECTION_FAULT_STATUS:0x00801430
    amdgpu 0000:07:00.0: Faulty UTCL2 client ID: SQC (data) (0xa)
    amdgpu 0000:07:00.0: MORE_FAULTS: 0x0
    amdgpu 0000:07:00.0: WALKER_ERROR: 0x0
    amdgpu 0000:07:00.0: PERMISSION_FAULTS: 0x3
    amdgpu 0000:07:00.0: MAPPING_ERROR: 0x0
    amdgpu 0000:07:00.0: RW: 0x0
    

    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.

  18. harkgill-amd commented on Aug 24, 2026

    @harkgill-amd
    Contributor

    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 the PERMISSION_FAULTS -> MES REMOVE_QUEUE failure -> MODE1 reset -> VRAM lost sequence overlaps this issue.

    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.

  19. oisindrury-sys commented on Sep 9, 2026

    @oisindrury-sys

    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.

  20. BaconMaster255 commented on Sep 21, 2026

    @BaconMaster255

    Confirming this on a Radeon AI PRO R9700 (gfx1201), with a control — including the
    TORCH_BLAS_PREFER_HIPBLASLT=0 test 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

    • GPU: AMD Radeon AI PRO R9700 (gfx1201), 32GB, 1002:7551
    • Kernel: 7.0.0-28-generic, Ubuntu 26.04, in-tree amdgpu (no amdgpu-dkms)
    • ROCm: 7.2.4 · PyTorch: 2.13.0+rocm7.2 (stable wheel)
    • Workload: Krea2 LoRA training via musubi-tuner, bf16, gradient checkpointing, 28 images across
      3 latent buckets, ~30.6GB of 32GB VRAM. Deterministic: it faults at step 32, every run, across
      reboots, fixed seed.
    • Signature matches this issue exactly: Faulty UTCL2 client ID: TCP (0x8),
      PERMISSION_FAULTS: 0x3, WALKER_ERROR: 0x0, MAPPING_ERROR: 0x0.

    1. The workaround, with a control

    arm env result s/it
    control stock faulted at step 32 7.16
    workaround TORCH_BLAS_PREFER_HIPBLASLT=0 + ROCBLAS_USE_HIPBLASLT=0 clean 40/40 41.39

    Same 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.py hunk applies to release/rocm-rel-7.2 (the SolutionStructs/Solution.py
    hunk 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 stock
    library.

    arm kernels result
    control stock faulted at step 32
    rebuilt #8909 backport clean 40/40

    The fix is verifiably in the binary — order-independent mnemonic histograms, stock vs rebuilt, same
    bundle:

    bundle mnemonic stock rebuilt
    B8B8_B8B8_..._Ailk_Bjlk_..._gfx1201 s_min_u32 0 313
    s_sub_co_u32 20,478 20,791 (+313)
    s_cselect_b32 17,525 17,838 (+313)
    BB_BB_..._Ailk_Bjlk_..._gfx1201 s_min_u32 0 131
    s_cselect_b32 15,699 15,830 (+131)

    A mnemonic absent from stock appearing in exact lockstep triples — the clamp against Srd+2 minus
    one 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_LIBPATH hard-errors on an invalid path
    (HIPBLAS_STATUS_INVALID_VALUE) rather than silently falling back, so a clean run can't be a
    fallback in disguise; and with HIPBLASLT_LOG_LEVEL=4 the library logs
    Using 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,148 global_load_tr_b64 in the fp8 pair, 4,752 and
      5,392 global_load_tr_b128 in two bf16 bundles
    • ..._Ailk_**Bljk**_...: zero — only buffer_load_*, which the SRD bounds in hardware

    I diffed a Bljk bundle first, found no change, and nearly concluded #8909 was a no-op for ROCm
    7.2.4 on this card. It isn't — it's layout-specific. From Solution.py:

    enableGLTrB = DirectToVgprB and TLUB and ((numBytes==1 and HasGLTr8B64) or (numBytes==2 and HasGLTr16B128))
    

    gfx1201 reports HasGLTr8B64=1 and HasGLTr16B128=1 (via makeIsaInfoMap), and the shipped
    gfx1201 tuning configs carry DirectToVgprB: 1 on 13,127 solutions — so neither the capability nor
    DirectToVgpr 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 Bljk kernel
    while the fault is in a Bjlk one. We measured 0 dangling dispatches out of 413,893, so the last
    dispatch is the surfacing point, not the culprit.

    The question

    e40604eb96cbaf482ba51e18ed31d48872181199 appears to be on develop only — a commit search returns
    that single commit with no cherry-picks, and it is not an ancestor of release/rocm-rel-7.2,
    gpuep-releases/therock-7.14 or therock-10.0. Is there a target release for it yet? Until it
    ships, the options on this card are a 5.8x slowdown, avoiding multi-bucket training, or a local
    rebuild.

  21. BaconMaster255 commented on Sep 21, 2026

    @BaconMaster255

    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.2 and installed:

    run result
    the original failing script, unchanged clean, 70/70 steps
    second trainer config, stock allocator clean, 40/40 steps

    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_tr over-reads past the operand; whether that
    faults 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(2 MiB)       read at end+0          FAULT  (hipErrorIllegalAddress)
    hipMalloc(4 MiB)       read at end+0          FAULT
    hipMalloc(6 MiB)       read at end+0          FAULT
    hipMalloc(2 MiB - 128) read at end+0          survives
    hipMalloc(1 MiB)       read at end+0          survives
    hipMalloc(1 MiB)       read at end+1,048,572  survives
    hipMalloc(1 MiB)       read at end+1,048,576  FAULT      <- exactly the 2 MiB boundary
    

    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:

    segments                : 5
    exact 2 MiB multiples   : 5 / 5
    addresses 2 MiB-aligned : 5 / 5
    smallest request tested : 517 bytes  -> 2 MiB segment
    

    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.py rejects
    enableGLTr unless GlobalReadVectorWidth == 8 (elements), and the instruction width follows the data
    type — global_load_tr_b64 = 8 bytes for 8-bit, global_load_tr_b128 = 16 bytes for 16-bit. So a
    bf16/fp16 operand over-reads by 16 bytes. KernelWriterAssembly.py states the cause in its own
    comment: "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.

  22. harkgill-amd commented on Sep 21, 2026

    @harkgill-amd
    Contributor

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions