Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13553 - Patch to change builtin ati drivers to gatos drivers
Summary: Patch to change builtin ati drivers to gatos drivers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low enhancement
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: EBUILD
: 1947 17104 20270 (view as bug list)
Depends on:
Blocks: 17104 20270 22269 30975
  Show dependency tree
 
Reported: 2003-01-09 03:54 UTC by Daniel Ahlberg (RETIRED)
Modified: 2005-02-05 22:20 UTC (History)
9 users (show)

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


Attachments
gatos ATI drivers tarball (4.2.1) (ati_gatos-20021213.tar.bz2,297.99 KB, application/octet-stream)
2003-01-09 03:56 UTC, Daniel Ahlberg (RETIRED)
Details
patch for ebuild (4.2.1) (ati.patch.new,1.51 KB, patch)
2003-01-10 04:02 UTC, Daniel Ahlberg (RETIRED)
Details | Diff
gatos ATI drivers tarball (4.2.99.4) (ati_gatos-20030205.tar.bz2,330.93 KB, application/octet-stream)
2003-02-07 07:57 UTC, Daniel Ahlberg (RETIRED)
Details
patch for ebuild (4.3.0) (xfree-4.3.0_ati.patch,1.50 KB, patch)
2003-03-07 05:43 UTC, Daniel Ahlberg (RETIRED)
Details | Diff
gatos ATI drivers tarball (4.3.0) (ati_gatos-20030303.tar.bz2,337.52 KB, application/x-tbz)
2003-03-07 05:45 UTC, Daniel Ahlberg (RETIRED)
Details
patch to compile ati-gatos drivers on ppc (gatos-ppc.patch,1.10 KB, patch)
2003-05-27 07:09 UTC, John Steele Scott
Details | Diff
My ebuild solution to this bug (ati-gatos.tar.gz,2.61 KB, application/x-gzip)
2003-10-02 17:46 UTC, Rees Machtemes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ahlberg (RETIRED) gentoo-dev 2003-01-09 03:54:40 UTC
This patch for 4.2.1-r2 + driver tarballs adds xv to xfree86 with ati. Only
tested on ATI Mach64 (laptop).

More info on http://gatos.sf.net
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2003-01-09 03:56:11 UTC
Created attachment 7122 [details]
gatos ATI drivers tarball (4.2.1)

Snapshot taken from the day before big 4.2.99 updates to ati.2 cvs tree.
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2003-01-10 04:02:59 UTC
Created attachment 7158 [details, diff]
patch for ebuild (4.2.1)
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-12 14:19:44 UTC
Daniel, is the gatos ebuilds not sufficient ?
Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2003-01-17 10:12:13 UTC
It was a while since I tested it, but I think I never got it to work. And besides it's 
binary only and no binary driver for 4.2.1 is released. 
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 13:58:08 UTC
I dont have an issue with this, but from past experience .. how are the users
going to take it ?  Any reason anybody would rather use the xfree86.org ones?
Comment 6 Guy 2003-01-19 17:58:57 UTC
Hi guys,

From the viewpoint of one of those (dufus) users, let me be candid in saying
that I have not got anyone's version of ATI drivers to do more than vga type
stuff. I have a Radeon 8500 DV (R200 chip series) for which I haven't been able
to get OpenGL and / or 3D acceleration to work on.

Yes, I have even emerged the ati 2.5.1 driver ebuild.

I'm running xfree 2.4.1 etc.

I'm running vanilla-sources 2.4.20 and have reviewed the relevant kernel options
in excruciating detail.

I've read just about every single forum post relating ati drivers as well as
most of the bugzilla posts I can find. If this proposed ebuild change and these
drivers would successfully work with my Radeon 8500, then I would be very, very
happy. To that end, I would be willing to test such an ebuild from the (dufus)
user standpoint. ;-)  (keep in mind that I am not entirely sure how to make use
of the attachments in this bug (enhancement) report and to figure out how to
apply them without some instruction.)
Comment 7 Daniel Ahlberg (RETIRED) gentoo-dev 2003-01-20 07:12:09 UTC
Martin,  
 
