[i915] DRM_I915_ENTERVT failed (SIGSEGV) (UXA bug)

Bug #363305 reported by Teudimundo
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xf86-video-intel
Fix Released
Critical
linux (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

a G45 on 64 bit Jaunty. Using EXA it complained about not being able to allocate memory.
I tried using UXA and i got a Segmentation fault with the following error and backtrace:
Fatal server error:
DRM_I915_ENTERVT failed: Unknown error 18446744073709551604

Backtrace:
0: /usr/X11R6/bin/X(xorg_backtrace+0x26) [0x4f1b66]
1: /usr/X11R6/bin/X(xf86SigHandler+0x41) [0x485a61]
2: /lib/libc.so.6 [0x7f4f7e190040]
3: /usr/lib/xorg/modules/drivers//intel_drv.so(I830EmitFlush+0x8f) [0x7f4f7c3ca0cf]
4: /usr/lib/xorg/modules/drivers//intel_drv.so(I830Sync+0x54) [0x7f4f7c3ca4c4]
5: /usr/lib/xorg/modules/drivers//intel_drv.so [0x7f4f7c3d78aa]
6: /usr/X11R6/bin/X(SigAbortDDX+0x8d) [0x46d71d]
7: /usr/X11R6/bin/X(AbortServer+0x1d) [0x4fb33d]
8: /usr/X11R6/bin/X(LogVMessageVerb+0) [0x4fba30]
9: /usr/lib/xorg/modules/drivers//intel_drv.so [0x7f4f7c3d8622]
10: /usr/lib/xorg/modules/drivers//intel_drv.so [0x7f4f7c3d9c4c]
11: /usr/X11R6/bin/X(AddScreen+0x1c6) [0x4334c6]
12: /usr/X11R6/bin/X(InitOutput+0x241) [0x46ee21]
13: /usr/X11R6/bin/X(main+0x20e) [0x433bde]
14: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f4f7e17b5a6]
15: /usr/X11R6/bin/X [0x433219]
Saw signal 11. Server aborting.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: xserver-xorg-video-intel 2:2.6.3-0ubuntu9
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersion: Linux version 2.6.28-11-generic (buildd@crested) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009
SourcePackage: xserver-xorg-video-intel
Uname: Linux 2.6.28-11-generic x86_64
Xrandr:

glxinfo:

setxkbmap:

xdpyinfo:

xkbcomp:

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation 4 Series Chipset DRAM Controller [8086:2e20] (rev 03)
     Subsystem: ASRock Incorporation Device [1849:2e20]
00:02.0 VGA compatible controller [0300]: Intel Corporation 4 Series Chipset Integrated Graphics Controller [8086:2e22] (rev 03)
     Subsystem: ASRock Incorporation Device [1849:2e22]

Revision history for this message
Teudimundo (tommaso-ctrl-z-bg) wrote :
Bryce Harrington (bryce)
tags: added: crash
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Confirmed
Bryce Harrington (bryce)
description: updated
Bryce Harrington (bryce)
summary: - DRM_I915_ENTERVT failed (SIGSEGV)
+ [i915] DRM_I915_ENTERVT failed (SIGSEGV)
Bryce Harrington (bryce)
summary: - [i915] DRM_I915_ENTERVT failed (SIGSEGV)
+ [i915] DRM_I915_ENTERVT failed (SIGSEGV) (UXA bug)
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel (Ubuntu):
importance: Undecided → High
Revision history for this message
Bryce Harrington (bryce) wrote :

For Karmic we're making UXA bugs like these a top priority, so I would like to forward this one upstream. First though, we need to verify the issue still exists with the latest upstream release. Would you please install and test the 2.7.0 driver and reproduce the bug, and let us know ASAP? A PPA with a Jaunty version of this driver is available at: https://edge.launchpad.net/~ubuntu-x-swat/+archive/x-updates/

