From owner-freebsd-usb@FreeBSD.ORG Fri Jan 24 15:04:25 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 81065832 for ; Fri, 24 Jan 2014 15:04:25 +0000 (UTC) Received: from umail.aei.mpg.de (umail.aei.mpg.de [194.94.224.6]) by mx1.freebsd.org (Postfix) with ESMTP id 10E9B1599 for ; Fri, 24 Jan 2014 15:04:24 +0000 (UTC) Received: from mailgate.aei.mpg.de (mailgate.aei.mpg.de [194.94.224.5]) by umail.aei.mpg.de (Postfix) with ESMTP id E6D7D200C15; Fri, 24 Jan 2014 16:04:22 +0100 (CET) Received: from mailgate.aei.mpg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id A3093405889; Fri, 24 Jan 2014 16:04:22 +0100 (CET) Received: from intranet.aei.uni-hannover.de (ahin1.aei.uni-hannover.de [130.75.117.40]) by mailgate.aei.mpg.de (Postfix) with ESMTP id BB9BA406AF1; Fri, 24 Jan 2014 16:04:21 +0100 (CET) Received: from cascade.aei.uni-hannover.de ([10.117.15.111]) by intranet.aei.uni-hannover.de (Lotus Domino Release 8.5.3FP6) with ESMTP id 2014012416041159-8360 ; Fri, 24 Jan 2014 16:04:11 +0100 Date: Fri, 24 Jan 2014 16:04:10 +0100 From: Gerrit =?ISO-8859-1?Q?K=FChn?= To: Hans Petter Selasky Subject: Re: ATP USB flash failure (regression?) Message-Id: <20140124160410.d8c30e7a.gerrit.kuehn@aei.mpg.de> In-Reply-To: <52E0EA0E.9020306@bitfrost.no> References: <20140122134116.1c589702.gerrit.kuehn@aei.mpg.de> <52DFC03F.6090002@bitfrost.no> <20140122154508.0958e414.gerrit.kuehn@aei.mpg.de> <52DFDBE8.10004@bitfrost.no> <20140122161205.77018862.gerrit.kuehn@aei.mpg.de> <52E01CCD.8010000@bitfrost.no> <20140123095901.23d9d9ea.gerrit.kuehn@aei.mpg.de> <52E0E6E0.2030000@bitfrost.no> <20140123110042.0177d63e.gerrit.kuehn@aei.mpg.de> <52E0EA0E.9020306@bitfrost.no> Organization: Max Planck Gesellschaft X-Mailer: Sylpheed 3.1.3 (GTK+ 2.24.19; amd64-portbld-freebsd8.2) Mime-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on intranet/aei-hannover(Release 8.5.3FP6|November 21, 2013) at 01/24/2014 16:04:11, Serialize by Router on intranet/aei-hannover(Release 8.5.3FP6|November 21, 2013) at 01/24/2014 16:04:21, Serialize complete at 01/24/2014 16:04:21 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-PMX-Version: 6.0.2.2308539, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.1.24.145115 X-PerlMx-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, MIME_LOWER_CASE 0.05, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS ' Cc: freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jan 2014 15:04:25 -0000 On Thu, 23 Jan 2014 11:08:14 +0100 Hans Petter Selasky wrote about Re: ATP USB flash failure (regression?): HPS> At least the quirks changed. I suspect you need to physically HPS> re-power the device and add the quirk to usb_quirk.c, because the HPS> device does not appear to recover. Looks like the bad SCSI state is HPS> permanent. Hm, I guess I need a hand here: I read and changed these things: --- root@mclane:/usr/src # svn diff Index: sys/dev/usb/quirk/usb_quirk.c =================================================================== --- sys/dev/usb/quirk/usb_quirk.c (revision 261120) +++ sys/dev/usb/quirk/usb_quirk.c (working copy) @@ -163,6 +163,7 @@ UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_INQUIRY), USB_QUIRK(ASAHIOPTICAL, OPTIO330, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_INQUIRY), + USB_QUIRK(ATP, EUSB, 0x14af, 0xaf01, UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(BELKIN, USB2SCSI, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI), USB_QUIRK(CASIO, QV_DIGICAM, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_CBI, Index: sys/dev/usb/usbdevs =================================================================== --- sys/dev/usb/usbdevs (revision 261120) +++ sys/dev/usb/usbdevs (working copy) @@ -643,6 +643,7 @@ vendor SILICOM 0x1485 Silicom vendor RALINK 0x148f Ralink Technology vendor IMAGINATION 0x149a Imagination Technologies +vendor ATP 0x14af ATP Electronics vendor CONCEPTRONIC2 0x14b2 Conceptronic vendor SUPERTOP 0x14cd Super Top vendor PLANEX3 0x14ea Planex Communications @@ -1159,6 +1160,9 @@ product ATEN UC210T 0x2009 UC-210T Ethernet product ATEN DSB650C 0x4000 DSB-650C +/* ATP Electronics products */ +product ATP EUSB 0xaf01 ATP IG eUSB SSD + /* Atheros Communications products */ product ATHEROS AR5523 0x0001 AR5523 product ATHEROS AR5523_NF 0x0002 AR5523 (no firmware) Index: sys/dev =================================================================== --- sys/dev (revision 261120) +++ sys/dev (working copy) --- My devices identifies as --- root@mclane:~ # usbconfig -d 1.4 dump_device_desc ugen1.4: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x14af idProduct = 0xaf01 bcdDevice = 0x1100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <9900210100751207> bNumConfigurations = 0x0001 --- However, this did not change the behaviour at all. On reboot I still get no device and the knowingly non-working quirks: --- ugen1.4: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x4101 umass0:8:0:-1: Attached to scbus8 (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command --- I guess I'm doing something wrong? cu Gerrit