Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25598 - xfree-drm on iBook2 with rage128
Summary: xfree-drm on iBook2 with rage128
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-30 17:29 UTC by Lars Weiler (RETIRED)
Modified: 2006-02-04 06:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
XF86Config-4 for ibook2 R128 (XF86Config-4,3.64 KB, text/plain)
2003-10-16 09:51 UTC, Kevyn Shortell (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Weiler (RETIRED) gentoo-dev 2003-07-30 17:29:32 UTC
I found out, that the last running version of xfree-drm on my iBook2 with a
rage128 is the -r2.  The -r3 and -r6 produce a lot of "(EE) R128(0): Idle timed
out, resetting engine..." in the XFree-log and slows down XFree horribly.

Where to fix that, I can't see.  But maybe spyderous as the xfree-drm maintainer
can take care of it?  So he is in Cc.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2003-07-30 23:15:49 UTC
I was hoping -r6 would work (r3-5 are broken in various other ways also). I just committed one of Luca's fixes to -r6 a couple of days ago specifically to fix r128 issues (28 July). 

Luca?
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2003-07-31 07:05:47 UTC
Today I noticed, I have this odd problem that the kernel crashes, when I end an X-Session.  I'm not sure, but I think this is also a problem of xfree-drm, because this problem didn't occur befor upgrading the driver.
Comment 3 Luca Barbato gentoo-dev 2003-08-04 14:42:01 UTC
I'm just back, could you tell me something more please (like the snips of dmesg and/or the XFree86 logs) ?
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2003-08-11 22:52:40 UTC
Committed a fix from Luca. Please confirm that it works.
Comment 5 Lars Weiler (RETIRED) gentoo-dev 2003-08-13 16:39:46 UTC
Stupid thing.

As Luca fixed my system locally, everything works fine.  But after emerging the xfree-drm-r6 with Luca's patch, it is again slow.  Luca, did you changed something more than the timeout?
Comment 6 Luca Barbato gentoo-dev 2003-08-15 14:14:08 UTC
I just changed that line and nothing more

it still complains about timeouts?

Comment 7 Lars Weiler (RETIRED) gentoo-dev 2003-08-17 15:10:55 UTC
It still doesn't work.  I found a bugreport on xfree that describes this problem: http://bugs.xfree86.org//cgi-bin/bugzilla/show_bug.cgi?id=271

Maybe I can find a solution with the help of this bug...
Comment 8 Lars Weiler (RETIRED) gentoo-dev 2003-08-17 17:48:32 UTC
The DRM-stuff will be initialized when the r128 module doesn't depend on the agpgart module.  So loading r128 before X starts will quit the idle timeouts.
Comment 9 Blair 2003-10-15 22:38:17 UTC
Well, I have the most up-to-date version and such, with no agpgart module,
but r128 still gives idle timeouts. I don't know what to do. I have a rage
128 pro with 8 megabytes...
Comment 10 Luca Barbato gentoo-dev 2003-10-16 06:51:18 UTC
in Donnie's webspace there is a newer drm that may or may not improve the
situation, please check and report back.
Comment 11 Kevyn Shortell (RETIRED) gentoo-dev 2003-10-16 09:51:16 UTC
Created attachment 19324 [details]
XF86Config-4 for ibook2 R128
Comment 12 Kevyn Shortell (RETIRED) gentoo-dev 2003-10-16 09:59:40 UTC
Follow the xfree-drm guide located at http://www.gentoo.org/doc/en/dri-howto.xml
to get the basics setup, when done, modify your /etc/X11/XF86Config-4 file
and make sure you have the following in your configuration:

Section "Device"
  Option       "usefbdev"
  Option       "ForcePCIMode"
  Option       "AGPMode" "2"

You'll need the standard parts already there, but without the above added

I was always getting timeouts as well.

I've attached my config file which I use on my iBook2/500
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-16 10:32:40 UTC
Kevyn, have you tested to see which of those three options actually has an
effect on the timeouts?
Comment 14 Kevyn Shortell (RETIRED) gentoo-dev 2003-10-16 11:57:48 UTC
yes specifically it needs:

Section "Device"
  Option       "usefbdev"
  Option       "ForcePCIMode"

I forgot to remove the AGPMode statement. heh. That does other things but
not required for 128 drm to work.
Comment 15 Lars Weiler (RETIRED) gentoo-dev 2003-12-04 16:43:30 UTC
Time passed away, my iBook has been to repair for two months and after that I set up Gentoo completely new.

xfree-drm-4.3.0-r6 is now running with our ppc-2.6.0-test11-kernel and agpgart enabled.

I'll resolve the bug to invalid.  Nevertheless thanks for your help! :-)