You are not logged in.

#1 2008-10-15 21:19:48

Soulou
Member
Registered: 2008-10-15
Posts: 15

fglrx and kernel 2.6.27

Hello everybody.

So new driver ; 8.8.2
New kernel : 2.6.27

New problems :

Since i installed them, each command which refers to glx give a segmentation fault :

glxinfo, glxgears, fglrxinfo fgl_glxgears Some games in 2D and 3D too like xmoto.
I reinstalled, I installed them manually, nothing to do : segmentation fault...

Any Idea ?
I agree to change the version of fglrx to 8.4 or 8.5 which worked great on my laptop, I have a Radeon Mobility X2300. But I didn't success to install them...

Thank you all !

PS : this error :

Oct 15 22:25:16 Soulou1 glxinfo[27107]: segfault at 4 ip b77d2863 sp bff40850 error 6 in fglrx_dri.so[b6a62000+e48000]
Oct 15 22:21:57 Soulou1 compiz[26626]: segfault at 4 ip b790e863 sp bf9e5880 error 6 in fglrx_dri.so[b6b9e000+e48000]
Oct 15 21:56:56 Soulou1 glxinfo[24226]: segfault at 4 ip b77e1863 sp bfc51cb0 error 6 in fglrx_dri.so[b6a71000+e48000]
Oct 15 21:56:59 Soulou1 glxinfo[24236]: segfault at 4 ip b77d8863 sp bfc464b0 error 6 in fglrx_dri.so[b6a68000+e48000]
Oct 15 21:57:02 Soulou1 glxgears[24237]: segfault at 4 ip b7a17863 sp bfa17370 error 6 in fglrx_dri.so[b6ca7000+e48000]
Oct 15 21:57:11 Soulou1 glxinfo[24265]: segfault at 4 ip b78f6863 sp bfa662d0 error 6 in fglrx_dri.so[b6b86000+e48000]
Oct 15 21:57:12 Soulou1 glxgears[24266]: segfault at 4 ip b79a3863 sp bffa2ef0 error 6 in fglrx_dri.so[b6c33000+e48000]
Oct 15 21:57:13 Soulou1 glxinfo[24267]: segfault at 4 ip b7918863 sp bff887f0 error 6 in fglrx_dri.so[b6ba8000+e48000]
Oct 15 21:57:14 Soulou1 glxgears[24268]: segfault at 4 ip b7aa1863 sp bfca23f0 error 6 in fglrx_dri.so[b6d31000+e48000]
Oct 15 21:57:19 Soulou1 fglrxinfo[24287]: segfault at 4 ip b7a7f863 sp bfe58e00 error 6 in fglrx_dri.so[b6d0f000+e48000]
Oct 15 21:57:21 Soulou1 fglrxinfo[24288]: segfault at 4 ip b79a1863 sp bff7af20 error 6 in fglrx_dri.so[b6c31000+e48000]
Oct 15 21:57:22 Soulou1 fglrxinfo[24289]: segfault at 4 ip b79eb863 sp bfec4660 error 6 in fglrx_dri.so[b6c7b000+e48000]
Oct 15 21:57:22 Soulou1 fglrxinfo[24290]: segfault at 4 ip b7943863 sp bfb1eac0 error 6 in fglrx_dri.so[b6bd3000+e48000]
Oct 15 21:57:23 Soulou1 fglrxinfo[24291]: segfault at 4 ip b7a4b863 sp bf8267c0 error 6 in fglrx_dri.so[b6cdb000+e48000]
Oct 15 21:57:23 Soulou1 fglrxinfo[24301]: segfault at 4 ip b7a8f863 sp bf86a810 error 6 in fglrx_dri.so[b6d1f000+e48000]
Oct 15 21:57:23 Soulou1 fglrxinfo[24302]: segfault at 4 ip b7ae0863 sp bffb9f60 error 6 in fglrx_dri.so[b6d70000+e48000]
Oct 15 21:57:23 Soulou1 fglrxinfo[24303]: segfault at 4 ip b7a78863 sp bfb512f0 error 6 in fglrx_dri.so[b6d08000+e48000]

Last edited by Soulou (2008-10-15 21:23:31)

Offline

#2 2008-10-15 23:36:31

burgerman
Member
Registered: 2007-09-11
Posts: 8

Re: fglrx and kernel 2.6.27

Something wierd is up with this new kernel and the drivers. I didn't manage to get direct rendering working until I decided to revert to kernel 2.6.25, the 8.5 driver and downgraded both the xorg-server and libgl.

Offline

#3 2008-10-16 17:08:23

Soulou
Member
Registered: 2008-10-15
Posts: 15

Re: fglrx and kernel 2.6.27

So, no solution for the moment ?

Offline

#4 2008-10-17 01:47:35

revellion
Member
From: Sweden
Registered: 2007-04-10
Posts: 54

Re: fglrx and kernel 2.6.27

Soulou wrote:

So, no solution for the moment ?

complain to AMD/ATI for being so slow to adapt to new kernel versions. or tell them to push all their efforts in helping the open-source driver instead of their own binary blob tongue


Hurricane Electric Certified IPv6 Sage

CPU: Core i7-2600 @ 4.0Ghz | RAM: 16GB (4x4GB) | GFX: AMD Radeon R9 290 4096MB VRAM | HDD: 1x 120GB SATA3 Corsair SSD (~500MB/s RW), 1x SATA2 250GB, 1x SATA2 320GB, 1x 180GB SATA3 Intel SSD
*EDIT* Replaced Nvidia GTX 570 for a AMD Radeon R9 290, and added an extra SSD 180GB

Offline

#5 2008-10-17 14:46:02

pjjanak
Member
Registered: 2008-08-17
Posts: 128

Re: fglrx and kernel 2.6.27

There is a solution. You just have to do some hacking of firegl_public.c (/usr/modules/fglrx/build_mod/firegl_public.c). This patch:

--- firegl_public.c.orig    2008-09-19 10:57:09.000000000 +0200
+++ firegl_public.c        2008-09-19 10:55:57.000000000 +0200
@@ -199,6 +199,12 @@
 #define preempt_enable()
 #endif
 
+/* Since 2.6.27 smp_call_function doesn't have a nonatomic/retry argument */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+#define SMP_CALL_FUNCTION(func, info, retry, wait) smp_call_function(func, info, wait)
+#else
+#define SMP_CALL_FUNCTION(func, info, retry, wait) smp_call_function(func, info, retry, wait)
+#endif
 // ============================================================
 /* globals */
 
@@ -250,7 +256,7 @@
 const char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED;
 #endif
 
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 const unsigned long __ke_SMP_State = 1;
 const char BUILD_KERNEL_HAS_SMP_SET;
 #else
@@ -2516,8 +2522,8 @@
 {
 /*Some kernel developer removed the export of symbol "flush_tlb_page" on 2.6.25 x86_64 SMP kernel.
   Define a simple version here.*/
-#if defined(__x86_64__) && defined(__SMP__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) 
-    on_each_cpu(KCL_flush_tlb_one, &va, 1, 1);
+#if defined(__x86_64__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) 
+    on_each_cpu(KCL_flush_tlb_one, &va, 1);
 #else
     flush_tlb_page(vma, va);
 #endif
@@ -2902,7 +2908,7 @@
 
 /*****************************************************************************/
 
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 static atomic_t cpus_waiting;
 
 static void deferred_flush(void* contextp)
@@ -2918,13 +2924,13 @@
   while (atomic_read(&cpus_waiting) > 0)
        barrier();
 }
-#endif /* __SMP__ */
+#endif /* CONFIG_SMP */
 
 int ATI_API_CALL __ke_flush_cache(void)
 {
-#ifdef __SMP__
+#ifdef CONFIG_SMP
     /* write back invalidate all other CPUs (exported by kernel) */
-    if (smp_call_function(deferred_flush, NULL, 1, 0) != 0)
+    if (SMP_CALL_FUNCTION(deferred_flush, NULL, 1, 0) != 0)
         panic("timed out waiting for the other CPUs!\n");
 
     /* invalidate this CPU */
@@ -2938,6 +2944,6 @@
     while (atomic_read(&cpus_waiting) > 0)
           barrier();
-#else /* !__SMP__ */
+#else /* !CONFIG_SMP */
 #if defined(__i386__) || defined(__x86_64__)
     asm volatile ("wbinvd":::"memory");
 #elif defined(__alpha__) || defined(__sparc__)
@@ -2946,7 +2952,7 @@
 #else
 #error "Please define flush_cache for your architecture."
 #endif
-#endif /* !__SMP__ */
+#endif /* !CONFIG_SMP */
 
     //for kernel 2.6.25, tlb_flush has been included when calling set_pages_*.
     #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
@@ -4654,7 +4660,7 @@
    }
 
 #ifdef CONFIG_SMP
-   if (smp_call_function(KCL_setup_pat, NULL, 0, 1) != 0)
+   if (SMP_CALL_FUNCTION(KCL_setup_pat, NULL, 0, 1) != 0)
        return 0;
 #endif
    KCL_setup_pat(NULL);
@@ -4673,6 +4679,6 @@
     }
 
 #ifdef CONFIG_SMP
-    if (smp_call_function(KCL_restore_pat, NULL, 0, 1) != 0)
+    if (SMP_CALL_FUNCTION(KCL_restore_pat, NULL, 0, 1) != 0)
        return;
 #endif
     KCL_restore_pat(NULL);

will patch up most of the problems. After that, you have to use make.sh from the parent directory of firegl_public.c. It will probably come up with about 2 more errors about smp_call_function. Take note of the line numbers and go into firegl_public.c and change smp_call_function at those lines to SMP_CALL_FUNCTION. Then run make.sh again, go up a directory and run make-install.sh. That should fix your GL woes with .27 smile

Peter

Offline

#6 2008-10-18 15:01:02

Soulou
Member
Registered: 2008-10-15
Posts: 15

Re: fglrx and kernel 2.6.27

I don't really know if the patch worked totally, but i don't have 2 or 3 errors, i have 40 errors :
First : the patch.

patch firegl_public.c ~/Desktop/patch

Mot de passe : 

patching file firegl_public.c
Hunk #1 succeeded at 202 (offset 3 lines).
Hunk #2 succeeded at 264 (offset 8 lines).
Hunk #3 FAILED at 2530.
Hunk #4 succeeded at 2699 (offset -209 lines).
Hunk #5 FAILED at 2715.
Hunk #6 FAILED at 2735.
Hunk #7 FAILED at 2743.
Hunk #8 FAILED at 4451.
Hunk #9 succeeded at 4558 with fuzz 1 (offset -121 lines).
5 out of 9 hunks FAILED -- saving rejects to file firegl_public.c.rej

Make.sh :

make -C /lib/modules/2.6.27-ARCH/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: entrant dans le répertoire « /usr/src/linux-2.6.27-ARCH »
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_SetPageNoCache':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1167: erreur: implicit declaration of function 'change_page_attr'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_ProcessIsTerminated':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1198: erreur: implicit declaration of function 'find_task_by_pid'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1198: attention : assignment makes pointer from integer without a cast
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_PosixSecurityCapGetEffectiveVector':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1894: erreur: implicit declaration of function 'cap_t'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_PosixSecurityCapSetEffectiveVector':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1902: erreur: lvalue required as left operand of assignment
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_check_pci':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1957: attention : 'pci_find_slot' is deprecated (declared at include/linux/pci.h:538)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_get_vm_phys_addr':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2398: erreur: 'NOPAGE_SIGBUS' undeclared (first use in this function)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2398: erreur: (Each undeclared identifier is reported only once
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2398: erreur: for each function it appears in.)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_get_vm_page_table':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2420: erreur: 'NOPAGE_SIGBUS' undeclared (first use in this function)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_TestAndClearPageDirtyFlag':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2548: erreur: 'NOPAGE_SIGBUS' undeclared (first use in this function)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_flush_cache':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2724: erreur: too many arguments to function 'smp_call_function'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_pci_find_slot':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2846: attention : 'pci_find_slot' is deprecated (declared at include/linux/pci.h:538)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: Hors de toute fonction :
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3554: erreur: unknown field 'nopage' specified in initializer
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3554: attention : initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3572: erreur: unknown field 'nopage' specified in initializer
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3572: attention : initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3579: erreur: unknown field 'nopage' specified in initializer
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3579: attention : initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3586: erreur: unknown field 'nopage' specified in initializer
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3586: attention : initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3593: erreur: unknown field 'nopage' specified in initializer
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3593: attention : initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3600: erreur: unknown field 'nopage' specified in initializer
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3600: attention : initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3607: erreur: unknown field 'nopage' specified in initializer
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3607: attention : initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3616: erreur: unknown field 'nopage' specified in initializer
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3616: attention : initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_CallFuncOnOtherCpus':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4336: erreur: too many arguments to function 'smp_call_function'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_enable_pat':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4543: erreur: too many arguments to function 'smp_call_function'
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Erreur 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-2.6.27-ARCH »
make: *** [kmod_build] Erreur 2
build failed with return value 2

Last edited by Soulou (2008-10-18 15:01:46)

Offline

#7 2008-10-18 20:00:11

pjjanak
Member
Registered: 2008-08-17
Posts: 128

Re: fglrx and kernel 2.6.27

Oo That's quite the error out. You seem to have had more problems than I with compiling this thing. Well, somehow or another, catalyst 8.11 is now in testing (yeah, what?). So, you could try that out if you wanted.

Peter

Offline

#8 2008-10-18 20:24:15

Soulou
Member
Registered: 2008-10-15
Posts: 15

Re: fglrx and kernel 2.6.27

Yeah, I'm gonna try them, i'll report here the events smile

Offline

#9 2008-10-18 20:40:13

Soulou
Member
Registered: 2008-10-15
Posts: 15

Re: fglrx and kernel 2.6.27

Huhu New Driver, New errors ..
No more Segmentation fault but :

$ glxinfo
name of display: :0.0
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  10
  Current serial number in output stream:  10

I know that ati free drivers work well, but i would like use compiz and some games ...

Offline

#10 2008-10-18 21:23:49

Gert
Member
Registered: 2008-01-30
Posts: 28

Re: fglrx and kernel 2.6.27

Soulou wrote:

Huhu New Driver, New errors ..
No more Segmentation fault but :

$ glxinfo
name of display: :0.0
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  10
  Current serial number in output stream:  10

I know that ati free drivers work well, but i would like use compiz and some games ...

Same error here.


Love will tear us apart

Offline

#11 2008-10-20 21:58:14

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: fglrx and kernel 2.6.27

Gert wrote:
Soulou wrote:

Huhu New Driver, New errors ..
No more Segmentation fault but :

$ glxinfo
name of display: :0.0
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  10
  Current serial number in output stream:  10

I know that ati free drivers work well, but i would like use compiz and some games ...

Same error here.

See post number thirty-nine here:  http://bbs.archlinux.org/viewtopic.php?id=57084

Last edited by Wintervenom (2008-10-20 23:02:39)

Offline

Board footer

Powered by FluxBB