Bug 59050 - [IVB] GPU hung with h.264 video and a resolution of 1920x816
Summary: [IVB] GPU hung with h.264 video and a resolution of 1920x816
Status: RESOLVED FIXED
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: haihao
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 10:19 UTC by Achim Frase
Modified: 2013-01-23 09:38 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
information that may help you identify the problem. (89.96 KB, text/plain)
2013-01-05 10:19 UTC, Achim Frase
Details
make sure VA Surface is ready before vaPutsurface() (359 bytes, patch)
2013-01-07 08:46 UTC, haihao
Details | Splinter Review
error_state after the gpu hung (2.14 MB, text/plain)
2013-01-07 18:12 UTC, Achim Frase
Details
enlarge the dmv buffer on ivb (1.30 KB, patch)
2013-01-18 08:31 UTC, haihao
Details | Splinter Review

Description Achim Frase 2013-01-05 10:19:28 UTC
Created attachment 72536 [details]
information that may help you identify the problem.

I am playing my videos/movies with xbmc and vaapi enabled.
At the beginning of the movie my gpu hangs after the first 1-2 frames.

I have attached some information about my system and the video that I used for testing.

I am not sure but it seems that it may have to do something with the resolution of the video. I have another video that produces also a gpu-hung with the same resolution.

The video plays just fine with software rendering (totem, vlc).
Comment 1 haihao 2013-01-07 08:46:24 UTC
Created attachment 72613 [details] [review]
make sure VA Surface is ready before vaPutsurface()

Does this patch work for you ?
Comment 2 Achim Frase 2013-01-07 18:05:57 UTC
The gpu is still hanging with this patch but it was a bit different.
I am going to attach the error state.

[ 2334.027257] [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung
[ 2334.027261] [drm] capturing error event; look for more information in /debug/dri/0/i915_error_state
[ 2334.029986] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
[ 2340.588495] [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung
[ 2340.588745] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
[ 2580.035935] [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung
[ 2580.036173] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
Comment 3 Achim Frase 2013-01-07 18:12:32 UTC
Created attachment 72644 [details]
error_state after the gpu hung
Comment 4 Achim Frase 2013-01-12 12:42:39 UTC
I hope this clip helps to debug the problem.

http://ubuntuone.com/4I7QrTGoreq1SK4oFHzKC7

Also I am not sure if I applied your patch properly.
Maybe you can give me some instruction on how to install vaapi from source.

Thanks!
Comment 5 haihao 2013-01-18 08:31:51 UTC
Created attachment 73236 [details] [review]
enlarge the dmv buffer on ivb

Could you have a try with this patch ?
Comment 6 Achim Frase 2013-01-18 16:57:16 UTC
I am sorry but it looks like there is no "src" directory or an file with the name "gen7_mfd.c" in my "libva-1.1.0.tar.bz2" source package.

Please give me some further explanation where to apply this patch. THX
Comment 7 itechatmxc 2013-01-21 11:24:13 UTC
(In reply to comment #5)
> Created attachment 73236 [details] [review] [review]
> enlarge the dmv buffer on ivb
> 
> Could you have a try with this patch ?

Hello,
I've applied both the patches for libva and libva-intel-driver.
Without patched driver I experienced the same issue(gpu-hung) with hardware VAAPI acceleration playing on XBMC and Openelec Frodo distribution from git. libva,libva-intel driver both from git as well.
The curious thing is that this bug affected only some h264 rips with the resolution 1920x816 or 1920x812. 

For the first time I patched only gen7_mfd.c and since that time it works like a charm.

 Thanks a lot haihao!

I also applied the second patch for libva but didn't noticed any change with playback.

My HW: Core i5 Ivybridge, 4GB RAM, 1GB assigned for the VGA
Comment 8 Achim Frase 2013-01-21 17:50:52 UTC
+haihao, as "itech@marexcom.cz" explained what he did I saw what I was missing.
I totally forgot about the vaapi-driver-intel-1.0.19 release.

So I applied the patch to the vaapi-driver and everything works as expected.
Thank you for taking your time.


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.