You are not logged in.

#1 2003-12-22 19:11:21

Jagged
Member
From: Blacksburg, VA
Registered: 2003-07-18
Posts: 153

ATTN: Kernel 2.6.0 and ATI fglrx drivers

Save this patch to a file like /lib/modules/fglrx/kernel.patch
then cd build_mod/
patch -p1 < ../kernel.patch

--- build_mod.orig/firegl_public.c      2003-09-21 22:43:30.000000000 -0400
+++ build_mod/firegl_public.c   2003-12-02 18:53:02.000000000 -0500
@@ -129,7 +129,9 @@
         #define pte_offset  pte_offset_map
     #endif
 #endif
-
+#ifndef VMALLOC_VMADDR
+#define VMALLOC_VMADDR(x)  ((unsigned long)(x))
+#endif
 // ============================================================
 #ifndef TRUE
 #define TRUE 1
@@ -3106,43 +3108,6 @@

 int __ke_amd_adv_spec_cache_feature(void)
 {
-#if ( (PAGE_ATTR_FIX == 1) || (LINUX_VERSION_CODE == KERNEL_VERSION(2,4,19)) )
-/* the kernel already does provide a fix for the AMD Athlon
-   big page attribute / cache flush data consistency system bug on its own.
-   (AMD claimed that CPU cache behaviour for such pages is not specified.)
-   - kernel 2.4.19 has the early fix which just removes some page attributes.
-   - later kernels do have implementeed the full big page split code fix.
-*/
-#else /* PAGE_ATTR_FIX */
-/* the kernel does not provide any fix for the AMD problem. */
-        char vendor_id[16];
-        int ident;
-        int family, model;
-
-        /* Must have CPUID */
-        if(!have_cpuid_p())
-                goto donthave;
-        if(cpuid_eax(0)<1)
-                goto donthave;
-
-        /* Must be x86 architecture */
-        cpuid(0, &ident,
-                (int *)&vendor_id[0],
-                (int *)&vendor_id[8],
-                (int *)&vendor_id[4]);
-
-        if (memcmp(vendor_id, "AuthenticAMD", 12))
-               goto donthave;
-
-        ident = cpuid_eax(1);
-        family = (ident >> 8) & 0xf;
-        model  = (ident >> 4) & 0xf;
-        if (((family == 6)  && (model >= 6)) || (family == 15)) {
-                return 1;
-        }
-
-donthave:
-#endif /* PAGE_ATTR_FIX */
         return 0;
 }

Nkawtg...n!

Offline

#2 2003-12-22 22:57:44

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: ATTN: Kernel 2.6.0 and ATI fglrx drivers

does this patch has something to do with the "radeon" driver? (ati radeon) or only for "ati" driver

... because i lost 3d-acceleration since upgrade to 2.6.0-2 using radeon (on 2.4.23 and 2.6.0-1 it worked!!!!)


The impossible missions are the only ones which succeed.

Offline

#3 2003-12-23 02:54:53

Jagged
Member
From: Blacksburg, VA
Registered: 2003-07-18
Posts: 153

Re: ATTN: Kernel 2.6.0 and ATI fglrx drivers

the ati fglrx drivers  (for the radeon/firegl series)


Nkawtg...n!

Offline

Board footer

Powered by FluxBB