Date: Mon, 13 Jul 2009 14:40:17 GMT From: Andrew <andrew@flarn.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/136718: ciss driver issue on HP DL585 Message-ID: <200907131440.n6DEeHgL046412@www.freebsd.org> Resent-Message-ID: <200907131450.n6DEo143020503@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 136718
>Category: misc
>Synopsis: ciss driver issue on HP DL585
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 13 14:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Andrew
>Release: 8.0-BETA1
>Organization:
>Environment:
FreeBSD gboff01-gs-me02.complinet.local 8.0-BETA1 FreeBSD 8.0-BETA1 #1: Mon Jul 13 15:07:40 BST 2009 root@:/usr/obj/usr/src/sys/NODEBUG amd64
>Description:
whilst attempting a `portsnap fetch` on a HP DL585 updated to 8.0-BETA1 I get the following kernel messages:
Jul 13 14:23:40 gboff01-gs-me02 kernel: ciss0: invalid command, offense size 0 at 52, value 0x0, function ciss_cam_complete
Jul 13 14:23:40 gboff01-gs-me02 last message repeated 4 times
Jul 13 14:23:40 gboff01-gs-me02 kernel: g_vfs_done():da0s1d[WRITE(offset=5218385920, length=131072)]error = 5
Jul 13 14:23:41 gboff01-gs-me02 kernel: ciss0: invalid command, offense size 0 at 52, value 0x0, function ciss_cam_complete
Jul 13 14:23:41 gboff01-gs-me02 last message repeated 4 times
Jul 13 14:23:41 gboff01-gs-me02 kernel: g_vfs_done():da0s1d[WRITE(offset=5218385920, length=131072)]error = 5
ciss0:
ciss0@pci0:2:4:0: class=0x010400 card=0x40800e11 chip=0xb1780e11 rev=0x01 hdr=0x00
vendor = 'Compaq Computer Corp (Now owned by Hewlett-Packard)'
device = 'SMART2 Array Controller (CISSB)'
class = mass storage
subclass = RAID
cap 01[c0] = powerspec 2 supports D0 D1 D3 current D0
cap 05[cc] = MSI supports 2 messages, 64 bit
cap 07[dc] = PCI-X 64-bit supports 512 burst read, 4 split transactions
dmesg extract:
ciss0: <Compaq Smart Array 5i> port 0x5000-0x50ff mem 0xf7bc0000-0xf7bfffff,0xf5ef0000-0xf5ef3fff irq 18 at device 4.0 on pci2
ciss0: PERFORMANT Transport
ciss0: [ITHREAD]
>How-To-Repeat:
Install 8.0-BETA1 on a HP DL585G1, attempt any significant disk activity.
>Fix:
The following patch to cissvar.h seems to correct the issue, unsure if this is the correct fix:
--- sys/dev/ciss/cissvar.h.orig 2009-07-13 14:41:23.000000000 +0100
+++ sys/dev/ciss/cissvar.h 2009-07-13 14:41:34.000000000 +0100
@@ -137,7 +137,7 @@
* too small.
*/
-#define CISS_COMMAND_ALLOC_SIZE 512 /* XXX tune to get sensible s/g list length */
+#define CISS_COMMAND_ALLOC_SIZE 1024 /* XXX tune to get sensible s/g list length */
#define CISS_COMMAND_SG_LENGTH ((CISS_COMMAND_ALLOC_SIZE - sizeof(struct ciss_command)) \
/ sizeof(struct ciss_sg_entry))
With the kernel recompiled, which it wouldn't survive without the patch, I can `portsnap fetch` and `portsnap extract` without errors.
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907131440.n6DEeHgL046412>