as Guy says, the drivers in xfree doesn't support any type of acceleration. In the 
startup message for X there is a message pointing to gatos.sf.net for accelerated 
drivers (when loading xfree86's ati drivers). I suggest putting these drivers in the 
next ~ revision of xfree86 and see if there are any bugreports about it. 
 
Guy: I'll write you an email with instructions on how to build XFree with the new ATI 
drivers. 
Comment 8 Guy 2003-01-25 19:50:27 UTC
I downloaded the ati-gatos tarball and 'emerged' it.

I downloaded the xfree patch and applied it (2 hunks applied)

I emerged 4.2.1-r2 and it went to completion. Nothing seems to have broken. What
do I do now to get OpenGL functionality? I did try to run the opengl based
screen savers from KDE but no joy.

Um ... I get the feeling that there is more I need to do. Suggestions?
Comment 9 Daniel Ahlberg (RETIRED) gentoo-dev 2003-02-07 07:55:29 UTC
Guy: Was there hunks failing to apply?
Comment 10 Daniel Ahlberg (RETIRED) gentoo-dev 2003-02-07 07:57:28 UTC
Created attachment 8006 [details]
gatos ATI drivers tarball (4.2.99.4)

New cvs snapshot to be used with 4.2.99.4. The patch still applies with some
tweaking.
Comment 11 Guy 2003-02-10 17:59:05 UTC
Sorry for the delayed reply. I was sidelined with 15213 and 15245 and unable to use kmail. 
 
All the hunks applied fine. 
 
Since then, I've emerged 2.4.99.4 and unmerged 2.4.99.4 and remerged 2.4.1-r2 (see 15213) 
 
Currently I'm running a 'clean' 2.4.1-r2. 
 
I think I'm stable at the moment and ready to try this again. What would you like me to do?  
 
[it looks like I should emerge 2.4.99.4, apply patches and ?'tweak'?] 
 
If yes, um ... what kind of tweaks? 
 
:-) 
Comment 12 Ryan Stallings 2003-02-20 14:11:15 UTC
Just a data point for anybody interested in this bug.  I need to use the gatos drivers to watch any sort of video on my laptop.  The xfree86.org drivers for the Rage Mobility M3 drivers only show the left half of the video in 1600x1200.  I tried this patch and gatos tarball and it worked great for me.  The   + ATIDRV_VER="20021213" portion of the patch did not apply cleanly for some reason, but applying it by hand was easy.  "emerge xfree" and restart X and all was well. 
Comment 13 Guy 2003-02-21 19:31:15 UTC
Like Ryan, I cannot play any videos without these patches.

Any timeline for when they may be incorporated as part of the regular ebuilds?
Comment 14 Daniel Ahlberg (RETIRED) gentoo-dev 2003-03-07 05:43:36 UTC
Created attachment 9067 [details, diff]
patch for ebuild (4.3.0)
Comment 15 Daniel Ahlberg (RETIRED) gentoo-dev 2003-03-07 05:45:08 UTC
Created attachment 9068 [details]
gatos ATI drivers tarball (4.3.0)
Comment 16 Daniel Ahlberg (RETIRED) gentoo-dev 2003-03-07 05:45:55 UTC
Updated patch and took a new snapshots from the gatos cvs.  
Comment 17 John Steele Scott 2003-05-27 07:09:18 UTC
Created attachment 12447 [details, diff]
patch to compile ati-gatos drivers on ppc

This patch fixes the gatos code to compile properly on big endian machines.

