* Re: Adaptec SlimSCSI 1480A
2001-10-10 20:55 Adaptec SlimSCSI 1480A christophe barbe
@ 2001-10-10 21:28 ` christophe barbe
2001-10-11 0:00 ` Greg KH
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: christophe barbe @ 2001-10-10 21:28 UTC (permalink / raw)
To: linux-hotplug
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
Le 2001.10.10 22:55:33 +0200, christophe barbe a écrit :
> 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
>
>
>
>
> --
> Christophe Barbé <christophe.barbe@online.fr>
> GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E
>
> _______________________________________________
> Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
>
--
Christophe Barbé <christophe.barbe@online.fr>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Adaptec SlimSCSI 1480A
2001-10-10 20:55 Adaptec SlimSCSI 1480A christophe barbe
2001-10-10 21:28 ` christophe barbe
@ 2001-10-11 0:00 ` Greg KH
2001-10-11 6:31 ` David Brownell
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2001-10-11 0:00 UTC (permalink / raw)
To: linux-hotplug
On Wed, Oct 10, 2001 at 11:28:22PM +0200, christophe barbe wrote:
> 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 ?
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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Adaptec SlimSCSI 1480A
2001-10-10 20:55 Adaptec SlimSCSI 1480A christophe barbe
2001-10-10 21:28 ` christophe barbe
2001-10-11 0:00 ` Greg KH
@ 2001-10-11 6:31 ` David Brownell
2001-10-11 19:55 ` christophe barbe
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: David Brownell @ 2001-10-11 6:31 UTC (permalink / raw)
To: linux-hotplug
> 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.
> 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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Adaptec SlimSCSI 1480A
2001-10-10 20:55 Adaptec SlimSCSI 1480A christophe barbe
` (2 preceding siblings ...)
2001-10-11 6:31 ` David Brownell
@ 2001-10-11 19:55 ` christophe barbe
2001-10-11 21:32 ` Greg KH
2001-10-12 6:15 ` christophe barbe
5 siblings, 0 replies; 7+ messages in thread
From: christophe barbe @ 2001-10-11 19:55 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]
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
Le 2001.10.11 02:00:30 +0200, Greg KH a écrit :
> On Wed, Oct 10, 2001 at 11:28:22PM +0200, christophe barbe wrote:
> > 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 ?
>
> 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
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
>
--
Christophe Barbé <christophe.barbe@online.fr>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E
[-- Attachment #2: aic7xxx-k2412.patch --]
[-- Type: text/x-patch, Size: 348 bytes --]
--- linux-2.4.11/drivers/scsi/aic7xxx/aic7xxx_linux_pci.c Mon Sep 24 20:30:34 2001
+++ linux-2.4.12/drivers/scsi/aic7xxx/aic7xxx_linux_pci.c Thu Oct 11 19:41:45 2001
@@ -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,
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Adaptec SlimSCSI 1480A
2001-10-10 20:55 Adaptec SlimSCSI 1480A christophe barbe
` (3 preceding siblings ...)
2001-10-11 19:55 ` christophe barbe
@ 2001-10-11 21:32 ` Greg KH
2001-10-12 6:15 ` christophe barbe
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2001-10-11 21:32 UTC (permalink / raw)
To: linux-hotplug
On Thu, Oct 11, 2001 at 09:55:49PM +0200, christophe barbe wrote:
> 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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Adaptec SlimSCSI 1480A
2001-10-10 20:55 Adaptec SlimSCSI 1480A christophe barbe
` (4 preceding siblings ...)
2001-10-11 21:32 ` Greg KH
@ 2001-10-12 6:15 ` christophe barbe
5 siblings, 0 replies; 7+ messages in thread
From: christophe barbe @ 2001-10-12 6:15 UTC (permalink / raw)
To: linux-hotplug
Le 2001.10.11 23:32:58 +0200, Greg KH a écrit :
> On Thu, Oct 11, 2001 at 09:55:49PM +0200, christophe barbe wrote:
> > 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?
>
Nothing I will check that this week-end.
I'm sure I've applied the patch but ...
> thanks,
>
> greg k-h
>
> _______________________________________________
> Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
>
--
Christophe Barbé <christophe.barbe@online.fr>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread