Bug 35565 - [Arrandale] GPU Hang with libva
Summary: [Arrandale] GPU Hang with libva
Status: RESOLVED WORKSFORME
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium blocker
Assignee: haihao
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-22 13:31 UTC by ebsi4711
Modified: 2015-11-18 07:36 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
gpu dump (230.37 KB, application/x-gzip)
2011-03-22 13:33 UTC, ebsi4711
Details
gpu dump 1 (239.72 KB, application/x-gzip)
2011-03-22 13:33 UTC, ebsi4711
Details

Description ebsi4711 2011-03-22 13:31:28 UTC
Hi,

while my work on vaapi support for xine lib i face the following problem :

[drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
[drm:i915_do_wait_request] *ERROR* i915_do_wait_request returns -11 (awaiting 1833878 at 1833876, next 1833879)
[drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
[drm:i915_do_wait_request] *ERROR* i915_do_wait_request returns -11 (awaiting 1833879 at 1833876, next 1833880)

Software :
Archlinux x86:64, kernel 2.6.38. intel git driver, libdrm git, libva git.

Xinelib is using the included VAAPI support in ffmpeg for decoding. The output is done by my own VAAPI output plugin for xine.

Hardware :

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 18)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 18)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:19.0 Ethernet controller: Intel Corporation 82578DM Gigabit Network Connection (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
01:00.0 Multimedia video controller: Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder (rev 02)
02:00.0 Network controller: Ralink corp. RT2860
03:00.0 SATA controller: JMicron Technology Corp. JMB360 AHCI Controller (rev 02)

CPU : i3-540

The hang only apears on decode MPEG2 Videos, h264 seems so far to be fine.
Comment 1 ebsi4711 2011-03-22 13:33:17 UTC
Created attachment 44729 [details]
gpu dump
Comment 2 ebsi4711 2011-03-22 13:33:43 UTC
Created attachment 44730 [details]
gpu dump 1
Comment 3 haihao 2011-03-22 22:56:36 UTC
Can you reproduce this issue with all MPEG2 videos? Could you try other movie players such as mplayer vaapi(mplayer -vo vaapi -va vaapi url), VLC(vlc --ffmpeg-hw url) etc.?
Comment 4 ebsi4711 2011-03-24 01:25:08 UTC
I can't say if every MPEG2 stream crashes. At the moment i test with one local satelite Transponder where i discovered the problem. With that stream it crashes all the time. Aditional, the reproduction is not that easy. Sometimes i decode for 45 minutes till a crash, sometimes 5 minutes.
Comment 5 elupus 2012-01-06 05:03:18 UTC
I actually get very similar issues when i enable deinterlacing in xbmc using vaapi. Without deinterlacing it works fine.

Could this be the same thing? Perhaps xine enables deinterlacing at some point in that stream, and then it crashes?
Comment 6 Gwenole Beauchesne 2012-03-18 07:08:41 UTC
Could you please provide a sample? Patches are now available in libva-driver-intel master and v1.0-branch branches. FFmpeg/libAV patches were submitted this weekend. The FFmpeg part will be pushed next week.
Comment 7 haihao 2015-11-18 07:36:35 UTC
No response from user for a long time so closing as WORKSFORME, Feel free to reopen this bug if you still experience the 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.