mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [ALSA] 2.6.21 loading of module snd_ymfpci takes 2 minutes
@ 2007-04-26 10:12 Santiago Garcia Mantinan
  2007-04-26 12:11 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Santiago Garcia Mantinan @ 2007-04-26 10:12 UTC (permalink / raw)
  To: linux-kernel

I have just upgraded from 2.6.20 to 2.6.21, when I rebooted I thought the
computer had halted after loading snd_ymfpci, but what happens is that it
takes 2 minutes (120 seconds mesured with time) for the driver to load, but
then works as expected.

After making a diff between the 2.6.20 and 2.6.21 versions of the ymfpci
driver I decided to replace the ymfpci_main.c from 2.6.21 with the one from
2.6.20, it compiled with a few warnings and then worked ok, like it used to
work, without the two minutes delay.

These are the messages I get from the kernel when I load the driver:
PCI: Enabling device 0000:00:0a.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKD] -> GSI 9 (level, low) -> IRQ 9

This is the info I got for the sound card, which is integrated on the
motherboard:

Card: Yamaha DS-1L (YMF740C)
Chip: Asahi Kasei AK4543

lspci:
00:0a.0 0401: 1073:000c (rev 03)
        Subsystem: 1033:804b
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR+
        Latency: 64 (1250ns min, 6250ns max)
        Interrupt: pin A routed to IRQ 9
        Region 0: Memory at e8108000 (32-bit, non-prefetchable) [size=32K]
        Capabilities: <access denied>

/proc/asound/cards:
 0 [YMF740C        ]: YMF740C - Yamaha DS-1L (YMF740C)
                      Yamaha DS-1L (YMF740C) at 0xe8108000, irq 9

Hope that helps to diagnose the problem, if you need any other info don't
hesitate to contact me.

Regards...
-- 
Santiago García Mantiñán

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ALSA] 2.6.21 loading of module snd_ymfpci takes 2 minutes
  2007-04-26 10:12 [ALSA] 2.6.21 loading of module snd_ymfpci takes 2 minutes Santiago Garcia Mantinan
@ 2007-04-26 12:11 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2007-04-26 12:11 UTC (permalink / raw)
  To: Santiago Garcia Mantinan; +Cc: linux-kernel

At Thu, 26 Apr 2007 12:12:48 +0200,
Santiago Garcia Mantinan wrote:
> 
> I have just upgraded from 2.6.20 to 2.6.21, when I rebooted I thought the
> computer had halted after loading snd_ymfpci, but what happens is that it
> takes 2 minutes (120 seconds mesured with time) for the driver to load, but
> then works as expected.
> 
> After making a diff between the 2.6.20 and 2.6.21 versions of the ymfpci
> driver I decided to replace the ymfpci_main.c from 2.6.21 with the one from
> 2.6.20, it compiled with a few warnings and then worked ok, like it used to
> work, without the two minutes delay.

It's because the recent ymfpci driver tries to request_firmware() at
first.  And since no files are found, it just waits for certain time.
A workaround is to install the firmware files from alsa-firmware
1.0.14rc* package.

I'll fix the codes on 2.6.22 not to make external firmwares
mandatory via Kconfig option.


Takashi

> These are the messages I get from the kernel when I load the driver:
> PCI: Enabling device 0000:00:0a.0 (0000 -> 0002)
> ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKD] -> GSI 9 (level, low) -> IRQ 9
> 
> This is the info I got for the sound card, which is integrated on the
> motherboard:
> 
> Card: Yamaha DS-1L (YMF740C)
> Chip: Asahi Kasei AK4543
> 
> lspci:
> 00:0a.0 0401: 1073:000c (rev 03)
>         Subsystem: 1033:804b
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
>         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR+
>         Latency: 64 (1250ns min, 6250ns max)
>         Interrupt: pin A routed to IRQ 9
>         Region 0: Memory at e8108000 (32-bit, non-prefetchable) [size=32K]
>         Capabilities: <access denied>
> 
> /proc/asound/cards:
>  0 [YMF740C        ]: YMF740C - Yamaha DS-1L (YMF740C)
>                       Yamaha DS-1L (YMF740C) at 0xe8108000, irq 9
> 
> Hope that helps to diagnose the problem, if you need any other info don't
> hesitate to contact me.
> 
> Regards...
> -- 
> Santiago García Mantiñán
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-26 12:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-26 10:12 [ALSA] 2.6.21 loading of module snd_ymfpci takes 2 minutes Santiago Garcia Mantinan
2007-04-26 12:11 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®