View previous topic :: View next topic |
Author |
Message |
monsm Guru
Joined: 26 Sep 2007 Posts: 467 Location: London, UK
|
Posted: Fri Oct 23, 2009 12:32 pm Post subject: ATI legacy driver 9.3 |
|
|
Hi,
My old Nvidia card have started to degrade with lots of flickering and a darker screen (its probably failing soon).
Luckily I had an old ATI card I can use instead. This is a Radeon 9800 (lspci report it as R350).
According to the ati website they have split off these old ones, in a similar fashion as Nvidia into a legacy driver. The legacy driver is the same as the normal one except with these legacy cards not support beyond version 9.3
This version is not in portage. Shouldn't it be? Whats the reason for this?
I did see some error messages about incompatibility while installing the newer driver yesterday. Is this related?
I abandoned it and use the xorg radeon driver for the time being. It seems to be working just fine. Wouldn't mind knowing what the situation is with the ati-drivers though...
Mons |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Fri Oct 23, 2009 12:37 pm Post subject: |
|
|
Because ati-drivers shouldn't be used for r300 support:
# emerge xf86-video-ati
for quality open source drivers. |
|
Back to top |
|
|
monsm Guru
Joined: 26 Sep 2007 Posts: 467 Location: London, UK
|
Posted: Fri Oct 23, 2009 12:44 pm Post subject: |
|
|
ssuominen wrote: | Because ati-drivers shouldn't be used for r300 support:
# emerge xf86-video-ati
for quality open source drivers. |
Yes, the radeon driver is good (and is what I have installed). But what if I wanted to try the ati one anyway, just to see what its like? Is there some incompatibility with X at the moment?
(I have xorg-server 1.6.3)
Mons |
|
Back to top |
|
|
Draco-LVNH n00b
Joined: 07 Dec 2005 Posts: 30 Location: Mexico, Michoacan, Morelia
|
Posted: Sat Oct 24, 2009 4:09 am Post subject: |
|
|
I have the ati-drivers for my radeon xpress card and you need to have the version 1.5.3-r7 or 1.5.3-r6 of xorg-server, also you need to have a kernel 2.6.29.....
I would like to try sometime the ati-drivers because i read that some months ago (maybe) they started implementing VBO to the open source drivers....
But i want to wait the more I can because if I migrate and find out that I still do not have 3D with the open source drivers I will get angry....
Maybe you can have a better performance with the open driver because I think r300 cards have less problems than the xpress ones (r485) with those drivers....
I wish i can have soon 3D support with open source drivers so I can update Xorg and the Kernel and also use Compiz.
P.S.: for the ati-drivers you need to use the x11-drivers/ati-drivers package with slot 0 which is currently masked, and I think that maybe the ebuild for 8.593 will tell you that you need the 2.6.28 kernel but there is a patch so you can use 2.6.29 kernel...
In case you want the patch here it is:
Code: |
Quick-and-dirty fixes to build on 2.6.29-rcX kernels.
diff -Nparu build_mod/firegl_public.c fglrx-8.573-new/common/lib/modules/fglrx/build_mod/firegl_public.c
--- build_mod/firegl_public.c 2009-01-23 20:00:26.000000000 -0200
+++ fglrx-8.573-new/common/lib/modules/fglrx/build_mod/firegl_public.c 2009-02-13 15:25:00.000000000 -0200
@@ -1460,7 +1460,11 @@ KCL_TYPE_Pid ATI_API_CALL KCL_GetTgid(vo
*/
KCL_TYPE_Uid ATI_API_CALL KCL_GetEffectiveUid(void)
{
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28)
+ return current->cred->euid;
+#else
return current->euid;
+#endif
}
/** /brief Delay execution for the specified number of microseconds
@@ -1832,15 +1836,30 @@ int ATI_API_CALL KCL_PosixSecurityCapChe
*/
void ATI_API_CALL KCL_PosixSecurityCapSetIPCLock(unsigned int lock)
{
+
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28)
+ struct cred *new = prepare_creds();
+ if (!new) {
+ printk(KERN_ERR "fglrx: could not allocate memory\n");
+ return;
+ }
+#else
+#define new current
+#endif
if (lock == 0 )
{
- cap_lower(current->cap_effective, CAP_IPC_LOCK);
+ cap_lower(new->cap_effective, CAP_IPC_LOCK);
}
else
{
- cap_raise(current->cap_effective, CAP_IPC_LOCK);
+ cap_raise(new->cap_effective, CAP_IPC_LOCK);
}
- return;
+
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28)
+ commit_creds(new);
+#else
+#undef new
+#endif
}
/** \brief Get number of available RAM pages
diff -Nparu build_mod/firegl_public.h fglrx-8.573-new/common/lib/modules/fglrx/build_mod/firegl_public.h
--- build_mod/firegl_public.h 2009-01-23 20:00:26.000000000 -0200
+++ fglrx-8.573-new/common/lib/modules/fglrx/build_mod/firegl_public.h 2009-02-16 14:02:50.000000000 -0300
@@ -18,6 +18,7 @@
#define _FIREGL_PUBLIC_H_
#include <stdarg.h>
+#include <asm/pgtable.h>
#include "kcl_pci.h"
#include "kcl_io.h"
@@ -590,6 +591,11 @@ extern unsigned long KCL_SYSINFO_
#define cpu_has_pge test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability)
#endif
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28)
+#undef pgprot_writecombine
+#undef pgprot_noncached
+#endif
+
#ifndef pgprot_writecombine
#define pgprot_writecombine(prot) __pgprot((pgprot_val(prot) & ~(_PAGE_PCD)) | _PAGE_PWT)
#endif
@@ -598,6 +604,7 @@ extern unsigned long KCL_SYSINFO_
#define pgprot_noncached(prot) __pgprot(pgprot_val(prot) | _PAGE_PCD | _PAGE_PWT)
#endif
+
#endif //FIREGL_USWC_SUPPORT
diff -Nparu build_mod/kcl_acpi.c fglrx-8.573-new/common/lib/modules/fglrx/build_mod/kcl_acpi.c
--- build_mod/kcl_acpi.c 2009-01-23 20:00:26.000000000 -0200
+++ fglrx-8.573-new/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2009-02-13 15:25:00.000000000 -0200
@@ -18,6 +18,12 @@
#include <linux/autoconf.h>
#include <linux/acpi.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28)
+#include <../drivers/acpi/acpica/acconfig.h>
+#include <../drivers/acpi/acpica/aclocal.h>
+#include <../drivers/acpi/acpica/acobject.h>
+#endif
+
#include "kcl_config.h"
#include "kcl_type.h"
#include "kcl_acpi.h"
#include "kcl_acpi.h"
|
|
|
Back to top |
|
|
monsm Guru
Joined: 26 Sep 2007 Posts: 467 Location: London, UK
|
Posted: Sat Oct 24, 2009 10:24 pm Post subject: |
|
|
Hmm, interesting. I think I'll have to try various combinations of xorg, drivers and kernels.
I'll let you know the results. I don't feel like downgrading my xorg server, so I wonder if it will work with 2.6.30 or even 2.6.31 and the 9.3 version of the driver from the ati site...
Mons |
|
Back to top |
|
|
anton_kg Tux's lil' helper
Joined: 10 Feb 2007 Posts: 93
|
Posted: Sun Oct 25, 2009 8:37 am Post subject: |
|
|
I got tired of multiple bugs in fglrx about 3 years ago on my RV350, switched to the open source driver and never looked back.
Here is a huge list of all bugs, patches and work arounds for your joy reading
http://www.thinkwiki.org/wiki/Problems_with_fglrx |
|
Back to top |
|
|
monsm Guru
Joined: 26 Sep 2007 Posts: 467 Location: London, UK
|
Posted: Tue Oct 27, 2009 7:54 pm Post subject: |
|
|
On second thoughts; never mind.
Too much trouble. I'll stick to the open-source driver for this old machine. Lots of other things to play with than this old ATI driver.
Mons |
|
Back to top |
|
|
nowlodek n00b
Joined: 20 Jun 2006 Posts: 12
|
Posted: Fri Oct 30, 2009 10:50 pm Post subject: |
|
|
I've met the same issue. Open-source driver it is a solution but not for me. Performance is much worse then ATI drivers (almost twice).
I've got Radeon 9800 and to run ATI driver we need:
kernel 2.6.26-r3
ati-driver 8.522-r3
xorg-server 1.5.3
xorg-x11 7.2
libdrm 2.4.5 |
|
Back to top |
|
|
anton_kg Tux's lil' helper
Joined: 10 Feb 2007 Posts: 93
|
Posted: Fri Nov 06, 2009 11:14 pm Post subject: |
|
|
It's time to upgrade the world, install the latest stable kernel, qt, xorg, mesa and drivers. The opensource driver is much faster then even 6 month ago
I'm getting 2600+fps using glxgears (not a best tool to use, I know). |
|
Back to top |
|
|
Draco-LVNH n00b
Joined: 07 Dec 2005 Posts: 30 Location: Mexico, Michoacan, Morelia
|
Posted: Sat Nov 07, 2009 7:33 am Post subject: |
|
|
anton_kg wrote: | It's time to upgrade the world, install the latest stable kernel, qt, xorg, mesa and drivers. The opensource driver is much faster then even 6 month ago
I'm getting 2600+fps using glxgears (not a best tool to use, I know). |
My glxgears give me 300 fps... I will stay some more time with ati-drivers 9.3 |
|
Back to top |
|
|
|