Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.30 and amd catalyst :)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Jun 17, 2009 2:52 pm    Post subject: 2.6.30 and amd catalyst :) Reply with quote

Hi guys,

I've just stumbled over a post at archlinux' AUR and there seems to be a patch for amd/ati catalyst supporting 2.6.30:

http://aur.archlinux.org/packages.php?ID=22899

at the ubuntuforums in from China:

kudos to those / the creator of the patch:

http://forum.ubuntu.org.cn/viewtopic.php?f=42&p=1329973
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Wed Jun 17, 2009 3:12 pm    Post subject: Re: 2.6.30 and amd catalyst :) Reply with quote

kernelOfTruth wrote:
Hi guys,

I've just stumbled over a post at archlinux' AUR and there seems to be a patch for amd/ati catalyst supporting 2.6.30:

http://aur.archlinux.org/packages.php?ID=22899

at the ubuntuforums in from China:

kudos to those / the creator of the patch:

http://forum.ubuntu.org.cn/viewtopic.php?f=42&p=1329973


There's an ebuild at bugs.gentoo.org which seems to work ok. Also with xorg-server 1.6

https://bugs.gentoo.org/show_bug.cgi?id=266819
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Jun 18, 2009 6:07 am    Post subject: Reply with quote

works as expected,

thanks i92guboj ! :D
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Thu Jun 18, 2009 9:13 am    Post subject: Reply with quote

By the way, this driver spams my syslog and kern.log files to the point that today some services could start normally. After booting I had to delete it and reboot because they were consuming 1gb on my var partition (it was completely full).

I had heared about this problem somewhere in the mailing lists, but I didn't know it was soooo aggressive. So, if you reboot and some services fail to start or you find that some GBs disappeared, look at /var/log
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Jun 18, 2009 9:20 am    Post subject: Reply with quote

it almost completely disappears if you're not using compositing or direct rendering / opengl apps,

I know this isn't an option for most people (including me) but just in case you mostly want to get rid of it :?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Thu Jun 18, 2009 9:16 pm    Post subject: Reply with quote

Since the driver appears to work correctly on 2.6.30, I'm going to try writing a small patch to remove the dmesg spam... As with everything else on my Gentoo system, when I don't like something I just patch it out, and the kernel or drivers are no exception.

Before I start digging through the drm code, do anyone have an idea on where this message could be caught ? Do you think that a simple "if (strcmp()...)" in the printk() function will do the job, or is there any other way that could be more efficient ?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Jun 18, 2009 10:14 pm    Post subject: Reply with quote

Link31 wrote:
Since the driver appears to work correctly on 2.6.30, I'm going to try writing a small patch to remove the dmesg spam... As with everything else on my Gentoo system, when I don't like something I just patch it out, and the kernel or drivers are no exception.

Before I start digging through the drm code, do anyone have an idea on where this message could be caught ? Do you think that a simple "if (strcmp()...)" in the printk() function will do the job, or is there any other way that could be more efficient ?


see: http://debianforum.de/forum/viewtopic.php?f=2&p=707443 (you can translate via google)

Code:
filter f_glrx { match("fglrx:"); };
destination ofglrx { file("/var/log/fglrx_crap.log" owner("root") group("adm") perm(0644)); };
log {
        source(src);
        filter(f_glrx);
        destination(ofglrx);
};


maybe you can adjust it to put stuff to /dev/null or anywhere else ...
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Fri Jun 19, 2009 7:09 am    Post subject: Reply with quote

Yes, sure, but I don't want it to clutter up dmesg. Your config file does only prevent the message from reaching the hard drive, but the kernel dmesg buffer remains cluttered.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jun 19, 2009 8:16 am    Post subject: Reply with quote

Link31 wrote:
Yes, sure, but I don't want it to clutter up dmesg. Your config file does only prevent the message from reaching the hard drive, but the kernel dmesg buffer remains cluttered.


it's not from me - it's the only solution I could google up so far :P

and yes - it's still cluttering dmesg :(
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Sat Jun 20, 2009 12:08 am    Post subject: Reply with quote

OK, as promised here is a quick and (very) dirty hack to remove the useless crap that this crappy blob puts in dmesg:

fglrx-dmesg-hack.patch
Code:
--- a/kernel/printk.c   2009-06-20 01:33:36.000000000 +0200
+++ b/kernel/printk.c   2009-06-20 01:57:16.000000000 +0200
@@ -578,6 +578,16 @@ asmlinkage int printk(const char *fmt, .
    va_list args;
    int r;
 
+   /* if (strcmp(fmt, "fmt=%s\n") != 0)
+       printk("fmt=%s\n", fmt); */
+
+   if (strcmp(fmt, "<3>[fglrx:firegl_find_any_map] *ERROR* Invalid map handle!") == 0
+      || strstr(fmt, "<3>[fglrx:drm_vm_open] *ERROR* map not found -> inconsistent kernel data!!!") == fmt
+      || strstr(fmt, "<3>[fglrx:drm_vm_close] *ERROR* map not found -> inconsistent kernel data!!!") == fmt)
+   {
+      return 0;
+   }
+
    va_start(args, fmt);
    r = vprintk(fmt, args);
    va_end(args);

You can use "if (strstr(fmt, "<3>[fglrx:") == fmt)" to get the same effect as the syslog-ng config, but I prefer keeping the other messages for now.

If you can't get some message to hide, just uncomment the block above and reboot to find out what is going on with the format string.

DISCLAIMER: I applied this patch on my own kernel and it works as expected, but I don't know yet if there are any side effects. Use it at your own risk ;)
Back to top
View user's profile Send private message
amissus
n00b
n00b


Joined: 17 Apr 2009
Posts: 12
Location: Czech Republic

PostPosted: Sat Jul 04, 2009 1:01 pm    Post subject: Reply with quote

Driver works, but I have no mouse and keyboard after startx : \
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5338

PostPosted: Sat Jul 04, 2009 1:16 pm    Post subject: Reply with quote

kernelOfTruth wrote:
it almost completely disappears if you're not using compositing or direct rendering / opengl apps,

I know this isn't an option for most people (including me) but just in case you mostly want to get rid of it :?

in that case, what is the diff between the precompiled drivers and the open source one? the compositing or direct rendering / opengl apps are the only reason for users not to switch to the open source driver
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
altrent
n00b
n00b


Joined: 03 Mar 2004
Posts: 52

PostPosted: Sat Jul 04, 2009 1:24 pm    Post subject: Reply with quote

amissus wrote:
Driver works, but I have no mouse and keyboard after startx : \


Re-emerge the ebuilds given by below command:
Code:
qlist -I -C x11-drivers
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sat Jul 04, 2009 2:10 pm    Post subject: Reply with quote

DaggyStyle wrote:
kernelOfTruth wrote:
it almost completely disappears if you're not using compositing or direct rendering / opengl apps,

I know this isn't an option for most people (including me) but just in case you mostly want to get rid of it :?

in that case, what is the diff between the precompiled drivers and the open source one? the compositing or direct rendering / opengl apps are the only reason for users not to switch to the open source driver


Nope. In my case neither of radeon nor radeonhd will work with my card.

Well, to be fair they work, until I enable DRI, then my screen is completely garbled to the point of being unusable. That means no 2d acceleration and no xv support, which in turn means they perform worse than vesa.

amissus wrote:
Driver works, but I have no mouse and keyboard after startx : \


That's a separate issue. You have hit the upgrade from kbd/mouse to hal/evdev. I can't give you a link right now because I have to go, maybe someone else can guide you, but that's nothing to do with the graphics driver. At least it shouldn't have to do.
_________________
Gentoo Handbook | My website


Last edited by i92guboj on Sat Jul 04, 2009 2:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
amissus
n00b
n00b


Joined: 17 Apr 2009
Posts: 12
Location: Czech Republic

PostPosted: Mon Jul 06, 2009 6:03 pm    Post subject: Reply with quote

I recompiled xorg-server with hal support and run hal daemon and my mouse and keyboard working now :))))
Thanks for clue i92guboj.
Back to top
View user's profile Send private message
Enverex
Guru
Guru


Joined: 02 Jul 2003
Posts: 501
Location: Worcester, UK

PostPosted: Sat Jul 18, 2009 4:14 pm    Post subject: Reply with quote

I'm running into some serious issues.

Versions:
x11-drivers/ati-drivers-9.6
x11-base/xorg-server-1.6.2-r1
Linux defiant 2.6.29-gentoo-r5 #1 SMP Tue Jul 14 20:22:41 BST 2009 x86_64 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz GenuineIntel GNU/Linux (tried .30 too but no change)

Basically whenever the kernel/driver spams out that message (it doesn't do it too many times) the machine seems to lock up for about 4 seconds. For example if I open something in Wine then the machine will freeze up quite a few times before the app finally loads. This applies to other apps too i.e. UT2004. Is there a fix for this actual issue? (crap in dmesg itself doesn't really bother me, it's only about 40 lines in total, not hundreds). Plus this lockup is happening whenever I change screenmodes or do anything else of the sort either (and some other desktop operations).

It's making the machine unusable and is -really- annoying.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Jul 18, 2009 4:25 pm    Post subject: Reply with quote

http://ati.cchtml.com/

go bug them ! :P

sorry, I've no fix for this problem right now and have stopped using compositing for this very reason (it's not locking up for me but slowing down noticably ...)

amd / ati - you guys make me sad :cry:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Enverex
Guru
Guru


Joined: 02 Jul 2003
Posts: 501
Location: Worcester, UK

PostPosted: Sat Jul 18, 2009 4:34 pm    Post subject: Reply with quote

kernelOfTruth wrote:
http://ati.cchtml.com/

go bug them ! :P

sorry, I've no fix for this problem right now and have stopped using compositing for this very reason (it's not locking up for me but slowing down noticably ...)

amd / ati - you guys make me sad :cry:


I'm not using compositing or anything of that sort (no Compiz or anything like that either). I regret getting an ATi card so much, it was hit and miss in the past but now I seem stuck. Does anyone know of a downgrade route I could follow to get the system back to normal? I'd downgrade the kernel and ATi drivers but I'm not sure if the X ABI change will make that impossible.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5338

PostPosted: Sat Jul 18, 2009 5:30 pm    Post subject: Reply with quote

Enverex wrote:
kernelOfTruth wrote:
http://ati.cchtml.com/

go bug them ! :P

sorry, I've no fix for this problem right now and have stopped using compositing for this very reason (it's not locking up for me but slowing down noticably ...)

amd / ati - you guys make me sad :cry:


I'm not using compositing or anything of that sort (no Compiz or anything like that either). I regret getting an ATi card so much, it was hit and miss in the past but now I seem stuck. Does anyone know of a downgrade route I could follow to get the system back to normal? I'd downgrade the kernel and ATi drivers but I'm not sure if the X ABI change will make that impossible.

actually, I would stick with ati because there problem is software based which will be solved soon, I won't get nvidia because past experience which included faulty hardware that left their production line knowingly...
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum