Bug 18503 - [855GM GEM] screen corruption
Summary: [855GM GEM] screen corruption
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Eric Anholt
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-12 10:34 UTC by Rémi Cardona
Modified: 2009-05-29 04:23 UTC (History)
6 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log (21.72 KB, text/plain)
2008-11-12 10:34 UTC, Rémi Cardona
no flags Details
photo of the screen corruption (605.42 KB, image/jpeg)
2008-11-12 10:36 UTC, Rémi Cardona
no flags Details
Xorg.0.tpx40.log (17.72 KB, application/octet-stream)
2009-01-12 11:51 UTC, Thorsten Vollmer
no flags Details
Xorg.0.p1733.log (19.44 KB, application/octet-stream)
2009-01-12 11:53 UTC, Thorsten Vollmer
no flags Details
screen corruption on my ASUS Z9100N (37.85 KB, image/png)
2009-02-04 01:05 UTC, cee1
no flags Details
Screeshot (photo) of scrambled tiles (861.95 KB, image/jpeg)
2009-03-05 09:42 UTC, Bruno
no flags Details

Description Rémi Cardona 2008-11-12 10:34:40 UTC
Created attachment 20255 [details]
Xorg.0.log

GEM so far seems to be rather stable on my 855GM laptop, but I can clearly see major screen corruption. Unfortunately, captures taken with xwd are all correct (front buffer corruption?)

My LFP display is 1280x768 and the corruption is always below the Y=~500 line. Sometimes, it'll be a long dashed horizontal line with small vertical line every ~20 pixels. Sometimes, the whole lower area of the screen will just completely be darkened out. And most of the time, it'll be a 20px high band going edge to edge across the screen.

So far, the affected areas have always been a dark brown.

In applications such as Firefox, I can scroll the corrupted areas out and then back in, which "clears" the corruption.

FWIW, this doesn't seem to be related at all to bug #18138 as the corruption appears only with GEM.

Thanks
Comment 1 Rémi Cardona 2008-11-12 10:36:48 UTC
Created attachment 20256 [details]
photo of the screen corruption

Somehow managed to get a shot of the corruption.

Thanks
Comment 2 Eric Anholt 2008-12-03 14:19:28 UTC
Does it work if you disable FBC?
Comment 3 Rémi Cardona 2008-12-04 23:16:49 UTC
No, the corruption is still there.

Thanks
Comment 4 Rémi Cardona 2009-01-07 00:44:02 UTC
As I said in bug #18138, with the drm-intel-2.6.28 branch there's no screen corruption with -intel 2.5.1 and xorg 1.5.3.

I'll bisect the kernel to see what change fixed this.

Thanks
Comment 5 Rémi Cardona 2009-01-11 14:21:30 UTC
Like in bug #18138, I was wrongly using drm driver i830 instead of i915. The bug is still there.
Comment 6 Thorsten Vollmer 2009-01-12 11:49:25 UTC
I have two machines with similar hardware, but only one of them shows the kind of screen corruption that Rémi described. The other one works flawlessly.

Both systems use the same kernel image and user space:
xf86-video-intel-2.5.1-r1 (Gentoo)
libdrm-2.4.3 (Gentoo)
xorg-server-1.5.3 (Gentoo)
linux-2.6.28 (kernel.org)

I will attach the X log files from both systems. Maybe the differences help to narrow down the problem.
Comment 7 Thorsten Vollmer 2009-01-12 11:51:57 UTC
Created attachment 21901 [details]
Xorg.0.tpx40.log

IBM Thinkpad X40 / 855GME / no screen corruption
Comment 8 Thorsten Vollmer 2009-01-12 11:53:40 UTC
Created attachment 21902 [details]
Xorg.0.p1733.log

