Bug 161247

Summary: Xgl hard locks X300/X600/X700 machines
Product: [openSUSE] SUSE Linux 10.1 Reporter: Jens Axboe <axboe>
Component: X11 3rd PartyAssignee: Jammy Zhou <atilinuxnovellbugs>
Status: RESOLVED DUPLICATE QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None CC: antonovi, davidcanar, eich, hyu, lmarsan, mtippett, sndirsch, tschmidt
Version: Beta 8   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jens Axboe 2006-03-28 08:13:42 UTC
Summary pretty much says it all. Looking at the various forums this appears to be a known issue, no solution so far. Perhaps this can be passed to ATI for looking at?
Comment 1 Matthias Hopf 2006-03-28 09:56:27 UTC
Read also http://en.opensuse.org/Xgl_Troubleshooting

*** This bug has been marked as a duplicate of 129999 ***
Comment 2 Jens Axboe 2006-03-28 10:03:07 UTC
I will try the beta8 suggesions right away.
Comment 3 Jens Axboe 2006-03-28 10:11:03 UTC
There's nothing new in that report suggesion list, and it also reports that it works with beta7. To my knowledge, X300 and related cards have _never_ worked with Xgl. I've tried beta6-7 as well, and it hard hangs the machine as described when attempting to use it. This either happens right when gdm shows the login screen, or it may happen immediately after login.

FWIW, the kororaa live cd booted on this machine suffers the same problem.
Comment 4 Matthias Hopf 2006-03-28 10:17:23 UTC
No need to try beta6-7, beta8 is pretty good regarding Xgl.
Will add this to the wiki.
Comment 5 Jens Axboe 2006-03-28 11:11:03 UTC
Update: adding these options seems to work for me, at least it's been running for 30 minutes working now! Previously it would, as mentioned, die within seconds.

Option "UseInternalAGPGART" "no"
Option "KernelModuleParm" "agplock=0"
Option "EnablePrivateBackZ" "yes"

This is with the 8.23.7 drivers.
Comment 6 Stefan Dirsch 2006-03-28 11:14:13 UTC
> Option "UseInternalAGPGART" "no"
Should be in our default configuration.

> Option "EnablePrivateBackZ" "yes"
Others need to remove this option to get Xgl working.

> Option "KernelModuleParm" "agplock=0"
Interesting ...
Comment 7 Jens Axboe 2006-03-28 11:26:41 UTC
Sorry that "EnablePrivateBackZ" was a typo, it is indeed set to "no" now. That last option is found on one of the (these days) multiple Xgl forums out there.
Comment 8 Stefan Dirsch 2006-03-28 11:48:29 UTC
> Sorry that "EnablePrivateBackZ" was a typo, it is indeed set to "no" now.
> That last option is found on one of the (these days) multiple Xgl forums out
> there.
We no longer set this option at all (default for it is "no"). So it seems
the "KernelModuleParm" option fixes it for you.
Comment 9 Jens Axboe 2006-03-28 11:59:52 UTC
I can try and verify which one it is exactly, my xorg.conf is carried over from previous installations so it may not match a beta8 stock install.
Comment 10 Deni Jelicic 2006-03-28 13:16:06 UTC
I have X200 series and I had experienced hard locks every time with the latest  
opensuse 10.1 from factory. I thought maybe it could be because OpenSuse 10.1 uses the latest kernel and the new ati driver from March 6 2006 was created before kernel 2.6.16 was released. Then I went to install OpenSuse 10, installed the additional packages for 10 and Xgl and compiz work nearly perfectly and there has not been a single lock after using it for weeks. The only thing that does not work perfectly is xine.

Hopefully this helps someone. 

  
Comment 11 David Canar 2006-03-29 14:00:46 UTC
I can confirm that the following options solved the problem on my X300 with the 8.23.7 drivers:

Option "UseInternalAGPGART" "no"
Option "KernelModuleParm" "agplock=0"
Option "EnablePrivateBackZ" "no"

I've been enjoying XGL for several hours now and it hasn't froze at all
Comment 12 Stefan Dirsch 2006-03-29 14:19:31 UTC
David, you really need all of these options?
Comment 13 Jonathan SEMCZYK 2006-03-29 14:21:18 UTC
Same here with my X300 and fglrx 8.23.7 running on Ubuntu,
I only added this :

Option "KernelModuleParm" "agplock=0"

Now it rocks !
Comment 14 David Canar 2006-03-29 14:31:19 UTC
(In reply to comment #12)
> David, you really need all of these options?
> 

'Option "UseInternalAGPGART" "no"' comes by default so I tried commenting out 'Option "EnablePrivateBackZ" "no"' and it still works so I'm guessing 'Option "KernelModuleParm" "agplock=0"' does the trick.
Comment 15 Stefan Dirsch 2006-03-29 14:39:00 UTC
> Same here with my X300 and fglrx 8.23.7 running on Ubuntu,
> I only added this :
> Option "KernelModuleParm" "agplock=0"
> Now it rocks !
Interesting. Anyone who knows what this option exactly does? Jens?
Comment 16 Thomas Schmidt 2006-03-29 15:03:20 UTC
Same here, with
Option "KernelModuleParm" "agplock=0" 
Xgl is running very stable on my X300. 
Running it on my development desktop since 2 days without 
any problem. (beside lack of KDE integration)
Comment 17 Stefan Dirsch 2006-03-29 15:46:56 UTC
' Option "KernelModuleParm" "agplock=0" ' might be related to locked user pages.

# aticonfig --help
  [...]
  --locked-userpages={on|off}
        Enable/disable locked user pages. Disable this option if the system
        hangs when running fgl_glxgears.
        User page lock is no longer available on AGP system now.

"--locked-userpages=on" gives me

  Option      "KernelModuleParm" "on"

whereas "--locked-userpages=off" gives me

  Option      "KernelModuleParm" "off"

Which one does work for you?
Comment 18 David Canar 2006-03-29 18:10:45 UTC
I tried both, first I tried :
Option      "KernelModuleParm" "on"
and then: 
Option      "KernelModuleParm" "off"

and neither of them worked. After I rebooted the machine after a few seconds after the XGL server started the machine froze again.
Comment 19 Stefan Dirsch 2006-03-29 18:16:28 UTC
Thanks for testing! Maybe ATI can comment on this undocumented option?
Comment 20 Matthias Hopf 2006-03-30 09:48:38 UTC
Updated the openSUSE wiki accordingly.
Comment 21 Stefan Dirsch 2006-06-06 04:09:13 UTC

*** This bug has been marked as a duplicate of 170698 ***
Comment 22 Alexander Kolyukhin 2006-08-21 10:47:17 UTC
(In reply to comment #1)
> Read also http://en.opensuse.org/Xgl_Troubleshooting
> 
> *** This bug has been marked as a duplicate of  129999 ***
> 

Comment 23 Stefan Dirsch 2006-08-21 11:10:48 UTC
fixed "ATI / proprietary driver "fglrx" section in this article. Option parameter has changed from "agplock=0" to "locked-userpages=0".