[g45] No DRM, high cpu usage by X on rendering and frequent X crashes on Intel(R) G45/G43 Integrated Graphics Chipset

Bug #472506 reported by Konstantinos Togias
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-intel (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

On Ubuntu 9.10 upgraded from 9.04 with Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) (recognized by X as (II) intel(0): Integrated Graphics Chipset: Intel(R) G45/G43 ) X fail to start when kernel mode setting is enabled. The related errors reported in logs seem to be:

(EE) intel(0): [drm] Failed to detect GEM. Kernel 2.6.28 required.
(EE) intel(0): Failed to become DRM master.
[...]
(EE) intel(0): failed to get resources: Bad file descriptor
(EE) intel(0): Kernel modesetting setup failed
(II) UnloadModule: "intel"
(EE) Screen(s) found, but none have a usable configuration.

The kernel is the 9.10 default aka 2.6.31-14-generic and I have commented out my whole xorg.conf.

When I disable modesetting with nomodeset kernel boot option, X succeed to start, I login to the machine, but I get OpenGL renderer string: Software Rasterizer from glxinfo, and I observe high cpu usage by X when rendering (e.g. loading a page at firefox). This makes the machine feeling rather sluggish. In the log I can see some (mayby) related warnigns and errors:

(WW) intel(0): libpciaccess reported 0 rom size, guessing 64kB
[...]
(WW) intel(0): DRI2: failed to open drm device
[...]
(EE) intel(0): Failed to initialize kernel memory manager
[...]
(WW) intel(0): drmSetMaster failed: Bad file descriptor
[...]
(WW) intel(0): ESR is 0x00000011, page table error
(WW) intel(0): PGTBL_ER is 0x00100000, CS instruction GTT PTE
(WW) intel(0): PRB0_CTL (0x0001f001) indicates ring buffer enabled
(WW) intel(0): Existing errors found in hardware state.

I attach the outputs of lspci, lshw, Xorg.0.log-when-modeseting for the kernelmodesetting on case and Xorg.0.log-when-no-modeseting for the case kernelmodesetting is switched off. The Xorg.conf is empty (contains only comments) in either case.

ProblemType: Bug
Architecture: amd64
CheckboxCommand: gst_pipeline_test -t 2 'videotestsrc ! ffmpegcolorspace ! gconfvideosink'
CheckboxData: X crashes and gdm is restarted at login screen. Also slow performance is experienced. No h/w DRI and high cpu usage by X.
CheckboxDescription:
 Κάντε κλικ στο κουμπί Έλεγχος για να εμφανιστεί ένα δοκιμαστικό βίντεο.

 Είδατε μπάρες με χρώματα και στατικό θόρυβο;
CheckboxTest: video
Date: Tue Nov 3 12:47:37 2009
DistroRelease: Ubuntu 9.10
Package: python-gst0.10 0.10.17-1
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=el_GR.UTF-8
 LANGUAGE=el_GR.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: gst0.10-python
Tags: checkbox-bug
Uname: Linux 2.6.31-14-generic x86_64
XsessionErrors:
 (gnome-settings-daemon:7731): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:7731): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:7758): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:7776): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

[lspci]
          bus info: pci@0000:00:00.0
             description: VGA compatible controller

Revision history for this message
Konstantinos Togias (ktogias) wrote :
Revision history for this message
Konstantinos Togias (ktogias) wrote :

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic

$ uname -a
Linux fireball 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux

Revision history for this message
Konstantinos Togias (ktogias) wrote :
Revision history for this message
Konstantinos Togias (ktogias) wrote :
Revision history for this message
Konstantinos Togias (ktogias) wrote :
Revision history for this message
Konstantinos Togias (ktogias) wrote :
Revision history for this message
Konstantinos Togias (ktogias) wrote :
Revision history for this message
Konstantinos Togias (ktogias) wrote :

I just resolved this issue. The whole problem was caused by bios setting. There is a "Protect Audio Video Path Mode" option under chipset configuration. It was set at "Paranoid" and that was the cause of the problem. When that bios setting is set to "Disabled" or "Lite" the problem does not appear. Mesa DRI Intel(R) G45/G43 GEM 20090712 2009Q2 RC3 is successfully initialized, no erros or warnings at logs and the performance is perfect. See "What is PAVP (Protected Audio Video Path)?" paragraph at http://www.intel.com/support/graphics/sb/CS-029871.htm for more info about this option.

So the fix to this issue is this:

* Reboot the pc
* Press DEL to enter bios setup
* Go to Advanced -> Chipset -> Northbridge and locate the option "Protect Audio Video Path Mode"
* Set it to "Disabled" or "Light"
* Save changes and boot.

Can anyone more familiar with this bios options tell us what is the recommended setting for ubunutu? Disabled or Light (or maybe there is no difference).

Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Invalid
Revision history for this message
Konstantinos Togias (ktogias) wrote :

I have changed the status to "invalid". If this is not a proper status for this bug, please correct it.

Revision history for this message
Jeremy Coulon (jeremy-coulon) wrote :

Hi,
I have the same problem, with the exact same video harware in Ubuntu 9.10.
In BIOS, the PAVP option is Disabled.

My X session starts with non fatal errors but it is very slow and it systematically crashes when I run the "System Testing" tools provided with Ubuntu. The video test makes X crash.

I also have to say that the 'nomodeset' option is given to my kernel in order to not hang at startup.

How can I help reporting useful information to debug this problem as it is very anoying and it has been here for a while now.
I would very much apreciate your help.
Thanks.

---------------------------
xserver-xorg-video-intel is version 2:2.9.0-1ubuntu2.1
--------------------------
$ uname -a
Linux xxx-desktop 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
$ grep EE Xorg.0.log
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) intel(0): [drm] Failed to detect GEM. Kernel 2.6.28 required.
(EE) intel(0): Failed to become DRM master.
(EE) intel(0): Failed to initialize kernel memory manager
$ grep WW Xorg.0.log
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
(WW) intel(0): libpciaccess reported 0 rom size, guessing 64kB
(WW) intel(0): DRI2: failed to open drm device
(WW) intel(0): drmSetMaster failed: Bad file descriptor
$ lspci -vv
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
 Subsystem: ASRock Incorporation Device 2e22
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
 Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0
 Interrupt: pin A routed to IRQ 28
 Region 0: Memory at fd800000 (64-bit, non-prefetchable) [size=4M]
 Region 2: Memory at d0000000 (64-bit, prefetchable) [size=256M]
 Region 4: I/O ports at 9080 [size=8]
 Capabilities: <access denied>
 Kernel modules: i915

Revision history for this message
Jeremy Coulon (jeremy-coulon) wrote :

$ cat xorg.conf
Section "Device"
 Identifier "Configured Video Device"
EndSection

Section "Monitor"
 Identifier "Configured Monitor"
EndSection

Section "Screen"
 Identifier "Default Screen"
 Monitor "Configured Monitor"
 Device "Configured Video Device"
EndSection

Changed in xserver-xorg-video-intel (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Jeremy Coulon (jeremy-coulon) wrote :
Bryce Harrington (bryce)
summary: - No DRM, high cpu usage by X on rendering and frequent X crashes on
+ [g45] No DRM, high cpu usage by X on rendering and frequent X crashes on
Intel(R) G45/G43 Integrated Graphics Chipset
Bryce Harrington (bryce)
tags: added: karmic
Bryce Harrington (bryce)
tags: added: crash
tags: added: high-cpu
Bryce Harrington (bryce)
summary: - [g45] No DRM, high cpu usage by X on rendering and frequent X crashes on
- Intel(R) G45/G43 Integrated Graphics Chipset
+ [g45] [g45] No DRM, high cpu usage by X on rendering and frequent X
+ crashes on Intel(R) G45/G43 Integrated Graphics Chipset
Bryce Harrington (bryce)
summary: - [g45] [g45] No DRM, high cpu usage by X on rendering and frequent X
- crashes on Intel(R) G45/G43 Integrated Graphics Chipset
+ [g45] No DRM, high cpu usage by X on rendering and frequent X crashes on
+ Intel(R) G45/G43 Integrated Graphics Chipset
Bryce Harrington (bryce)
description: updated
Revision history for this message
Robert Hooker (sarvatt) wrote :

Jeremy Coulon, please file a new bug instead of reopening an old one even if it does look similar. The original bug reporter has noted this issue is solved for him. We need more logs than you have attached to even begin troubleshooting your problem, which will be automatically attached when you run the command ubuntu-bug xorg from a terminal to open a new bug.

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

I had the exact same problem on my lenovo X200.
I could solve it by disabling "Execution Prevention" in the BIOS under Security -> Memory Protection.
After I set it to "Disabled", Ubuntu booted again without any problem.

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.