[RV515] Small pixmap corruption [EXA enabled]

Bug #291053 reported by Øyvind Stegard
50
This bug affects 6 people
Affects Status Importance Assigned to Milestone
xserver-xorg-driver-ati
Fix Released
Medium
xserver-xorg-video-ati (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-radeon

I observe an occasional tiny corruption of the mouse-cursor. It manifests itself as horizontal garbage at the bottom of the "cursor square" (that thing around the actual cursor graphics which is usually transparent :) ). It only seems to affect certain applications which change the cursor. For instance, running Firefox remotely with X-forwarding on a RHEL5 installation, the corruption can appear. The cursor is different in this app compared to the default Ubuntu-cursor (because the app is not running on Ubuntu). I've also seen it in Emacs running locally.

I have no screenshot, because this is diffcult to reproduce, and I wouldn't know how to take a screenshot of the (HW-accelerated) cursor if it had happened.

Xorg driver in use is xserver-xorg-video-radeon git20081003.f9826a56-0ubuntu2.
EXA-acceleration is enabled.
Ubuntu 8.10 (fully updated, installed from RC).
Compiz is enabled.
Default Ubuntu cursor theme.
Graphics card: ATI X1400 mobile radeon (R500), 128MB RAM.

I will attach the following:
* Kernel log (dmesg)
* Output of 'lspci -vvnn'
* Xorg.0.log
* xorg.conf

If more information is needed, please say so. I am also willing and able to test new GIT-snapshots of the radeon driver, and provide feedback if problems are fixed, etc.
[lspci]
00:00.0 Host bridge [0600]: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub [8086:27a0] (rev 03)
     Subsystem: Lenovo Device [17aa:2015]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon Mobility X1400 [1002:7145]
     Subsystem: Lenovo Device [17aa:202a]

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :
Revision history for this message
Øyvind Stegard (oyvindstegard) wrote : Re: Occasional mouse cursor corruption [EXA enabled]
Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :
Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :
description: updated
Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=20089)
Xorg.0.log

Forwarding this EXA bug from a Ubuntu tester:
https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/291053

[Problem]
Corruption in application-specific mouse cursors under Compiz when EXA is enabled.

[Original Report]
I observe an occasional tiny corruption of the mouse-cursor. It manifests itself as horizontal garbage at the bottom of the "cursor square" (that thing around the actual cursor graphics which is usually transparent :) ). It only seems to affect certain applications which change the cursor. For instance, running Firefox remotely with X-forwarding on a RHEL5 installation, the corruption can appear. The cursor is different in this app compared to the default Ubuntu-cursor (because the app is not running on Ubuntu). I've also seen it in Emacs running locally.

Xorg driver in use is xserver-xorg-video-radeon git20081003.f9826a56-0ubuntu2.
EXA-acceleration is enabled.
Ubuntu 8.10 (fully updated, installed from RC).
Compiz is enabled.
Default Ubuntu cursor theme.
Graphics card: ATI X1400 mobile radeon (R500), 128MB RAM.

If more information is needed, please say so. I am also willing and able to test new GIT-snapshots of the radeon driver, and provide feedback if problems are fixed, etc.

[lspci]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon Mobility X1400 [1002:7145]
 Subsystem: Lenovo Device [17aa:202a]

