Skip to contentSkip to conversation

frequent x crashes with gen6/sna

DISCUSSION Dieter Mummenschanz 4 participants 5 messages Oct 17, 2011 – Oct 24, 2011 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi Daniel,

ok now I got your patch from git and will give it a try asap. Meanwhile the intel_iommu=off (with rc6 enabled) switch seems to make the system somehow more stable. the gpu hangs don't appear that often but they still occur! strangely after the hang/resume, the OpenGL game crashes immediately with:

intel_do_flush_locked failed: Input/output error and raises the same error when I try to start it up again.

mplayer also bails out with:
mplayer: dri2_util.c:109: dri2GetRenderingBuffer: Assertion `buffers' failed. MPlayer interrupted by signal 6 in module: flip_page

I have to reboot in order to get mplayer / the game running.

I've never experienced that before. i915 error state attached.

Cheers,
Dieter

-------- Original-Nachricht --------

Quoted 41 lines

Datum: Mon, 17 Oct 2011 19:46:40 +0200
Von: Daniel Vetter <[email protected]>
An: Dieter Mummenschanz <[email protected]>
CC: Daniel Vetter <[email protected]>, [email protected], [email protected]
Betreff: Re: [Intel-gfx] frequent x crashes with gen6/sna

Quoted 3 lines · Dieter Mummenschanz

Hi Daniel,

ok I did a git clone git://anongit.freedesktop.org/libva (hope this is

the right one?) and in the libva checkout I issued:

Quoted 18 lines

git pull git://freedesktop.org/~danvet/libva-intel for-dieter
warning: no common commits
remote: Counting objects: 1632, done.
remote: Compressing objects: 100% (447/447), done.
remote: Total 1632 (delta 1174), reused 1632 (delta 1174) Receiving objects: 100% (1632/1632), 617.29 KiB | 230 KiB/s, done. Resolving deltas: 100% (1174/1174), done.
From git://freedesktop.org/~danvet/libva-intel
* branch for-dieter -> FETCH_HEAD
Auto-merging configure.ac
CONFLICT (add/add): Merge conflict in configure.ac Auto-merging Makefile.am
CONFLICT (add/add): Merge conflict in Makefile.am Auto-merging .gitignore
CONFLICT (add/add): Merge conflict in .gitignore Automatic merge failed; fix conflicts and then commit the result.

Quoted 1 line

help! :-(

Ok, I've given that git repo a head, so your usual git clone should work. Btw, you're sure you have the latest libva? It moved to

http://cgit.freedesktop.org/vaapi/intel-driver/

Yours, Daniel

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48
Signature · 2 lines
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · Dieter Mummenschanz

ok now I got your patch from git and will give it a try asap. Meanwhile the intel_iommu=off (with rc6 enabled) switch seems to make the system somehow more stable. the gpu hangs don't appear that often but they still occur! strangely after the hang/resume, the OpenGL game crashes immediately with:

intel_do_flush_locked failed: Input/output error and raises the same error when I try to start it up again.

Quoted 7 lines

mplayer also bails out with:
mplayer: dri2_util.c:109: dri2GetRenderingBuffer: Assertion `buffers' failed. MPlayer interrupted by signal 6 in module: flip_page

I have to reboot in order to get mplayer / the game running.

I've never experienced that before. i915 error state attached.

Well, that usually means that the kernel couldn't reset the gpu after a hang. You should see a message to that effect in dmesg. -Daniel

Signature · 3 lines
Daniel Vetter
Mail: daniel-/[email protected]
Mobile: +41 (0)79 365 57 48
#4 lore raw
In reply to a message not in the archive

Hi Daniel,

I've installed your libva patch:

libva: libva version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Intel i965 driver - 1.0.15.pre1

