From owner-freebsd-usb@FreeBSD.ORG Tue Jul 28 22:00:11 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9705B1065676 for ; Tue, 28 Jul 2009 22:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 71F268FC1C for ; Tue, 28 Jul 2009 22:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6SM0BiD067818 for ; Tue, 28 Jul 2009 22:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6SM0B18067817; Tue, 28 Jul 2009 22:00:11 GMT (envelope-from gnats) Resent-Date: Tue, 28 Jul 2009 22:00:11 GMT Resent-Message-Id: <200907282200.n6SM0B18067817@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ronald Klop" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E1031065674 for ; Tue, 28 Jul 2009 21:52:01 +0000 (UTC) (envelope-from ronald@echteman.nl) Received: from smtp-out3.tiscali.nl (smtp-out3.tiscali.nl [195.241.79.178]) by mx1.freebsd.org (Postfix) with ESMTP id F0CC48FC08 for ; Tue, 28 Jul 2009 21:52:00 +0000 (UTC) (envelope-from ronald@echteman.nl) Received: from [212.123.145.58] (helo=sjakie.klop.ws) by smtp-out3.tiscali.nl with esmtp (Exim) (envelope-from ) id 1MVuPV-0004JG-Cz; Tue, 28 Jul 2009 23:40:37 +0200 Received: from sjakie.klop.ws (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 34A611098E; Tue, 28 Jul 2009 23:40:30 +0200 (CEST) Message-Id: <1248817230.68597@sjakie.klop.ws> Date: Tue, 28 Jul 2009 23:40:30 +0200 From: "Ronald Klop" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.9 Cc: ronald@echteman.nl Subject: usb/137226: [patch] quirk for Philips extern USB disk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 22:00:11 -0000 >Number: 137226 >Category: usb >Synopsis: [patch] quirk for Philips extern USB disk >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 28 22:00:10 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ronald Klop >Release: FreeBSD 7.2-STABLE amd64 >Organization: >Environment: System: FreeBSD 7.2-STABLE #2: Sat Jul 11 13:18:09 CEST 2009 root@sjakie.klop.ws:/usr/obj/usr/src/sys/GENERIC >Description: My disk doesn't work with ZFS, because I get 'operation not supported'. See below. A person on the mailinglist suggested me to add a quirk and since than my usb disk is happily running ZFS. Jul 8 03:01:39 sjakie kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 Jul 8 03:01:39 sjakie kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jul 8 03:01:39 sjakie kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Jul 8 03:01:39 sjakie kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0 Jul 8 03:01:39 sjakie kernel: (da0:umass-sim0:0:0:0): Invalid command operation code Jul 8 03:01:39 sjakie kernel: (da0:umass-sim0:0:0:0): Unretryable error Jul 8 03:01:39 sjakie root: ZFS: vdev I/O failure, zpool=extern path=/dev/da0 offset=11391598592 size=65536 error=5 Jul 8 03:01:39 sjakie root: ZFS: vdev I/O failure, zpool=extern path=/dev/da0 offset=70877380608 size=65536 error=5 Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0 Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): Invalid command operation code Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): Unretryable error Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0 Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): Invalid command operation code Jul 8 03:02:10 sjakie kernel: (da0:umass-sim0:0:0:0): Unretryable error >How-To-Repeat: >Fix: --- philips-usb-umass.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # patch-sys-dev-usb-umass.c # patch-sys-dev-usb-usbdevs # echo x - patch-sys-dev-usb-umass.c sed 's/^X//' >patch-sys-dev-usb-umass.c << 'dd1f6f9840f8034573a5988aee8d2593' X--- /usr/src/sys/dev/usb/umass.c.orig 2009-07-10 08:55:30.000000000 +0200 X+++ /usr/src/sys/dev/usb/umass.c 2009-07-11 10:59:36.929295627 +0200 X@@ -659,6 +659,10 @@ X UMASS_PROTO_UFI, X NO_QUIRKS X }, X+ { USB_VENDOR_PHILIPS, USB_PRODUCT_PHILIPS_SPE3030CC, RID_WILDCARD, X+ UMASS_PROTO_SCSI | UMASS_PROTO_BBB, X+ NO_SYNCHRONIZE_CACHE X+ }, X { USB_VENDOR_PLEXTOR, USB_PRODUCT_PLEXTOR_40_12_40U, RID_WILDCARD, X UMASS_PROTO_SCSI | UMASS_PROTO_BBB, X NO_TEST_UNIT_READY dd1f6f9840f8034573a5988aee8d2593 echo x - patch-sys-dev-usb-usbdevs sed 's/^X//' >patch-sys-dev-usb-usbdevs << 'f7a7d33f51c9b8ba3ec9f71867b7028f' X--- /usr/src/sys/dev/usb/usbdevs.orig 2009-07-10 08:55:30.000000000 +0200 X+++ /usr/src/sys/dev/usb/usbdevs 2009-07-11 12:29:16.171197768 +0200 X@@ -1958,6 +1957,7 @@ X product PHILIPS PCA646VC 0x0303 PCA646VC PC Camera X product PHILIPS PCVC680K 0x0308 PCVC680K Vesta Pro PC Camera X product PHILIPS DSS150 0x0471 DSS 150 Digital Speaker System X+product PHILIPS SPE3030CC 0x083a USB 2.0 External Disk X product PHILIPS SNU5600 0x1236 SNU5600 X product PHILIPS UM10016 0x1552 ISP 1581 Hi-Speed USB MPEG2 Encoder Reference Kit X product PHILIPS DIVAUSB 0x1801 DIVA USB mp3 player f7a7d33f51c9b8ba3ec9f71867b7028f exit --- philips-usb-umass.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: