Skip to content

Commit

Permalink
Let's align correctly by setting to 17.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
seanbruno committed Apr 28, 2013
1 parent 83a953c commit c36b497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/dev/ciss/ciss.c
Expand Up @@ -3007,7 +3007,7 @@ ciss_cam_action(struct cam_sim *sim, union ccb *ccb)
cpi->protocol = PROTO_SCSI;
cpi->protocol_version = SCSI_REV_2;
if (sc->ciss_cfg->max_sg_length == 0) {
sg_length = 16;
sg_length = 17;
} else {
/* 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
Expand Down

0 comments on commit c36b497

Please sign in to comment.