[sandybridge-gt2] GPU lockup using xvmc (Render IPEHR: 0x02000004)

Bug #766408 reported by Fred Flinnstone
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xf86-video-intel
Won't Fix
High
linux (Ubuntu)
Invalid
Medium
Unassigned
xserver-xorg-video-intel (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

I've started vdr-sxfe with video driver xvmc. After first start the screen gone on and off a couple of times, after half a minute crash. After second start the pc locked up, only hard reset helped.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: xserver-xorg-video-intel 2:2.14.0-4ubuntu7
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Chipset: sandybridge-gt2
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
DRM.card0.DP.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.DP.2:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.DP.3:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.HDMI.A.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.HDMI.A.2:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.HDMI.A.3:
 status: connected
 enabled: enabled
 dpms: On
 modes: 1920x1080 1280x1024 1280x720 1024x768 800x600 640x480
 edid-base64: AP///////wBN2QFcAQEBAQESAQOAoFp4Cg3JoFdHmCcSSEwhCACBgAEBAQEBAQEBAQEBAQEBAjqAGHE4LUBYLEUAQIRjAAAeAR0AclHQHiBuKFUAQIRjAAAeAAAA/ABTT05ZIFRWIFhWCiAgAAAA/QAwPg5GDwAKICAgICAgAeQCAytwUB8QFAUTBBIRFhUDAgcGASAjCQcHgwEAAGYDDAAwAIDjBQMB4gA5AjqA0HI4LUAQLEWAQIRjAAAeAR0AvFLQHiC4KFVAQIRjAAAeAR2AGHEcFiBYLCUAQIRjAACeAR2A0HIcFiAQLCWAQIRjAACeAAAAAAAAAAAAAAAAqg==
DRM.card0.VGA.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
Date: Tue Apr 19 19:35:47 2011
DistUpgraded: Log time: 2011-04-16 16:36:13.524659
DistroCodename: natty
DistroVariant: ubuntu
ExecutablePath: /usr/share/apport/apport-gpu-error-intel.py
GraphicsCard:
 Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0112] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Giga-byte Technology Device [1458:d000]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110413)
IntelGpuDump: Error: command ['intel_gpu_dump'] failed with exit code 1: Couldn't map MMIO region: No such file or directory
InterpreterPath: /usr/bin/python2.7
MachineType: Gigabyte Technology Co., Ltd. H67A-UD3H-B3
ProcCmdline: /usr/bin/python /usr/share/apport/apport-gpu-error-intel.py
ProcEnviron:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=c7658c2a-257e-4c97-888e-d8e869de86e8 ro quiet splash vt.handoff=7
ProcKernelCmdLine_: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=c7658c2a-257e-4c97-888e-d8e869de86e8 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 xserver-xorg 1:7.6+4ubuntu3
 libdrm2 2.4.23-1ubuntu6
 xserver-xorg-video-intel 2:2.14.0-4ubuntu7
Renderer: Unknown
SourcePackage: xserver-xorg-video-intel
Title: [sandybridge-gt2] GPU lockup
UpgradeStatus: Upgraded to natty on 2011-04-16 (3 days ago)
UserGroups:

dmi.bios.date: 02/11/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F1
dmi.board.name: H67A-UD3H-B3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF1:bd02/11/2011:svnGigabyteTechnologyCo.,Ltd.:pnH67A-UD3H-B3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnH67A-UD3H-B3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: H67A-UD3H-B3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
version.compiz: compiz 1:0.9.4+bzr20110415-0ubuntu1
version.ia32-libs: ia32-libs 20090808ubuntu12
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu1
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu7
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0100] (rev 09)
     Capabilities: [88] Subsystem: Giga-byte Technology Device [1458:5000]
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0112] (rev 09) (prog-if 00 [VGA controller])
     Subsystem: Giga-byte Technology Device [1458:d000]

Revision history for this message
In , Xunx-fang (xunx-fang) wrote :

Created attachment 28138
Xorg log

System Environment:
--------------------------
Host: x-915gm
Arch: i386
Libdrm: (master)30449829c0347dc7dbe29acb13e49e2f2cb72ae9
Mesa: (master)506bacb8e40b0a170a4b620113506925d2333735
Xserver: (master)b1c3dc6ae226db178420e3b5f297b94afc87c94c
Xf86_video_intel: (master)50e2a6734de43a135aa91cd6e6fb5147e15ce315
Kernel: (drm-intel-next)2a2430f4542467502d39660bfd66b0004fd8d6a9

Bug detailed description:
-------------------------
Mplayer can not play mpeg2 video using XvMC.

Reproduce steps
----------------
1. enable "XVideo" and"XvMC" in /etc/X11/xorg.conf
2. mplayer -vo xvmc –vc ffmpeg12mc dvd.mpeg

Revision history for this message
In , Haihao-xiang (haihao-xiang) wrote :

It is a known issue under KMS.

Revision history for this message
In , Haihao-xiang (haihao-xiang) wrote :

won't support xvmc on 915 under KMS

Revision history for this message
Fred Flinnstone (flinnstone-fred) wrote :
Bryce Harrington (bryce)
summary: - [sandybridge-gt2] GPU lockup
+ [sandybridge-gt2] GPU lockup (Render IPEHR: 0x02000004)
Revision history for this message
Bryce Harrington (bryce) wrote : Re: [sandybridge-gt2] GPU lockup (Render IPEHR: 0x02000004)

Hi, can you elaborate a bit on how you're encountering the bug? Your description is a bit short on details... Have you had other instances of GPU freezes on natty or just this one time? Is this a fresh install or have you run previous versions of Ubuntu on this hardware? If so, did you have freezes like this on maverick? Are you able to reproducibly or semi-reproducibly cause the freeze to occur? If you can make it occur reliably, try booting Classic Desktop (No Effects) and see if you can make it occur there as well.

Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Incomplete
Revision history for this message
Fred Flinnstone (flinnstone-fred) wrote :

Hi,
i am currently removing every PPA's from the system and see, if I can reproduce it. It was a fresh install of natty on this system.
My hardware is a Gigabyte GA-H67A-UD3H-B3 with i5 2500K CPU 8 GB RAM (512 assigned to on-board graphics) 2TB HDD.
Have to compile some packages from sources, since the vdr-plugins are incompatible with the VDR version in natty (bug #762558).
I need an hour, I'll be back ;)

Revision history for this message
Fred Flinnstone (flinnstone-fred) wrote :

It was a bit complicated, but finished somehow... No change in behavior. The output of vdr-sxfe and syslog are attached.
I'm using the classic desktop, but i can't find anymore the setting to activate/deactivate the effects???
I'm becoming sporadically following entries *without* running vdr-sxfe:

Apr 21 16:52:19 Supernova kernel: [ 670.372831] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt ring idle [waiting on 265235, at 265235], missed IRQ?
Apr 21 16:52:50 Supernova kernel: [ 701.102505] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt ring idle [waiting on 295130, at 295130], missed IRQ?

but apparently these errors doesn't have any effects and are not reproducible (yet)... If you need further information, let me know. Thanks!

Bryce Harrington (bryce)
summary: - [sandybridge-gt2] GPU lockup (Render IPEHR: 0x02000004)
+ [sandybridge-gt2] GPU lockup using xvmc (Render IPEHR: 0x02000004)
Revision history for this message
Bryce Harrington (bryce) wrote :

They removed that page from the appearance dialog :-/ however from the login screen you can select "Classic Desktop (No Effects)".

Those hangcheck timer elapsed errors are generic error messages indicating the gpu has hung in some fashion. Sometimes it is able to recover, in which case you won't see any noticeable effect.

What I'm wondering is if you have a video driver contesting the gpu with i915 (a common issue it seems).

I think this bug report probably should go upstream. But one thing to test, try disabling the i915 driver when you start things up (pass the kernel the option i915.disable=1).

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Fred Flinnstone (flinnstone-fred) wrote :
Download full text (3.4 KiB)

Without effects no lockups, but also no video output. Disabling i915 brings a desktop with 1280x1024, can't set 720p resolution and still no video output. Dmesg attached.

vdr-sxfe -V xvmc
vdr-sxfe 1.0.90-cvs (build with xine-lib 1.1.90, using xine-lib 1.1.90)

Video driver: xvmc

VDR server not given, searching ...
---------------------------------------------------------------
WARNING: MRL not given and server not found from local network.
         Trying to connect to default port on local host.
---------------------------------------------------------------
[3146] [scrnsaver] GNOME screensaver disabled
[3146] [vdr-fe] Detected 4 CPUs
[3146] [vdr-fe] Enabling FFmpeg multithreaded video decoding
[3146] [input_vdr] Connecting (control) to tcp://127.0.0.1:37890 ...
[3146] [input_vdr] Server greeting: VDR-1.7.18 xineliboutput-1.0.90-cvs READY
[3146] [input_vdr] Connected (control) to tcp://127.0.0.1:37890
[3146] [input_vdr] Connecting (data) to pipe:///var/lib/vdr/plugins/xineliboutput/pipes.1292/pipe.0
[3146] [input_vdr] Data stream connected (PIPE)
[3146] [input_vdr] WARNING: xine-engine setting "engine.buffers.audio_num_buffers":230 istoo low for HD-playback! Please use values between 500-1000!
[3146] [input_vdr] WARNING: Video output driver reports it does not support unscaled overlays !
[3146] [demux_vdr] Using decoder "FFmpeg" for mpeg2 video
[3146] [demux_vdr] Using decoder "FFmpeg" for H.264 video
abort: video_out_xvmc.c:763: xvmc_update_frame_format: Aborting.
Abgebrochen

Syslog:

Apr 22 08:34:23 Supernova vdr: [1511] [xine..put] Client 0 connected: 127.0.0.1:47657
Apr 22 08:34:23 Supernova vdr: [1511] loading /var/lib/vdr/plugins/xineliboutput/allowed_hosts.conf
Apr 22 08:34:23 Supernova vdr: [1511] [xine..put] cxSocket: setsockopt(SO_SNDBUF): got 262142 bytes
Apr 22 08:34:23 Supernova vdr: [1511] [xine..put] Trying PIPE connection ...
Apr 22 08:34:23 Supernova vdr: [1511] creating directory /var/lib/vdr/plugins/xineliboutput/pipes.1292
Apr 22 08:34:23 Supernova vdr: [1511] removing /var/lib/vdr/plugins/xineliboutput/pipes.1292
Apr 22 08:34:23 Supernova vdr: [1511] [xine..put] cBackgroundWriterI initialized (buffer 512 kb)
Apr 22 08:34:23 Supernova vdr: [1511] [xine..put] cTcpWriter initialized (buffer 512 kb)
Apr 22 08:34:23 Supernova vdr: [1511] [xine..put] Pipe open
Apr 22 08:34:23 Supernova vdr: [1511] [xine..put] Client connection 0 closed
Apr 22 08:34:23 Supernova vdr: [1511] [xine..put] Closing connection 0

With kernel option

vdr-sxfe -V xvmc
vdr-sxfe 1.0.90-cvs (build with xine-lib 1.1.90, using xine-lib 1.1.90)

Video driver: xvmc

VDR server not given, searching ...
---------------------------------------------------------------
WARNING: MRL not given and server not found from local network.
         Trying to connect to default port on local host.
---------------------------------------------------------------
[2102] [scrnsaver] GNOME screensaver disabled
[2102] [vdr-fe] fe_xine_init: xine_open_video_driver("xvmc") failed
Error initializing xine
Available video drivers: vdpau aadxr3 dxr3 xv raw opengl xshm aa caca none xxmc sdl fb xvmc
Available audio drivers: pulseaudio alsa oss jack esd none file
[2102...

Read more...

Revision history for this message
Bryce Harrington (bryce) wrote :

Hmm, bummer that didn't turn up anything useful. Well, one other possible thing to try. There's another hangtimer check failed bug for this hardware, bug #761065, which has a fix identified. Try booting this kernel:

http://people.canonical.com/~acelan/bugs/lp753189/

If that doesn't fix it, then try this kernel:

http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-next-proposed/

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Fred Flinnstone (flinnstone-fred) wrote :

Hi,

I'm a bit afraid of exchanging the kernel, 'cause I'm not a pro... If the system does not boot anymore, I can't get it fixed :( I know, it is possible to install and boot different versions of the kernel, but I forgot how to bind them into the grub-menu (I don't even have a boot menu at all this time). If you can help me out, I would happily try those new kernels. Many thanx in advance.

Revision history for this message
Fred Flinnstone (flinnstone-fred) wrote :

While watching tv with vdr-sxfe and xv video driver, I've got following entries in syslog:

Apr 27 20:51:47 Supernova kernel: [ 912.313745] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt ring idle [waiting on 448397, at 448397], missed IRQ?
Apr 27 20:52:10 Supernova kernel: [ 934.542892] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt ring idle [waiting on 457347, at 457347], missed IRQ?
Apr 27 20:54:55 Supernova kernel: [ 1099.236105] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt ring idle [waiting on 554961, at 554961], missed IRQ?

Shouldn't be it for example "waiting on 448398, at 448397"? Or what are those numbers? Just an idea... Multithreading problem with 4 cores? Uncle Jim Beam out... ;)

bugbot (bugbot)
description: updated
Revision history for this message
Fred Flinnstone (flinnstone-fred) wrote :

Perhaps I found something:
https://bugs.freedesktop.org/show_bug.cgi?id=23012
It doesn't looks good... But now I'm trying the latest Intel drivers and vaapi.

Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Confirmed
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

Hey flinnstone-fred,

You filed this bug report against natty, but I see it's still open and
doesn't appear to have much activity recently. So, now that oneiric
is released and stable, this may be a good point for you to upgrade
and re-test if this issue is still present there.

If it's solved in the new release and you think it's worth backporting
the fix, please indicate that. Or if having the fix in the new release
is good enough, feel free to close out the bug (or let us know and we'll
close it.)

If it's not solved, leave the bug report open. I can't promise we'll
get to it (we get way more bugs filed than we can usually get to), but
your testing and feedback can help out if and when we do.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
penalvch (penalvch) wrote :

Fred Flinnstone, thank you for reporting this and helping make Ubuntu better. Maverick reached EOL on April 10, 2012.
Please see this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We were wondering if this is still an issue in a supported release? If so, could you please test for this with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the kernel in the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested and remove the tag:
needs-upstream-testing

This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the text:
needs-upstream-testing

If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested.

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested.

If you are unable to test the mainline kernel, please comment as to why specifically you were unable to test it and add the following tags:
kernel-unable-to-test-upstream
kernel-unable-to-test-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested.

Please let us know your results. Thank you for your understanding.

Helpful Bug Reporting Tips:
https://help.ubuntu.com/community/ReportingBugs

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Chris Wilson (ickle) wrote :

The SNB xvmc support never was and should not have claimed to exist...

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Fix Released
Changed in linux (Ubuntu):
status: Incomplete → Invalid
Changed in xserver-xorg-video-intel:
importance: Unknown → High
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.