X-PMC-CI-e-mail-id: 11502
Hi,
>The Adaptec aic7xxx module then loads,
If I recall correctly, there is a limit on the number of additional
devices recognized by "module" drivers as opposed to the drivers
linked statically with the kernel.
>From old comment in drivers/scsi/in2000.c
NOTE:
* When using this or any other SCSI driver as a module, you'll
* find that with the stock kernel, at most _two_ SCSI hard
* drives will be linked into the device list (ie, usable).
* If your IN2000 card has more than 2 disks on its bus, you
* might want to change the define of 'SD_EXTRA_DEVS' in the
* 'hosts.h' file from 2 to whatever is appropriate. It took
* me a while to track down this surprisingly obscure and
* undocumented little "feature".
*
From my own copy of drivers/scsi/hosts.h
/*
* This is an ugly hack. If we expect to be able to load devices at run time,
* we need to leave extra room in some of the data structures. Doing a
* realloc to enlarge the structures would be riddled with race conditions,
* so until a better solution is discovered, we use this crude approach
*
* Even bigger hack for SparcSTORAGE arrays. Those are at least 6 disks, but
* usually up to 30 disks, so everyone would need to change this. -jj
*/
#ifdef CONFIG_SCSI_PLUTO_MODULE
#define SD_EXTRA_DEVS 40
#else
#define SD_EXTRA_DEVS 4
#endif
#define ST_EXTRA_DEVS 2
#define SR_EXTRA_DEVS 2
#define SG_EXTRA_DEVS (SD_EXTRA_DEVS + SR_EXTRA_DEVS + ST_EXTRA_DEVS)
You might want to increase the defined numbers.
Is there a way to make this caution more explicit by warning
the unsuspecting users by issueing warning messages during
botting (or module insertion time)
when more physical devices were detected at lower level drivers than
can be supported due to this limit?
Then using dmesg should be an easy way to
remind such users of this problem and a keen-eyed user might
spot the warning him/herself.
Just a thought.
--
Ishikawa, Chiaki [EMAIL PROTECTED] or
(family name, given name) [EMAIL PROTECTED]
Personal Media Corp. ** Remove .NoSpam at the end before use **
Shinagawa, Tokyo, Japan 142-0051
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]