Date: Sun, 28 Apr 2013 16:35:23 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250022 - head/sys/dev/ciss Message-ID: <201304281635.r3SGZNDC074324@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sbruno Date: Sun Apr 28 16:35:23 2013 New Revision: 250022 URL: http://svnweb.freebsd.org/changeset/base/250022 Log: 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 Modified: head/sys/dev/ciss/ciss.c Modified: head/sys/dev/ciss/ciss.c ============================================================================== --- head/sys/dev/ciss/ciss.c Sun Apr 28 16:20:09 2013 (r250021) +++ head/sys/dev/ciss/ciss.c Sun Apr 28 16:35:23 2013 (r250022) @@ -3007,7 +3007,7 @@ ciss_cam_action(struct cam_sim *sim, uni 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304281635.r3SGZNDC074324>