Bug 144401

Summary: screen corruption on radeon
Product: [openSUSE] SUSE Linux 10.1 Reporter: Olaf Hering <ohering>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aj, eich, erik.jacobson, ke, mfrueh, peter, susegfx
Version: Beta 1   
Target Milestone: ---   
Hardware: PowerPC   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /tmp/Screenshot.png
bug144401.tar.bz2
Screenshot-1.png
Screenshot-2.png

Description Olaf Hering 2006-01-20 15:38:19 UTC
maybe its gnome related, but the screen is partly drawn twice on radeon. havent checked r128 yet.
this exists since at least preview2.
Comment 1 Olaf Hering 2006-01-20 15:38:39 UTC
Created attachment 64302 [details]
/tmp/Screenshot.png
Comment 2 Olaf Hering 2006-01-20 15:41:20 UTC
Created attachment 64303 [details]
bug144401.tar.bz2
Comment 3 Stefan Dirsch 2006-01-20 15:44:10 UTC
Great that you didn't report this earlier! radeon driver is currently in a bad shape anyway. Therefore I don't think that anyone will take care about ppc bugs at this moment. Anyway, we need to see xorg.conf and Xorg.0.log.
Comment 4 Stefan Dirsch 2006-01-20 15:48:01 UTC
Check first if the use of the "fbdev" X driver does work.
Comment 5 Olaf Hering 2006-01-20 16:02:49 UTC
Created attachment 64309 [details]
Screenshot-1.png

fbdev doesnt work, some ioctl fails.

with '  Option "usefbdev" "true"', the screen looks worse.

but the panel looks better at least. There is still a drawing bug above the desktop menu.

will check KDE now.
Comment 6 Stefan Dirsch 2006-01-20 16:06:24 UTC
Maybe ' Option "noaccel" ' helps ...
Comment 7 Olaf Hering 2006-01-20 16:07:40 UTC
Created attachment 64312 [details]
Screenshot-2.png

yast looks ok. the screen is not updated properly if windows are moved.
Comment 8 Olaf Hering 2006-01-20 16:34:16 UTC
kde looks ok. what is used to draw the background? Maybe this app has a problem.
Comment 10 Olaf Hering 2006-01-20 16:47:26 UTC
option "noaccel" "true" does work with GNOME.
Comment 11 Egbert Eich 2006-01-20 16:58:06 UTC
Is the GNOME WM using some composition manager? 
With all the new stuff added I'm not sure if all these pieces have been thoroughly tested on BE. Althought this doesn't look like an endian problem right off hand.
Comment 12 Olaf Hering 2006-01-20 17:11:37 UTC
I installed on a Mac with r128 and gnome looks ok there. I dont have another Mac with radeon card currently.
Comment 13 Stefan Dirsch 2006-01-20 19:27:27 UTC
Olaf, please remove the ' Option "Composite" "on" ' line in your xorg.conf and try again.
Comment 14 Olaf Hering 2006-01-20 20:24:46 UTC
I tried it on a G5 (f46 @ schwab) and it happens there as well. 
disabling "Composite" does not help.
Comment 15 Stefan Dirsch 2006-01-22 19:09:06 UTC
*** Bug 144660 has been marked as a duplicate of this bug. ***
Comment 16 peter czanik 2006-01-22 21:05:06 UTC
Here is an interesting experience I found just trial and error: if I enable DRI (not enabled by default), the problem still occurs. But as soon, as I start a program using it (like glxgears, I used to test if 3D acceleration is really enabled), the problem is gone...
Comment 17 peter czanik 2006-01-22 21:55:26 UTC
Removing "Composite" "on", or changig it to "off" did not change, that in /var/log/Xorg.0.log I still find:

[...]
(II) Initializing built-in extension COMPOSITE
[...]

It's probably enabled independent of settings.
Comment 18 Stefan Dirsch 2006-01-22 22:16:43 UTC
Sure that you're able to start xcompmgr (package xcompmgr) with having Composite disabled in xorg.conf?
Comment 19 peter czanik 2006-01-23 06:05:20 UTC
No, I'm not able to start xcompmgr.
But any OpenGL application helps to get things to normal if DRI is enabled (load "dri"), independent if composite is enabled...
Comment 20 Olaf Hering 2006-01-23 10:59:33 UTC
Maybe the same as https://bugs.freedesktop.org/show_bug.cgi?id=4456
Comment 21 Stefan Dirsch 2006-01-23 12:22:02 UTC
Maybe, try ' Option "AccelMethod" "EXA" ' to verify.
Comment 22 Andreas Schwab 2006-01-23 13:00:19 UTC
From olh: Yes, works.  Please update x11db.
Comment 23 Stefan Dirsch 2006-01-23 13:54:20 UTC
Hmm ... "exa" is considered highly experimental. IMHO we shouldn't enable it by default, but I could well do it for this chipset on ppc only.
Comment 24 Olaf Hering 2006-01-23 13:59:29 UTC
yeah, or we just put the hint on the opensuse webpage.
Comment 25 Stefan Dirsch 2006-01-23 14:05:26 UTC
Good idea. I propose to put it on the "Specific PowerPC problems" page.
Comment 26 Stefan Dirsch 2006-01-27 13:51:54 UTC
http://www.opensuse.org/Bugs:Most_Annoying_Bugs

--> PPC only
Comment 27 Karl Eichwalder 2006-01-30 14:10:47 UTC
In which section do I have to set

   Option "AccelMethod" "EXA"

?
Comment 28 peter czanik 2006-01-30 14:14:11 UTC
Where you have BusID as well. It's in the "Device" section.
Comment 29 Karl Eichwalder 2006-01-30 15:22:36 UTC
Thanks - now it works.
Comment 31 Egbert Eich 2006-01-31 08:32:07 UTC
Please go back to XAA and check which one of the following options fixes the problem.
Option          "XaaNoScreenToScreenCopy"
Option          "XaaNoSolidFillRect"
Option          "XaaNoSolidFillTrap"
Option          "XaaNoSolidTwoPointLine"
Option          "XaaNoSolidBresenhamLine"
Option          "XaaNoSolidHorVertLine"
Option          "XaaNoDashedTwoPointLine"
Option          "XaaNoDashedBresenhamLine"
Option          "XaaNoMono8x8PatternFillRect"
Option          "XaaNoMono8x8PatternFillTrap"
Option          "XaaNoColor8x8PatternFillRect"
Option          "XaaNoColor8x8PatternFillTrap"
Option          "XaaNoCPUToScreenColorExpandFill"
Option          "XaaNoScanlineCPUToScreenColorExpandFill"
Option          "XaaNoScreenToScreenColorExpandFill"
Option          "XaaNoImageWriteRect"
Option          "XaaNoScanlineImageWriteRect"
Option          "XaaNoPixmapCache"
Option          "XaaNoOffscreenPixmaps"
Comment 32 peter czanik 2006-01-31 08:39:34 UTC
You mean addig one after the other to the Device section and start gnome?
Comment 33 peter czanik 2006-01-31 08:56:57 UTC
The first one solved the blurry screen problem on GNOME (Option "XaaNoScreenToScreenCopy"), but made moving windows extremly slow. I check the others as well.
Comment 34 peter czanik 2006-01-31 09:21:37 UTC
I tried all of the mentioned options, one after the other. It's Murphi's law: the other option helping was the last one (Option "XaaNoOffscreenPixmaps"). This one is much better, as it does not have any side effects on window movement speed. With the other option, when I move a firefox window, it takes more than 1s to redraw.
Comment 35 Egbert Eich 2006-01-31 10:34:03 UTC
Yes. You want to have offscreen pixmaps.
I assume it is the XAA code that added Render support thru textures. We had problems with it before. I'll investigate.
Comment 36 Stefan Dirsch 2006-01-31 10:53:18 UTC
Egbert, if possible could you try to reproduce it on

  Vendor: pci 0x1002 "ATI Technologies Inc"
  Device: pci 0x5964 "RV280 5964"
  SubVendor: pci 0x147b "ABIT Computer Corp."
  SubDevice: pci 0x6191 

or similar? This is the chip, which is affected according to the information Olaf gave us (comment #2). BTW, cantaloupe has exactly this board builtin and I could see this problem on Gnome yesterday on this machine.
Comment 37 Stefan Dirsch 2006-01-31 10:54:37 UTC
Assigning to Egbert for investigation. Egbert, let me know if/when I can help. Thanks.
Comment 38 Egbert Eich 2006-01-31 11:15:29 UTC
Stefan, I'm doing my very best. Please note that I will need physical access to the machine for visual inspection. Therefore cantaloupe won't help me. - 
I only have one G4 with a R128. I also have a MGA card with OF. Without a OF Radeon card I cannot reproduce this here. 
Comment 39 Stefan Dirsch 2006-01-31 11:36:09 UTC
Ok, I understand. Olaf, do we have a Radeon baord with OF, we could send to Egbert for regular testing?
Comment 40 Olaf Hering 2006-01-31 11:46:12 UTC
I dont have any radeon card. We could ship the g5 from schwab, if he doesnt care.
Comment 41 Andreas Schwab 2006-01-31 13:04:35 UTC
I'm not responsible.
Comment 42 Andreas Jaeger 2006-01-31 13:40:42 UTC
I don't know why this is NEEDINFO aj, I see nothing where I can help.
Comment 43 Stefan Dirsch 2006-01-31 13:51:13 UTC
Just a wild guess. Maybe Andreas Schwab thinks *you* need to decide whether he is allowed to send his G5 machine to Egbert.
Comment 44 Stefan Dirsch 2006-01-31 13:56:26 UTC
To both Andreas. Should be sufficient to read comments beginning with #39 and to comment.
Comment 47 Stefan Dirsch 2006-01-31 14:15:34 UTC
> I'll add ' Option "XaaNoOffscreenPixmaps" ' for this chipset for now as
> workaround.

done.
Comment 49 Olaf Hering 2006-01-31 15:23:11 UTC
AJ, who owns that G5? schwab isnt answering...
Comment 50 Stefan Dirsch 2006-01-31 15:26:11 UTC
Olaf, could you talk with Matthias and Andreas Schwab about this offline, please? Thanks.
Comment 51 Tony Jones 2006-02-01 04:44:24 UTC
FYI: Exact same problem on ia64/radeon (sles10p4 onwards) when using Gnome. 

#143274

Looks identical to the screenshots olh posted.
Comment 52 Stefan Dirsch 2006-02-01 05:22:16 UTC
*** Bug 143274 has been marked as a duplicate of this bug. ***
Comment 53 Stefan Dirsch 2006-02-01 05:26:50 UTC
Tony, does ' Option "XaaNoOffscreenPixmaps" ' in Section Device of /etc/X11/xorg.conf (see comment #34) fix it for you as well?
Comment 54 Tony Jones 2006-02-01 05:48:10 UTC
Yes. This fixes it, at least for sles10p4.  I havn't been able to install beta 1 or 2 so far.

Interestingly, drop down menu's display correctly, it's just windows and icons that have issues.
Comment 56 Egbert Eich 2006-02-01 16:01:39 UTC
If you can reproduce this in ia64 this is not a problem of BE platforms. I therefore may not need the G5.
Comment 57 peter czanik 2006-02-11 11:09:48 UTC
(In reply to comment #47)
> > I'll add ' Option "XaaNoOffscreenPixmaps" ' for this chipset for now as
> > workaround.
> 
> done.
> 

I installed SLES 10 beta3, and it's not yet there.
Comment 58 Stefan Dirsch 2006-02-11 11:48:24 UTC
If it isn't yet, it will be for Beta4.
Comment 59 Erik Jacobson 2006-02-16 22:55:17 UTC
On an HP RX2600 system that previously had this problem, I no longer see the problem in the updated packages that Gerald provided to me.

I have not had a chance to check other system types (like SGI Prism) yet but
I thought I'd pass along what I know so far.

I'll note that this system was upgraded from Beta3 to the stuff Gerald gave
me and that xorg.conf doesn't include "XaaNoOffscreenPixmaps" - so, if I read
the bug right, it's working on the box now even though the work around isn't
in place.

Comment 60 Stefan Dirsch 2006-02-17 08:54:25 UTC
It might have been fixed for you accidently by other changes in the driver. Unlikely, but possible. Anyway, the workaround is still active and I don't plan to disable it for now.
Comment 61 Egbert Eich 2006-02-17 10:07:45 UTC
I wonder if it would make sense for me to try to reproduce this problem - considering that it would require quite some efford and that the likelyhood is rather uncertain.
Comment 62 Erik Jacobson 2006-02-21 21:35:46 UTC
FYI.
With SLES10 Beta4, our HP box is still working with gnome.
In addition, a SGI Prism with dual Fire GL X2 cards worked fine with
SLES10 Beta4.

In the HP case, it was a fresh install.  In the SGI Prism case, it was
a by-hand upgrade.  In all cases, there was no
XaaNoOffscreenPixmaps option what so ever in xorg.conf.  In the
upgrade case, that's because that was how the system was configured
prior.  In the fresh-install case, this option didn't show up either.

So it seems fixed on ia64 in general even though the workaround isn't
showing up.  -Erik
Comment 63 Stefan Dirsch 2006-02-21 21:44:12 UTC
Hmm. Sure that these boxes ship both with

  Vendor: pci 0x1002 "ATI Technologies Inc"
  Device: pci 0x5964 "RV280 5964"

I added this option only for this chipset.
Comment 64 Erik Jacobson 2006-02-21 21:46:35 UTC
I don't know if any machines we have here have that chipset in it.
That explains it, but then it makes me wonder why our bug was duped
to this one.

In any event, it works for us now too.  Hopefully the bug doesn't come back
to haunt us :)
Comment 65 Stefan Dirsch 2006-03-18 21:42:11 UTC
Workaround is applied. IMHO this should be tested/investigated again after switching to X.Org > 7.0 with SUSE > 10.1 Beta. ==> LATER
Comment 66 Stefan Dirsch 2006-03-28 19:16:11 UTC
I've added the current ati-1-0-branch radeon driver to RC1. Some things 
might have been fixed. Give it a try with "sax2 -r -m 0=radeon10b". 
(The driver is called "radeon10b") 
Comment 67 Greg Edwards 2006-03-28 19:25:46 UTC
Stefan, since our access to RC1 is a few weeks away, can we rebuild the 
xorg-x11-driver srpm from factory?  Is that the same code base as what ends up
in SLES10?  If not, could you stick an srpm out on ftp somewhere for us?
Comment 68 Stefan Dirsch 2006-03-28 19:35:20 UTC
Sorry, with RC1 I've meant 10.1 RC1. So you'll get it with SLES10-Beta9 in a few days. Of course you can also rebuild from factory. X.Org is the same code base for 10.1/SLES10/SLED10 (called "CODE10").
Comment 69 Stefan Dirsch 2006-06-24 10:18:30 UTC
Well, does "radeon10b" driver work for you?
Comment 70 Stefan Dirsch 2006-06-24 10:19:24 UTC
NEEDINFO.
Comment 71 Olaf Hering 2006-07-10 12:20:33 UTC
what option do I need to get a 10.1 default install into the failed state?
Comment 72 Olaf Hering 2006-07-10 13:16:45 UTC
"radeon10b" shows no corruption. How can I get "radeon" back into the failing state?
Comment 73 Stefan Dirsch 2006-07-10 13:45:23 UTC
Replace "radeon10b" driver entry in xorg.conf with "radeon".
Comment 74 Olaf Hering 2006-07-10 14:33:48 UTC
that would mean that 10.1 default is broken. But thats not the case.
Comment 75 Stefan Dirsch 2006-07-10 14:42:20 UTC
For 10.1 I've applied the workaround to set 

  Option "XaaNoOffscreenPixmaps"

But since you say, the radeon10b fixes this issue comletely I'll close this one.
Comment 76 Olaf Hering 2006-07-11 09:51:07 UTC
I dont see any corruption with this, I wonder if it was fixed elsewhere:
Section "Device"
  BoardName    "RV280 5964"
  BusID        "1:8:0"
  Driver       "radeon"
  Identifier   "Device[0]"
  VendorName   "ATI"
  Option "XaaOffscreenPixmaps"
EndSection
Comment 77 Matthias Hopf 2006-07-11 10:24:16 UTC
XaaOffscreenPixmaps is the default. XaaNoOffscreenPixmaps disables them. Please double check (was the section in comment #76 copy-and-paste or from memory?).

If you don't see any corruption, it appearantly has been fixed in the meantime. This is weird.

Stefan, seems that you can remove that option for
  Vendor: pci 0x1002 "ATI Technologies Inc"
  Device: pci 0x5964 "RV280 5964"
again...
Comment 78 Olaf Hering 2006-07-11 10:59:25 UTC
yes, both "XaaOffscreenPixmaps" and "XaaNoOffscreenPixmaps" show no corruption, even with suse10-1280x1024.jpg as background.

I suggest you remove the relavant changes for this bug to see what happens in 10.2.