From owner-freebsd-usb@FreeBSD.ORG Wed Apr 11 15:30:14 2012 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 3FD0C1065675 for ; Wed, 11 Apr 2012 15:30:14 +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 F3B9E8FC15 for ; Wed, 11 Apr 2012 15:30:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3BFUDfC058846 for ; Wed, 11 Apr 2012 15:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3BFUDda058845; Wed, 11 Apr 2012 15:30:13 GMT (envelope-from gnats) Resent-Date: Wed, 11 Apr 2012 15:30:13 GMT Resent-Message-Id: <201204111530.q3BFUDda058845@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, Andrew Gregory Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 408431065675 for ; Wed, 11 Apr 2012 15:29:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 2C58A8FC12 for ; Wed, 11 Apr 2012 15:29:54 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q3BFTrdW078652 for ; Wed, 11 Apr 2012 15:29:53 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q3BFTrO5078651; Wed, 11 Apr 2012 15:29:53 GMT (envelope-from nobody) Message-Id: <201204111529.q3BFTrO5078651@red.freebsd.org> Date: Wed, 11 Apr 2012 15:29:53 GMT From: Andrew Gregory To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/166848: Buffalo RUF2 requires quirk 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: Wed, 11 Apr 2012 15:30:14 -0000 >Number: 166848 >Category: usb >Synopsis: Buffalo RUF2 requires quirk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 11 15:30:13 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Andrew Gregory >Release: 8.2 >Organization: Southern Cross Software Solutions >Environment: FreeBSD domain-redacted 8.2-RELEASE-p6 FreeBSD 8.2-RELEASE-p6 #0: Mon Apr 9 04:53:29 UTC 2012 root@domain-redacted:/usr/local/8.2.0-BETA2/os-base/amd64/usr/local/8.2.0-BETA2/FreeBSD/src/sys/FREENAS.amd64 amd64 >Description: I've recently built a FreeNAS 8.2.0 system using some Buffalo RUF2 Flash drives for the operating system and swap. Specifically: http://www.buffalo-asia.com/cgi-bin/products/detail.cgi?country=ar&code=5&id=485 These reported frequent cache sync errors until I built a custom kernel with a quirk added to sys/dev/usb/quirk/usb_quirk.c. I presume a proper fix would add the VID and PID to usbdevs as well. >How-To-Repeat: Write to Buffalo RUF2 flash drives using FreeBSD. Many errors are reported as: (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da1:umass-sim1:1:0:0): CAM status: SCSI Status Error (da1:umass-sim1:1:0:0): SCSI status: Check Condition (da1:umass-sim1:1:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) >Fix: Line to add to usb_quirk.c: USB_QUIRK_VP(0x13fe, 0x2240, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE), >Release-Note: >Audit-Trail: >Unformatted: