Bug 30227 - [RADEON:KMS:AGP:R300:PPC] random X freeze by a GPU lockup
Summary: [RADEON:KMS:AGP:R300:PPC] random X freeze by a GPU lockup
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: XOrg git
Hardware: PowerPC Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 05:56 UTC by DaNiMoTh
Modified: 2019-11-19 08:15 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg after the fail (30.47 KB, text/plain)
2010-09-16 05:56 UTC, DaNiMoTh
no flags Details
Xorg log after GPU lock (34.88 KB, text/plain)
2010-09-16 06:17 UTC, DaNiMoTh
no flags Details
error with agpmode=1 (10.65 KB, text/plain)
2010-09-18 03:59 UTC, DaNiMoTh
no flags Details
Dmesg crash (7.82 KB, text/plain)
2011-12-10 09:24 UTC, GhostlyDeath
no flags Details

Description DaNiMoTh 2010-09-16 05:56:47 UTC
Created attachment 38743 [details]
dmesg after the fail

Apparently random GPU lockup (ati r300), with X.org freeze.

It happens more frequently if I compile and I switch over many applications (firefox, terminal, opera). Attached there is the dmesg after the fail (I could continue to work on others console - ctrl+alt+f1,2,3..).
Comment 1 DaNiMoTh 2010-09-16 05:59:13 UTC
I forgot system spec:

Kernel: 2.6.35.4
X.org-server: 1.9.0
xf86-video-ati: 6.13.1

PowerPC 7447A, PowerBook G4.
Comment 2 DaNiMoTh 2010-09-16 06:17:19 UTC
Created attachment 38744 [details]
Xorg log after GPU lock

It re-happens, so I saved also Xorg.log.
Comment 3 Michel Dänzer 2010-09-16 08:42:31 UTC
Does radeon.agpmode=1 or radeon.agpmode=-1 help?
Comment 4 DaNiMoTh 2010-09-16 12:00:25 UTC
(In reply to comment #3)
> Does radeon.agpmode=1 or radeon.agpmode=-1 help?

This happens with radeon.agpmode=-1 on the kernel boot command line. Without it, the kernel doesn't boot (it freeze, without eth connection and monitor freeze on some openfirmware specification - I have no serial - when switching from openfirmware to kernel itself, I think).
Comment 5 Michel Dänzer 2010-09-17 03:11:18 UTC
(In reply to comment #4)
> This happens with radeon.agpmode=-1 on the kernel boot command line. Without
> it, the kernel doesn't boot (it freeze, without eth connection and monitor
> freeze on some openfirmware specification - I have no serial - when switching
> from openfirmware to kernel itself, I think).

How about agpmode=1? There's an issue with higher transfer rates that Ben Herrenschmidt is working on fixing.
Comment 6 DaNiMoTh 2010-09-18 03:59:13 UTC
Created attachment 38780 [details]
error with agpmode=1

When system load radeon modules with agpmode=1, I had this error (fortunately I found it in /var/log/messages.log at next boot).

The lock happens more frequently, and give a black screen with no possibilities to switch to another console. There isn't operations which cause this lock more frequently than another: last time (this error) happens when I was scrolling an Opera window.
Comment 7 DaNiMoTh 2010-09-18 04:01:46 UTC
(In reply to comment #6)
> Created an attachment (id=38780) [details]
> error with agpmode=1
> 
> When system load radeon modules with agpmode=1, I had this error (fortunately I
> found it in /var/log/messages.log at next boot).
> 
> The lock happens more frequently, and give a black screen with no possibilities
> to switch to another console. There isn't operations which cause this lock more
> frequently than another: last time (this error) happens when I was scrolling an
> Opera window.

Another thing, which happens both with -1 and 1: at time of loading modules from my fs (yaboot->initramfs->my system->load modules) sometimes the kernel freeze. I don't know where (unfortunately there aren't any log) but I think it's related to radeon.
I need from 5 to 10 try to load properly and continue boot, otherwise I need to force shutdown.
Comment 8 DaNiMoTh 2010-09-18 04:12:56 UTC
Uhm, black screen was here also with agpmode=-1, but I have no error message in logs.
I was playing (for the first time) with GLX version of cairo-dock.
So now for me both modes doesn't do any difference :(
Comment 9 Michel Dänzer 2011-03-24 10:03:54 UTC
I'm not 100% sure (the radeon initialization output from dmesg could confirm), but I suspect this is a duplicate of bug 28402.
Comment 10 GhostlyDeath 2011-12-10 09:24:52 UTC
Created attachment 54296 [details]
Dmesg crash

This also occurs to me on my system, a PowerPC 7447A PowerMac G4 with an ATI Radeon 9800 Pro AGP (128MB). Using the packages from Debian Squeeze Backports (7.10.3) with a near-Vanilla 3.1.0 kernel with radeon DRM modules built in along with firmware.

However, for me it crashes about 10-20 seconds when glxgears is running, or it instantly crashes when I attempt to move or resize a window in WindowMaker.

Setting agpmode=-1 fixes the problem for me.
Comment 11 Michel Dänzer 2011-12-15 10:12:05 UTC
(In reply to comment #10)
> However, for me it crashes about 10-20 seconds when glxgears is running, or it
> instantly crashes when I attempt to move or resize a window in WindowMaker.
> 
> Setting agpmode=-1 fixes the problem for me.

Given your slightly different symptoms, I think we have to assume it's not exactly the same problem. Please file your own report with all the relevant information (at least dmesg output pertaining to agp/drm/radeon).

BTW, if you can narrow down where exactly in r300_asic_reset() the machine check happens, maybe we can fix that.
Comment 12 Michel Dänzer 2012-01-06 10:37:08 UTC
FWIW, http://lists.freedesktop.org/archives/dri-devel/2012-January/017932.html should increase the chance of recovering from a GPU lockup, or at least being able to reboot cleanly, on a big endian host.
Comment 13 Martin Peres 2019-11-19 08:15:38 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/drm/amd/issues/156.


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.