summaryrefslogtreecommitdiffstats
path: root/sys/dev/ciss/ciss.c
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2013-04-28 16:35:23 +0000
committersbruno <sbruno@FreeBSD.org>2013-04-28 16:35:23 +0000
commitc36b497924614eace9cf6f35d916c1b9df545e06 (patch)
tree99a18512d0d60b046c26885834405f1af8799c00 /sys/dev/ciss/ciss.c
parent83a953c49f3f57fe47ecfb88b9eb8de3dc337a31 (diff)
downloadFreeBSD-src-c36b497924614eace9cf6f35d916c1b9df545e06.zip
FreeBSD-src-c36b497924614eace9cf6f35d916c1b9df545e06.tar.gz
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
Diffstat (limited to 'sys/dev/ciss/ciss.c')
-rw-r--r--sys/dev/ciss/ciss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 4e82111..968e7bb 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -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
OpenPOWER on IntegriCloud