Let's align correctly by setting to 17.
OpenCISS states that if the value is 0, then the driver should try a value of 31. That's just silly. Set to 17 so that the subtraction for maxio becomes 16 and aligns nicely. Reviewed by: scottl Obtained from: Yahoo! Inc. MFC after: 2 weeks
This commit is contained in:
parent
1e8b29a4ba
commit
e8e4cdbacb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250022
@ -3007,7 +3007,7 @@ ciss_cam_action(struct cam_sim *sim, union ccb *ccb)
|
|||||||
cpi->protocol = PROTO_SCSI;
|
cpi->protocol = PROTO_SCSI;
|
||||||
cpi->protocol_version = SCSI_REV_2;
|
cpi->protocol_version = SCSI_REV_2;
|
||||||
if (sc->ciss_cfg->max_sg_length == 0) {
|
if (sc->ciss_cfg->max_sg_length == 0) {
|
||||||
sg_length = 16;
|
sg_length = 17;
|
||||||
} else {
|
} else {
|
||||||
/* XXX Fix for ZMR cards that advertise max_sg_length == 32
|
/* XXX Fix for ZMR cards that advertise max_sg_length == 32
|
||||||
* Confusing bit here. max_sg_length is usually a power of 2. We always
|
* Confusing bit here. max_sg_length is usually a power of 2. We always
|
||||||
|
Loading…
Reference in New Issue
Block a user