diff options
author | sbruno <sbruno@FreeBSD.org> | 2013-01-15 14:35:35 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2013-01-15 14:35:35 +0000 |
commit | 8c31e54e42636c143b34812edb51f9c91a57e0f9 (patch) | |
tree | e0b22b77a53dd7afd93cc9d42b7cd0c18dc639f7 /sys/dev/ciss/cissreg.h | |
parent | 01fbf755f7ffdfa6fff78e7de2f20c60f11b2605 (diff) | |
download | FreeBSD-src-8c31e54e42636c143b34812edb51f9c91a57e0f9.zip FreeBSD-src-8c31e54e42636c143b34812edb51f9c91a57e0f9.tar.gz |
Satisfy the intent of kern/151564: [ciss] ciss(4) should increase
CISS_MAX_LOGICAL to 107
Submitter wanted to increase the number of logical disks supported by ciss(4)
by simply raising the CISS_MAX_LOGICAL value even higher. Instead, consult
the documentation for the raid controller (OPENCISS) and poke the controller
bits to ask it for how many logical/physical disks it can handle.
Revert svn R242089 that raised CISS_MAX_LOGICAL to 64 for all controllers.
For older controllers that don't support this mechanism, fallback to the old
value of 16 logical disks. Tested on P420, P410, P400 and 6i model ciss(4)
controllers.
This should will be MFC'd back to stable/9 stable/8 and stable/7 after the MFC
period.
PR: kern/151564
Reviewed by: scottl@freebsd.org
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/ciss/cissreg.h')
-rw-r--r-- | sys/dev/ciss/cissreg.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/ciss/cissreg.h b/sys/dev/ciss/cissreg.h index feae826..4a3349f 100644 --- a/sys/dev/ciss/cissreg.h +++ b/sys/dev/ciss/cissreg.h @@ -425,6 +425,15 @@ struct ciss_config_table #define CISS_DRIVER_DAUGHTER_ATTACHED (1<<8) #define CISS_DRIVER_SCSI_PREFETCH (1<<9) u_int32_t max_sg_length; /* 31 in older firmware */ +/* + * these fields appear in OpenCISS Spec 1.06 + * http://cciss.sourceforge.net/#docs + */ + u_int32_t max_logical_supported; + u_int32_t max_physical_supported; + u_int32_t max_physical_per_logical; + u_int32_t max_perfomant_mode_cmds; + u_int32_t max_block_fetch_count; } __packed; /* |