Changed in xserver-xorg-video-intel (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Teudimundo (tommaso-ctrl-z-bg) wrote :

I tried with the 2.7.0 and the result is the same..
I attach the Xorg log file.
Is this bug going to be fixed in Jaunty? Because I cannot use EXA as well, in that case I have to report a new bug for it
and hope that at least that one is going to be fixed otherwise it means I have to work with the VESA driver and this is very annoying.

Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
In , Bryce Harrington (bryce) wrote :

Forwarding this bug from a ubuntu reporter:
https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/363305

[Problem]
With UXA enabled, a segfault occurs with this error:
DRM_I915_ENTERVT failed: Unknown error 18446744073709551604

Issue is seen in both 2.6.3 and 2.7.0 (from x-updates).

 distro: Ubuntu
 architecture: x86_64
 kernel: 2.6.28-11-generic
 xserver-xorg: 1:7.4~5ubuntu18
 mesa: 7.4-0ubuntu2
 libdrm: 2.4.5-0ubuntu4
 -intel: 2:2.6.3-0ubuntu9
 -ati: 1:6.12.1-0ubuntu2
 ProcVersion: Linux version 2.6.28-11-generic (buildd@crested) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation 4 Series Chipset DRAM Controller [8086:2e20] (rev 03)
     Subsystem: ASRock Incorporation Device [1849:2e20]
00:02.0 VGA compatible controller [0300]: Intel Corporation 4 Series Chipset Integrated Graphics Controller [8086:2e22] (rev 03)
     Subsystem: ASRock Incorporation Device [1849:2e22]

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

Created an attachment (id=25493)
Xorg.0.log

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

Created an attachment (id=25494)
XorgConf.txt

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

Backtrace:
0: /usr/X11R6/bin/X(xorg_backtrace+0x26) [0x4f1b66]
1: /usr/X11R6/bin/X(xf86SigHandler+0x41) [0x485a61]
2: /lib/libc.so.6 [0x7f4f7e190040]
3: /usr/lib/xorg/modules/drivers//intel_drv.so(I830EmitFlush+0x8f) [0x7f4f7c3ca0cf]
4: /usr/lib/xorg/modules/drivers//intel_drv.so(I830Sync+0x54) [0x7f4f7c3ca4c4]
5: /usr/lib/xorg/modules/drivers//intel_drv.so [0x7f4f7c3d78aa]
6: /usr/X11R6/bin/X(SigAbortDDX+0x8d) [0x46d71d]
7: /usr/X11R6/bin/X(AbortServer+0x1d) [0x4fb33d]
8: /usr/X11R6/bin/X(LogVMessageVerb+0) [0x4fba30]
9: /usr/lib/xorg/modules/drivers//intel_drv.so [0x7f4f7c3d8622]
10: /usr/lib/xorg/modules/drivers//intel_drv.so [0x7f4f7c3d9c4c]
11: /usr/X11R6/bin/X(AddScreen+0x1c6) [0x4334c6]
12: /usr/X11R6/bin/X(InitOutput+0x241) [0x46ee21]
13: /usr/X11R6/bin/X(main+0x20e) [0x433bde]
14: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f4f7e17b5a6]
15: /usr/X11R6/bin/X [0x433219]
Saw signal 11. Server aborting.

Revision history for this message
In , Gordon Jin (gordon-jin) wrote :

what's the reproducible step? Could you attach dmesg as well?

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

Hi Teudi,
I've forwarded your issue upstream to https://bugs.freedesktop.org/show_bug.cgi?id=21574 - please subscribe to that bug in case upstream needs further information or wishes you to test something.

Btw, in case upstream needs you to test an even newer version of the driver, check at https://edge.launchpad.net/~xorg-edgers/+archive/ppa for available git snapshots.

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

Oh also, if you can reproduce the issue please collect a full backtrace, as this will provide additional details helpful in narrowing down the cause of the problem. For guidance please see http://wiki.ubuntu.com/X. Thanks ahead of time.

Changed in xserver-xorg-video-intel:
status: Unknown → Confirmed
Revision history for this message
In , Teudimundo (tommaso-ctrl-z-bg) wrote :

Using intel driver with uxa is enough to reproduce the bug.

I will attach the dmesg output as well.

Revision history for this message
In , Teudimundo (tommaso-ctrl-z-bg) wrote :

Created an attachment (id=25532)
dmesg

This is the dmesg I found in /var/log I could not run the dmesg command after the problem because I get a blank screen, the monitor goes in stand by mode and I have to reset from hardware to reboot.

Revision history for this message
In , Gordon Jin (gordon-jin) wrote :

