Re: [Libva] [Intel-gfx] frequent x crashes with gen6/sna

2011-10-17 Thread Daniel Vetter
On Mon, Oct 17, 2011 at 10:20:09PM +0200, Dieter Mummenschanz wrote:
> 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.

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
-- 
Daniel Vetter
Mail: dan...@ffwll.ch
Mobile: +41 (0)79 365 57 48
___
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


Re: [Libva] [Intel-gfx] frequent x crashes with gen6/sna

2011-10-17 Thread Daniel Vetter
On Mon, Oct 17, 2011 at 06:01:56PM +0200, Dieter Mummenschanz wrote:
> 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: 
> 
> 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
>  * branchfor-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.
> 
> 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
-- 
Daniel Vetter
Mail: dan...@ffwll.ch
Mobile: +41 (0)79 365 57 48
___
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


Re: [Libva] [Intel-gfx] frequent x crashes with gen6/sna

2011-10-17 Thread 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: 

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
 * branchfor-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.

help! :-(

 Original-Nachricht 
> Datum: Mon, 17 Oct 2011 17:48:41 +0200
> Von: Daniel Vetter 
> An: Dieter Mummenschanz 
> CC: Daniel Vetter , libva@lists.freedesktop.org, 
> intel-...@lists.freedesktop.org
> Betreff: Re: [Intel-gfx] frequent x crashes with gen6/sna

> On Mon, Oct 17, 2011 at 05:13:02PM +0200, Dieter Mummenschanz wrote:
> > Hi Daniel,
> > 
> > something is odd with your git branch - or my git command:
> 
> It's a headless git repo with just branches. Go into your existing intel
> libva driver checkout, create a new branch and merge in my stuff with
> 
> git pull git://freedesktop.org/~danvet/libva-intel for-dieter
> 
> Cheers, Daniel
> 
> > git clone git://freedesktop.org/~danvet/libva-intel for-dieter
> > Cloning into for-dieter...
> > 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 | 266 KiB/s, done.
> > Resolving deltas: 100% (1174/1174), done.
> > warning: remote HEAD refers to nonexistent ref, unable to checkout

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


Re: [Libva] [Intel-gfx] frequent x crashes with gen6/sna

2011-10-17 Thread Daniel Vetter
On Mon, Oct 17, 2011 at 05:13:02PM +0200, Dieter Mummenschanz wrote:
> Hi Daniel,
> 
> something is odd with your git branch - or my git command:

It's a headless git repo with just branches. Go into your existing intel
libva driver checkout, create a new branch and merge in my stuff with

git pull git://freedesktop.org/~danvet/libva-intel for-dieter

Cheers, Daniel

> git clone git://freedesktop.org/~danvet/libva-intel for-dieter
> Cloning into for-dieter...
> 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 | 266 KiB/s, done.
> Resolving deltas: 100% (1174/1174), done.
> warning: remote HEAD refers to nonexistent ref, unable to checkout
___
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


Re: [Libva] [Intel-gfx] frequent x crashes with gen6/sna

2011-10-17 Thread Daniel Vetter
On Mon, Oct 17, 2011 at 03:54:03PM +0200, Dieter Mummenschanz wrote:
> Hi Daniel,
> 
> I believe I tried that already but I'll give it another shot. To avoid
> another screw up: Can I check in proc or sysfs to see, if iommu is
> really disabled? I also have pcie_aspm=force set as kernel parameter to
> save some watts but it does not seem to contribute to the gpu hangs.

If you disable it in the bios, there should be no IOMMU message left in
dmesg. Disabling it on the kernel cmdline leaves a few behind (they
announce that the bios supports dmar).

Meanwhile I've stitched together the patches for libva, can you try the
for-dieter branch at:

http://cgit.freedesktop.org/~danvet/libva-intel/

Also please ensure that you have the latest xf86-video-intel from git
master installed.

Thanks, Daniel

PS: Please don't cut out libva from the cc: list.
-- 
Daniel Vetter
Mail: dan...@ffwll.ch
Mobile: +41 (0)79 365 57 48
___
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


Re: [Libva] [Intel-gfx] frequent x crashes with gen6/sna

2011-10-17 Thread Daniel Vetter
On Mon, Oct 17, 2011 at 02:37:21PM +0200, Dieter Mummenschanz wrote:
> Hi Daniel,
> 
> no problem. dmesg.log attached. 
> To reproduce the hang: try to play two or more bluray streams at once
> and probably a hires wmv stream as well using mplayer-vaapi. also run a
> opengl game like Quake3 or prboom-plus
> (http://prboom-plus.sourceforge.net). You'll need an additional "pwad"
> file for prboom. PM me for that. With everything up and running, open a
> browser and do normal desktop work. That'll do it. Sometimes after a
> minute - sometimes after an hour. One more thing: I have a mobile
> i7-2620M chip, no additional gpu, running with cpufreq-tools on demand.
> The Notebook runs on AC Power all the time.
> 
> If I can help in any way (testing patches, etc), please let me know :-)

As I kinda expected, you're running with VT-d/DMAR switched on. That's
implicated in quite a few rc6/strange hang reports already. Can you check
what happens when you turn that off, either in the bios or with

intel_iommu=off

on the kernel cmdline?

Thanks, Daniel
-- 
Daniel Vetter
Mail: dan...@ffwll.ch
Mobile: +41 (0)79 365 57 48
___
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


Re: [Libva] [Intel-gfx] frequent x crashes with gen6/sna

2011-10-17 Thread Gwenole Beauchesne
Hi,

2011/10/17 Daniel Vetter :
> On Mon, Oct 17, 2011 at 01:45:28PM +0200, Dieter Mummenschanz wrote:

[...]
>> show random pixel depthbuffer errors. Is this a known issue?  Regarding
>> the video streams causing the gpu hang, those are unfortunately
>> copyrighted material (i.e. Star Wars Bluray for example). The best way
>> is to play multiple hi bitrate-streams with different formats
>> simultaneously and run a free OpenGL game like prboom-plus. I'll do some
>> seaching on the web for free test streams to reproduce the hang.
>
> Oh, I don't want you to publish them, just check whether it's a specific
> one or more random. And maybe it helps in reproducing.

Could you please try with the Big Buck's Bunny clip for example?


Thanks,
Gwenole.
___
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


Re: [Libva] [Intel-gfx] frequent x crashes with gen6/sna

2011-10-17 Thread Daniel Vetter
On Mon, Oct 17, 2011 at 01:58:03PM +0200, Daniel Vetter wrote:
> On Mon, Oct 17, 2011 at 01:45:28PM +0200, Dieter Mummenschanz wrote:
> > Hi Daniel,
> > 
> > first of all I've seemed to screwed up my rc6 kernel parameters causing
> > rc6 to be enabled in all my previous tests even though I thought it was
> > disbaled. Sorry for that! Some new tests with i915_enable_rc6 definately
> > being disabled didn't raise any gpu hangs no matter what I did! So rc6
> > related clock changes might have something to do with the hangs/stalls.
> > With rc6 being disabled, some opengl games, like prboom-plus however
> > show random pixel depthbuffer errors. Is this a known issue?  Regarding
> > the video streams causing the gpu hang, those are unfortunately
> > copyrighted material (i.e. Star Wars Bluray for example). The best way
> > is to play multiple hi bitrate-streams with different formats
> > simultaneously and run a free OpenGL game like prboom-plus. I'll do some
> > seaching on the web for free test streams to reproduce the hang. 
> 
> Oh, I don't want you to publish them, just check whether it's a specific
> one or more random. And maybe it helps in reproducing.
> 
> > vainfo (latest git) shows:
> > 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: i965 Driver 0.1
> > 
> > the player is the latest mplayer hwaccel-vaapi branch (latest git)
> > http://gitorious.org/vaapi/mplayer/commits/hwaccel-vaapi
> > console command is mplayer -vo vaapi -va vaapi stream.mkv
> > 
> > Is there any way to monitor rc6 state change, i.e. gpu/ring clock speed?
> > Maybe this helps to track down issues caused by rc6 state changes?
> 
> Ok, with have a new rc6 bug :( I think we'll attack the libva hang first,
> I have an idea for a patch.
> 
> > Anyway sorry again for the rc6 confusion.

Meh, hit send too early. No problem about the confusion, now that it's
cleared up. Can you also attach the full dmesg while I hack together a
patch for libva?

Yours, Daniel
-- 
Daniel Vetter
Mail: dan...@ffwll.ch
Mobile: +41 (0)79 365 57 48
___
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


Re: [Libva] [Intel-gfx] frequent x crashes with gen6/sna

2011-10-17 Thread Daniel Vetter
On Mon, Oct 17, 2011 at 01:45:28PM +0200, Dieter Mummenschanz wrote:
> Hi Daniel,
> 
> first of all I've seemed to screwed up my rc6 kernel parameters causing
> rc6 to be enabled in all my previous tests even though I thought it was
> disbaled. Sorry for that! Some new tests with i915_enable_rc6 definately
> being disabled didn't raise any gpu hangs no matter what I did! So rc6
> related clock changes might have something to do with the hangs/stalls.
> With rc6 being disabled, some opengl games, like prboom-plus however
> show random pixel depthbuffer errors. Is this a known issue?  Regarding
> the video streams causing the gpu hang, those are unfortunately
> copyrighted material (i.e. Star Wars Bluray for example). The best way
> is to play multiple hi bitrate-streams with different formats
> simultaneously and run a free OpenGL game like prboom-plus. I'll do some
> seaching on the web for free test streams to reproduce the hang. 

Oh, I don't want you to publish them, just check whether it's a specific
one or more random. And maybe it helps in reproducing.

> vainfo (latest git) shows:
> 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: i965 Driver 0.1
> 
> the player is the latest mplayer hwaccel-vaapi branch (latest git)
> http://gitorious.org/vaapi/mplayer/commits/hwaccel-vaapi
> console command is mplayer -vo vaapi -va vaapi stream.mkv
> 
> Is there any way to monitor rc6 state change, i.e. gpu/ring clock speed?
> Maybe this helps to track down issues caused by rc6 state changes?

Ok, with have a new rc6 bug :( I think we'll attack the libva hang first,
I have an idea for a patch.

> Anyway sorry again for the rc6 confusion.
> 
> Regards,
> Dieter
-- 
Daniel Vetter
Mail: dan...@ffwll.ch
Mobile: +41 (0)79 365 57 48
___
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva