Bug 21160

Summary: desktop corruption with intel 2.6.99 + UXA
Product: xorg Reporter: Andy Isaacson <adi>
Component: Driver/intelAssignee: Jesse Barnes <jbarnes>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: NEEDINFO
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
screenshot.png
none
Xorg.0.log
none
dmesg
none
fix front buffer tiling on 965 none

Description Andy Isaacson 2009-04-13 15:02:26 UTC
Created attachment 24770 [details]
screenshot.png

I'm seeing desktop background corruption (but no window corruption!) testing UXA+xrandr on GM45.

Kernel: 2.6.29.1
Ubuntu 8.10 + xorg-edgers PPA:
ii xserver-xorg                1:7.4~5ubuntu17
ii xserver-xorg-core           2:1.6.0-0ubuntu8
ii xserver-xorg-video-intel    2:2.6.99.1+git20090402.fad714c4-0ubuntu0tormod2
ii xserver-xorg-video-intel-dbg2:2.6.99.1+git20090402.fad714c4-0ubuntu0tormod2
ii libdrm-intel1               2.4.6~git20090403.51d6346f-0ubuntu0tormod2
ii libdrm-intel1-dbg           2.4.6~git20090403.51d6346f-0ubuntu0tormod2
ii libdrm2                     2.4.6~git20090403.51d6346f-0ubuntu0tormod2

Steps to reproduce:
0. edited xorg.conf to remove the "Virtual 2048 1600" I was previously using with 2.6.0 + EXA and add 'Option "AccelMethod" "UXA"' to the Device section.
1. started xorg on LVDS, no VGA attached.
2. hotplugged VGA monitor
3. xrandr --output VGA --mode 1600x1200 --right-of LVDS
4. xrandr --output VGA --mode 1600x1200 --below LVDS
(observe corruption)

I've attached a screenshot (from xwd -root) of the corruption.

Note that I'm also getting the following in dmesg:

[344492.451072] Xorg:24169 freeing invalid memtype e59bc000-e59bd000
[344492.451077] Xorg:24169 freeing invalid memtype e59bd000-e59be000
[344492.451083] Xorg:24169 freeing invalid memtype e59be000-e59bf000
[344492.451088] Xorg:24169 freeing invalid memtype e59bf000-e59c0000
[344492.451093] Xorg:24169 freeing invalid memtype e59c0000-e59c1000
[344492.451098] Xorg:24169 freeing invalid memtype e59c1000-e59c2000

Don't know if that's related or not.
Comment 1 Andy Isaacson 2009-04-13 15:03:23 UTC
Created attachment 24771 [details]
Xorg.0.log

complete Xorg.0.log
Comment 2 Andy Isaacson 2009-04-13 15:07:36 UTC
Created attachment 24772 [details]
dmesg

complete dmesg for this boot
Comment 3 Jesse Barnes 2009-05-04 15:34:30 UTC
Created attachment 25441 [details] [review]
fix front buffer tiling on 965

I think 2.6.29.1 might be missing this fix?  It's already upstream though, so a more recent kernel should also work (like 2.6.30-rc4).
Comment 4 Jesse Barnes 2009-05-04 15:36:07 UTC
Oh nevermind, that's a KMS fix...  But 2.7.0 did have some last minute fixes for this sort of thing... Can you test that?
Comment 5 Andy Isaacson 2009-05-04 16:49:27 UTC
(In reply to comment #4)
> Oh nevermind, that's a KMS fix...  But 2.7.0 did have some last minute fixes
> for this sort of thing... Can you test that?

I don't have a convenient way to test 2.7.0 (it's not in the xorg-edgers PPA, if there's another PPA I can refer to I'd love a pointer).  But, the desktop corruption does not reproduce with 2:2.7.99.1+git20090503.8255cca2-0ubuntu0sarvatt which is the newest available in xorg-edgers.
Comment 6 Jesse Barnes 2009-05-04 17:02:30 UTC
Ok that's good enough...  I guess I need to do some digging.
Comment 7 Gordon Jin 2009-05-04 19:55:37 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Oh nevermind, that's a KMS fix...  But 2.7.0 did have some last minute fixes
> > for this sort of thing... Can you test that?
> 
> I don't have a convenient way to test 2.7.0 (it's not in the xorg-edgers PPA,
> if there's another PPA I can refer to I'd love a pointer). 

Is this PPA what you want:
https://lists.ubuntu.com/archives/ubuntu-x/2009-April/000518.html

Comment 8 Andy Isaacson 2009-05-05 10:19:15 UTC
(In reply to comment #7)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > Oh nevermind, that's a KMS fix...  But 2.7.0 did have some last minute fixes
> > > for this sort of thing... Can you test that?
> > 
> > I don't have a convenient way to test 2.7.0 (it's not in the xorg-edgers PPA,
> > if there's another PPA I can refer to I'd love a pointer). 
> 
> Is this PPA what you want:
> https://lists.ubuntu.com/archives/ubuntu-x/2009-April/000518.html

Thanks, that's very helpful.  I'll verify this and #19794 with 2.7.0 from ubuntu-x-swat tomorrow (I'm away from the test hardware today).

(In reply to comment #6)
> Ok that's good enough...  I guess I need to do some digging.

Sorry, I may have been unclear -- 2.7.99 fixes the background corruption on my test system (at least, I haven't seen corruption in 30 minutes of testing).  Now that I have an easy way to test 2.7.0 I'll verify if the two issues are fixed in the release.

-andy
Comment 9 Andy Isaacson 2009-05-07 13:49:59 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > Ok that's good enough...  I guess I need to do some digging.
> 
> Sorry, I may have been unclear -- 2.7.99 fixes the background corruption on my
> test system (at least, I haven't seen corruption in 30 minutes of testing). 
> Now that I have an easy way to test 2.7.0 I'll verify if the two issues are
> fixed in the release.

Yep, verified that the background corruption does not occur after multiple display resizing with 2.7.0, so this is fixed.  Thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.