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).
Created attachment 72613 [details] [review] make sure VA Surface is ready before vaPutsurface() Does this patch work for you ?
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
Created attachment 72644 [details] error_state after the gpu hung
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!
Created attachment 73236 [details] [review] enlarge the dmv buffer on ivb Could you have a try with this patch ?
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
(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
+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.