From 2514c5bfdda53260af5b771e5b2c1ca779e9e90f Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Fri, 16 Dec 2005 06:50:55 +0000 Subject: [PATCH] It seems ciss should ignore overrun and underrun on a SCSI INQUIRY command. This fixes some weird booting issues on newer versions of the firmware on the MSA20. Reported by: Philippe Pegon --- sys/dev/ciss/ciss.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 1b8c494ee285..f062377a3612 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -1933,8 +1933,11 @@ ciss_report_request(struct ciss_request *cr, int *command_status, int *scsi_stat * Logical/Physical LUNs commands. */ if ((cc->header.host_tag & CISS_HDR_HOST_TAG_ERROR) && + ((ce->command_status == CISS_CMD_STATUS_DATA_OVERRUN) || + (ce->command_status == CISS_CMD_STATUS_DATA_UNDERRUN)) && ((cc->cdb.cdb[0] == CISS_OPCODE_REPORT_LOGICAL_LUNS) || - (cc->cdb.cdb[0] == CISS_OPCODE_REPORT_PHYSICAL_LUNS))) { + (cc->cdb.cdb[0] == CISS_OPCODE_REPORT_PHYSICAL_LUNS) || + (cc->cdb.cdb[0] == INQUIRY))) { cc->header.host_tag &= ~CISS_HDR_HOST_TAG_ERROR; debug(2, "ignoring irrelevant under/overrun error"); }