[i915] Initialises before agpgart

Bug #542251 reported by Matthew Pirocchi
66
This bug affects 9 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Andy Whitcroft
Lucid
Medium
Andy Whitcroft

Bug Description

Binary package hint: compiz

I installed Lucid Beta 1 today, and compiz is broken. Trying to start it manually gives this:

matthew@matthew-laptop:~$ compiz --replace
compiz (core) - Fatal: Software rendering detected.
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

Launching fallback window manager

It was not broken in Lucid Alpha 3. I have Intel 915 graphics (ubuntu-bug should have reported all the details).

[ 5.664942] [drm:drm_fill_in_dev] *ERROR* Cannot initialize the agpgart module.

ProblemType: Bug
Architecture: i386
CompizPlugins: [core,ccp,dbus,place,mousepoll,gnomecompat,move,resize,decoration,png,svg,imgjpeg,text,commands,neg,wall,snap,animation,scale,scaleaddon,expo,staticswitcher,regex,resizeinfo,workarounds,ezoom,vpswitch,fade,session]
CurrentDmesg:
 [ 14.761868] ppdev: user-space parallel port driver
 [ 16.940861] usb 1-2: usbfs: interface 1 claimed by usblp while 'usb' sets config #1
 [ 23.796017] eth0: no IPv6 routers present
 [ 135.497039] usb 1-2: usbfs: interface 1 claimed by usblp while 'usb' sets config #1
 [ 574.466082] ath5k phy0: noise floor calibration timeout (2412MHz)
Date: Fri Mar 19 18:20:05 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
MachineType: Dell Inc. Inspiron 1200
Package: compiz 1:0.8.4-0ubuntu13
PackageArchitecture: all
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   3.3V 32-bit PC Card
PciDisplay: 00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller [8086:2592] (rev 03)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-16-generic root=UUID=297ef5f6-4545-46ff-9b66-c9b2598317a0 ro quiet splash
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
RelatedPackageVersions:
 xserver-xorg 1:7.5+3ubuntu1
 libgl1-mesa-glx 7.7-4ubuntu1
 libdrm2 2.4.18-1ubuntu2
 xserver-xorg-video-intel 2:2.9.1-1ubuntu13
 xserver-xorg-video-ati 1:6.12.191-1ubuntu2
SourcePackage: compiz
Uname: Linux 2.6.32-16-generic i686
XorgConf: Error: [Errno 2] No such file or directory: '/etc/X11/xorg.conf'
dmi.bios.date: 03/10/2005
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A02
dmi.board.name: 0C8864
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA02:bd03/10/2005:svnDellInc.:pnInspiron1200:pvr:rvnDellInc.:rn0C8864:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Inspiron 1200
dmi.sys.vendor: Dell Inc.
glxinfo: Error: [Errno 2] No such file or directory
system: distro = Ubuntu, architecture = i686, kernel = 2.6.32-16-generic

Revision history for this message
Matthew Pirocchi (matthew-pirocchi) wrote :
Revision history for this message
Travis Watkins (amaranth) wrote :

This is actually a problem with your video driver as it is not supporting hardware acceleration. Compiz is doing the right thing by refusing to run as it cannot do so in this environment.

affects: compiz (Ubuntu) → xserver-xorg-video-intel (Ubuntu)
Revision history for this message
Matthew Pirocchi (matthew-pirocchi) wrote :

Ok. While logging out and back in did nothing, restarting fixed this problem. Still, it would be good to know why it didn't work until I restarted.

Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris Halse Rogers (raof) wrote :

Ok. That's odd. The problem here appears to be here:
[ 5.228897] Linux agpgart interface v0.103
[ 5.535116] [drm] Initialized drm 1.1.0 20060810
[ 5.547290] lp: driver loaded but no devices found
[ 5.664893] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 5.664903] i915 0000:00:02.0: setting latency timer to 64
[ 5.664942] [drm:drm_fill_in_dev] *ERROR* Cannot initialize the agpgart module.
[ 5.665006] DRM: Fill_in_dev failed.
[ 5.665053] i915 0000:00:02.0: PCI INT A disabled
[ 5.665064] i915: probe of 0000:00:02.0 failed with error -22
[ 5.666486] intel_rng: FWH not detected
[ 5.727735] dell-wmi: No known WMI GUID found
[ 5.730000] agpgart-intel 0000:00:00.0: Intel 915GM Chipset
[ 5.730376] agpgart-intel 0000:00:00.0: detected 7932K stolen memory
[ 5.739308] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xc0000000

It looks like a race between the drm driver and agp setups; drm has bailed because it's tried to access the agpgart, but that module seems to be currently initialising.

I'm moving this to the kernel, where the drm modules belong. How often can you reproduce this? Does it happen only on the first boot from power-off, or seemingly at random?

summary: - Compiz broken in Lucid Beta 1
+ [i915] Initialises before agpgart
affects: xserver-xorg-video-intel (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Robert Hooker (sarvatt)
description: updated
Revision history for this message
Robert Hooker (sarvatt) wrote :

Upstream has tightened the agp dependency for i915 recently and it has not made it back to stable yet. The fix looks to be easily applied to lucid's kernel.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1f7a6e372e9cb4d749f34c0738d832e6cadb4071

Revision history for this message
Robert Hooker (sarvatt) wrote :

Previously linked git commit in patch format.

Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: patch
Revision history for this message
Kevin J Brown (kevinlyfellow) wrote :

What information needs to be added to make this bug report complete?

Robert Hooker (sarvatt)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Chris Halse Rogers (raof) wrote :

I've nominated this for Lucid; this is a regression of bug #430694 in 9.10, the patch for which we probably dropped during the 2.6.33 backport. We can now pick upstream's patch, though.

tags: added: regression-potential
Changed in linux (Ubuntu):
milestone: none → ubuntu-10.04
Andy Whitcroft (apw)
Changed in linux (Ubuntu Lucid):
assignee: nobody → Andy Whitcroft (apw)
status: Triaged → In Progress
Revision history for this message
Andy Whitcroft (apw) wrote :

@Roger -- as you say when backporting drm 2.6.33 wholesale half of the linkage fix we had was lost. Indeed it looks simplest to revert the remainder of our fix and pull in the upstream version. Pushed patches for that to our list for review.

Andy Whitcroft (apw)
Changed in linux (Ubuntu Lucid):
status: In Progress → Fix Committed
Revision history for this message
Arkashkin (arkashkin) wrote :

Hi,
I have reported this bug before - https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/555049
and because my bug is considered the same as this one I will report my new problem here.
I could not activate the visual effect only ones after a fresh install and after that visual effects could be switched on/off pretty well.
After I have upgraded to Lucid 64bit beta-2, I can't turn them all again...

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (10.2 KiB)

This bug was fixed in the package linux - 2.6.32-20.29

---------------
linux (2.6.32-20.29) lucid; urgency=low

  [ Andy Whitcroft ]

  * Revert "SAUCE: Use MODULE_IMPORT macro to tie intel_agp to i915"
    - LP: #542251
  * add Breaks: against hardy lvm2
    - LP: #528155

  [ Colin Watson ]

  * d-i -- enable udebs for generic-pae
    - LP: #160366

  [ Stefan Bader ]

  * [Config] Add xen netboot support
    - LP: #160366

  [ Takashi Iwai ]

  * (pre-stable): input: Support Clickpad devices in ClickZone mode
    - LP: #516329

  [ Upstream Kernel Changes ]

  * Revert "(pre-stable) Bluetooth: Fix sleeping function in RFCOMM within
    invalid context"
    - LP: #553837
  * Revert "(pre-stable) USB: fix usbfs regression"
    - LP: #553837
  * Revert "(pre-stable) softlockup: Stop spurious softlockup messages due
    to overflow"
    - LP: #553837
  * Revert "(pre-stable) drm/nouveau: report unknown connector state if lid
    closed"
    - LP: #553837
  * drivers/scsi/ses.c: eliminate double free
    - LP: #553837
  * decompress: fix new decompressor for PIC
    - LP: #553837
  * ARM: Fix decompressor's kernel size estimation for ROM=y
    - LP: #553837
  * MIPS: Cleanup forgotten label_module_alloc in tlbex.c
    - LP: #553837
  * tg3: Fix tg3_poll_controller() passing wrong pointer to tg3_interrupt()
    - LP: #553837
  * tg3: Fix 5906 transmit hangs
    - LP: #553837
  * ALSA: hda - Fix input source elements of secondary ADCs on Realtek
    - LP: #553837
  * ALSA: hda: enable MSI for Gateway M-6866
    - LP: #538918, #553837
  * timekeeping: Prevent oops when GENERIC_TIME=n
    - LP: #553837
  * Input: alps - add support for the touchpad on Toshiba Tecra A11-11L
    - LP: #553837
  * Input: i8042 - add ALDI/MEDION netbook E1222 to qurik reset table
    - LP: #553837
  * i2c-i801: Don't use the block buffer for I2C block writes
    - LP: #553837
  * ath5k: dont use external sleep clock in AP mode
    - LP: #553837
  * ath5k: fix setup for CAB queue
    - LP: #553837
  * ring-buffer: Move disabled check into preempt disable section
    - LP: #553837
  * function-graph: Init curr_ret_stack with ret_stack
    - LP: #553837
  * Bluetooth: Fix sleeping function in RFCOMM within invalid context
    - LP: #553837
  * tracing: Use same local variable when resetting the ring buffer
    - LP: #553837
  * tracing: Disable buffer switching when starting or stopping trace
    - LP: #553837
  * tracing: Do not record user stack trace from NMI context
    - LP: #553837
  * PCI: unconditionally clear AER uncorr status register during cleanup
    - LP: #553837
  * efifb: fix framebuffer handoff
    - LP: #553837
  * coredump: suppress uid comparison test if core output files are pipes
    - LP: #553837
  * V4L/DVB (13961): em28xx-dvb: fix memleak in dvb_fini()
    - LP: #553837
  * hrtimer: Tune hrtimer_interrupt hang logic
    - LP: #553837
  * x86, apic: Don't use logical-flat mode when CPU hotplug may exceed 8
    CPUs
    - LP: #553837
  * mvsas: add support for Adaptec ASC-1045/1405 SAS/SATA HBA
    - LP: #553837
  * pci: add support for 82576NS serdes to existing SR-IOV quirk
    - LP: #553837
  * sched: Mark boot-cpu active before smp_init()
    -...

Changed in linux (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Arkashkin (arkashkin) wrote :

Hi again,
I still can't enable the visual effects on my system.
I have downloaded the most recent updates and now my kernel version is:
2.6.32-21-generic
When my system loads all windows don't have decorations (the caption area where are the close, maximize, minimize buttons is missing).
When I open the Appearance dialog and try to switch between the effects/non-effects modes, ubuntu is searching for driver,
a window pop-ups and asking me if I want to stay with the new settings (by the way in this stage the windows captions are back), and if I choose to stay with the new settings, the effects are still disabled.

Revision history for this message
Arkashkin (arkashkin) wrote :

By the way, when I try to start compiz manually, I get:

arkadi@arkadi-laptop:~$ compiz --replace
Couldn't find a perfect decorator match; trying all decorators
Found no decorator to start

Revision history for this message
Arkashkin (arkashkin) wrote :

I don't know what changes you did and where but I prefer lucid beta-1, at least there I could turn on the visual effects...
Maybe some one could point me out what to downgrade so the the visual effects will work again?

Revision history for this message
Robert Hooker (sarvatt) wrote :

Arkashkin: you dont have compiz-gnome installed for some reason, its not related to this bug

Revision history for this message
Ritz (jonas-ritz) wrote :

I still see this on the .34 kernels (and the standard .32 Lucid kernels).

cilie@eee:~$ uname -a
Linux eee 2.6.34-020634rc5-generic #020634rc5 SMP Tue Apr 20 10:07:04 UTC 2010 i686 GNU/Linux

cilie@eee:~$ dmesg | grep agp
[ 21.908831] Linux agpgart interface v0.103
[ 22.321101] agpgart-intel 0000:00:00.0: Intel 945GME Chipset
[ 22.321657] agpgart-intel 0000:00:00.0: detected 7932K stolen memory
[ 22.330123] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xd0000000

Revision history for this message
Arkashkin (arkashkin) wrote :

to: Robert Hooker

Thanks a lot, it really solved my problem.
I was writing here only because I have opened this bug report - https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/555049, and after some time I was told that it is related to this bug, and I thought this problem is related to this problem also.

Again, thank you very much.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers