From e78493499d1754bcc776f9017fdf6b2cf083b73c Mon Sep 17 00:00:00 2001 From: mav Date: Wed, 28 Dec 2011 22:49:28 +0000 Subject: [PATCH 070/175] Set maximum I/O size for mps(4) to MAXPHYS. Looking into the code, I see no reason why it should be limited to 64K of DFLTPHYS. DMA data tag is any way set to allow MAXPHYS, S/G lists (chain elements) are sufficient and overflows are also handled. On my tests even 1MB I/Os are working fine. Reviewed by: ken@ git-svn-id: http://svn.freebsd.org/base/head@228939 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f (cherry picked from commit a646699215875c0f1a191b21dced758f5613786d) Signed-off-by: Xin Li --- sys/dev/mps/mps_sas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/mps/mps_sas.c b/sys/dev/mps/mps_sas.c index 28ddca1..e301329 100644 --- a/sys/dev/mps/mps_sas.c +++ b/sys/dev/mps/mps_sas.c @@ -937,6 +937,7 @@ mpssas_action(struct cam_sim *sim, union ccb *ccb) cpi->transport_version = 0; cpi->protocol = PROTO_SCSI; cpi->protocol_version = SCSI_REV_SPC; + cpi->maxio = MAXPHYS; cpi->ccb_h.status = CAM_REQ_CMP; break; } -- 1.7.9.4