* agpgart? or how to use dri?
@ 2001-02-01 7:48 Steven Hanley
2001-02-01 11:29 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 6+ messages in thread
From: Steven Hanley @ 2001-02-01 7:48 UTC (permalink / raw)
To: Linux PPC Dev
All
Trying to get the dri stuff to build (this is an X 4.02 tree checked out
from the branch Gareth announced two days ago)
The problem seems to be the kernel module. When I have agpgart enabled in
the kernel the r128 kernel module builds, when I dont have apgart enabled
only the tdfx module will build, this is doing a make in the
xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/ directory in the
X source
The problem here of course is agpgart wont build on ppc
in /usr/src/linux/drivers/char/agp/agpgart_be.c there is a flush_dcache
function defined, and it is only defined for alpha, ia64 and i386.
I dont know what the culprit is, but I assume thee dri stuff can be built
without agpgart on ppc or some scuh, this kernel tree is the 2.4.1 bk
rsynced about half an hour ago.
Any hints on getting the dri kernel module to build to the extent that it
can be insmod'd and used?
See You
Steve
--
sjh@wibble.net http://wibble.net/~sjh
Look Up In The Sky
Is it a bird? No
Is it a plane No
Is it a small blue banana?
Yes
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: agpgart? or how to use dri?
2001-02-01 7:48 agpgart? or how to use dri? Steven Hanley
@ 2001-02-01 11:29 ` Benjamin Herrenschmidt
2001-02-01 22:53 ` Steven Hanley
0 siblings, 1 reply; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2001-02-01 11:29 UTC (permalink / raw)
To: Steven Hanley, Linux PPC Dev
>
>Trying to get the dri stuff to build (this is an X 4.02 tree checked out
>from the branch Gareth announced two days ago)
>
>The problem seems to be the kernel module. When I have agpgart enabled in
>the kernel the r128 kernel module builds, when I dont have apgart enabled
>only the tdfx module will build, this is doing a make in the
>xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/ directory in the
>X source
>
>The problem here of course is agpgart wont build on ppc
>
>in /usr/src/linux/drivers/char/agp/agpgart_be.c there is a flush_dcache
>function defined, and it is only defined for alpha, ia64 and i386.
>
>I dont know what the culprit is, but I assume thee dri stuff can be built
>without agpgart on ppc or some scuh, this kernel tree is the 2.4.1 bk
>rsynced about half an hour ago.
>
>Any hints on getting the dri kernel module to build to the extent that it
>can be insmod'd and used?
>
The current agpgart driver won't work on PPC, the Apple AGP host bridge
is not supported.
The new DRI support announced by Gareth is using the PCI GART which
doesn't need the AGP capabilities. Don't enable either AGP or DRI in your
kernel, and build the kernel r128 DRM module from XFree sources. You need
to use the CVS branch posted earlier by Gareth. I slightly hacked my own
to build since I lack the glide libs necessary for the 3dfx stuff to compile.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: agpgart? or how to use dri?
2001-02-01 11:29 ` Benjamin Herrenschmidt
@ 2001-02-01 22:53 ` Steven Hanley
2001-02-01 23:25 ` Michel Dänzer
2001-02-02 0:02 ` Benjamin Herrenschmidt
0 siblings, 2 replies; 6+ messages in thread
From: Steven Hanley @ 2001-02-01 22:53 UTC (permalink / raw)
To: Linux PPC Dev
On Thu, Feb 01, 2001 at 12:29:39PM +0100, Benjamin Herrenschmidt wrote:
> The current agpgart driver won't work on PPC, the Apple AGP host bridge
> is not supported.
so I guessed
> The new DRI support announced by Gareth is using the PCI GART which
> doesn't need the AGP capabilities.
makes sense
> Don't enable either AGP or DRI in your
> kernel, and build the kernel r128 DRM module from XFree sources.
I didnt, but as mentioned when I dont have AGP gart enabled in the kernel
make in the kernel module directory in the X Free source tree only makes
tdfx, it fdoesnt do r128 or anything else.
> You need
> to use the CVS branch posted earlier by Gareth.
I am using that branch.
> I slightly hacked my own
> to build since I lack the glide libs necessary for the 3dfx stuff to compile.
what does glide have to do with this? isnt that only used with tdfx?
So where do I find out about pci gart and how to make the r128 driver
compile using it? Should I simply read through the Makefil and the r128 code
and ifnd the stuff related to pci gart and enable anything there possibly
turned off or some such?
See You
Steve
--
sjh@wibble.net http://wibble.net/~sjh
Look Up In The Sky
Is it a bird? No
Is it a plane No
Is it a small blue banana?
Yes
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: agpgart? or how to use dri?
2001-02-01 22:53 ` Steven Hanley
@ 2001-02-01 23:25 ` Michel Dänzer
2001-02-02 0:02 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 6+ messages in thread
From: Michel Dänzer @ 2001-02-01 23:25 UTC (permalink / raw)
To: Steven Hanley; +Cc: Linux PPC Dev
Steven Hanley wrote:
> > Don't enable either AGP or DRI in your
> > kernel, and build the kernel r128 DRM module from XFree sources.
>
> I didnt, but as mentioned when I dont have AGP gart enabled in the kernel
> make in the kernel module directory in the X Free source tree only makes
> tdfx, it fdoesnt do r128 or anything else.
Have you tried make -f Makefile.linux ? And are you sure that it is picking up
the right kernel headers?
> > I slightly hacked my own to build since I lack the glide libs necessary
> > for the 3dfx stuff to compile.
>
> what does glide have to do with this? isnt that only used with tdfx?
Exactly, that's why you have to disable it in host.def or you get errors
during the build.
Michel
--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: agpgart? or how to use dri?
2001-02-01 22:53 ` Steven Hanley
2001-02-01 23:25 ` Michel Dänzer
@ 2001-02-02 0:02 ` Benjamin Herrenschmidt
2001-02-02 15:27 ` Kostas Gewrgiou
1 sibling, 1 reply; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2001-02-02 0:02 UTC (permalink / raw)
To: Steven Hanley, Linux PPC Dev
>
>> I slightly hacked my own
>> to build since I lack the glide libs necessary for the 3dfx stuff to
>compile.
>
>what does glide have to do with this? isnt that only used with tdfx?
Yes, but the Makefile of the kernel DRM modules will build all modules
(3dfc, ati, ...) and so would fail when the glide headers are not there.
>So where do I find out about pci gart and how to make the r128 driver
>compile using it? Should I simply read through the Makefil and the r128 code
>and ifnd the stuff related to pci gart and enable anything there possibly
>turned off or some such?
Well, what I did was to:
- Get Gareth CVS branch
- Make World
- remove tdfx in the drivers Makefile and the DRM kernel makefile
- Re-make
- Make DRM modules (make -f Makefile.linux in the DRM kernel directory)
- make install
Note that for a Pismo (rage M3), you'll also need to edit your XF86Config
and do
- Disable "UseFBDev" option as the current aty128fb does work correctly
in 16 bits
- Set Option "ProgramFPRegs" "No" or the driver will crash
- Set your bit depth to 16 bits (not 15 nor 32)
Also, using windowed GL apps tend to hang the server as soon as a 2D
operation is done. This problem seem to be specific to the RageM3 of the
Pismo.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: agpgart? or how to use dri?
2001-02-02 0:02 ` Benjamin Herrenschmidt
@ 2001-02-02 15:27 ` Kostas Gewrgiou
0 siblings, 0 replies; 6+ messages in thread
From: Kostas Gewrgiou @ 2001-02-02 15:27 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Steven Hanley, Linux PPC Dev
On Fri, 2 Feb 2001, Benjamin Herrenschmidt wrote:
>
> >
> >> I slightly hacked my own
> >> to build since I lack the glide libs necessary for the 3dfx stuff to
> >compile.
> >
> >what does glide have to do with this? isnt that only used with tdfx?
>
> Yes, but the Makefile of the kernel DRM modules will build all modules
> (3dfc, ati, ...) and so would fail when the glide headers are not there.
.....
> Well, what I did was to:
>
> - Get Gareth CVS branch
> - Make World
> - remove tdfx in the drivers Makefile and the DRM kernel makefile
Until now the default for ppc was #define HasGlide3 NO if this has been
changed to YES, then disabling it in you hosts.cf should work.
Kostas
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-02-02 15:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-01 7:48 agpgart? or how to use dri? Steven Hanley
2001-02-01 11:29 ` Benjamin Herrenschmidt
2001-02-01 22:53 ` Steven Hanley
2001-02-01 23:25 ` Michel Dänzer
2001-02-02 0:02 ` Benjamin Herrenschmidt
2001-02-02 15:27 ` Kostas Gewrgiou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).