No Changes. With iommu switched off there are less frequent hangs but there still are :-(. dmesg shows:

WARNING: at drivers/gpu/drm/i915/i915_drv.c:354 gen6_gt_force_wake_get+0x1f/0x3c [i915]()
Hardware name: 4236NGG
Modules linked in: snd_hda_codec_conexant fbcon font bitblit softcursor i915 thinkpad_acpi nvram drm_kms_helper drm fb fbdev cfbcopyarea video iwlagn backlight cfbimgblt cfbfillrect e1000e snd_hda_intel snd_hda_codec intel_agp intel_gtt agpgart
Pid: 0, comm: swapper Not tainted 3.1.0-rc4+ #1
Call Trace:
 <IRQ>  [<ffffffff8102fcf2>] ? warn_slowpath_common+0x78/0x8c
 [<ffffffffa0113fd9>] ? i915_vblank_swap+0x6/0x6 [i915]
 [<ffffffffa010c484>] ? gen6_gt_force_wake_get+0x1f/0x3c [i915]
 [<ffffffffa01140e2>] ? i915_hangcheck_elapsed+0x109/0x29a [i915]
 [<ffffffffa0113fd9>] ? i915_vblank_swap+0x6/0x6 [i915]
 [<ffffffff81039799>] ? run_timer_softirq+0x195/0x222
 [<ffffffff8103466f>] ? __do_softirq+0x7f/0x106
 [<ffffffff813b4f2c>] ? call_softirq+0x1c/0x30
 [<ffffffff81003396>] ? do_softirq+0x31/0x67
 [<ffffffff810348a0>] ? irq_exit+0x44/0xa5
 [<ffffffff81015cdd>] ? smp_apic_timer_interrupt+0x85/0x95
 [<ffffffff813b468b>] ? apic_timer_interrupt+0x6b/0x70
 <EOI>  [<ffffffff811d5022>] ? intel_idle+0xcd/0xe9
 [<ffffffff811d4ffe>] ? intel_idle+0xa9/0xe9
 [<ffffffff812ae307>] ? cpuidle_idle_call+0xa0/0xdb
 [<ffffffff81000840>] ? cpu_idle+0x52/0x75
 [<ffffffff81677b60>] ? start_kernel+0x401/0x40c

In this special case the gpu was successfully reset and continued normally.

Any other ideas?

Regards
Dieter

-------- Original-Nachricht --------

Quoted 32 lines

Datum: Mon, 17 Oct 2011 22:46:32 +0200
Von: Daniel Vetter <daniel-/[email protected]>
An: Dieter Mummenschanz <[email protected]>
CC: Daniel Vetter <daniel-/[email protected]>, [email protected], [email protected]
Betreff: Re: [Intel-gfx] frequent x crashes with gen6/sna

Quoted 11 lines · Dieter Mummenschanz

ok now I got your patch from git and will give it a try asap. Meanwhile the intel_iommu=off (with rc6 enabled) switch seems to make the system somehow more stable. the gpu hangs don't appear that often but they still occur! strangely after the hang/resume, the OpenGL game crashes immediately with:

intel_do_flush_locked failed: Input/output error and raises the same error when I try to start it up again.

mplayer also bails out with:
mplayer: dri2_util.c:109: dri2GetRenderingBuffer: Assertion `buffers'

failed.

Quoted 5 lines

MPlayer interrupted by signal 6 in module: flip_page

I have to reboot in order to get mplayer / the game running.

I've never experienced that before. i915 error state attached.

Well, that usually means that the kernel couldn't reset the gpu after a hang. You should see a message to that effect in dmesg. -Daniel

Signature · 3 lines
Daniel Vetter
Mail: daniel-/[email protected]
Mobile: +41 (0)79 365 57 48
Signature · 2 lines
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
#5 lore raw
Quoted 25 lines · Dieter Mummenschanz

I've installed your libva patch:

libva: libva version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Intel i965 driver - 1.0.15.pre1

No Changes. With iommu switched off there are less frequent hangs but there still are :-(. dmesg shows:

WARNING: at drivers/gpu/drm/i915/i915_drv.c:354 gen6_gt_force_wake_get+0x1f/0x3c [i915]()
Hardware name: 4236NGG
Modules linked in: snd_hda_codec_conexant fbcon font bitblit softcursor i915 thinkpad_acpi nvram drm_kms_helper drm fb fbdev cfbcopyarea video iwlagn backlight cfbimgblt cfbfillrect e1000e snd_hda_intel snd_hda_codec intel_agp intel_gtt agpgart
Pid: 0, comm: swapper Not tainted 3.1.0-rc4+ #1
Call Trace:
 <IRQ>  [<ffffffff8102fcf2>] ? warn_slowpath_common+0x78/0x8c
 [<ffffffffa0113fd9>] ? i915_vblank_swap+0x6/0x6 [i915]
 [<ffffffffa010c484>] ? gen6_gt_force_wake_get+0x1f/0x3c [i915]
 [<ffffffffa01140e2>] ? i915_hangcheck_elapsed+0x109/0x29a [i915]
 [<ffffffffa0113fd9>] ? i915_vblank_swap+0x6/0x6 [i915]
 [<ffffffff81039799>] ? run_timer_softirq+0x195/0x222
 [<ffffffff8103466f>] ? __do_softirq+0x7f/0x106
 [<ffffffff813b4f2c>] ? call_softirq+0x1c/0x30
 [<ffffffff81003396>] ? do_softirq+0x31/0x67
Quoted 8 lines
 [<ffffffff810348a0>] ? irq_exit+0x44/0xa5
 [<ffffffff81015cdd>] ? smp_apic_timer_interrupt+0x85/0x95
 [<ffffffff813b468b>] ? apic_timer_interrupt+0x6b/0x70
 <EOI>  [<ffffffff811d5022>] ? intel_idle+0xcd/0xe9
 [<ffffffff811d4ffe>] ? intel_idle+0xa9/0xe9
 [<ffffffff812ae307>] ? cpuidle_idle_call+0xa0/0xdb
 [<ffffffff81000840>] ? cpu_idle+0x52/0x75
 [<ffffffff81677b60>] ? start_kernel+0x401/0x40c

We already know about this backtrace. It's a possible sideffect of a overloaded/dying gpu, but unrelated to the bug at hand.

Quoted 3 lines

In this special case the gpu was successfully reset and continued normally.

Any other ideas?

Not at the moment, unfortunately. Can you please report a bug against libva with a small summary of all the things we've already discussed here? Also please add a error_state with my patches applied. And don't forget to put me on cc and post the bug # here in this thread.

Yours, Daniel

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48
#6 lore raw
Quoted 9 lines · Daniel Vetter
Quoted 3 lines · Dieter Mummenschanz

In this special case the gpu was successfully reset and continued normally.

Any other ideas?

Not at the moment, unfortunately. Can you please report a bug against libva with a small summary of all the things we've already discussed here? Also please add a error_state with my patches applied. And don't forget to put me on cc and post the bug # here in this thread.

Any update on this? I've got other reports of libva related gpu hangs, but you seem to be the only one who can grab the error_state ...

Yours, Daniel

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48