Bug 6921 - cpqarray fails to detect array when built as a module
Summary: cpqarray fails to detect array when built as a module
Status: CLOSED CODE_FIX
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: SCSI (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: io_scsi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-29 20:17 UTC by Joshua Rubin
Modified: 2008-03-28 10:42 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.16
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
dirty hack for pollcomplete() (404 bytes, patch)
2006-08-16 14:01 UTC, Laura Garcia Liebana
Details | Diff

Description Joshua Rubin 2006-07-29 20:17:17 UTC
Most recent kernel where this bug did not occur: 2.6.14
Distribution: Debian (etch)
Hardware Environment: Compaq Proliant DL360
Software Environment: n/a
Problem Description: When built as a module, cpqarray, since 2.6.15, is unable 
to detect arrays. Built into the kernel it works fine. The errors are as 
follows:
cpqarray: Finding drives on ida0
cpqarray: ida0: idaSendPciCmd Timeout out, No command list address returned!
cpqarray: error sending ID Controller

Steps to reproduce: Boot with a Compaq Smart Array card (shows up as "raid 
controller lsi logic/symbios logic 53C1510 (rev 2)" in lspci) and a valid 
array. If the kernel is built with cpqarray as a module that is loaded in an 
initrd, the module is loaded and the array can not be found. If the array 
contains the root partition, the system (obviously) becomes unbootable.
Comment 1 Joshua Rubin 2006-07-30 11:01:20 UTC
Just to update, I have just found that even if cpqarray is built as a module, 
if the floppy module is loaded before it, then cpqarray finds the arrays just 
fine and booting continues as expected.

I apologize because I do not know if this is a debian or a kernel bug, but 
there is also an active debian bug report at this address:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380272
Comment 2 Laura Garcia Liebana 2006-08-16 14:01:51 UTC
Created attachment 8804 [details]
dirty hack for pollcomplete()

I've attached a dirty hack, it isn't an official patch but if it works it can
be useful to find a better solution.
Comment 3 Natalie Protasevich 2008-03-28 02:05:04 UTC
Joshua, have you tried suggested patch (#2)?
Any updates on this bug, does recent kernel work better?
Thanks.
Comment 4 Joshua Rubin 2008-03-28 07:45:11 UTC
Hi Natalie,

I no longer have access to the hardware (nor have I for some time now). But we did get things working. As I remember, the kernel in Debian 4.0 (Etch) worked out of the box. Please see the debian bug report listed above to follow that discussion. What I do not remember was if the fix was in the vanilla source or in the debian patch set.

It looks like this patch was the one that fixed things:
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-rc-fixes-2.6.git;a=commit;h=b2b3c121076961333977f485f0d54c22121df920

Thanks,
Joshua
Comment 5 Natalie Protasevich 2008-03-28 10:42:47 UTC
Thanks for the update, closing the bug.

Note You need to log in before you can comment on or make changes to this bug.