Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44393 - ati-drivers 3.7.0 module fails to load. Did a quick dirty fix.
Summary: ati-drivers 3.7.0 module fails to load. Did a quick dirty fix.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-11 14:23 UTC by Bruno Loff
Modified: 2004-03-12 16:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The patch file (didn't know i could atatch files in bugzilla =)) (mypatch.patch,588 bytes, patch)
2004-03-11 14:25 UTC, Bruno Loff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Loff 2004-03-11 14:23:45 UTC
It fails to load on the 2.6.0 rc2 kernel. made a quick dirty patch.
I don't think it solves the problem correctly, it just implements a missing function called module_refcount and returns 1 as the refcount... It got me glgears @ 2k fps, though.

=====beginning of patch file=====
--- firegl_public.c.orig	2003-11-25 16:12:07.000000000 +0000
+++ firegl_public.c	2004-03-11 20:38:55.958854320 +0000
@@ -121,7 +121,6 @@
 #endif
 
 #include "firegl_public.h"
-
 // ============================================================
 
 #ifndef pte_offset
@@ -562,7 +561,10 @@
 	return -1;
 }
 
-
+unsigned int module_refcount(struct module *mod)
+{
+	return 1; // Attempted patch...
+}
 /*****************************************************************************/
 /* init_module is called when insmod is used to load the module */
 static int __init firegl_init_module(void)
=====end of patch file=====
Comment 1 Bruno Loff 2004-03-11 14:25:03 UTC
Created attachment 27219 [details, diff]
The patch file (didn't know i could atatch files in bugzilla =))
Comment 2 Luca Barbato gentoo-dev 2004-03-11 16:48:54 UTC
could you check with a 2.6.3 or a 2.6.4 kernel please, here is working as is?
(not to mention to update to 3.7.6 since is more stable)
Comment 3 Bruno Loff 2004-03-12 16:17:32 UTC
Yeah, the kernel sources upgrade and driver upgrade did it. I'll sync before reporting a bug next time ;)

Thanks, & sorry.