From: bugzilla-daemon@freedesktop.org Subject: [Bug 107152] GPU fault detected: 146 / VM_CONTEXT1_PROTECTION_FAULT / ring gfx timeout Date: Fri, 03 Aug 2018 16:54:28 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0642734398==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 5900A6E781 for ; Fri, 3 Aug 2018 16:54:28 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0642734398== Content-Type: multipart/alternative; boundary="15333152681.6DBd0B.30931" Content-Transfer-Encoding: 7bit --15333152681.6DBd0B.30931 Date: Fri, 3 Aug 2018 16:54:28 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D107152 --- Comment #8 from Andrey Grodzovsky --- dwanger, i think you already have all the trace tools installed from previo= us debug sessions so this should be quick for you -=20 Update to latest kernel from https://cgit.freedesktop.org/~agd5f/linux/log/?h=3Damd-staging-drm-next Load the system and before starting reproduce run the following trace comma= nd - 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=20 sudo umr -O verbose -R gfx[.] sudo umr -O halt_waves -wa Now let's say this your log crash=20 Jul 07 01:08:20 ryzen kernel: amdgpu 0000:0a:00.0:=20=20 VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x00100190 Jul 07 01:08:20 ryzen kernel: amdgpu 0000:0a:00.0:=20=20 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=20 where 7 is vmid value and 100190000 is VM_CONTEXT1_PROTECTION_FAULT_ADDR va= lue 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. --=20 You are receiving this mail because: You are the assignee for the bug.= --15333152681.6DBd0B.30931 Date: Fri, 3 Aug 2018 16:54:28 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 8 on bug 10715= 2 from Andrey Grodzovsky
dwanger, i think you already have all the trace tools installe=
d from previous
debug sessions so this should be quick for you -=20

Update to latest kernel from
https://cgit.freedesktop.org/~agd5f/linux/log/?h=3Damd-staging-drm=
-next

Load the system and before starting reproduce run the following trace comma=
nd -

sudo trace-cmd start -e dma_fence -e gpu_scheduler -e amdgpu -v -e
"amdgpu:amdgpu_mm_rreg" -e "amdgpu:amdgpu_mm_wreg" -e &=
quot;amdgpu:amdgpu_iv"


after VM_FAULT happened extract the log from /sys/kernel/debug/tracing

also run=20
sudo umr -O verbose -R gfx[.]
sudo umr -O halt_waves -wa

Now let's say this your log crash=20

Jul 07 01:08:20 ryzen kernel: amdgpu 0000:0a:00.0:=20=20
VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x00100190
Jul 07 01:08:20 ryzen kernel: amdgpu 0000:0a:00.0:=20=20
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=20

where 7 is vmid value and 100190000 is VM_CONTEXT1_PROTECTION_FAULT_ADDR va=
lue
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.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15333152681.6DBd0B.30931-- --===============0642734398== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0642734398==--