Bug 77041 - GPU hang during a mpeg2 video playback
Summary: GPU hang during a mpeg2 video playback
Status: RESOLVED FIXED
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: haihao
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-04 07:04 UTC by cm_1997
Modified: 2015-04-23 04:27 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description cm_1997 2014-04-04 07:04:45 UTC
during a mpeg2 video playback, GPU hang happen at exactly same frames.
there 8 hang frames of 1499 total frames in the clip.

divide the clip into 1 second long small pieces by ffmpeg with -c copy, just copy the stream, GPU hang happen on the pieces include hang frame.

software decode OK

1) reproduced on Fedora 18(kernel 3.8) + OTC driver on haswell, tried gstreamer vaapi-mplayer, and GPU hang even gstreamer fakesink used
2) cannot reproduce on SUSE(kernel 3.0) + intel media SDK on haswell, output yuv file OK
both kernels use i915 drm module, it seems more likely intel VA driver do something wrong

dump the headers of each frame, no special parameter or extra big frame.
dump batch buffer(not include reloc trees) and ring buffer, seems no overfolw

dmesg messages
[  421.443060] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
[  421.443071] [drm] capturing error event; look for more information in /debug/dri/0/i915_error_state
[  421.469452] [drm:i915_wait_request] *ERROR* i915_wait_request returns -11 (awaiting 128404 at 128398, next 128407)
[  541.189805] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
[  541.189870] [drm:i915_wait_request] *ERROR* i915_wait_request returns -11 (awaiting 175021 at 175015, next 175024)
[ 1896.540267] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
[ 1896.540309] [drm:i915_wait_request] *ERROR* i915_wait_request returns -11 (awaiting 427313 at 427308, next 427324)
[ 5782.218952] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
[ 5782.219024] [drm:i915_wait_request] *ERROR* i915_wait_request returns -11 (awaiting 885116 at 885111, next 885120)


may attach the video clip later
Comment 1 cm_1997 2014-04-09 01:10:42 UTC
sorry, I need to correct that I used IVB, not haswell.
Comment 2 Olivier Crête 2015-04-04 19:26:20 UTC
This never happens with gst-vaapi, could we find a way to let gst-vaapi tell the driver that is has already looked for the scan code, so we can save the useless lookup?
Comment 3 haihao 2015-04-23 04:27:27 UTC
The original issue has been fixed. Please file a bug to track your issue.


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.