Now the drivers compile on powerpc, but I haven't had a chance to test them.
Comment 18 John Steele Scott 2003-05-27 19:37:06 UTC
I have now been able to test this driver, and it is a big help on my PowerBook G3 Series (Wallstreet), which uses a Rage LT Pro.
Comment 19 Seemant Kulleen (RETIRED) gentoo-dev 2003-05-30 09:29:44 UTC
*** Bug 1947 has been marked as a duplicate of this bug. ***
Comment 20 John Steele Scott 2003-06-14 22:34:39 UTC
Once the next XFree release comes out, this may no longer be necessary for those of us who just want XVideo on our Mach64 based cards. From http://www.xfree86.org/cvs/changes.html:

 156. Fix precision problems in xf86XVClipVideoHelper and in Mach64 XVideo
      support (Marc La France).
 136. Fix bug that prevented fbman from using the last partial scanline of a
      Mach64 framebuffer (Marc La France).
 135. Make ATI Mach64 FIFO cache integrity testing optional (Marc La France).
 134. Export ATI Mach64 hardware overlay as an XVideo adaptor (derived from
      GATOS project, Egbert Eich, Marc La France).
 133. Reorganise ATI Mach64 support into separate source files
      (Marc La France).
 132. Refine atimisc's decoding of the panel mode on server entry in an attempt
      to reduce the effect of atyfb bugs (Marc La France).

For Rage128 and Radeon users there is:
 131. Make Rage128 and Radeon XVideo available even when 2D acceleration is
      disabled (Marc La France).
 130. There is no longer any need to require hardware cursors during Rage128
      and Radeon XVideo displays (Marc La France).

No mention of TV-In support though, so perhaps some people will still want Gatos?
Comment 21 Rees Machtemes 2003-10-02 17:44:13 UTC
I have successfully used the binary x86 drivers for gatos on a Radeon AIW
7200. I haven't tried TV playback yet because I haven't installed AVView.
However, I have a huge speed increase on my system, almost 10 fold in playing
back DivX and HQ Mpeg2 movies. The binary drivers work flawlessly.

Of course, if I emerge xfree-drm i get dri, however these dri drivers are
not in synch with the gatos ones so i cannot use both gatos and dri at the
same time. That being said, all that is needed is a build for the gatos-dri
patches and we will be ready to rock. Don't despair! We can get this working.

Unbenonst to this bug report I created my on ebuild, edited the changelog
etc for ati-gatos. I know somebody has a source ebuild from CVS in the works
and I will test it.

My ebuild uses the patch from bug #1974 to back up XFree86 drivers and restore
them. It works fine for me.

Please consider renaming my ebuild and editing it to ati-gatos-bin for X86
users. It works!

Rees
Comment 22 Rees Machtemes 2003-10-02 17:46:43 UTC
Created attachment 18642 [details]
My ebuild solution to this bug
Comment 23 Rees Machtemes 2003-10-02 17:48:42 UTC
I really want this resolved. Could the priority be changed to P3. To me,
this is a cruicial fix and is a long time in coming. TV rocks on ATI cards,
and I am really happy with the performance and stability of ati-gatos so
far.
Comment 24 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-07 15:20:24 UTC
Rebuilding drivers is not correct. We've got a few ideas for allowing both
standard xfree and gatos drivers to be installed and are working on it now.
Comment 25 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-07 15:23:24 UTC
Heh sorry renaming, not rebuilding. Was distracted.
Comment 26 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-22 22:27:37 UTC
*** Bug 17104 has been marked as a duplicate of this bug. ***
Comment 27 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-22 22:27:49 UTC
*** Bug 20270 has been marked as a duplicate of this bug. ***
Comment 28 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-22 22:28:40 UTC
This is going to be the tracking bug for gatos efforts.
Comment 29 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-22 22:34:57 UTC
Quick summary of where we're trying to go:
1) Build gatos drivers as an external package, against xfree SDK
2) Install gatos drivers somewhere like /usr/X11R6/lib/modules-extra/gatos/
2) Use ModulePath in Files section of XF86Config to prefer gatos drivers
3) Modify xfree-drm to install gatos drm instead with USE="gatos"

Comments welcome.
Comment 30 Donnie Berkholz (RETIRED) gentoo-dev 2003-11-10 01:41:58 UTC
Update:
1) Battousai has the driver building against the SDK
2) He has them installing to the right place and configurable in XF86Config
3) I still have to get this finished up, but the groundwork is in place.

Also a few patches to the main xfree ebuild are required on USE="gatos",
that is also ready. If it causes no harm, we could apply these by default.
That's what I'd like to do, but it needs a little testing that it's fine
without gatos.
Comment 31 Donnie Berkholz (RETIRED) gentoo-dev 2003-12-24 22:11:48 UTC
Update:
xfree-4.3.99 has gatos USE flag, 4.3.0 is still waiting for -r4.
xfree-drm-4.3.0-r7 has gatos USE flag.
ati-gatos ebuild will be added once battousai is set up as a dev.
Comment 32 Donnie Berkholz (RETIRED) gentoo-dev 2004-01-20 03:41:04 UTC
OK: xfree-4.3.99 is broken with gatos at present
4.3.0-r4 is getting very close to going into portage with gatos support
ati-gatos ebuild is in portage
Comment 33 Joel Martin (RETIRED) gentoo-dev 2004-01-30 07:47:38 UTC
I have xfree 4.3.0-r3 merged with USE="gatos". When I try to merge ati-gatos I 
get the following compile error:

In file included from atistruct.h:37,
                 from atibus.c:29:
/usr/X11R6/lib/Server/include/xaa.h:109:24: picturestr.h: No such file or directory

Is it correct to assume that this will be fixed with xfree 4.3.0-r4?
Any further information for when -r4 will make it into the tree?
Comment 34 Donnie Berkholz (RETIRED) gentoo-dev 2004-01-30 08:04:58 UTC
Yes, and when it's ready. We're working on it now, there isn't a whole lot left to do. Hope within a week or two.
Comment 35 Andrew Gaffney (RETIRED) gentoo-dev 2004-02-10 08:58:05 UTC
Are their any plans to incorporate the building of the km kernel module required for V4L access to the cards into the ebuild?
Comment 36 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-10 09:02:40 UTC
PRobably won't be incorporated into ebuild, may turn up as separate ebuild. Bryan could speak more on that, he's in charge.
Comment 37 Bryan Stine (RETIRED) gentoo-dev 2004-02-10 11:42:05 UTC
km will be implemented as a seperate package. I already have plans as to how to handle the module installation for 2.4 kernels, but 2.6 modules are a bit more tricky, much like the linux-wlan-ng ebuilds that latexer is working on.
Comment 38 Andrew Gaffney (RETIRED) gentoo-dev 2004-02-10 12:00:57 UTC
Until a way to build the modules without violating the sandbox can be implimented, can you commit the ebuild with a warning to disable FEATURES="sandbox" if it is a 2.6 kernel?
Comment 39 Bryan Stine (RETIRED) gentoo-dev 2004-02-10 14:15:46 UTC
I definitely don't like that idea, and don't know any dev that would. The possibility of bugs coming in from that is incredibly high, and not everybody reads such warnings. Since installing km manually is trivial, I don't regard this with the highest priority. And since the outstanding problem with 2.6 kernels remains, I'm very hesitant to even put something in the tree that has issues, hard masked or not.
Comment 40 Bryan Stine (RETIRED) gentoo-dev 2004-02-14 19:27:38 UTC
Another quick update: In lieu of (yet another) xfree vulnerability, the xfree team has put up a new version (xfree-4.3.0-r5). This version is a maintenance fix _only_ and does not add support for gatos. I will be updating the ati-gatos ebuild to depend on another bump (-r6, which will hopefully be the next feature release) as soon as I can. So still, do not unmask and try to emerge ati-gatos.
Comment 41 Andrew Gaffney (RETIRED) gentoo-dev 2004-02-14 20:21:24 UTC
Uh, I unmasked ati-gatos and edited the ebuild to only require xfree-4.3.0-r4 and everything works just fine for me. I compiled the km module manually and video capture works, for the most part.
Comment 42 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-14 21:47:46 UTC
The patches to xfree:

1) Add additional includes to the SDK that often result in failed compilations, and
2) Change the DRI to program the memory controller to move apertures to allow for PCI DMA. This is mostly done in the ati-gatos 2D driver, but it needs to be matched in the 3D and kernel drivers.

Anyway, people are actively working on merging gatos and DRI so hopefully that will happen before too long.
Comment 43 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-05 01:08:18 UTC
So, the ati-gatos package is now available. Also, gatos has been merged in upstream so will be in future major releases.