Skip to contentSkip to conversation

Adaptec SlimSCSI 1480A

DISCUSSION christophe barbe 3 participants 7 messages Oct 10, 2001 – Oct 12, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I am trying the hotplug facilities. If I understand it correctly, the kernel call a user space tool which is then in charge of loading drivers for the just plugged device. Then kernel supporting the hotplug API are used (drivers providing standby/resume).
Cardbus card are usable without pcmcia stuff.

I've a kernel 2.4.11 with hotplug support enabled.
I own a laptop Toshiba 2520cds with a pcmcia/cardbus slot and two cardbus cards : a 3com Megahertz 10/100 lan and an adaptec SlimSCCI 1480A.

The first one is well managed by hotplug. The correct driver is loaded and the network interface is configured. But the second one is not detected.

Nothing is written in /var/log/message and on the console when I insert my scsi card.
Is there some debugging tools ?

With pcmcia, the correct driver was apa1480 but if I have correctly understood the driver with hotplug is aic7xxx.

My card works with pcmcia but only when inserted before booting.

Christophe

Signature · 7 lines
Christophe Barbé <[email protected]>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8  F67A 8F45 2F1E D72C B41E

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw

After further investigation, it appears that :

. My card is sometimes detected.
it looks like a mechanical problem. After 20 insertion, the card is
finally datected and I see:
cs: cb_alloc(bus 20): vendor 0x9004, device 0x6075
PCI: Enabling device 14:00.0 (0000 -> 0003)

. The driver is not loaded automatically.
If I understand correctly it is because the aic7xxx is not define in the /lib/modules/2.4.11/modules.pcimaps file.

Why AIC7xxx is not define in modules.pcimaps ?

Christophe

Quoted 40 lines · christophe barbe

Hi,

I am trying the hotplug facilities. If I understand it correctly, the kernel call a user space tool which is then in charge of loading drivers for the just plugged device. Then kernel supporting the hotplug API are used (drivers providing standby/resume).
Cardbus card are usable without pcmcia stuff.

I've a kernel 2.4.11 with hotplug support enabled.
I own a laptop Toshiba 2520cds with a pcmcia/cardbus slot and two cardbus cards : a 3com Megahertz 10/100 lan and an adaptec SlimSCCI 1480A.

The first one is well managed by hotplug. The correct driver is loaded and
the network interface is configured. But the second one is not detected.

Nothing is written in /var/log/message and on the console when I insert my
scsi card.
Is there some debugging tools ?

With pcmcia, the correct driver was apa1480 but if I have correctly understood the driver with hotplug is aic7xxx.

My card works with pcmcia but only when inserted before booting.

Christophe

Signature · 7 lines
Christophe Barbé <[email protected]>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8  F67A 8F45 2F1E D72C B41E

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Signature · 7 lines
Christophe Barbé <[email protected]>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8  F67A 8F45 2F1E D72C B41E

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#2 lore raw
In reply to christophe barbe
Quoted 8 lines · christophe barbe

After further investigation, it appears that :

. My card is sometimes detected.
it looks like a mechanical problem. After 20 insertion, the card is
finally datected and I see:
cs: cb_alloc(bus 20): vendor 0x9004, device 0x6075
PCI: Enabling device 14:00.0 (0000 -> 0003)

Quoted 5 lines

. The driver is not loaded automatically.
If I understand correctly it is because the aic7xxx is not define in the /lib/modules/2.4.11/modules.pcimaps file.

Why AIC7xxx is not define in modules.pcimaps ?

Because the author of that driver has not included the proper chunk of code in the driver. Could you add the line:

MODULE_DEVICE_TABLE(pci, ahc_linux_pci_id_table);

at the end of aic7xxx_linux_pci.c, rebuild everything, reinstall the modules, and then see if the autoloading stuff works?

thanks,

greg k-h

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to christophe barbe
Quoted 3 lines

I am trying the hotplug facilities. If I understand it correctly, the kernel call a user space tool which is then in charge of loading drivers for the just plugged device.

Loading drivers and doing whatever else is appropriate at that level. For now, it's mostly driver loading, though there are examples of things like PDA hotsyncing, firmware downloading, and uploading photographs from digital cameras.

Quoted 3 lines

Then kernel supporting the hotplug API are
used (drivers providing standby/resume).
Cardbus card are usable without pcmcia stuff.

The suspend/resume support is actually a bit orthogonal to the hotplug support, though I think it's appropriate to expect that all drivers support it. Also it's PCI-specific at this time; USB power management doesn't currently understand those issues except at the level of host controllers.

As Greg noted, exporting the MODULE_DEVICE_TABLE
is also pretty important ... at least from the perspective of user mode driver selection.

- Dave

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw
In reply to christophe barbe

I've tried your modifications with the 2.4.12 upgrade.
I've applied the attached patch.
The pcimaps file still doesn't include any reference to the aic7xxx modules even if the module is there.
It works if I modprobe it.

What's the best tool to debug hotplug stuff (or my brain)?

Thank you,

Christophe

Quoted 34 lines · Greg KH
Quoted 4 lines · christophe barbe

After further investigation, it appears that :

. My card is sometimes detected.
it looks like a mechanical problem. After 20 insertion, the

card is

Quoted 6 lines

finally datected and I see:
cs: cb_alloc(bus 20): vendor 0x9004, device 0x6075
PCI: Enabling device 14:00.0 (0000 -> 0003)

. The driver is not loaded automatically.
If I understand correctly it is because the aic7xxx is not define in

the

Quoted 3 lines

/lib/modules/2.4.11/modules.pcimaps file.

Why AIC7xxx is not define in modules.pcimaps ?

Because the author of that driver has not included the proper chunk of code in the driver. Could you add the line:

MODULE_DEVICE_TABLE(pci, ahc_linux_pci_id_table);

at the end of aic7xxx_linux_pci.c, rebuild everything, reinstall the modules, and then see if the autoloading stuff works?

thanks,

greg k-h

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

Signature · 2 lines
Christophe Barbé <[email protected]>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8  F67A 8F45 2F1E D72C B41E
drivers/scsi/aic7xxx/aic7xxx_linux_pci.c +2 -0
@@ -57,6 +57,8 @@
 	{ 0 }
 };
 
+MODULE_DEVICE_TABLE(pci, ahc_linux_pci_id_table);
+
 struct pci_driver aic7xxx_pci_driver = {
 	name:		"aic7xxx",
 	probe:		ahc_linux_pci_dev_probe,
#5 lore raw
In reply to christophe barbe
Quoted 5 lines · christophe barbe

I've tried your modifications with the 2.4.12 upgrade.
I've applied the attached patch.
The pcimaps file still doesn't include any reference to the aic7xxx modules even if the module is there.
It works if I modprobe it.

What does:
nm aic7xxx.o | grep module_pci
show when you do that on the module you have modified?

thanks,

greg k-h

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#6 lore raw
In reply to christophe barbe
Quoted 4 lines · Greg KH
Quoted 3 lines · christophe barbe

I've tried your modifications with the 2.4.12 upgrade. I've applied the attached patch.
The pcimaps file still doesn't include any reference to the aic7xxx

Quoted 8 lines

modules

Quoted 2 lines

even if the module is there.
It works if I modprobe it.

What does:
nm aic7xxx.o | grep module_pci
show when you do that on the module you have modified?

Nothing I will check that this week-end.
I'm sure I've applied the patch but ...

Quoted 9 lines

thanks,

greg k-h

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

Signature · 7 lines
Christophe Barbé <[email protected]>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8  F67A 8F45 2F1E D72C B41E

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel