Re: isapnp & module autoload (udev?)

Previous thread: [PATCH 1/2] Replace CONFIG_USB_OHCI with CONFIG_USB_OHCI_HCD in a few overlooked files by Paolo 'Blaisorblade' Giarrusso on Friday, August 24, 2007 - 4:28 am. (2 messages)

Next thread: Re: 2.6.22.5 forcedeth timeout hang by Willy Tarreau on Friday, August 24, 2007 - 4:51 am. (1 message)
From: Meelis Roos
Date: Friday, August 24, 2007 - 4:36 am

Hi,

I tested 2.6.23-rc3 along with Debian unstable on a older pentium2-era 
PC that has a ISA bus sound card that isapnp finds. snd-sb finds it too 
using isapnp. However, there seems to be no module autoloading 
happening.

So, the question is: should isapnp moudle autoloading work with current 
kernel + current udev?

-- 
Meelis Roos (mroos@linux.ee)
-

From: Marco d'Itri
Date: Friday, August 24, 2007 - 4:56 am

Only for some devices, others do not provide in sysfs everything needed
to build the MODALIAS string.

-- 
ciao,
Marco
-

From: Kay Sievers
Date: Friday, August 24, 2007 - 5:40 am

Not out-of-the-box, I guess. There are likely no aliases in the kernel
modules which match the hardware for these old drivers. You could put
them in a modprobe config file maybe.

What's in the module? What does:
  /sbin/modinfo <kernel module name> | grep alias
print?

And what does the hardware say? What does:
  grep . /sys/bus/pnp/devices/*/id
print?

Kay
-

From: Meelis Roos
Date: Friday, August 24, 2007 - 6:46 am

filename:       /lib/modules/2.6.23-rc3/kernel/sound/isa/sb/snd-sb16.ko
description:    Sound Blaster 16
license:        GPL
author:         Jaroslav Kysela <perex@suse.cz>
alias:          pnp:ctBA03b0dPNPb003*
alias:          pnp:cCTL00f0dCTL0043*
alias:          pnp:cCTL0086dCTL0041*
alias:          pnp:cCTL0080dCTL0041*
alias:          pnp:cCTL0070dCTL0001*
alias:          pnp:cCTL0051dCTL0001*
alias:          pnp:cCTL002cdCTL0031*
alias:          pnp:cCTL002bdCTL0031*
alias:          pnp:cCTL002adCTL0031*
alias:          pnp:cCTL0029dCTL0031*
alias:          pnp:cCTL0028dCTL0031*
alias:          pnp:cCTL0027dCTL0031*
alias:          pnp:cCTL0026dCTL0031*
alias:          pnp:cCTL0025dCTL0031*
alias:          pnp:cCTL0024dCTL0031*
depends:        snd-sb-common,snd-opl3-lib,snd-mpu401-uart,snd-sb16-dsp,snd-pcm,snd,snd-sb16-csp
vermagic:       2.6.23-rc3 SMP mod_unload PENTIUMII 4KSTACKS
parm:           index:Index value for SoundBlaster 16 soundcard. (array of int)
parm:           id:ID string for SoundBlaster 16 soundcard. (array of charp)
parm:           enable:Enable SoundBlaster 16 soundcard. (array of bool)
parm:           isapnp:PnP detection for specified soundcard. (array of bool)
parm:           port:Port # for SB16 driver. (array of long)
parm:           mpu_port:MPU-401 port # for SB16 driver. (array of long)
parm:           fm_port:FM port # for SB16 PnP driver. (array of long)
parm:           irq:IRQ # for SB16 driver. (array of int)
parm:           dma8:8-bit DMA # for SB16 driver. (array of int)
parm:           dma16:16-bit DMA # for SB16 driver. (array of int)
parm:           mic_agc:Mic Auto-Gain-Control switch. (array of ...
From: Kay Sievers
Date: Friday, August 24, 2007 - 7:20 am

Right, that will not match. You could add:
  alias pnp:dCTL0001 snd-sb16
to:
  /etc/modprobe.d/pnp
or some other file in that directory.

We may switch to acpi based module autoloading in the future and add
"acpi:*" aliases to the modules intsead of the broken pnp alias hack.
Just to check if that would work, can you please provide the output
of:
  grep . /sys/bus/acpi/devices/*/modalias

Thanks,
Kay
-

Previous thread: [PATCH 1/2] Replace CONFIG_USB_OHCI with CONFIG_USB_OHCI_HCD in a few overlooked files by Paolo 'Blaisorblade' Giarrusso on Friday, August 24, 2007 - 4:28 am. (2 messages)

Next thread: Re: 2.6.22.5 forcedeth timeout hang by Willy Tarreau on Friday, August 24, 2007 - 4:51 am. (1 message)