From: Sascha Wildner Date: Thu, 2 Aug 2012 22:42:39 +0000 (+0200) Subject: hptmv(4): Reduce si_iosize_max to 64KB. X-Git-Tag: v3.0.3~20 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/5597f4e1cb0dcb88a5f487a91559e81145fddc5b?ds=sidebyside hptmv(4): Reduce si_iosize_max to 64KB. This fixes busdma panics we were getting with it. busdma-clue-by: sephe --- diff --git a/sys/dev/raid/hptmv/entry.c b/sys/dev/raid/hptmv/entry.c index b3a3e89a10..d426092057 100644 --- a/sys/dev/raid/hptmv/entry.c +++ b/sys/dev/raid/hptmv/entry.c @@ -2367,6 +2367,7 @@ hpt_action(struct cam_sim *sim, union ccb *ccb) cpi->transport_version = 2; cpi->protocol = PROTO_SCSI; cpi->protocol_version = SCSI_REV_2; + cpi->maxio = HPTMV_DFLTPHYS; cpi->ccb_h.status = CAM_REQ_CMP; xpt_done(ccb); break; diff --git a/sys/dev/raid/hptmv/global.h b/sys/dev/raid/hptmv/global.h index 5f4635ad38..aa88196298 100644 --- a/sys/dev/raid/hptmv/global.h +++ b/sys/dev/raid/hptmv/global.h @@ -55,6 +55,7 @@ #define MAX_ARRAY_DEVICE MAX_ARRAY_PER_VBUS #define MAX_CHIP_IN_VBUS 1 +#define HPTMV_DFLTPHYS (64 * 1024) #define SUPPORT_IOCTL #define SUPPORT_FAIL_LED