<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - GPU fault detected: 146 / VM_CONTEXT1_PROTECTION_FAULT / ring gfx timeout"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107152#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - GPU fault detected: 146 / VM_CONTEXT1_PROTECTION_FAULT / ring gfx timeout"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107152">bug 107152</a>
from <span class="vcard"><a class="email" href="mailto:andrey.grodzovsky@amd.com" title="Andrey Grodzovsky <andrey.grodzovsky@amd.com>"> <span class="fn">Andrey Grodzovsky</span></a>
</span></b>
<pre>dwanger, i think you already have all the trace tools installed from previous
debug sessions so this should be quick for you -
Update to latest kernel from
<a href="https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next">https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next</a>
Load the system and before starting reproduce run the following trace command -
sudo trace-cmd start -e dma_fence -e gpu_scheduler -e amdgpu -v -e
"amdgpu:amdgpu_mm_rreg" -e "amdgpu:amdgpu_mm_wreg" -e "amdgpu:amdgpu_iv"
after VM_FAULT happened extract the log from /sys/kernel/debug/tracing
also run
sudo umr -O verbose -R gfx[.]
sudo umr -O halt_waves -wa
Now let's say this your log crash
Jul 07 01:08:20 ryzen kernel: amdgpu 0000:0a:00.0:
VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x00100190
Jul 07 01:08:20 ryzen kernel: amdgpu 0000:0a:00.0:
VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0E04400C
Jul 07 01:08:20 ryzen kernel: amdgpu 0000:0a:00.0: VM fault (0x0c, vmid 7,
pasid 32768) at page 1048976, read from 'TC1' (0x54433100) (68)
Do
umr -O verbose -vm 7@100190000 1
where 7 is vmid value and 100190000 is VM_CONTEXT1_PROTECTION_FAULT_ADDR value
with extra '000' to get from virtual page number to actual virtual address
(left shift 4096b).
I can look at the log then and also run it by our MESA/LLVM experts to try and
figure out what's going on.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>