Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa module issues local_irq_* [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Fri Jan 27, 2006 6:04 am    Post subject: Alsa module issues local_irq_* [solved] Reply with quote

Out of desperation I turn to you oh Power Penguin Companions.

I have just installed Gentoo on my 12" iBook G4 but am having a painful time trying to get alsa working. I've built alsa and gentoo and kernels a million times, but this one has me stumped! I have tried searching the forums, but to no avail.

The issue is as follows:
I have built gentoo-sources 2.6.15-r1 with alsa built DIRECTLY in, and the kernel segfaults on load.. ok so I try alsa-driver;
Building alsa-driver against the kernel (with soundsupport as both modular and monolithic) I can compile alsa-driver but notice when it is compiling there are errors such as:
Code:
warning: implicit declaration of function 'local_irq_save'
etc, also for; _restore, _disable, _enable etc.

Nevertheless alsa-driver builds successfully however when I try and load modules it complains saying
Code:
WARNING: //lib/modules/2.6.15-gentoo-r1/alsa-driver/snd-*.ko needs unknown symbol local_irq_save
and once again for; _restore, _disable, _enable etc.

Does anyone have any ideas as to what I can do to fix this local_irq_* issue? I'm just about out of ideas!!

Cheers,
Chris
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!


Last edited by taskara on Fri Jan 27, 2006 10:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jan 27, 2006 6:11 am    Post subject: Reply with quote

http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#sound

The thing to point out is that the i2c keywest module needs to be built into the kernel if you build the sound modules into the kernel.

Good luck!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Fri Jan 27, 2006 6:53 am    Post subject: Reply with quote

Thanks JoseJX,

I do have i2c-core enabled and loaded, but I will fiddle some more and get back to you.

I will give this a try.

At the moment I'm re-building my kernel with SMP support, noticed this under interrupts.h
Code:
/*
 * Temporary defines for UP kernels, until all code gets fixed.
 */
#ifndef CONFIG_SMP
static inline void __deprecated cli(void)
{
        local_irq_disable();
}
static inline void __deprecated sti(void)
{
        local_irq_enable();
}
static inline void __deprecated save_flags(unsigned long *x)
{
        local_save_flags(*x);
}
#define save_flags(x) save_flags(&x);
static inline void __deprecated restore_flags(unsigned long x)
{
        local_irq_restore(x);
}

static inline void __deprecated save_and_cli(unsigned long *x)
{
        local_irq_save(*x);
}

Cheers
-c
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jan 27, 2006 3:03 pm    Post subject: Reply with quote

In addition to core, like I said above you need the i2c keywest module as well.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Fri Jan 27, 2006 9:42 pm    Post subject: Reply with quote

Thanks JoseJX,

I had them both as modules and was loading them, but you were right when I built the drivers directly in I didn't change the i2c from modular to monolithic. However I still get the same errors even with the modules loaded, and even with them directly in the kernel. I wonder what I'm doing wrong?

Even when I remove alsa-driver (and then delete /lib/modules/kernel-2.6.15-gentoo-r1/alsa-driver) and then re-do my kernel with sound and alsa as modules I get this error when running make modules modules_install
Code:
  INSTALL sound/soundcore.ko
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map  2.6.15-gentoo-r1; fi
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-pcm.ko needs unknown symbol _write_lock_irq
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-pcm.ko needs unknown symbol _read_lock_irq
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-pcm.ko needs unknown symbol _read_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-pcm.ko needs unknown symbol _read_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-pcm.ko needs unknown symbol _spin_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-pcm.ko needs unknown symbol _spin_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-pcm.ko needs unknown symbol _spin_lock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-pcm.ko needs unknown symbol local_irq_enable
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-pcm.ko needs unknown symbol _spin_trylock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol _write_lock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol unlock_kernel
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol _spin_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol lock_kernel
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol _spin_lock_irq
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol _spin_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol _spin_lock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol _write_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol _read_lock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol local_irq_enable
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd.ko needs unknown symbol _write_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-timer.ko needs unknown symbol _spin_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-timer.ko needs unknown symbol _spin_lock_irq
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-timer.ko needs unknown symbol _spin_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-timer.ko needs unknown symbol _spin_lock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/snd-timer.ko needs unknown symbol local_irq_enable
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq.ko needs unknown symbol _spin_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq.ko needs unknown symbol _spin_lock_irq
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq.ko needs unknown symbol _spin_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq.ko needs unknown symbol _spin_lock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq.ko needs unknown symbol _write_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq.ko needs unknown symbol _read_lock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq.ko needs unknown symbol local_irq_enable
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq.ko needs unknown symbol _write_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq-midi-event.ko needs unknown symbol _spin_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/snd-seq-midi-event.ko needs unknown symbol _spin_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/oss/snd-seq-oss.ko needs unknown symbol _spin_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/seq/oss/snd-seq-oss.ko needs unknown symbol _spin_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/oss/snd-pcm-oss.ko needs unknown symbol _read_lock_irq
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/oss/snd-pcm-oss.ko needs unknown symbol _spin_lock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/acore/oss/snd-pcm-oss.ko needs unknown symbol local_irq_enable
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/ppc/snd-powermac.ko needs unknown symbol _spin_unlock_irqrestore
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/ppc/snd-powermac.ko needs unknown symbol _spin_lock_irq
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/ppc/snd-powermac.ko needs unknown symbol _spin_lock_irqsave
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/ppc/snd-powermac.ko needs unknown symbol _spin_lock
WARNING: /lib/modules/2.6.15-gentoo-r1/alsa-driver/ppc/snd-powermac.ko needs unknown symbol local_irq_enable

Do I have something missing from my kernel to cause such an error?

Thanks for your help.
-c
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Fri Jan 27, 2006 10:36 pm    Post subject: Reply with quote

Well, using my .config on 2.6.14-gentoo-r5 kernel works!

I guess maybe there's an issue in the 2.6.15 kernels and irq?

Thanks again JoseJX for your help.

Cheers,
Chris
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
iqt
n00b
n00b


Joined: 23 Oct 2002
Posts: 23

PostPosted: Tue Jan 31, 2006 8:47 pm    Post subject: Reply with quote

2.6.14 is working on Macmini - 2.6.15 gives the same errors. I2C is comiled in.

Quote:
dmesg | grep i2c
i2c /dev entries driver
Found KeyWest i2c on "uni-n", 2 channels, stepping: 4 bits
Found KeyWest i2c on "mac-io", 1 channel, stepping: 4 bits


Any ideas?

Regards Dirk
Back to top
View user's profile Send private message
theefer
n00b
n00b


Joined: 12 Jul 2003
Posts: 32

PostPosted: Tue Feb 14, 2006 4:25 pm    Post subject: Reply with quote

Same problem here using 2.6.15-r1.. The strange thing is that it worked for a while and then suddenly stopped working!
I suspect this happened when I upgrade alsa-utils and alsa-driver, but I have now tried removing alsa-driver, recompiling my kernel and downgrading alsa-utils without much success.

I wouldn't call downgrading my kernel "solving" the problem, but I might have to try that. However, I noticed that booting an older kernel I had on my machine still shows the problem (that wasn't there before) !

Anyone found another solution?
_________________
Theefer
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 14, 2006 6:02 pm    Post subject: Reply with quote

Can you post your kernel config? It's probably another ppc/ppc64 headers merge issue. :p
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
theefer
n00b
n00b


Joined: 12 Jul 2003
Posts: 32

PostPosted: Tue Feb 14, 2006 11:30 pm    Post subject: Reply with quote

Ok, scary to copy paste, so I put it online.

Thanks!
_________________
Theefer
Back to top
View user's profile Send private message
iqt
n00b
n00b


Joined: 23 Oct 2002
Posts: 23

PostPosted: Tue Feb 21, 2006 7:48 pm    Post subject: Reply with quote

taskara wrote:
Well, using my .config on 2.6.14-gentoo-r5 kernel works!

This is not a solution for me.

During compile I get many implicite declarations, e.g.:
Code:
make[1]: Entering directory `/usr/src/linux-2.6.15-gentoo-r1'
  CC [M]  /var/tmp/portage/alsa-driver-1.0.10-r2/work/alsa-driver-1.0.10/acore/memalloc.o
In file included from include/linux/module.h:10,
                 from include/linux/device.h:20,
                 from include/linux/pci.h:54,
                 from /var/tmp/portage/alsa-driver-1.0.10-r2/work/alsa-driver-1.0.10/acore/memalloc.inc:10,
                 from /var/tmp/portage/alsa-driver-1.0.10-r2/work/alsa-driver-1.0.10/acore/memalloc.c:1:
include/linux/sched.h: In function `dequeue_signal_lock':
include/linux/sched.h:1047: Warnung: implizite Deklaration der Funktion »local_irq_save«
include/linux/sched.h:1049: Warnung: implizite Deklaration der Funktion »local_irq_restore«


Under linux 2.6.14 the local_irq* function where defined under asm-ppc/hw_irq.h. This file was removed in 2.6.15.

Compiling (and running) the modules from kernel works fine here.

alsa-driver-1.0.11_rc3 doesn't compile either.

See also here https://forums.gentoo.org/viewtopic-t-427313.html

Ideas ?
Back to top
View user's profile Send private message
theefer
n00b
n00b


Joined: 12 Jul 2003
Posts: 32

PostPosted: Tue Feb 21, 2006 10:45 pm    Post subject: Reply with quote

Indeed, I didn't spot the hw_irq file change. Apparently it's not missing, it has just been renamed to asm-powerpc instead of asm-ppc, asm-pp64, etc.

Any news from upstream? Should we report that problem on lkml? It seems to be an issue to several people, and if we don't fix it now it might not be fixed for 2.6.16...
_________________
Theefer
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Feb 22, 2006 7:03 am    Post subject: Reply with quote

In 2.6.16, everyone will be using the powerpc target instead of the ppc target, so the header is in the right place. Unfortunately due to the headers merge between ppc and ppc64 (to the powerpc target) there has been a lot of breakage since the merge was incomplete for ppc32 in 2.6.15. If you don't want to deal with it, stick with a 2.6.14 kernel or wait for 2.6.16. We've tried to fix as many broken things as we can, but alsa-driver seems to be one module that we missed.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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