(In reply to comment #5)
> Using intel driver with uxa is enough to reproduce the bug.

Do you mean this happens immediately after X started, not requiring any other operations?

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Adjusting severity: crashes & hangs should be marked critical.

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

Tommaso, that dmesg doesn't have correct info for your card. You should be able to run dmesg after sshing into your machine. If you can't ssh into it, you could try switching to vt2, running "sleep 15 ; dmesg > dmesg.txt" or something, and switching back to vt1 to get it.

Fwiw, the error being returned seems to be an "out of memory" error, but that's sort of strange to happen at boot.

Revision history for this message
In , Jarek-kubos (jarek-kubos) wrote :

I have same issue, my dmesg says:

[103629.818053] [drm] Initialized drm 1.1.0 20060810
[103629.901954] pci 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[103629.901963] pci 0000:00:02.0: setting latency timer to 64
[103629.928071] mtrr: type mismatch for d0000000,10000000 old: write-back new: write-combining
[103629.928077] [drm] MTRR allocation failed. Graphics performance may suffer.
[103629.928105] alloc irq_desc for 27 on cpu 0 node 0
[103629.928110] alloc kstat_irqs on cpu 0 node 0
[103629.928126] pci 0000:00:02.0: irq 27 for MSI/MSI-X
[103629.928158] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[103630.213560] [drm:i915_gem_object_bind_to_gtt] *ERROR* GTT full, but LRU list empty
[103630.213567] [drm:i915_gem_object_pin] *ERROR* Failure to bind: -12

Revision history for this message
In , Llibman (llibman) wrote :

Created an attachment (id=26785)
Xorg.0.log immediately after crash

Revision history for this message
In , Llibman (llibman) wrote :

Created an attachment (id=26786)
kern.log immediately after crash (clean reboot)

Revision history for this message
In , Llibman (llibman) wrote :

Created an attachment (id=26787)
lspci -v output

Revision history for this message
In , Llibman (llibman) wrote :

Just a "me too" with a couple of additional observations
(see my log files and "lspci -v" output attached above):

- All of us reporting this bug seem to share the ASRock Incorporation Device 2e20, 2e22 (apparently the ASRock G43Twins-FullHD board). I've searched long and hard for any reports of the same crash on other hardware, but couldn't find any.

- The crash has been absolutely 100% consistent on UXA since driver 2.6 (Ubuntu Jaunty, and I've been applying every driver and kernel update from xorg-edgers since).

- The system worked fine under Intrepid (Ubuntu 8.10, driver 2.4+kernel 2.6.27) or with 2.6 or 2.7 driver with 2.6.27 kernel (no GEM).

- If this helps, on any kernel >=2.6.28 I tried, driver 2.6 or 2.7 using EXA causes a "failed to initialize kernel memory manager" (see the report in https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/380986, with the same hardware), and, again, this is 100% consistent.

All in all, looks like some sort of memory allocation/management issue with this particular chipset.
Will be glad to provide any further information / try any suggestions.

Revision history for this message
In , Papirhajo (papirhajo) wrote :

Same crash by me too immediately after X started.
I have an ASROCK G41M-LE motherboard with integrated Intel G41 X4500 (8086:2e32 windows7 based OS shows 8086:2e33) gma.

Tested kernels: 2.6.26 i386 and 2.6.30 i386 and amd64
Tested drivers: 2.3.2, 2.7.1, 2.7.99.901-2
Tested distro: Ubuntu9.04, Ubuntu 9.10, Debian 5.0

The Xorg.0.log result is (@amd64):
Fatal server error:
DRM_I915_ENTERVT failed: Unknown error 18446744073709551604

The Xorg.0.log result is (@i386):
Fatal server error:
DRM_I915_ENTERVT failed: Unknown error 4294967284

[lspci -v]
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
 Subsystem: ASRock Incorporation Device 2e30
 Flags: bus master, fast devsel, latency 0
 Capabilities: [e0] Vendor Specific Information <?>
 Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
 Subsystem: ASRock Incorporation Device 2e32
 Flags: bus master, fast devsel, latency 0, IRQ 27
 Memory at fe400000 (64-bit, non-prefetchable) [size=4M]
 Memory at d0000000 (64-bit, prefetchable) [size=256M]
 I/O ports at cc00 [size=8]
 Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
 Capabilities: [d0] Power Management version 2
 Capabilities: [a4] PCIe advanced features <?>

00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
 Subsystem: ASRock Incorporation Device 2e32
 Flags: bus master, fast devsel, latency 0
 Memory at fe900000 (64-bit, non-prefetchable) [size=1M]
 Capabilities: [d0] Power Management version 2

Revision history for this message
In , Jarek-kubos (jarek-kubos) wrote :

I have Gigabyte GA-EG41MF-S2H board

Revision history for this message
In , Svrmarty-gmx (svrmarty-gmx) wrote :

same here

Backtrace:
0: X(xorg_backtrace+0x38) [0x819baf8]

Fatal server error:
Caught signal 11. Server aborting

dmesg:
[drm] LVDS-8: set mode 1024x768 24
i2c-adapter i2c-1: unable to read EDID block.
i915 0000:00:02.0: LVDS-1: no EDID data
i2c-adapter i2c-1: sendbytes: NAK bailout.
i2c-adapter i2c-1: unable to read EDID block.
i915 0000:00:02.0: LVDS-1: no EDID data
[drm] DAC-6: set mode 800x600 3c
[drm] LVDS-8: set mode 800x600 3d

Revision history for this message
In , Papirhajo (papirhajo) wrote :

I think, this is not an UXA bug. The problem is not depend from AccelMethod(EXA,UXA).

I posted a new report with latest intel and drm driver(git). The error has not changed, G41 X4500 GMA is still useless on linux.

Xorg with Option "ModeDebug" "yes".

Revision history for this message
In , Papirhajo (papirhajo) wrote :

Created an attachment (id=27039)
Xorg.0.log

Revision history for this message
In , Papirhajo (papirhajo) wrote :

Created an attachment (id=27040)
xorg.conf

Revision history for this message
In , Papirhajo (papirhajo) wrote :

Created an attachment (id=27041)
lspci -v

Revision history for this message
In , Papirhajo (papirhajo) wrote :

Created an attachment (id=27042)
glxinfo

Revision history for this message
In , Papirhajo (papirhajo) wrote :

Created an attachment (id=27043)
dmesg

Revision history for this message
In , Papirhajo (papirhajo) wrote :

(My) Problem solved!

I set the Shared Memory size to 128MB in BIOS, and intel driver works!(compiz too)

When the Shared Memory set to 256MB intel driver crash at startup.
The Xorg.0.log result is (@amd64):
Fatal server error:
DRM_I915_ENTERVT failed: Unknown error 18446744073709551604

The Xorg.0.log result is (@i386):
Fatal server error:
DRM_I915_ENTERVT failed: Unknown error 4294967284

Revision history for this message
In , Eric Anholt (eric-anholt) wrote :
Revision history for this message
In , Eric Anholt (eric-anholt) wrote :

In the absence of any response, it's now queued:

commit 2a34f5e6b61c7e8f3b6f25847bcda88511b0ead4
Author: Eric Anholt <email address hidden>
Date: Thu Jul 2 09:30:50 2009 -0700

    drm/i915: Disable GEM when a broken video BIOS takes up the whole aperture.

Changed in xserver-xorg-video-intel:
status: Confirmed → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

According to the upstream bug, this is fixed with a kernel patch, commit id 2a34f5e6b61c7e8f3b6f25847bcda88511b0ead4 from anholt's tree.

affects: xserver-xorg-video-intel (Ubuntu) → linux (Ubuntu)
tags: added: xorg-needs-kernel-fix
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Seems the patch is already available in the Karmic kernel git tree also. Marking this Fix Released against the kernel.

ogasawara@emiko:~/ubuntu-karmic$ git log -p 2a34f5e6b61c7e8f3b6f25847bcda88511b0ead4
commit 2a34f5e6b61c7e8f3b6f25847bcda88511b0ead4
Author: Eric Anholt <email address hidden>
Date: Thu Jul 2 09:30:50 2009 -0700

    drm/i915: Disable GEM when a broken video BIOS takes up the whole aperture.

    This is seen on some G41 systems, where the BIOS will consume all but
    a few KB of the aperture. This should be bad for all operating systems, as
    it means that the OS can't dynamically manage memory between graphics and
    the rest of the system, and OSes that did static memory management
    statically add memory in addition to the BIOS allocation anyway. So, instead
    of working around it, just fail out verbosely.

    fd.o bug #21574

    Signed-off-by: Eric Anholt <email address hidden>
    Reviewed-by: Ian Romanick <email address hidden>

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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