2005-12-26 23:59:37

by Gerhard Mack

[permalink] [raw]
Subject: ati X300 support?

hello,

Does anyone know when there will be working support for the ATI X300 I
tried the latest kernel (2.6.15-rc7) but I don't see drivers for it.

Gerhard


--
Gerhard Mack

[email protected]

<>< As a computer I find your faith in technology amusing.


2005-12-27 01:49:10

by Alistair John Strachan

[permalink] [raw]
Subject: Re: ati X300 support?

On Monday 26 December 2005 23:59, Gerhard Mack wrote:
> hello,
>
> Does anyone know when there will be working support for the ATI X300 I
> tried the latest kernel (2.6.15-rc7) but I don't see drivers for it.

The only support the kernel should and currently does provide for this
hardware is the "radeon" drm module. I believe the X300 is an R3xx core, so
you might find it's supported minimally in the current Xorg release
(6.9.0/7.0.0). My Mobility Radeon 9600 seems to work fine with this
combination.

Alternatively you may want to look into running ATI's proprietary driver
(fglrx). Both are compatible with 2.6.14.

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

2005-12-27 13:18:16

by Gerhard Mack

[permalink] [raw]
Subject: Re: ati X300 support?

The raedon drm module does not seem to detect the card.

Gerhard


On Tue, 27 Dec 2005, Alistair John Strachan wrote:

> Date: Tue, 27 Dec 2005 01:49:24 +0000
> From: Alistair John Strachan <[email protected]>
> To: Gerhard Mack <[email protected]>
> Cc: [email protected]
> Subject: Re: ati X300 support?
>
> On Monday 26 December 2005 23:59, Gerhard Mack wrote:
> > hello,
> >
> > Does anyone know when there will be working support for the ATI X300 I
> > tried the latest kernel (2.6.15-rc7) but I don't see drivers for it.
>
> The only support the kernel should and currently does provide for this
> hardware is the "radeon" drm module. I believe the X300 is an R3xx core, so
> you might find it's supported minimally in the current Xorg release
> (6.9.0/7.0.0). My Mobility Radeon 9600 seems to work fine with this
> combination.
>
> Alternatively you may want to look into running ATI's proprietary driver
> (fglrx). Both are compatible with 2.6.14.
>
>

--
Gerhard Mack

[email protected]

<>< As a computer I find your faith in technology amusing.

2005-12-27 15:45:16

by Alistair John Strachan

[permalink] [raw]
Subject: Re: ati X300 support?

On Tuesday 27 December 2005 13:17, Gerhard Mack wrote:
> The raedon drm module does not seem to detect the card.

Try finding the place where the supported PCI ids are written, and add your
card's PCI ID. If the DRM module successfully detects your card, email the
maintainers with the information (and ideally a patch which adds this
information).

I don't know for sure, but according to this page:

http://dri.freedesktop.org/wiki/ATIRadeon#head-cef41521e55884edc9cd417b42fb2b8b4fcda672

"X300 denotes a rv370 based card."

This may imply that the r300 driver is useable with this hardware.

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

2005-12-27 15:57:25

by Gerhard Mack

[permalink] [raw]
Subject: Re: ati X300 support?

I have it working in X.org with no problem. I just can't get the drm
module working in the kernel. Last time I tried to just add my PCI ids
the problem was a lack of PCIE support in the drm drivers.

FYI the fglrx drivers suck badly. ATI hasn't bothered to keep their
drivers up to date at all and the result is that they finally have
working 2.6.14 drivers but only for 32 bit machines. x86_64 is still
broken on any recent kernel and it's been that way for months. ATI's tech
support basically gave up after several days and just informed me it
wasn't really supported and there is nothing they could do for me.

Gerhard

On Tue, 27 Dec 2005, Alistair John Strachan wrote:

> Date: Tue, 27 Dec 2005 15:45:31 +0000
> From: Alistair John Strachan <[email protected]>
> To: Gerhard Mack <[email protected]>
> Cc: [email protected]
> Subject: Re: ati X300 support?
>
> On Tuesday 27 December 2005 13:17, Gerhard Mack wrote:
> > The raedon drm module does not seem to detect the card.
>
> Try finding the place where the supported PCI ids are written, and add your
> card's PCI ID. If the DRM module successfully detects your card, email the
> maintainers with the information (and ideally a patch which adds this
> information).
>
> I don't know for sure, but according to this page:
>
> http://dri.freedesktop.org/wiki/ATIRadeon#head-cef41521e55884edc9cd417b42fb2b8b4fcda672
>
> "X300 denotes a rv370 based card."
>
> This may imply that the r300 driver is useable with this hardware.
>
>

--
Gerhard Mack

[email protected]

<>< As a computer I find your faith in technology amusing.

2005-12-27 16:03:15

by Alistair John Strachan

[permalink] [raw]
Subject: Re: ati X300 support?

On Tuesday 27 December 2005 15:57, Gerhard Mack wrote:
> I have it working in X.org with no problem. I just can't get the drm
> module working in the kernel. Last time I tried to just add my PCI ids
> the problem was a lack of PCIE support in the drm drivers.

I'd try again, I have a vague memory of reading a changelog a few releases ago
that mentioned PCIe support in radeon-drm.

> FYI the fglrx drivers suck badly. ATI hasn't bothered to keep their
> drivers up to date at all and the result is that they finally have
> working 2.6.14 drivers but only for 32 bit machines. x86_64 is still
> broken on any recent kernel and it's been that way for months. ATI's tech
> support basically gave up after several days and just informed me it
> wasn't really supported and there is nothing they could do for me.

You're better off running open source drivers anyway, it's less hassle, you
don't have to worry about every kernel upgrade breaking them, and it's only
an X300 anyway -- on my Mobility 9600, I just play a few small games and
expect OpenGL accelerated applications to work properly.

If your goals are similar, they're probably achievable with mainline.

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

2005-12-27 22:27:13

by Chris Bergeron

[permalink] [raw]
Subject: Re: ati X300 support?

Alistair John Strachan wrote:

>On Tuesday 27 December 2005 15:57, Gerhard Mack wrote:
>
>
>>I have it working in X.org with no problem. I just can't get the drm
>>module working in the kernel. Last time I tried to just add my PCI ids
>>the problem was a lack of PCIE support in the drm drivers.
>>
>>
>
>I'd try again, I have a vague memory of reading a changelog a few releases ago
>that mentioned PCIe support in radeon-drm.
>
>
>
>>FYI the fglrx drivers suck badly. ATI hasn't bothered to keep their
>>drivers up to date at all and the result is that they finally have
>>working 2.6.14 drivers but only for 32 bit machines. x86_64 is still
>>broken on any recent kernel and it's been that way for months. ATI's tech
>>support basically gave up after several days and just informed me it
>>wasn't really supported and there is nothing they could do for me.
>>
>>
>
>You're better off running open source drivers anyway, it's less hassle, you
>don't have to worry about every kernel upgrade breaking them, and it's only
>an X300 anyway -- on my Mobility 9600, I just play a few small games and
>expect OpenGL accelerated applications to work properly.
>
>If your goals are similar, they're probably achievable with mainline.
>
>
>

The DRI project only supports up to the Radeon 9200 unless I missed an
update and their page is outdated. Check the DRI ATI page for details.

http://dri.freedesktop.org/wiki/ATI

Now.. the fglrx driver supposedly supports the X300, but if ATI won't
support you on it that doesn't mean much, I guess.

-- Chris
Editor, PCBurn.com

2005-12-27 23:21:06

by Alistair John Strachan

[permalink] [raw]
Subject: Re: ati X300 support?

On Tuesday 27 December 2005 22:27, Chris Bergeron wrote:
> Alistair John Strachan wrote:
> >On Tuesday 27 December 2005 15:57, Gerhard Mack wrote:
> >>I have it working in X.org with no problem. I just can't get the drm
> >>module working in the kernel. Last time I tried to just add my PCI ids
> >>the problem was a lack of PCIE support in the drm drivers.
> >
> >I'd try again, I have a vague memory of reading a changelog a few releases
> > ago that mentioned PCIe support in radeon-drm.
> >
> >>FYI the fglrx drivers suck badly. ATI hasn't bothered to keep their
> >>drivers up to date at all and the result is that they finally have
> >>working 2.6.14 drivers but only for 32 bit machines. x86_64 is still
> >>broken on any recent kernel and it's been that way for months. ATI's
> >> tech support basically gave up after several days and just informed me
> >> it wasn't really supported and there is nothing they could do for me.
> >
> >You're better off running open source drivers anyway, it's less hassle,
> > you don't have to worry about every kernel upgrade breaking them, and
> > it's only an X300 anyway -- on my Mobility 9600, I just play a few small
> > games and expect OpenGL accelerated applications to work properly.
> >
> >If your goals are similar, they're probably achievable with mainline.
>
> The DRI project only supports up to the Radeon 9200 unless I missed an
> update and their page is outdated. Check the DRI ATI page for details.
>
> http://dri.freedesktop.org/wiki/ATI

Yes, you and this link are both out of date. The r300 driver provides basic
support for many newer video cards based on the r300 core and is shipped with
Xorg 7.0.0.

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

2005-12-28 00:20:57

by Martin Drab

[permalink] [raw]
Subject: Re: ati X300 support?

On Tue, 27 Dec 2005, Gerhard Mack wrote:

> I have it working in X.org with no problem. I just can't get the drm
> module working in the kernel. Last time I tried to just add my PCI ids
> the problem was a lack of PCIE support in the drm drivers.
>
> FYI the fglrx drivers suck badly. ATI hasn't bothered to keep their
> drivers up to date at all and the result is that they finally have
> working 2.6.14 drivers but only for 32 bit machines. x86_64 is still
> broken on any recent kernel and it's been that way for months. ATI's tech
> support basically gave up after several days and just informed me it
> wasn't really supported and there is nothing they could do for me.

I don't want to defend ATI here or anything, but I use the 64-bit fglrx
8.19.10 with 2.6.15-rc5 and it works (except for the minor patch for
2.6.15-rc2-git3 and later that we came out with with Hugh Dickins and that
was sent to the list not long ago).

