xserver-xorg-video-intel regression (Intel 945GM) [xorg-edgers]

Bug #1135403 reported by Tim Hamilton
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Invalid
Undecided
Unassigned
xserver-xorg-video-intel (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Recent update to xserver-xorg-video-intel (see relevant section from /var/log/apt/history.log below) has caused some rendering issues.

Grey tones now all render in pink, see attached screenshot.

Upon login display no longer remains full screen. Display appears as static image in centre of screen rather than as full screen with working login animation.

Have tested error is not a kernel issue by running default Ubuntu 3.5.0-25, xorg-edgers 3.7.0-7 & custom compiled 3.8.0 kernels.

/var/log/apt/history.log for package changes when error occurred.

Start-Date: 2013-02-28 08:50:14
Commandline: aptdaemon role='role-commit-packages' sender=':1.74'
Upgrade: linux-image-3.5.0-25-generic:amd64 (3.5.0-25.38, 3.5.0-25.39), xserver-xorg-video-intel:amd64 (2.21.2+git20130213.9861423a-0ubuntu0sarvatt~quantal, 2.21.3+git20130226.aa7e11a1-0ubuntu0sarvatt~quantal), linux-image-extra-3.5.0-25-generic:amd64 (3.5.0-25.38, 3.5.0-25.39)
End-Date: 2013-02-28 08:51:53

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: xorg 1:7.7+1ubuntu4
Uname: Linux 3.8.020130226-1361860256-quantal-mainline-custom-ath x86_64
.tmp.unity.support.test.0:

ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
CurrentDmesg:
 [ 32.540595] [drm] Setting output timings on SDVOB failed
 [ 44.204417] [drm] Setting output timings on SDVOB failed
Date: Thu Feb 28 19:02:56 2013
DistUpgraded: Fresh install
DistroCodename: quantal
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03) (prog-if 00 [VGA controller])
   Subsystem: Intel Corporation Device [8086:7270]
   Subsystem: Intel Corporation Device [8086:7270]
InstallationDate: Installed on 2013-02-20 (7 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64+mac (20121017.3)
MachineType: Apple Inc. MacBook2,1
MarkForUpload: True
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.8.020130226-1361860256-quantal-mainline-custom-ath root=UUID=29ead84e-9e5c-4ab7-87f3-298fcb9638a7 ro crashkernel=384M-2G:64M,2G-:128M quiet splash vt.handoff=7
SourcePackage: xorg
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/27/07
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MB21.88Z.00A5.B07.0706270922
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Mac-F4208CA9
dmi.board.vendor: Apple Inc.
dmi.board.version: PVT
dmi.chassis.asset.tag: Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F4208CA9
dmi.modalias: dmi:bvnAppleInc.:bvrMB21.88Z.00A5.B07.0706270922:bd06/27/07:svnAppleInc.:pnMacBook2,1:pvr1.0:rvnAppleInc.:rnMac-F4208CA9:rvrPVT:cvnAppleInc.:ct10:cvrMac-F4208CA9:
dmi.product.name: MacBook2,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.
version.compiz: compiz 1:0.9.8.6-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.42+git20130211.20c5607b-0ubuntu0sarvatt~quantal
version.libgl1-mesa-dri: libgl1-mesa-dri 9.2.0~git20130216.dd599188-0ubuntu0sarvatt~quantal
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 9.2.0~git20130216.dd599188-0ubuntu0sarvatt~quantal
version.xserver-xorg-core: xserver-xorg-core 2:1.13.1.901+git20130104+server-1.13-branch.3a8c618a-0ubuntu0ricotz~quantal
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.1.99+git20130211.343b01c9-0ubuntu0sarvatt2~quantal
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.21.3+git20130226.aa7e11a1-0ubuntu0sarvatt~quantal
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.6+git20130227.a80785f7-0ubuntu0sarvatt~quantal

Revision history for this message
Tim Hamilton (pseudomorph) wrote :
bugbot (bugbot)
tags: added: edgers
Revision history for this message
Chris Wilson (ickle) wrote :

> Grey tones now all render in pink, see attached screenshot.

That would appear to be a result of me playing with reducing the DefaultDepth to 16 on these bandwidth constrained devices. Hmm, if used a default depth of 15 that should prevent that discoloration. (It's been a useful exercise but I think there are too many bugs in the upper layers of the rendering stack for us to make the switch by default.)

>Upon login display no longer remains full screen. Display appears as static image in centre of screen rather than as full screen with working login animation.

This maybe unexpected. You have both a LVDS and DVI connected. So it is picking a mode common to both (1280x800) and cloning the desktop across. That will result in only the centre portion of the DVI output being used (if the monitor itself does not autoscale). I'm guessing this a bug in the display manager since monitors.xml says not to clone and to use native modes...

Revision history for this message
Chris Wilson (ickle) wrote :

There will be an update in xorg-edgers in the next day or so that should fix up the discoloration - please let me know your opinion on the reduced depth rendering.

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

Sorry about the delay, its up in edgers now but will need about 4 hours to build because of the backlog.

Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Incomplete
Changed in xorg (Ubuntu):
status: New → Invalid
Revision history for this message
Tim Hamilton (pseudomorph) wrote :

Chris, Thanks for looking into this and also for your continued updates.

I pulled the changes down this afternoon and although they seem to have corrected the discolouration issue with my external monitor they have also introduced new regressions that have led to a loss of 3d rendering altogether meaning I am no longer able to use any of the desktops that require 3d acceleration (Unity, Cinnamon, Gnome-Shell).

I'm happy to provide logs & do any extra testing req to help get to the bottom of the issue, you'll just need to point me in the right direction.

Revision history for this message
Chris Wilson (ickle) wrote :

Sounds like whatever was causing your setup to run in clone mode rather than as an extended desktop was also fixed (that should have been an issue caused by something other than -intel). However, libGL does not support hw acceleration to surfaces larger than 2048 on 945gm and so all the GL compositors fail miserably if you exceed that pixel count in any dimension. -intel handles it by using different functions on the GPU that can cope with the larger surfaces, or by splitting the operations into small enough chunks for the 3D pipeline - so that it just works.

Revision history for this message
Tim Hamilton (pseudomorph) wrote :

Sorry, I should have added that lack of 3d acceleration is a problem no matter if I'm using my external monitor (which I usually use as single display with the laptop monitor off & not in extended or clone mode) or my laptop's built in display.

This means I've not been attempting to push 3d graphics to any area larger than the highest native resolution the external monitor supports, and in many cases the much smaller 800x600).

Further symptoms include a compete loss of graphics as soon as gnome loads when booting a 3.5.0 (Ubuntu) or 3.70 (edgers) kernel. The same is not a problem when booting a 3.8.0 custom compiled kernel.

Is this likely to a but in something other that -intel & should I be opening a new bug on these new issues with 3d acceleration?

Revision history for this message
Chris Wilson (ickle) wrote :

My first thought is that it is still trying to use extended modes - can you attach your Xorg.0.log from a failed boot?

Revision history for this message
Tim Hamilton (pseudomorph) wrote :

Sure thing, see attached.

Revision history for this message
Chris Wilson (ickle) wrote :

This is getting weirder:

[ 16.025] (II) intel(0): switch to mode 1280x800 on crtc 4 (pipe 1)
[ 16.025] (EE) intel(0): get_fb: failed to add fb: 1280x800 depth=15, bpp=16, pitch=4096: 22
[ 16.025] (WW) intel(0): failed to restore desired modes on VT switch
[ 16.025] (II) intel(0): switch to mode 1280x800 on crtc 4 (pipe 1)
[ 16.025] (EE) intel(0): get_fb: failed to add fb: 1280x800 depth=15, bpp=16, pitch=4096: 22

Can you append drm.debug=6 to your kernel command line (grub) and then attach the dmesg from another failed boot.

Revision history for this message
Tim Hamilton (pseudomorph) wrote :

Done

Revision history for this message
Chris Wilson (ickle) wrote :

I don't see the telltale failure message in that dmesg. Do you mind recapturing it?

Revision history for this message
Tim Hamilton (pseudomorph) wrote :

My mistake, turned the option on for the wrong kernel entry. This should be better.

Revision history for this message
Chris Wilson (ickle) wrote :

This should handle the kernel regression more gracefully:

commit ef5edbf61686388126e62ce360a66dd8652b2493
Author: Chris Wilson <email address hidden>
Date: Sun Mar 3 09:29:53 2013 +0000

    sna: Probe for kernel support of framebuffer formats

    References: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1135403

When that pops up in xorg-edgers can you please test?

Revision history for this message
Tim Hamilton (pseudomorph) wrote :

Thanks Chris, I'll keep an eye out for it and test when it comes down the pipe.

Revision history for this message
Chris Wilson (ickle) wrote :

Oh well, it exposes critical bugs in mesa, so reverted. Yet again.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Tim Hamilton (pseudomorph) wrote :

That's a shame, I've noted a couple of extra placed where regressions are making themselves known, though I'm not entirely sure if they're related 100% to this bug.

1. Flash video in Firefox is broken and does not render correctly. This is not the case in Google Chrome.
2. Transparent backgrounds render incorrectly.

Revision history for this message
Chris Wilson (ickle) wrote :

Yes, those are symptomatic of the renders not being pixelformat-aware and just getting it wrong.

Revision history for this message
Tim Hamilton (pseudomorph) wrote :

I finally got around to testing xserver-xorg-video-intel - 2:2.21.3+git20130308.78c75612-0ubuntu0sarvatt~quantal that was published in 08/03/10 and associated updates.

Happy to say that these seem to have pretty much resolved all issues that I've raised in this bug.

3d acceleration is back, flash videos play and colour depth is fine.

Thanks very much for your work on this Chris.

Now to fix the kernel oops that is described here https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1020393 and here.

Revision history for this message
Tim Hamilton (pseudomorph) wrote :
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.