Bug 55745 - freezes / strange behaviour on G3 Apple iBook
Summary: freezes / strange behaviour on G3 Apple iBook
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.0.0
Hardware: PowerPC Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-07 20:59 UTC by Ingvar Hagelund
Modified: 2019-11-19 07:37 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
cpuinfo, free, lspci (2.06 KB, text/plain)
2012-10-07 20:59 UTC, Ingvar Hagelund
no flags Details
dmesg from boot til X starts misbehave (31.70 KB, text/plain)
2012-10-07 21:00 UTC, Ingvar Hagelund
no flags Details
X log (32.65 KB, text/plain)
2012-10-07 21:00 UTC, Ingvar Hagelund
no flags Details
Kernel messages when radeon driver crashes (3.36 KB, text/plain)
2012-10-08 23:32 UTC, Ingvar Hagelund
no flags Details
Xorg.0.log with stacktrace when radeon crashes (38.03 KB, text/plain)
2012-10-08 23:33 UTC, Ingvar Hagelund
no flags Details
dmesg with radeon.agpmode=-1 (27.80 KB, text/plain)
2012-10-09 20:00 UTC, Ingvar Hagelund
no flags Details
output of dmesg (3.10.9-200.fc19.ppc) (35.19 KB, text/plain)
2013-09-06 21:15 UTC, Ingvar Hagelund
no flags Details
Xorg.0.log (37.01 KB, text/plain)
2013-09-06 21:17 UTC, Ingvar Hagelund
no flags Details
Xorg.0.log while crashing (39.27 KB, text/plain)
2013-09-11 19:09 UTC, Ingvar Hagelund
no flags Details
A more complete Xorg.log (3.10.7/KMS; iBook G4 early 2005, PowerBook6,5) (41.51 KB, text/plain)
2013-09-12 12:20 UTC, Olivier Mehani
no flags Details

Description Ingvar Hagelund 2012-10-07 20:59:31 UTC
Created attachment 68230 [details]
cpuinfo, free, lspci

Hardware: G3 Apple iBook, second gen.

fedora 18 version of the radeon driver. Downstream version is xorg-x11-drv-ati-7.0.0-0.6.20120910git7c7f27756.fc18.ppc.

X starts up as normal first, but there is color distortions on gtk or xlib based widgets. Light Qt apps seem to work all right if the system is not pushed too hard. Example, Qterminal may stay for a few hours, but starting a web browser makes X crash in a few seconds.

After a crash, xdm restarts X, but now, the colors all have strange extra yellow tint.

Attachements: dmesg from boot till Xorg starts misbehaving. Some system info, and Xorg.0.log.

Ingvar
Comment 1 Ingvar Hagelund 2012-10-07 21:00:17 UTC
Created attachment 68231 [details]
dmesg from boot til X starts misbehave
Comment 2 Ingvar Hagelund 2012-10-07 21:00:43 UTC
Created attachment 68232 [details]
X log
Comment 3 Michel Dänzer 2012-10-08 15:37:52 UTC
> X starts up as normal first, but there is color distortions on gtk or xlib
> based widgets. Light Qt apps seem to work all right if the system is not
> pushed too hard. Example, Qterminal may stay for a few hours, but starting a
> web browser makes X crash in a few seconds.

Does booting with radeon.agpmode=1 or radeon.agpmode=-1 on the kernel command line help?

BTW, it looks like the attached Xorg.0.log is from after xdm restarted X? Can you also attach the log file from the first X server? It should be there as Xorg.0.log.old after xdm restarted X.
Comment 4 Ingvar Hagelund 2012-10-08 23:31:43 UTC
Booted with radeon.agpmode=1. Worked as before until I tried to start a few apps.

Xorg.0.log with stacktrace, and new kernel messages attached.

Ingvar
Comment 5 Ingvar Hagelund 2012-10-08 23:32:24 UTC
Created attachment 68301 [details]
Kernel messages when radeon driver crashes
Comment 6 Ingvar Hagelund 2012-10-08 23:33:31 UTC
Created attachment 68302 [details]
Xorg.0.log with stacktrace when radeon crashes
Comment 7 Ingvar Hagelund 2012-10-09 05:09:59 UTC
More or less same results with radeon.agpmode=-1
Comment 8 Michel Dänzer 2012-10-09 13:40:35 UTC
(In reply to comment #7)
> More or less same results with radeon.agpmode=-1

Please attach the dmesg output from booting with that.
Comment 9 Ingvar Hagelund 2012-10-09 20:00:02 UTC
Created attachment 68355 [details]
dmesg with radeon.agpmode=-1
Comment 10 Ingvar Hagelund 2012-11-28 00:10:02 UTC
Updated to xorg-x11-drv-ati-7.0.0-0.6.20120910git7c7f27756.fc18.ppc on kernel-3.6.6-3.fc18.ppc. Same results as before.

Might add that except for the radeon driver, the iBook is stable. Running X apps, even gtk and qt apps, works fine via X-forwarding over ssh, and in a VNC session.

Ingvar
Comment 11 Ingvar Hagelund 2013-02-27 07:56:00 UTC
Recompiled xorg-x11-drv-ati-6.14.4-6.20120602git930760942.fc17, reenabling ums (the fedora package has a patch that disables ums), and booted with nomodeset.

With this, the display seems stable again, and the color distortion is gone. 

So, does this mean that the problem is in the kernel or in the driver?

There are still problems with GTK widgets, but X widgets and Qt widgets are fine.

Ingvar
Comment 12 Michel Dänzer 2013-03-06 14:38:17 UTC
(In reply to comment #11)
> So, does this mean that the problem is in the kernel or in the driver?

There are several problems. The main one (probably in the kernel) is that acceleration is not stable with KMS. Usually radeon.agpmode=-1 works around that, but for some reason it doesn't seem to on your machine.

The second problem (probably in the X driver) is the wrong colours when running on KMS without acceleration. I looked into this briefly a while ago but couldn't figure out what's wrong.
Comment 13 Olivier Mehani 2013-09-06 13:30:55 UTC
I appear to have the same problem (inverted colours) on an early 2005 G5 iBook running Gentoo with anything more recent than linxu-3.7.0 with UMS. KMS definitely seems to be linked to the problem. FVWM, xterm and ImageMagick's display seem affected; maybe Geeqie too. Firefox and Gnome Terminal get their colours right, though. Everything seems usable otherwise.

Linux gloduk 3.10.7-gentoo #9 PREEMPT Fri Sep 6 21:31:50 EST 2013 ppc 7447A, altivec supported PowerBook6,5 GNU/Linux

x11-drivers/xf86-video-ati-6.14.6-r1
Comment 14 Alex Deucher 2013-09-06 13:35:53 UTC
The color problems with KMS without acceleration should be fixed in this patch:
http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/commit/?id=8927d33f76ee12bc618fecfc59fc7ff1fcedcd5e
Comment 15 Alex Deucher 2013-09-06 13:37:21 UTC
and this patch should fix the accelerated case:
http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/commit/?id=c16c59f8f9b6aa7a4a6a6465582ad98f02a3606a
Comment 16 Ingvar Hagelund 2013-09-06 21:11:29 UTC
That patch fixes the color issue, at least on kernel 3.10.9 (fedora kernel 3.10.9-200.fc19.ppc). But it is not stable. After a few minutes, the display crashes. See kernel and X logs attached.
Comment 17 Ingvar Hagelund 2013-09-06 21:15:43 UTC
Created attachment 85375 [details]
output of dmesg (3.10.9-200.fc19.ppc)
Comment 18 Ingvar Hagelund 2013-09-06 21:17:03 UTC
Created attachment 85376 [details]
Xorg.0.log
Comment 19 Alex Deucher 2013-09-06 21:23:36 UTC
(In reply to comment #16)
> That patch fixes the color issue, at least on kernel 3.10.9 (fedora kernel
> 3.10.9-200.fc19.ppc). But it is not stable. After a few minutes, the display
> crashes. See kernel and X logs attached.

You're getting a GPU hang.  Does radeon.agpmode=-1 help on the newer kernel?
Comment 20 Ingvar Hagelund 2013-09-06 22:15:38 UTC
> You're getting a GPU hang.  Does radeon.agpmode=-1 help on the newer kernel?

Actually, yes, it does. With radeon.agpmode=-1 the display is stable and works quite well with GTK and QT apps. X widgets have distorted colors, though.

Ingvar
Comment 21 Ingvar Hagelund 2013-09-06 22:37:08 UTC
(In reply to comment #20)
> > You're getting a GPU hang.  Does radeon.agpmode=-1 help on the newer kernel?
> 
> Actually, yes, it does. With radeon.agpmode=-1 the display is stable and
> works quite well with GTK and QT apps. X widgets have distorted colors,
> though.
> 
> Ingvar


At least, it worked for a few minutes lenger before locking up. When pushed a bit harder (firefox rendering a page while switching windows back and forth), it froze again like this:

[ 1642.075416] radeon 0000:00:10.0: GPU lockup CP stall for more than 10000msec
[ 1642.075450] radeon 0000:00:10.0: GPU lockup (waiting for 0x00000000000028b7 last fence id 0x00000000000028b6)
[ 1642.077303] radeon 0000:00:10.0: Saved 27 dwords of commands on ring 0.
[ 1642.077325] radeon 0000:00:10.0: GPU reset succeeded, trying to resume
[ 1642.086747] [drm] PCI GART of 512M enabled (table at 0x0000000006180000).
[ 1642.086831] radeon 0000:00:10.0: WB disabled
[ 1642.086852] radeon 0000:00:10.0: fence driver on ring 0 use gpu addr 0x0000000078000000 and cpu addr 0xc6177000
[ 1642.086957] [drm] radeon: ring at 0x0000000078001000
[ 1642.240286] [drm:r100_ring_test] *ERROR* radeon: ring test failed (scratch(0x15E8)=0xCAFEDEAD)
[ 1642.240311] [drm:r100_cp_init] *ERROR* radeon: cp isn't working (-22).
[ 1642.240324] radeon 0000:00:10.0: failed initializing CP (-22).
Comment 22 Alex Deucher 2013-09-06 22:52:28 UTC
You could disable acceleration:
Option "NoAccel" "True"
in the decice section of your xorg.conf
Comment 23 Ingvar Hagelund 2013-09-06 23:03:59 UTC
(In reply to comment #21)
> (In reply to comment #20)
> > > You're getting a GPU hang.  Does radeon.agpmode=-1 help on the newer kernel?
> > 
> > Actually, yes, it does. With radeon.agpmode=-1 the display is stable and
> > works quite well with GTK and QT apps. X widgets have distorted colors,
> > though.

> At least, it worked for a few minutes lenger before locking up. When pushed
> a bit harder (firefox rendering a page while switching windows back and
> forth), it froze again like this:

Ignore that, that was with the 6.x driver. I'm now running the patches mentioned in comment 14 and comment 15. With agpmode=-1, and it's stable (2x glxgears, firefox, switching and flicking windows, no sweat), and all the colors distortions are fixed, even on pure X widgets.

Has been running stable for 20 minutes now.

Hooray!
Comment 24 Olivier Mehani 2013-09-07 06:03:12 UTC
Ah!

I just created version of the x11-drivers/xf86-video-ati-7.0.0 Gentoo package in an overlay of mine [0] including the two patches mentioned in comments 14 and 15. I built it, and it seems to work! The colours are no longer inverted, and acceleration seems to be there (RADEON(0): Acceleration enabled).

I haven't run it for long enough to know for sure about stability, but from past experience, this setup already has passed the bumpy spot.

[0] https://scm.narf.ssji.net/svn/gentoo-portage/browser/x11-drivers/xf86-video-ati
Comment 25 Olivier Mehani 2013-09-11 10:15:46 UTC
Hum, sometimes, the X server becomes unstable, still.

I've also seen messages saying 'failed to map pixmap: -35' which I don't recall seeing before.
Comment 26 Ingvar Hagelund 2013-09-11 19:09:58 UTC
Created attachment 85664 [details]
Xorg.0.log while crashing
Comment 27 Ingvar Hagelund 2013-09-11 19:10:59 UTC
Fairly stable, but I've provoked a crash at least once, see attachement.
Comment 28 Alex Deucher 2013-09-11 19:37:17 UTC
(In reply to comment #27)
> Fairly stable, but I've provoked a crash at least once, see attachement.

Well, the userspace accel drivers may be suffering from some bit-rot at this point.  I'd expect you may see similar issues even on x86 in certain cases.
Comment 29 Olivier Mehani 2013-09-12 12:20:24 UTC
Created attachment 85713 [details]
A more complete Xorg.log (3.10.7/KMS; iBook G4 early 2005, PowerBook6,5)

The relevant part is probably starting around 300s with 
  [   305.735] [mi] EQ overflowing.  Additional events will be discarded until existing events are processed.
  [some bakctraces]
  [   340.052] failed to map pixmap: -35
  [   340.060] [mi] Increasing EQ size to 512 to prevent dropped events.
  [   340.065] [mi] EQ processing has resumed after 197 dropped events.
  [   340.066] [mi] This may be caused my a misbehaving driver monopolizing the server's resources.
Comment 30 Alex Deucher 2013-09-12 12:55:52 UTC
(In reply to comment #29)
> Created attachment 85713 [details]
> A more complete Xorg.log (3.10.7/KMS; iBook G4 early 2005, PowerBook6,5)
> 
> The relevant part is probably starting around 300s with 
>   [   305.735] [mi] EQ overflowing.  Additional events will be discarded
> until existing events are processed.
>   [some bakctraces]
>   [   340.052] failed to map pixmap: -35
>   [   340.060] [mi] Increasing EQ size to 512 to prevent dropped events.
>   [   340.065] [mi] EQ processing has resumed after 197 dropped events.
>   [   340.066] [mi] This may be caused my a misbehaving driver monopolizing
> the server's resources.

If you check your dmesg output you'll probably see a GPU lockup reported.  If you aren't already using radeon.agpmode=-1, try that, otherwise, see comment 28.
Comment 31 Olivier Mehani 2013-09-16 11:33:24 UTC
Ok, radeon.agpmode=-1 seem to do the trick.
Comment 32 Martin Peres 2019-11-19 07:37:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/44.


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.