The problem with PCIe is, that IMHO they do not activate the acceleration
unless an AGP is detected (at least that's what it sounds to me like). If
there is PCIe, there is no AGP, though AGP is not detected, and
acceleration is not enabled. I think it may be as simple as that. I was
reporting this to ATI a while ago. I haven't tried the new fglrx 8.20.8
yet, but if they read the reports at all, then there's a good chance that
this may be fixed there already.

Martin

2005-12-28 00:31:05

by Gerhard Mack

[permalink] [raw]
Subject: Re: ati X300 support?

On Wed, 28 Dec 2005, Martin Drab wrote:

> Date: Wed, 28 Dec 2005 01:20:42 +0100 (CET)
> From: Martin Drab <[email protected]>
> To: Gerhard Mack <[email protected]>
> Cc: Alistair John Strachan <[email protected]>,
> [email protected]
> Subject: Re: ati X300 support?
>
> On Tue, 27 Dec 2005, Gerhard Mack wrote:
>
> > I have it working in X.org with no problem. I just can't get the drm
> > module working in the kernel. Last time I tried to just add my PCI ids
> > the problem was a lack of PCIE support in the drm drivers.
> >
> > FYI the fglrx drivers suck badly. ATI hasn't bothered to keep their
> > drivers up to date at all and the result is that they finally have
> > working 2.6.14 drivers but only for 32 bit machines. x86_64 is still
> > broken on any recent kernel and it's been that way for months. ATI's tech
> > support basically gave up after several days and just informed me it
> > wasn't really supported and there is nothing they could do for me.
>
> I don't want to defend ATI here or anything, but I use the 64-bit fglrx
> 8.19.10 with 2.6.15-rc5 and it works (except for the minor patch for
> 2.6.15-rc2-git3 and later that we came out with with Hugh Dickins and that
> was sent to the list not long ago).
>
> The problem with PCIe is, that IMHO they do not activate the acceleration
> unless an AGP is detected (at least that's what it sounds to me like). If
> there is PCIe, there is no AGP, though AGP is not detected, and
> acceleration is not enabled. I think it may be as simple as that. I was
> reporting this to ATI a while ago. I haven't tried the new fglrx 8.20.8
> yet, but if they read the reports at all, then there's a good chance that
> this may be fixed there already.

Where is this patch? does it re add the obsolete interfaces dropped by the
kernel? On my system it won't even compile.

Gerhard

--
Gerhard Mack

[email protected]

<>< As a computer I find your faith in technology amusing.

2005-12-28 01:41:13

by Martin Drab

[permalink] [raw]
Subject: Re: ati X300 support?

On Tue, 27 Dec 2005, Gerhard Mack wrote:

> On Wed, 28 Dec 2005, Martin Drab wrote:
>
> > Date: Wed, 28 Dec 2005 01:20:42 +0100 (CET)
> > From: Martin Drab <[email protected]>
> > To: Gerhard Mack <[email protected]>
> > Cc: Alistair John Strachan <[email protected]>,
> > [email protected]
> > Subject: Re: ati X300 support?
> >
> > On Tue, 27 Dec 2005, Gerhard Mack wrote:
> >
> > > I have it working in X.org with no problem. I just can't get the drm
> > > module working in the kernel. Last time I tried to just add my PCI ids
> > > the problem was a lack of PCIE support in the drm drivers.
> > >
> > > FYI the fglrx drivers suck badly. ATI hasn't bothered to keep their
> > > drivers up to date at all and the result is that they finally have
> > > working 2.6.14 drivers but only for 32 bit machines. x86_64 is still
> > > broken on any recent kernel and it's been that way for months. ATI's tech
> > > support basically gave up after several days and just informed me it
> > > wasn't really supported and there is nothing they could do for me.
> >
> > I don't want to defend ATI here or anything, but I use the 64-bit fglrx
> > 8.19.10 with 2.6.15-rc5 and it works (except for the minor patch for
> > 2.6.15-rc2-git3 and later that we came out with with Hugh Dickins and that
> > was sent to the list not long ago).
...
> Where is this patch? does it re add the obsolete interfaces dropped by the
> kernel? On my system it won't even compile.

Here:

------------------------------------------------------------------------------------
diff -Napur fglrx64.orig/build_mod/firegl_public.c fglrx64/build_mod/firegl_public.c
--- fglrx64.orig/build_mod/firegl_public.c 2005-11-14 02:35:45.000000000 +0100
+++ fglrx64/build_mod/firegl_public.c 2005-12-08 01:25:27.000000000 +0100
@@ -2586,7 +2586,7 @@ static __inline__ vm_nopage_ret_t do_vm_

pMmPage = virt_to_page(kaddr);

-#if 0
+#if LINUX_VERSION_CODE >= 0x02060f
// WARNING WARNINIG WARNNING WARNNING WARNNING WARNNING WARNNING WARNNING
// Don't increment page usage count, cause ctx pages are allocated
// with drm_alloc_pages, which marks all pages as reserved. Reserved
-------------------------------------------------------------------------------------

And no, this one doesn't add the missing interfaces, but the attached
ones do.

I'm resending what I sent to Hugh. The above patch (which is the one I
was talking about) is not included there, so you need to apply afterwards.
Also it's made for the fglrx 8.19.20. I haven't had time to experiment
with 8.20.8, yet.

---

The script that extracts the kernel module sources and the user space
binaries is attached in the fglrx64-assemble_scripts.tar.bz2 archive. Just
copy the 64-bit ATI Driver Installer from the link above to the
fglrx64-assemble_scripts directory and run the "assemble" script. It will
extract the kernel module sources into the
"./fglrx-8.19.10-x86_64-kernel-module" directory and the user space
binaries into the "./fglrx-8.19.10-x86_64-userspace" directory.

The kernel module sources while extracted are also patched by the three
patches that I've placed into the "patched" subdirectory.

The first patch is necessary in order to compile the 64-bit fglrx cleanly
using the GCC 4.x. There's nothing intrusive, as you can see for
yourself. It also adds the script "c" and "b" to its top directory. Using
"c" you compile the module (resulting "fglrx.ko" should be created in the
"build_mod/2.6.x" subdirectory). Using the "b" script you do the cleanup
(kind of a "make mrproper" equivalent). (Simple and easy, just what I
like! :)

The second patch fixes the ATI's wrong SMP detection in their compilation
script "make.sh" (which is called by my "c" script). They are using lots
of different approaches to try to detect an SMP kernel, which I guess is
pointless, wrong, and not working (it detects my UP notebook with
old single core Athlon64 3000+ that is using a UP configured kernel as an
SMP ;). I think the only reliable way to detect an SMP kernel is to look
at its linux/autoconf.h and search for the "#define CONFIG_SMP" (right? -
the kernel sources have to be present for the compilation anyway, so why
all the other fuss?). So the patch removes all the other approaches from
the script and only does this. It's only influence is on either generating
or not generating the SMP=1 macro on the gcc command-line. So you may
safely ignore it with respect to the bug.

The third patch also influences the gcc command-line generated by the
"make.sh" script. It defines the PAGE_ATTR_FIX as 1 if it is undefined. I
kind of don't know what exactly is this good for. It seems to fix some
AMD AthlonXP page attributes releated bug. By default the value is not
defined anywhere, and gcc preprocessor is unable to handle it due to the
incomplete condition (in)equations. So I set it to 1. If you look at the
sources, it is not used on x86_64 anyway.

I hope it helps,
Martin


Attachments:
fglrx64-assemble_scripts.tar.bz2 (5.99 kB)
Scripts for extracting files out of ATI Driver Installer

2005-12-28 02:22:26

by Gerhard Mack

[permalink] [raw]
Subject: Re: ati X300 support?


/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.15-rc7/build SUBDIRS=/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.15-rc7'
mkdir -p /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x/.tmp_versions
make -f scripts/Makefile.build obj=/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x
Building modules, stage 2.
make -rR -f /usr/src/linux-2.6.15-rc7/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-2.6.15-rc7/Module.symvers vmlinux /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x/fglrx.o
Warning: could not find /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x/.libfglrx_ip.a.GCC4.cmd for /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x/libfglrx_ip.a.GCC4
make[1]: Leaving directory `/usr/src/linux-2.6.15-rc7'
build succeeded with return value 0
compiling fglrx_agp.ko module
make -C /lib/modules/2.6.15-rc7/build SUBDIRS=/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart modules
make[1]: Entering directory `/usr/src/linux-2.6.15-rc7'
mkdir -p /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/.tmp_versions
make -f scripts/Makefile.build obj=/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart
gcc -Wp,-MD,/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/.firegl_wrap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/src/linux-2.6.15-rc7 -D__AGP__ -DFGL -DFGL_LINUX -DFGL_GART_RESERVED_SLOT -DFGL_LINUX253P1_VMA_API -DPAGE_ATTR_FIX=1 -DMODULE -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=1 -DMODVERSIONS -DKBUILD_BASENAME=firegl_wrap -DKBUILD_MODNAME=fglrx_agp -c -o /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/.tmp_firegl_wrap.o /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c
In file included from /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:113:
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_agp.h:755:1: warning: "PCI_DEVICE_ID_INTEL_ICH7_1" redefined
In file included from include/linux/pci.h:26,
from /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:74:
include/linux/pci_ids.h:2051:1: warning: this is the location of the previous definition
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:121:25: error: asm/ioctl32.h: No such file or directory
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:171: error: static declaration of 'errno' follows non-static declaration
include/linux/unistd.h:4: error: previous declaration of 'errno' was here
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_phys_to_virt':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:660: warning: passing argument 1 of 'phys_to_virt' makes integer from pointer without a cast
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:660: warning: return makes integer from pointer without a cast
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: At top level:
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:695: error: conflicting types for '__ke_pci_find_class'
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.h:419: error: previous declaration of '__ke_pci_find_class' was here
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_pci_find_class':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:697: warning: implicit declaration of function 'pci_find_class'
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:697: error: incompatible types in return
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function 'firegl_get_user_ptr':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:762: warning: assignment makes pointer from integer without a cast
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function 'firegl_put_user_ptr':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:794: warning: cast from pointer to integer of different size
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:794: warning: cast from pointer to integer of different size
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:794: warning: cast from pointer to integer of different size
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:794: warning: cast from pointer to integer of different size
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_verify_area':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1123: warning: implicit declaration of function 'verify_area'
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_get_vm_phys_addr':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1362: error: 'struct <anonymous>' has no member named 'pud'
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_register_ioctl32_conversion':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1689: warning: implicit declaration of function 'register_ioctl32_conversion'
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_unregister_ioctl32_conversion':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1694: warning: implicit declaration of function 'unregister_ioctl32_conversion'
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_vm_phys_addr_str':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1818: error: 'struct <anonymous>' has no member named 'pud'
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_smp_call_function':
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:2252: warning: statement with no effect
make[2]: *** [/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.o] Error 1
make[1]: *** [_module_/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.15-rc7'
make: *** [default] Error 2
AGPGART module build failed with return value 2
duplication skipped - generator was not called from regular lib tree
done.
==============================
/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module
--
Gerhard Mack

[email protected]

<>< As a computer I find your faith in technology amusing.

2005-12-28 08:28:17

by Xavier Bestel

[permalink] [raw]
Subject: Re: ati X300 support?

On Wed, 2005-12-28 at 00:20, Alistair John Strachan wrote:

> > The DRI project only supports up to the Radeon 9200 unless I missed an
> > update and their page is outdated. Check the DRI ATI page for details.
> >
> > http://dri.freedesktop.org/wiki/ATI
>
> Yes, you and this link are both out of date. The r300 driver provides basic
> support for many newer video cards based on the r300 core and is shipped with
> Xorg 7.0.0.

Even if experimental, r400 cores are supported too.

Xav


2005-12-28 17:46:30

by Alistair John Strachan

[permalink] [raw]
Subject: Re: ati X300 support?

On Wednesday 28 December 2005 08:28, Xavier Bestel wrote:
> On Wed, 2005-12-28 at 00:20, Alistair John Strachan wrote:
> > > The DRI project only supports up to the Radeon 9200 unless I missed an
> > > update and their page is outdated. Check the DRI ATI page for details.
> > >
> > > http://dri.freedesktop.org/wiki/ATI
> >
> > Yes, you and this link are both out of date. The r300 driver provides
> > basic support for many newer video cards based on the r300 core and is
> > shipped with Xorg 7.0.0.
>
> Even if experimental, r400 cores are supported too.
>

Thanks Xav, I was not aware of this.

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

2005-12-28 19:32:30

by Kasper Sandberg

[permalink] [raw]
Subject: Re: ati X300 support?

On Tue, 2005-12-27 at 23:20 +0000, Alistair John Strachan wrote:
> On Tuesday 27 December 2005 22:27, Chris Bergeron wrote:
> > Alistair John Strachan wrote:
> > >On Tuesday 27 December 2005 15:57, Gerhard Mack wrote:
> > >>I have it working in X.org with no problem. I just can't get the drm
> > >>module working in the kernel. Last time I tried to just add my PCI ids
> > >>the problem was a lack of PCIE support in the drm drivers.
> > >
> > >I'd try again, I have a vague memory of reading a changelog a few releases
> > > ago that mentioned PCIe support in radeon-drm.
> > >
> > >>FYI the fglrx drivers suck badly. ATI hasn't bothered to keep their
> > >>drivers up to date at all and the result is that they finally have
> > >>working 2.6.14 drivers but only for 32 bit machines. x86_64 is still
> > >>broken on any recent kernel and it's been that way for months. ATI's
> > >> tech support basically gave up after several days and just informed me
> > >> it wasn't really supported and there is nothing they could do for me.
> > >
> > >You're better off running open source drivers anyway, it's less hassle,
> > > you don't have to worry about every kernel upgrade breaking them, and
> > > it's only an X300 anyway -- on my Mobility 9600, I just play a few small
> > > games and expect OpenGL accelerated applications to work properly.
> > >
> > >If your goals are similar, they're probably achievable with mainline.
> >
> > The DRI project only supports up to the Radeon 9200 unless I missed an
> > update and their page is outdated. Check the DRI ATI page for details.
> >
> > http://dri.freedesktop.org/wiki/ATI
>
> Yes, you and this link are both out of date. The r300 driver provides basic
> support for many newer video cards based on the r300 core and is shipped with
> Xorg 7.0.0.
is this only 7.0.0? i just built 6.9 and i dont have the 'r300' x
driver, or... is it merged into the 'ati' or 'radeon' xorg driver
module?
>

2005-12-28 20:02:08

by Chris Bergeron

[permalink] [raw]
Subject: Re: ati X300 support?

Alistair John Strachan wrote:

>On Wednesday 28 December 2005 08:28, Xavier Bestel wrote:
>
>
>>On Wed, 2005-12-28 at 00:20, Alistair John Strachan wrote:
>>
>>
>>>>The DRI project only supports up to the Radeon 9200 unless I missed an
>>>>update and their page is outdated. Check the DRI ATI page for details.
>>>>
>>>>http://dri.freedesktop.org/wiki/ATI
>>>>
>>>>
>>>Yes, you and this link are both out of date. The r300 driver provides
>>>basic support for many newer video cards based on the r300 core and is
>>>shipped with Xorg 7.0.0.
>>>
>>>
>>Even if experimental, r400 cores are supported too.
>>
>>
>>
>
>Thanks Xav, I was not aware of this.
>
>
>
Thank you both for the update. I'll have to go and look through the
newer tree and see what it's got all-round.

-- Chris

2005-12-31 00:24:29

by Brice Goglin

[permalink] [raw]
Subject: Re: ati X300 support?

Gerhard Mack wrote:

>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module
>ATI module generator V 2.0
>==========================
>initializing...
>cleaning...
>patching 'highmem.h'...
>assuming new VMA API since we do have kernel 2.6.x...
>doing Makefile based build for kernel 2.6.x and higher
>make -C /lib/modules/2.6.15-rc7/build SUBDIRS=/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x modules
>make[1]: Entering directory `/usr/src/linux-2.6.15-rc7'
>mkdir -p /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x/.tmp_versions
>make -f scripts/Makefile.build obj=/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x
> Building modules, stage 2.
>make -rR -f /usr/src/linux-2.6.15-rc7/scripts/Makefile.modpost
> scripts/mod/modpost -m -a -i /usr/src/linux-2.6.15-rc7/Module.symvers vmlinux /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x/fglrx.o
>Warning: could not find /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x/.libfglrx_ip.a.GCC4.cmd for /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/2.6.x/libfglrx_ip.a.GCC4
>make[1]: Leaving directory `/usr/src/linux-2.6.15-rc7'
>build succeeded with return value 0
>
>
fglrx.ko got build at this point, didn't it ? I am also seeing a build
problem on my (32bits) Thinkpad T43 _after_ fglrx.ko got build
successfully. I just don't care about the build error, only load
fglrx.ko and it works.

Brice



> compiling fglrx_agp.ko module
>make -C /lib/modules/2.6.15-rc7/build SUBDIRS=/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart modules
>make[1]: Entering directory `/usr/src/linux-2.6.15-rc7'
>mkdir -p /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/.tmp_versions
>make -f scripts/Makefile.build obj=/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart
> gcc -Wp,-MD,/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/.firegl_wrap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/src/linux-2.6.15-rc7 -D__AGP__ -DFGL -DFGL_LINUX -DFGL_GART_RESERVED_SLOT -DFGL_LINUX253P1_VMA_API -DPAGE_ATTR_FIX=1 -DMODULE -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=1 -DMODVERSIONS -DKBUILD_BASENAME=firegl_wrap -DKBUILD_MODNAME=fglrx_agp -c -o /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/.tmp_firegl_wrap.o /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c
>In file included from /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:113:
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_agp.h:755:1: warning: "PCI_DEVICE_ID_INTEL_ICH7_1" redefined
>In file included from include/linux/pci.h:26,
> from /usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:74:
>include/linux/pci_ids.h:2051:1: warning: this is the location of the previous definition
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:121:25: error: asm/ioctl32.h: No such file or directory
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:171: error: static declaration of 'errno' follows non-static declaration
>include/linux/unistd.h:4: error: previous declaration of 'errno' was here
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_phys_to_virt':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:660: warning: passing argument 1 of 'phys_to_virt' makes integer from pointer without a cast
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:660: warning: return makes integer from pointer without a cast
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: At top level:
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:695: error: conflicting types for '__ke_pci_find_class'
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.h:419: error: previous declaration of '__ke_pci_find_class' was here
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_pci_find_class':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:697: warning: implicit declaration of function 'pci_find_class'
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:697: error: incompatible types in return
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function 'firegl_get_user_ptr':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:762: warning: assignment makes pointer from integer without a cast
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function 'firegl_put_user_ptr':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:794: warning: cast from pointer to integer of different size
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:794: warning: cast from pointer to integer of different size
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:794: warning: cast from pointer to integer of different size
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:794: warning: cast from pointer to integer of different size
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_verify_area':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1123: warning: implicit declaration of function 'verify_area'
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_get_vm_phys_addr':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1362: error: 'struct <anonymous>' has no member named 'pud'
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_register_ioctl32_conversion':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1689: warning: implicit declaration of function 'register_ioctl32_conversion'
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_unregister_ioctl32_conversion':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1694: warning: implicit declaration of function 'unregister_ioctl32_conversion'
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_vm_phys_addr_str':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:1818: error: 'struct <anonymous>' has no member named 'pud'
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c: In function '__ke_smp_call_function':
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.c:2252: warning: statement with no effect
>make[2]: *** [/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart/firegl_wrap.o] Error 1
>make[1]: *** [_module_/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module/build_mod/firegl_agpgart] Error 2
>make[1]: Leaving directory `/usr/src/linux-2.6.15-rc7'
>make: *** [default] Error 2
>AGPGART module build failed with return value 2
>duplication skipped - generator was not called from regular lib tree
>done.
>==============================
>/usr/local/src/fglrx64-assemble_scripts/fglrx-8.20.8-x86_64-kernel-module
>--
>Gerhard Mack
>
>[email protected]
>
><>< As a computer I find your faith in technology amusing.
>


2006-01-01 19:30:29

by Alistair John Strachan

[permalink] [raw]
Subject: Re: ati X300 support?

On Wednesday 28 December 2005 19:32, Kasper Sandberg wrote:
[snip]
> >
> > Yes, you and this link are both out of date. The r300 driver provides
> > basic support for many newer video cards based on the r300 core and is
> > shipped with Xorg 7.0.0.
>
> is this only 7.0.0? i just built 6.9 and i dont have the 'r300' x
> driver, or... is it merged into the 'ati' or 'radeon' xorg driver
> module?
>

Sorry for the delay Kasper, the driver is still "ati"; if you have DRI
compiled and enabled, the "ati" driver will attempt to set up DRI via the
r300_dri.so that should exist in either /usr/X11R7/lib/modules/dri,
or /usr/X11R7/lib/xorg/modules/dri.

You'll need a fairly recently kernel with drm support for r300/r400, but it
seems to work OOTB.

If you do NOT have the dri drivers, it is trivial to install them. Download
MesaLib-6.4.1, then issue:

make linux-dri

When this finishes, point the installer to the right directory. I initially
made the mistake of pointing it directly to /usr/X11R7/lib, but it copies the
XXX_dri.so's to this directory, so it should actually
be /usr/X11R7/lib/modules/dri (create this directory prior to installation)..

..and that should be it.

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.