(Full lspci at http://launchpadlibrarian.net/19073393/lspci-vvnn.txt)

Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote : Re: Occasional mouse cursor corruption [EXA enabled]

Heya Oyvind,

I've forwarded your bug upstream to https://bugs.freedesktop.org/show_bug.cgi?id=18397. Please subscribe to that bug in case upstream has questions or wishes you to test something. Thanks ahead of time.

Changed in xserver-xorg-driver-ati:
status: Unknown → Confirmed
Revision history for this message
In , Michel-tungstengraphics (michel-tungstengraphics) wrote :

Does

    Option "AccelDFS" "off"

or

    Option "SWcursor"

work around the problem?

Can you attach a picture of the corruption?

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

Hello,

This one is harder to reproduce consistently. I will try to provoke it by stressing the driver (open many windows, use up all GPU texture memory, fancy Compiz-stuff, etc). I'll attach a screenshot as soon as I've managed to reproduce it. If I can find some recipe which triggers it, I can test the options you are suggesting and see if any of them help.

Regards,
Øyvind

Revision history for this message
In , agd5f (agd5f) wrote :

I think there is a display watermark issue that causes problems with the cursor from time to time. Unfortunately, I've had no luck so far finding any info on how to properly program the display watermarks.

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #3)
> I think there is a display watermark issue that causes problems with the cursor
> from time to time. Unfortunately, I've had no luck so far finding any info on
> how to properly program the display watermarks.
>

Well, the first attempt at reproducing this failed. I tried hard. Running lots of glxgears (causing massive flickering), opening many windows (slowing down Compiz), running remote applications with X-forwarding which have different cursor themes and lastly playing a few videos using Textured Video through XVideo. My poor laptop isn't made for that kind of load, but it did not cause mouse cursor corruption. So I think I am on the wrong track as to how to reproduce this, sorry :(. But like you say, it's very "from time to time", but I fail to recognize any pattern.

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #4)
> But like you say, it's very "from time to time", but
> I fail to recognize any pattern.
>

Right. That's the other problem; I'm not able to reproduce it regularly.

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

OK, I managed to reproduce it, and I'm attaching a screenshot (kind of). It's not a screen dump, but a picture taken with my cell phone.

Here's why:
The corruption itself does *not* appear in screen-dumps. So whatever framebuffer is captured does not include the corrupted pixels (I used PrintScreen to make the dump). But they *are* there and it's persistent once it appears. Probably has something to do with the fact that the cursor itself is hardware-accelerated ?

I though about how I could reproduce it, and I went into the cursor theme control panel in Gnome. I started switching themes back and forth, and quite consistenly I can manage to make the corruption show itself after a while. It might take a few shots. Please see the attached picture taken with my cell phone. Hope this is of some help, at least .. Perhaps you will be able to reproduce it yourself ?

Regards,
Øyvind

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

Created an attachment (id=20119)
mousecursor-corruption-radeon-exa.jpg

Revision history for this message
In , agd5f (agd5f) wrote :

Do you still get the corruption with the DRI off (Option "DRI" False")?

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #8)
> Do you still get the corruption with the DRI off (Option "DRI" False")?
>

Hmm, no, it doesn't look like I do.

However, a few (perhaps significant) variables change when I do this:
* Metacity instead of Compiz (fallback), no compositing
* EXA + no-DRI seems to be a very no-go combination performance-wise :). I'm not able to switch very fast between cursor themes because X is sluggish. But this is perhaps not significant for reproducing. It might just be enough that the theme is actually altered, no matter how fast.

Revision history for this message
In , agd5f (agd5f) wrote :

Created an attachment (id=20120)
disable upload to screen

(In reply to comment #9)
> Hmm, no, it doesn't look like I do.
>
> However, a few (perhaps significant) variables change when I do this:
> * Metacity instead of Compiz (fallback), no compositing
> * EXA + no-DRI seems to be a very no-go combination performance-wise :). I'm
> not able to switch very fast between cursor themes because X is sluggish. But
> this is perhaps not significant for reproducing. It might just be enough that
> the theme is actually altered, no matter how fast.
>

It's not supposed to be performant :)
I think there may be an issue with the Upload to screen hook. See if you still get corruption with the DRI enabled with metacity or enable DRI and try the attached patch.

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #10)
<snip>
> I think there may be an issue with the Upload to screen hook. See if you still
> get corruption with the DRI enabled with metacity or enable DRI and try the
> attached patch.
>

Another data point:
Still happens with DRI+Metacity, so Compiz or not seems to not matter (for once ;).

Going to try patch next ..

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #11)
> (In reply to comment #10)
> <snip>
> > I think there may be an issue with the Upload to screen hook. See if you still
> > get corruption with the DRI enabled with metacity or enable DRI and try the
> > attached patch.
> >
>
> Another data point:
> Still happens with DRI+Metacity, so Compiz or not seems to not matter (for once
> ;).
>
> Going to try patch next ..
>

OK, tried the patch. I updated my git-tree first (using git pull, never really used git before, but assumed this was correct).

[Last commit to the driver I tested (git log):
commit 902eaf768142c6c7dcc487e10775027b84cd1f9a
Author: Alex Deucher <email address hidden>
Date: Thu Nov 6 15:46:43 2008 -0500

    Check for LVDS on all IGP chips

    - fixes bug 18395
]

Applied patch, compiled and installed to prefix /usr. The problem certainly still happens, if even worse now. The cursor was immediately corrupted upon desktop login, but that might just be because I didn't use the default-theme (because I had changed it before I logged out and restarted X). Seems small and transparent cursor themes triggers this most easily through the cursor theme control panel. And I can definitely say that the patch did not resolve the issue, that's something at least ..

Revision history for this message
Bryce Harrington (bryce) wrote : Re: Occasional mouse cursor corruption [EXA enabled]

Øyvind, upstream is requesting a picture of the corruption. Would you please provide that on the upstream report?

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Yes, I am aware (and subscribed to the upstream bug report). However, I cannot easily reproduce this one. I will give it some time later and try to provoke it by using up all available texture memory (i.e. open many windows), so as to stress the driver a bit. IIRC, this usage pattern has triggered it before.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Upstream bug report now has a picture which shows the problem.

Revision history for this message
In , Michel-tungstengraphics (michel-tungstengraphics) wrote :

So, does disabling AccelDFS or RenderAccel work around this or not?

P.S. No need to patch the driver to disable UploadToScreen, there's Option "EXANoUploadToScreen" for that. :)

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #13)
> So, does disabling AccelDFS or RenderAccel work around this or not?
>
> P.S. No need to patch the driver to disable UploadToScreen, there's Option
> "EXANoUploadToScreen" for that. :)
>

I'll try these options with latest radeon driver in Ubuntu (6.9.0+git20081003.f9826a56-0ubuntu2.1) and report back.

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #14)
> (In reply to comment #13)
> > So, does disabling AccelDFS or RenderAccel work around this or not?
> >
> > P.S. No need to patch the driver to disable UploadToScreen, there's Option
> > "EXANoUploadToScreen" for that. :)
> >
>
> I'll try these options with latest radeon driver in Ubuntu
> (6.9.0+git20081003.f9826a56-0ubuntu2.1) and report back.
>

Hello again,

I am not able to reproduce the mouse-cursor corruption problem when AccelDFS is set to False.

Regards,
Øyvind

Revision history for this message
In , Moondrake (moondrake) wrote :

I get this too on a X1400 (probably on the same laptop, a T60). Interestingly, I do not think I had this before updating to 1.5.3 (from 1.4.something).

It may be related to some bad font corruption I see sometimes (especially oo.org impress presentation mode showed this well....) Also several small sized icons in the "k-menu" show it. Theory: this happens only with small pixmaps (16x16 or so).

radeonhd does not suffer from this bug, I didn't check whether it accels dfs though...

d.

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #16)
> I get this too on a X1400 (probably on the same laptop, a T60). Interestingly,
Same gfx card, not the same laptop model, I've got a Z61m.

> I do not think I had this before updating to 1.5.3 (from 1.4.something).
>
> It may be related to some bad font corruption I see sometimes (especially
> oo.org impress presentation mode showed this well....) Also several small sized
> icons in the "k-menu" show it. Theory: this happens only with small pixmaps
> (16x16 or so).
>
> radeonhd does not suffer from this bug, I didn't check whether it accels dfs
> though...
I've also tested recent radeonhd-snapshots, and it does not have any corrpution bugs that I have observed (it's also slower).

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #17)
> (In reply to comment #16)
> > radeonhd does not suffer from this bug, I didn't check whether it accels dfs
> > though...
> I've also tested recent radeonhd-snapshots, and it does not have any corrpution
> bugs that I have observed (it's also slower).
>

You have to enable the DRI on radeonhd to use EXA composite and UTS/DFS:
Option "DRI" "TRUE"
I'd expect you'd see the same issue as they mostly share the same accel code.

Revision history for this message
In , agd5f (agd5f) wrote :

Created an attachment (id=21381)
limit accel DFS to 32x32 or larger

Does this patch help (make sure accelDFS is enabled)?

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

(In reply to comment #19)
> Does this patch help (make sure accelDFS is enabled)?

The size checks should probably be done earlier, to save superfluous function calls if they fail. In particular, I suspect that calling RADEONCPGetBuffer() but then still failing could cause the stability issues some people on IRC encountered with this patch.

Revision history for this message
In , agd5f (agd5f) wrote :

Created an attachment (id=21387)
updated patch

(In reply to comment #20)
> The size checks should probably be done earlier, to save superfluous function
> calls if they fail. In particular, I suspect that calling RADEONCPGetBuffer()
> but then still failing could cause the stability issues some people on IRC
> encountered with this patch.
>

yeah, I was actually just thinking the same thing.

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #21)
> Created an attachment (id=21387) [details]
> updated patch
>
> (In reply to comment #20)
> > The size checks should probably be done earlier, to save superfluous function
> > calls if they fail. In particular, I suspect that calling RADEONCPGetBuffer()
> > but then still failing could cause the stability issues some people on IRC
> > encountered with this patch.
> >
>
> yeah, I was actually just thinking the same thing.
>

Hi, tried the latest patch (id=21387), and here's what I've observed so far:

+ I cannot reproduce mouse cursor corruption problem (cursor changes also take longer before they are visible, like a 2 second lag)
+ Solves this bug as well: https://bugs.freedesktop.org/show_bug.cgi?id=18398

- Compiz is noticably slower, and animations tend to be more jerky (for instance when switching desktop)

All testing so far done with only "AccelMethod" "EXA" in xorg.conf.

Øyvind

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #18)
> (In reply to comment #17)
> > (In reply to comment #16)
> > > radeonhd does not suffer from this bug, I didn't check whether it accels dfs
> > > though...
> > I've also tested recent radeonhd-snapshots, and it does not have any corrpution
> > bugs that I have observed (it's also slower).
> >
>
> You have to enable the DRI on radeonhd to use EXA composite and UTS/DFS:
> Option "DRI" "TRUE"
> I'd expect you'd see the same issue as they mostly share the same accel code.
>

Yes, I always enable DRI explicitly when testing radeonhd, but still, it's slower, at least with Compiz.

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #22)
<snip>
> + Solves this bug as well: https://bugs.freedesktop.org/show_bug.cgi?id=18398

The bug referenced above is marked as duplicate of this:
https://bugs.freedesktop.org/show_bug.cgi?id=18399

The bitmap font corruption is no longer reproducible, even without this DFS patch. I do not know what has fixed that one (I suddenly realised it had stopped happening one day). I also run latest DRM snapshot (drm.ko, radeon.ko).

However, the problem with GTK widget corruption (bug 18398) does need this patch to vanish.

Øyvind

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #18)
> (In reply to comment #17)
> > (In reply to comment #16)
> > > radeonhd does not suffer from this bug, I didn't check whether it accels dfs
> > > though...
> > I've also tested recent radeonhd-snapshots, and it does not have any corrpution
> > bugs that I have observed (it's also slower).
> >
>
> You have to enable the DRI on radeonhd to use EXA composite and UTS/DFS:
> Option "DRI" "TRUE"
> I'd expect you'd see the same issue as they mostly share the same accel code.
>

I can re-confirm that latest radeonhd-snapshot with full DRI+EXA does not have corruption problems with:
- Mouse cursor
- Certain GTK widgets (or small icons in KDE)
- Bitmap/unaccelerated fonts

(But as mentioned, it's generally slower than radeon when it comes to acceleration and Compiz. It's also apparently more unstable, as it just froze on me when I tested it with many windows).

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #22)
> Hi, tried the latest patch (id=21387), and here's what I've observed so far:
>
> + I cannot reproduce mouse cursor corruption problem (cursor changes also take
> longer before they are visible, like a 2 second lag)
> + Solves this bug as well: https://bugs.freedesktop.org/show_bug.cgi?id=18398
>
> - Compiz is noticably slower, and animations tend to be more jerky (for
> instance when switching desktop)
>
> All testing so far done with only "AccelMethod" "EXA" in xorg.conf.

Can you try reducing the w/h cut-offs (currently 32) in the patch to see at what limit you get corruption?

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #26)
> (In reply to comment #22)
> > Hi, tried the latest patch (id=21387), and here's what I've observed so far:
> >
> > + I cannot reproduce mouse cursor corruption problem (cursor changes also take
> > longer before they are visible, like a 2 second lag)
> > + Solves this bug as well: https://bugs.freedesktop.org/show_bug.cgi?id=18398
> >
> > - Compiz is noticably slower, and animations tend to be more jerky (for
> > instance when switching desktop)
> >
> > All testing so far done with only "AccelMethod" "EXA" in xorg.conf.
>
> Can you try reducing the w/h cut-offs (currently 32) in the patch to see at
> what limit you get corruption?
>

I'm on it ..

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #27)
> (In reply to comment #26)
> > (In reply to comment #22)
> > > Hi, tried the latest patch (id=21387), and here's what I've observed so far:
> > >
> > > + I cannot reproduce mouse cursor corruption problem (cursor changes also take
> > > longer before they are visible, like a 2 second lag)
> > > + Solves this bug as well: https://bugs.freedesktop.org/show_bug.cgi?id=18398
> > >
> > > - Compiz is noticably slower, and animations tend to be more jerky (for
> > > instance when switching desktop)
> > >
> > > All testing so far done with only "AccelMethod" "EXA" in xorg.conf.
> >
> > Can you try reducing the w/h cut-offs (currently 32) in the patch to see at
> > what limit you get corruption?
> >
>
> I'm on it ..
>

Some data points:
* w/h > 16 => GTK checkbox corruption occurs in Firefox (very easy to reproduce, so I use it as test case)

* w/h > 24 => No GTK checkbox corruption in Firefox (so no corruption).

Another observation:
Emacs 22 scrolling gets very slow (to the point of total "acquarium-effect" when scrolling up or down), when the patch is enabled, even for w/h cutoff as small as 16. Scrolling is back to normal/fast without the patch. Just noticed it when editing src/radeon_exa_funcs.c .. So I guess disabling DFS for smaller pixmaps certainly has drawbacks.

Øyvind

Revision history for this message
In , agd5f (agd5f) wrote :

Created an attachment (id=21411)
flush 3d and 3d caches when using blitchunk

does this patch help?

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #29)
> Created an attachment (id=21411) [details]
> flush 3d and 3d caches when using blitchunk
>
> does this patch help?
>

Unfortunately no, it does not help for the GTK checkbox corruption or mouse cursor corruption problem.

Regards,
Øyvind

Bryce Harrington (bryce)
description: updated
Revision history for this message
In , agd5f (agd5f) wrote :

*** Bug 19745 has been marked as a duplicate of this bug. ***

Micah Gersten (micahg)
summary: - [R500 x1400] Occasional mouse cursor corruption [EXA enabled]
+ Small pixmap corruption [EXA enabled]
Bryce Harrington (bryce)
summary: - Small pixmap corruption [EXA enabled]
+ [X1400] Small pixmap corruption [EXA enabled]
Bryce Harrington (bryce)
summary: - [X1400] Small pixmap corruption [EXA enabled]
+ [R500 X1400] Small pixmap corruption [EXA enabled]
Bryce Harrington (bryce)
tags: added: intrepid
44 comments hidden view all 124 comments
Revision history for this message
In , Vedran Miletić (vedranm) wrote :

I can confirm that lastest radeonhd git is even worse than radeon in this regard, at least on Radeon HD 4770.

In fact, radeon is quite usable, and only displays corruption "here and there", while radeonhd suffers from extreme corruption of whole screen a minute or so after logging in.

I can provide camera snapshots if you want. Screenshoting corrupts image, so I'm forced to take camera snapshots instead.

Revision history for this message
In , Vedran Miletić (vedranm) wrote :

Created an attachment (id=29300)
Xorg log - radeonhd

Xorg log with radeonhd 1.2.5-git27cfbaa3 and kernel 2.6.31-rc9

Revision history for this message
In , Vedran Miletić (vedranm) wrote :

Created an attachment (id=29301)
Xorg log - radeon

Xorg log, same kernel, radeon git

Revision history for this message
In , Samuel Creshal (samuel-creshal) wrote :

Created an attachment (id=29800)
Xorg log, screen corruption with HD4770 and EXA

Same problems here with my HD4770. Kernel 2.6.30.6-1 (Arch), latest git of mesa and radeonhd, xorg 1.6.3.901. Well, it's not as bad as reported from Vedran (more or less usable apart from random glyph corruptions), but corruptions are still there.

(They're far worse on screenshots, so I can't provide usable ones)

Revision history for this message
In , Vedran Miletić (vedranm) wrote :

I did some more testing here. I have XFX 4770 512MB, and a pretty standard AM2 configuration (Athlon 7850 on ASRock 770/SB700 board).

1) Recent changes in xf86-video-ati, I believe, made this less frequent. For example, System/Preferences/Appearance in GNOME shows themes correctly. They used to be corrupted before (looking like a chess board).
Xv works in Totem and mplayer, but YouTube videos get corrupted.
On mode switch, whole screen gets corrupted, but goes back to normal after changing desktop background. I believe this trick didn't work before.

However...

2) Upgrading to mesa-git and drm-git from airlied's repository, and enabling DRI makes all kinds of corruption that appeared before go away. Even YouTube works normally.
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RV740 94B3) 20090101 TCL DRI2
OpenGL version string: 1.4 Mesa 7.7-devel

A bit off-topic - two things break:
first and foremost, Xv displays only blank screen, even xvinfo looks normal.
second, I get
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try adjusting the vblank_mode configuration parameter.
when running glxgears
third, dmesg is filled with
[drm:r600_cs_packet_parse_vline] *ERROR* unknown crtc reloc
[drm:r600_packet0_check] *ERROR* No reloc for ib[691]=0x6538

Hope some of this helps...

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #79)
> A bit off-topic - two things break:
> first and foremost, Xv displays only blank screen, even xvinfo looks normal.

This is due to issue 3 below.

> second, I get
> do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
> Try adjusting the vblank_mode configuration parameter.
> when running glxgears

Irqs are not not supported yet on r6xx/r7xx.

> third, dmesg is filled with
> [drm:r600_cs_packet_parse_vline] *ERROR* unknown crtc reloc
> [drm:r600_packet0_check] *ERROR* No reloc for ib[691]=0x6538

This is a separate issue and is why Xv isn't working. Please file a different bug for this.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote : Re: [R500 X1400] Small pixmap corruption [EXA enabled]

Still corruption problems on freshly installed Ubuntu Karmic RC with all default settings.

Revision history for this message
In , Daniel-ffwll (daniel-ffwll) wrote :

> --- Comment #72 from Dave Airlie <email address hidden> 2009-08-26 04:31:27 PST ---
> this is written in some unspecified docs, however 2 has never made sense to me.
>
> 1. After BITBLT_MULTI copy data from frame buffer to system memory, flush
> entire 2D pixel cache and
> wait for 2D engine idle and clean to ensure the copied data to arrive into
> bus controller.
> 2. Copy the last pixel back to frame buffer from system memory to flush data
> out of bus controller to system
> physical memory.
> 3. Wait for flush process to be completed. This is done by either waiting for
> engine idle or using timestamp
> write back mechanism.

Just my 2 cents. Number 2 makes sense to me: When you write from dev A to
dev B and want to ensure that all the writes have arrived in B, you need
to read from B to A. Because PCI specifies that a read flushes all write
cashes (in the other direction) on its path, this flushes all outstanding
writes to B.

Usually A=CPU/main memory and B=device and one uses a read of a
side-effect free reg, but it should work the other way round, too.

Revision history for this message
Nedenom (nedenom) wrote : Re: [R500 X1400] Small pixmap corruption [EXA enabled]

Seems to have gone away in Thunderbird for me with Karmic, but still there on Java apps.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Nedenom wrote:
> Seems to have gone away in Thunderbird for me with Karmic, but still there on Java apps.

Yep, I can certainly confirm that. Both Swing and SWT-based apps. Netbeans shows GUI-corruption all over the place, especially smaller widgets like buttons and tree node handles and in some places text. Eclipse has these problems as well.

Revision history for this message
Anonym25712 (anonym25712) wrote :

> Still corruption problems on freshly installed Ubuntu Karmic RC with all default settings.

Same here, I still get corrupted checkboxes in GMail (see #374398).

Revision history for this message
In , agd5f (agd5f) wrote :

*** Bug 18400 has been marked as a duplicate of this bug. ***

Revision history for this message
In , agd5f (agd5f) wrote :

*** Bug 18399 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Daniel (elenius) wrote :

Confirming the bug on my x1400 mobile (lenovo z61m laptop) with a stock Ubuntu 9.10 setup.

Revision history for this message
In , Vedran Miletić (vedranm) wrote :

Correction of my previous statement. On Fedora 12, with:
mesa-libGL-7.6-0.13.fc12.x86_64
mesa-dri-drivers-7.6-0.13.fc12.x86_64
mesa-libGLU-7.6-0.13.fc12.x86_64
mesa-dri-drivers-experimental-7.6-0.13.fc12.x86_64
I do see corruption even when DRI is enabled:
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RV740 94B3) 20090101 TCL DRI2
OpenGL version string: 1.4 Mesa 7.7-devel

However, I need to actually use Compiz (or probably some other 3D app) to actually make it start occuring; it will happen in less than half an hour.

When I don't use a 3D app, and DRI is enabled, corruption will not occur for hours (and probably never, but I can't test that hypothesis :-D ).

Revision history for this message
In , agd5f (agd5f) wrote :

*** Bug 22312 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Carsten Pfeiffer (pfeiffer-kde) wrote :

Created an attachment (id=31921)
screenshot of corrupted pixmaps on Lenovo z61m

FWIW, I'm also facing pixmap corruption on a Lenovo z61m notebook with XAA.

This is on Debian unstable with
xorg 1:7.4+4 and xserver-xorg-video-radeon 1:6.12.3-1

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

(In reply to comment #87)
> FWIW, I'm also facing pixmap corruption on a Lenovo z61m notebook with XAA.

But this report is EXA specific, it can't really be related.

Revision history for this message
In , Anonymous-dodgeit (anonymous-dodgeit) wrote :

Something new about this?
Can somebody tell, if it still occurs with kms? I cannot try it myself!

Thanks!

Revision history for this message
In , Phercek (phercek) wrote :

(In reply to comment #89)
> Can somebody tell, if it still occurs with kms? I cannot try it myself!

It looks like this bug is gone with kms. At least for me. I tried 2.6.33.rc5 and git mesa, libdrm, and xf86 driver on rv670 agp. No bitmap corruption but sometimes kernel crashes during boot. If it manages to boot then it works fine later on. Maybe it is because of agp portion of the drivers (my agp card works well on windows and older linux). I'll try rc6 and possibly fill in a bug report if it is still there.

Revision history for this message
In , Pauli (paniemin) wrote :

I have reproduced this with 2.6.33-rc5 and rv280 agp. Sometimes corruption
appears in mouse cursor and fonts. I have seen whole desktop corruption too
but I think that is different DFS bug. Of course my hw setup is probably the
one of the most easiest to reproduce this problem.

(In reply to comment #89)
> > Can somebody tell, if it still occurs with kms? I cannot try it myself!
>
> It looks like this bug is gone with kms. At least for me. I tried
> 2.6.33.rc5
> and git mesa, libdrm, and xf86 driver on rv670 agp. No bitmap corruption
> but
> sometimes kernel crashes during boot. If it manages to boot then it works
> fine
> later on. Maybe it is because of agp portion of the drivers (my agp card
> works
> well on windows and older linux). I'll try rc6 and possibly fill in a bug
> report if it is still there.
>
>

Revision history for this message
In , Ernst Persson (ernstp) wrote :

I think Ubuntu finally got rid of this with the new -ati import:
xserver-xorg-video-ati (1:6.12.99+git20100126.e5933fd7-0ubuntu1)

    * New upstream git snapshot 20100126 (master) up to commit e5933fd7, includes:
          o [3a30210d] RS4xx: fix 200M freezes on VT switch if CRTC is disabled (LP: #333377, #494672)
          o Speedups for r600
          o Fixes to various dpms / incorrect resolution issues
          o Fixes to low memory EXA; fix NoAccel to work with KMS

Right Bryce?

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #92)
> I think Ubuntu finally got rid of this with the new -ati import:
> xserver-xorg-video-ati (1:6.12.99+git20100126.e5933fd7-0ubuntu1)

I'm tracking git master of the radeon driver on Ubuntu Karmic (using UMS, not KMS), and the corruption issues at least for my card [X1400] are still there. Currently running a snapshot from 2010-02-04 (up to commit 8d63d70f)..

Revision history for this message
In , agd5f (agd5f) wrote :

*** Bug 26523 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Pauli (paniemin) wrote :

*** Bug 26595 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Amaasikas (amaasikas) wrote :

Maybe we should move hd4770 (RV740) issues to separate bug as I dont think
other chips experience the same issue. RV740 seems not to render to GTT
correctly afaik. You get a checkerboard pattern or stripes with half correct -
half garbage. The easiest way for me to reproduce is using xmag under UMS.
Just take a mag and you get a checkerboard. Using some screenshot app will also show this, just as in
http://bugs.freedesktop.org/attachment.cgi?id=33228

Under KMS I can make screen corruption (x pixmaps?) happen with some opengl game
with lots' of textures (Set to high/ultra) or also a minute or two
with googleearth. I guess it starts when kms starts to evict & bring back
buffers from vram to gtt.
I guess we'r not programming/setting up rv740 correctly.
Just to mark 2 other issues with rv740: it returns only half the occlusion query samples in ogl and pixmaps w<32 are disabbled altogether in dfs for this chip.

Andre

Revision history for this message
In , Ancoron Luciferis (ancoron-luciferis) wrote :

Hi,

I just want to report much much stronger corruption all over the place with my HD4770:

01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon HD 4770 [RV740] [1002:94b3]
        Subsystem: ATI Technologies Inc Device [1002:0d00]

As I'm currently using Kubuntu 9.10 Karmic with mainline Kernel 2.6.32 I wanted to finally give radeon KMS a shot but to no avail as it just displays totally garbage on my big Dell 30" (2560x1600 native). So I'm stuck with UMS but at least it "works".

I can see the first corruption when I log in using KDM when animations are displays after providing the credentials. Then when starting to work the desktop seem fine at first. The next things that are corrupted is the KDE4 main menu and when browsing with dolphin any graphic sooner or later become corrupted. This goes on as I continue to do things.

In contrast to that glxgears/-heads don't show any corruption. So I tried to enable desktop effects with the result that all window decorations disappear immediately and windows cannot be raised/lowered/moved/resized, shortcuts like ALT+F4 doesn't work any longer but the applications itself continue to work.

I'll attach some screens for further details.

Revision history for this message
In , agd5f (agd5f) wrote :

The rv740 bug is a separate issue and has a fix available here for UMS and KMS:
http://marc.info/?l=dri-devel&m=126661490126109&w=2
Which will hopefully get into 2.6.33, if not then 2.6.33.1

Revision history for this message
In , Ancoron Luciferis (ancoron-luciferis) wrote :

Created an attachment (id=33438)
corruption on 2560x1600 KDE4

Revision history for this message
In , Ancoron Luciferis (ancoron-luciferis) wrote :

Created an attachment (id=33439)
 corruption on 2560x1600 KDE4 #2

Revision history for this message
In , Ancoron Luciferis (ancoron-luciferis) wrote :

Created an attachment (id=33440)
 corruption on 2560x1600 KDE4 #3

Revision history for this message
In , Ancoron Luciferis (ancoron-luciferis) wrote :

(In reply to comment #98)
> The rv740 bug is a separate issue and has a fix available here for UMS and KMS:
> http://marc.info/?l=dri-devel&m=126661490126109&w=2
> Which will hopefully get into 2.6.33, if not then 2.6.33.1
>

Ah OK. That sounds good.

Thanx and sorry to disturb this thread.

Revision history for this message
In , Martin-peres (martin-peres) wrote :

@Ancoron:
Your desktop looks exactly like the one I had without the patch Alex D. told you to apply.
You can find it in drm-linus: http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=shortlog;h=refs/heads/drm-linus.

Revision history for this message
In , Ancoron Luciferis (ancoron-luciferis) wrote :

WOW!!!

I just compiled my first kernel (snapshot 7d404c7b5f4c004712bc15ed6e6edd6779842126, airlied/drm-2.6.git) and well, no corruptions for me yet.

And the speed of the KWIN desktop effects is astonishing. I am impressed! Now I'm going to like this machine... ;)

But one thing is exactly the same as before: KMS. Still displaying only garbage. But as long as UMS works fine I don't care.

Thanx again for all your work!

Ancoron

Robert Hooker (sarvatt)
summary: - [R500 X1400] Small pixmap corruption [EXA enabled]
+ [RV515] [R500 X1400] Small pixmap corruption [EXA enabled]
summary: - [RV515] [R500 X1400] Small pixmap corruption [EXA enabled]
+ [RV515] Small pixmap corruption [EXA enabled]
Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

The corruption issues disappear with KMS, at least in the graphics stack included in Ubuntu Lucid. I use plain uncomposited desktop (Compiz too slow with KMS and my X1400 card). With UMS, the corruption is still the same in Ubuntu Lucid.

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Well, that's some good news.

I think since in Ubuntu we're shipping KMS on as the default for this hardware, I'll close out the bug in launchpad and consider KMS the fix. I'll leave this fdo bug open so the -ati guys can decide if they want to continue troubleshooting the UMS issue.

Revision history for this message
Bryce Harrington (bryce) wrote :

As per comment on the upstream bug, with KMS on the issue is not present. Since we're shipping KMS enabled by default now, I think we can consider that the fix for our purposes. Leaving upstream bug report open for now.

Changed in xserver-xorg-video-ati (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
In , David Greaves (david-dgreaves) wrote :

I'm using Debian
 vanilla upstream kernel 2.6.34
 X.Org X Server 1.7.7
 radeon: module version = 6.13.1

ATI Radeon HD 4290 (ChipID = 0x9714)

(**) RADEON(0): Option "AccelMethod" "EXA"
(II) AIGLX: Loaded and initialized /usr/lib/dri/r600_dri.so

(II) RADEON(0): Output VGA-0 using initial mode 1920x1200
(II) RADEON(0): Output DVI-0 using initial mode 1920x1200

(II) [KMS] Kernel modesetting enabled.

Yes, it's using KMS so this photo is a touch ironic ;)
  http://www.flickr.com/photos/96141280@N00/4824397821/sizes/l/

Changed in xserver-xorg-driver-ati:
importance: Unknown → Medium
Changed in xserver-xorg-driver-ati:
importance: Medium → Unknown
Changed in xserver-xorg-driver-ati:
importance: Unknown → Medium
Revision history for this message
In , Ernst Persson (ernstp) wrote :

This exact problem should be fixed since some time ago.

Revision history for this message
In , Martin-peres (martin-peres) wrote :

In indeed was fixed a long time ago.

Changed in xserver-xorg-driver-ati:
status: Confirmed → Fix Released
Displaying first 40 and last 40 comments. View all 124 comments or add a comment.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.