Bug 37445 - Nouveau regularly reports the TRAP_VFETCH FAULT errors.
Summary: Nouveau regularly reports the TRAP_VFETCH FAULT errors.
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Nouveau Project
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-21 17:31 UTC by maximlevitsky
Modified: 2012-08-14 22:27 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description maximlevitsky 2011-05-21 17:31:01 UTC
Like this:


 9714.987179] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH FAULT
[ 9714.987203] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH 00f00000 0000fe0c 00000000 00000000
[ 9714.987219] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP
[ 9714.987234] [drm] nouveau 0000:01:00.0: PGRAPH - ch 5 (0x000770a000) subc 5 class 0x8297 mthd 0x15f0 data 0x00000000
[ 9714.987265] [drm] nouveau 0000:01:00.0: VM: trapped read at 0x0000000000 on ch 5 [0x0000770a] PGRAPH/VFETCH/00 reason: PT_NOT_PRESENT
[ 9714.987301] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH FAULT
[ 9714.987320] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH 00f00000 0000fe0c 00000000 00000000
[ 9714.987336] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP
[ 9714.987350] [drm] nouveau 0000:01:00.0: PGRAPH - ch 5 (0x000770a000) subc 5 class 0x8297 mthd 0x15f0 data 0x09000936
[ 9714.987376] [drm] nouveau 0000:01:00.0: VM: trapped read at 0x0000000000 on ch 5 [0x0000770a] PGRAPH/VFETCH/00 reason: PT_NOT_PRESENT
[ 9714.987411] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH FAULT
[ 9714.987429] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH 00f00000 0000fe0c 00000000 00000000
[ 9714.987445] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP
[ 9714.987461] [drm] nouveau 0000:01:00.0: PGRAPH - ch 5 (0x000770a000) subc 5 class 0x8297 mthd 0x15f0 data 0x00000013
[ 9714.987497] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH FAULT
[ 9714.987516] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH 00f00000 0000fe0c 00000000 00000000
[ 9714.987532] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP
[ 9714.987546] [drm] nouveau 0000:01:00.0: PGRAPH - ch 5 (0x000770a000) subc 5 class 0x8297 mthd 0x15f0 data 0x32212121
[ 9714.987577] [drm] nouveau 0000:01:00.0: VM: trapped read at 0x0000000000 on ch 5 [0x0000770a] PGRAPH/VFETCH/00 reason: PT_NOT_PRESENT

Not sure if that can cause a lockup, but sure a clue, so I keep this in a bugreport.
Comment 1 maximlevitsky 2011-05-21 17:34:28 UTC
I used to have a lot of faults on access to FB bar, apparently caused by BIOS.
Since now FB bar is mapped via VM, maybe its the same thing?

The faults themselves were accesses from SMI code my bios runs apparently for no reason (some debug code leftovers maybe)
Comment 2 Christoph Bumiller 2011-05-22 02:17:03 UTC
VFETCH means "vertex fetch", so it's caused by vertex fetches / reads of vertex data by PGRAPH.

One possible reason is that some app asks for vertices outside the limit of a vertex buffer (for whatever reason - could be app bug, driver bug or mesa bug), which go to a special memory area, NV50_3D_VERTEX_RUNOUT_ADDRESS, which isn't initialized and thus would cause VM faults at address 0.
Comment 3 maximlevitsky 2011-05-22 03:23:07 UTC
That is what I suspected but didn't want to be true.
That happens with many games, so I suspect its nouveau mesa driver and not game fault, and it might reflect upon something nasty happening in the driver
Comment 4 maximlevitsky 2011-05-22 03:27:56 UTC
I also have just seen that in kernel log:


[29782.682641] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_TEXTURE - TP0: Unhandled ustatus 0x00000003
[29782.682671] [drm] nouveau 0000:01:00.0: PGRAPH_TRAP_TPDMA_RT - TP 0 - Unknown fault at address 0022467000
[29782.682693] [drm] nouveau 0000:01:00.0: PGRAPH_TRAP_TPDMA_RT - TP 0 - e0c: 00000000, e18: 00000000, e1c: 00000000, e20: 00001100, e24: 00030000
[29782.682722] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP
[29782.682740] [drm] nouveau 0000:01:00.0: PGRAPH - ch 5 (0x000472b000) subc 5 class 0x8297 mthd 0x15e0 data 0x00000000
[29782.682771] [drm] nouveau 0000:01:00.0: VM: trapped write at 0x0022467000 on ch 5 [0x0000472b] PGRAPH/PROP/RT0 reason: PAGE_NOT_PRESENT


Probably unrelated, or maybe not.
This time its texture fetch fault.
Comment 5 maximlevitsky 2011-05-22 13:52:57 UTC
I also want to note that running Unigine demos (all of them) produces these TRAP_VFETCH FAULT messages and system eventually hangs.
That issue might be the indicator.
Comment 6 maximlevitsky 2011-08-12 16:35:28 UTC
I'll should close this bug I think. Its just an application error who submits out of bound vertexes. mesa in debug mode actually complains about that.

Only thing though, maybe you want to filter this bogus data and not give it to apps?
Comment 7 bill 2012-01-27 02:54:03 UTC
By debug mode, do you mean "LIBGL_DEBUG=1 glapp"? If so, then mesa is being silent about any application errors.

Using nq-glslx (glsl branch of QuakeForge (git://git.quakeforge.net/gitroot/quake/quakeforge)) and leaving it to idle on the start map results in these messages eventually appearing after about 90 seconds (with occurrences every 90s or so). However, when I tried running nq-glslx under valgrind, it wouldn't happen :/
Comment 8 Kevin N. 2012-03-12 21:30:34 UTC
I also run into these errors.  They only occur after I reclock the card to any performance level above 1. If I then run Heroes of Newerth (Opengl game)  I run into slowdowns that will eventually lock the system up with this message in log repeatedly.  The messages and slowdowns stop if I manage to kill X before the system becomes unresponsive.  Running the game at the default performance level works fine.

01:00.0 VGA compatible controller: nVidia Corporation G96 [GeForce 9600M GT] (rev a1)

Mar 11 19:23:46 [kernel] [55207.554706] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH FAULT
Mar 11 19:23:46 [kernel] [55207.554724] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP_VFETCH 00f00000 0000fe0c 00000000 00000000
Mar 11 19:23:46 [kernel] [55207.554726] [drm] nouveau 0000:01:00.0: PGRAPH - TRAP
Mar 11 19:23:46 [kernel] [55207.554730] [drm] nouveau 0000:01:00.0: PGRAPH - ch 4 (0x00040f0000) subc 5 class 0x8297 mthd 0x0f04 data 0xbef727ba
Mar 11 19:23:46 [kernel] [55207.554743] [drm] nouveau 0000:01:00.0: VM: trapped read at 0x0000000000 on ch 4 [0x000040f0] PGRAPH/VFETCH/00 reason: PT_NOT_PRESENT

libdrm mesa xf86-video-nouveau and kernel current as of 3 PM 02/19/2012 PST
Comment 9 Kevin N. 2012-03-12 22:08:37 UTC
(In reply to comment #8)
> libdrm mesa xf86-video-nouveau and kernel current as of 3 PM 02/19/2012 PST
Woops meant 03/11/2012
Comment 10 Kevin N. 2012-04-14 17:06:17 UTC
libdrm mesa xf86-video-nouveau and kernel current as of April 14th 16:00 PST

I can no longer reproduce these errors seems to be fixed.
Comment 11 maximlevitsky 2012-08-14 22:27:57 UTC
Yep, this is fixed by new shader compiler ages ago.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.