gsutre / netbsd-drmgem

Porting DRM/GEM from OpenBSD to NetBSD (Intel only)
14 stars 3 forks source link

GPU Hang on i386 / i915GM with Firefox #17

Open gsutre opened 11 years ago

gsutre commented 11 years ago

Opening several Firefox windows easily triggers the dreaded inteldrm0: gpu hung! error. The problem occurs on a Fujitsu Siemens Lifebook P7120 with the following setup:

The problem can be systematically triggered as follows:

  1. Start the X server with startx and let twm initialize the session.
  2. Launch firefox and open a second Firefox window (with Ctrl-N).
  3. Load file:///usr/bin/ in the first window and file:///usr/lib/ in the second window.
  4. Switch back and forth between the two windows (by left-clicking on the title bar) and move them around.
  5. The X server freezes for a bit, and the message inteldrm0: gpu hung! appears in the kernel log.

As for issue #2, using DebugWait works around this problem.

Notes

/netbsd: inteldrm0: gpu hung!
/netbsd: _fault: failed to set to gtt (5)
/netbsd: inteldrm_fault: failed to set to gtt (5)
syslogd[356]: last message repeated 797 times
/netbsd: error: [drm:pid171:i915_gem_cleanup_ringbuffer] *ERROR* failed to quiesce ring buffer whilst cleaning up: 16

/var/log/Xorg.0.log

[    84.456] (EE) intel(0): Detected a hung GPU, disabling acceleration.