DFI G5M150-N motherboard / 852GME / major screen corruption
Comment 9 Thorsten Vollmer 2009-01-12 13:59:15 UTC
The problem persists with xf86-video-intel-2.5.99.2 and linux-2.6.29-rc1.
Comment 10 cee1 2009-02-04 01:03:54 UTC
Persists with xf86-intel-video-2.6.1 and kernel (gentoo-source-2.6.28-r1)
Some fonts display a bold style and then a normal style randomly, then some fonts blur (as time goes), sometimes very serious (see the screenshot)
Comment 11 cee1 2009-02-04 01:05:04 UTC
Created attachment 22566 [details]
screen corruption on my ASUS Z9100N
Comment 12 Thorsten Vollmer 2009-02-13 15:46:23 UTC
(In reply to comment #10)
> Some fonts display a bold style and then a normal style randomly, then some
> fonts blur (as time goes), sometimes very serious (see the screenshot)

This is a different bug. The screen corruption described in this bug affects large areas of the screen and disappears when the screen is redrawn. The fonts, on the other hand, remain corrupted when the screen is redrawn.

[cee1, I'm CCing you because you may want to file a separate report.]
Comment 13 Thorsten Vollmer 2009-02-14 16:50:22 UTC
The screen corruption no longer occurs when I disable tiling (Option "Tiling" "false"). But I think that the real problem is only hidden, because sometimes pixmaps become corrupted in a similar way. This corruption is much harder to reproduce, though.
Comment 14 Thorsten Vollmer 2009-02-16 02:29:22 UTC
(In reply to comment #12)
> This is a different bug. The screen corruption described in this bug affects
> large areas of the screen and disappears when the screen is redrawn. The fonts,
> on the other hand, remain corrupted when the screen is redrawn.

On second thought, both problems can be related if a more general memory corruption is involved.
Comment 15 Thorsten Vollmer 2009-03-02 07:35:48 UTC
After upgrading the driver to revision 38a7683561cee7fffab174c2a166bfd51b51ba27, I have not seen any screen corruption in two days. (I am still using xorg-server-1.5.3 and Linux-2.6.28.7.)

Can the other reporters confirm that the issue is resolved?
Comment 16 Rémi Cardona 2009-03-02 08:30:18 UTC
On my part, this bug seems to have been fixed in between 2.6.1 and 2.6.2. And bug #18138 seems to have been fixed in the process as well.

I'll try to bisect to figure out which commit(s) fixed it.

Thanks
Comment 17 Bruno 2009-03-04 10:40:08 UTC
On my part I can't tell anything as Xorg is crashing with xf86-video-intel-2.6.2 :(

It starts up but screen remains black (e.g. not drawing the standard X background and cursor), then when I start an X application Xorg crashes.

Xorg libraries (please ask if version of other libraries are needed):
x11-base/xorg-server-1.5.3-r2
x11-libs/libdrm-2.4.5
x11-drivers/xf86-video-intel-2.6.2

Kernel:
linux-2.6.29-rc6-git7


Xorg stacktrace (as obtained from gdb when running Xorg under gdb):
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb7af16c0 (LWP 2195)]
0xb7f2e424 in __kernel_vsyscall ()
(gdb) backtrace
#0  0xb7f2e424 in __kernel_vsyscall ()
#1  0xb7b1c191 in raise () from /lib/libc.so.6
#2  0xb7b1d978 in abort () from /lib/libc.so.6
#3  0xb7b157b5 in __assert_fail () from /lib/libc.so.6
#4  0xb79ccc2a in drm_intel_fake_bo_exec (bo=0x99473a8, used=536, 
    cliprects=0x0, num_cliprects=0, DR4=-1) at intel_bufmgr_fake.c:1365
#5  0xb79ca63e in drm_intel_bo_exec (bo=0x99473a8, used=536, cliprects=0x0, 
    num_cliprects=0, DR4=-1) at intel_bufmgr.c:143
#6  0xb79ea49f in intel_batch_flush (pScrn=0x99361f8, flushed=0)
    at i830_batchbuffer.c:199
#7  0xb7a12534 in i830_uxa_prepare_access (pixmap=0x9988430, 
    access=UXA_ACCESS_RW) at i830_exa.c:807
#8  0xb7a26c94 in uxa_prepare_access (pDrawable=0x9988430, 
    access=UXA_ACCESS_RW) at uxa.c:155
#9  0xb7a272f1 in uxa_validate_gc (pGC=0x99be4b0, changes=8387583, 
    pDrawable=0x99be060) at uxa.c:247
#10 0x081678b9 in damageValidateGC (pGC=0x99be4b0, changes=8388607, 
    pDrawable=0x99be060) at damage.c:445
#11 0x08095f95 in ValidateGC (pDraw=0x99be060, pGC=0x99be4b0) at gc.c:79
#12 0x08084ff1 in ProcPolyFillRectangle (client=0x99b7f18) at dispatch.c:1788
#13 0x08088114 in Dispatch () at dispatch.c:454
#14 0x0806e95b in main (argc=1, argv=0xbf8476e4, envp=) at main.c:441
Comment 18 Bruno 2009-03-04 11:46:58 UTC
(In reply to comment #17)
> On my part I can't tell anything as Xorg is crashing with
> xf86-video-intel-2.6.2 :(

Crash fixed with xf86-video-intel-2.6.3.

For a few tenth of minutes runtime I have not seen any corruption yet so it looks pretty good so I can disappearance of corruption mentioned in comment #15 and comment #16
Comment 19 Bruno 2009-03-05 09:42:28 UTC
Created attachment 23563 [details]
Screeshot (photo) of scrambled tiles

With 2.6.3 driver, after rebooting I got scrambled display as visible on attached picture (I would have expected blue-sky background with gkrellm in top-right corner and enlightenment panel in bottom/middle) - rebooting a few times did not change anything.

Disabling tiling in Xorg config (option "tiling" "no") got me back to the expected display content.

So I assume the good results I got yesterday were due to 2.6.1 properly configuring tiling and 2.6.3 just reusing the tiling configuration.
After reboot with immediate use of 2.6.3 it fails.
Comment 20 ralf 2009-04-04 02:34:00 UTC
I'm adding myself here because I have reproducible scenarii for artifacts
with EXA/855GM with and without tiling (kernel 2.6.29, video-intel-2.6.99-902). 
Comment 21 Eric Anholt 2009-05-27 13:53:31 UTC
comment #16 by reporter says this is fixed.
Comment 22 ralf 2009-05-29 03:30:15 UTC
Unfortunately, no. There is no longer corruption of the screen but single letters in fonts in both console and Firefox 3. I don't have a single reproduction sequence, however, that's why the silence. Furthermore, I'm switching to a Mac, so I might not available for testing in a few weeks.
Comment 23 Rémi Cardona 2009-05-29 04:23:49 UTC
(In reply to comment #22)
> Unfortunately, no. There is no longer corruption of the screen but single
> letters in fonts in both console and Firefox 3.

Sounds like bug #21790, update your kernel to the latest intel-drm-next branch and it should be fixed.

Closing


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.