From owner-freebsd-usb@FreeBSD.ORG Wed Jun 27 21:15:14 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4FAA01065694 for ; Wed, 27 Jun 2012 21:15:14 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B6E2F8FC0C for ; Wed, 27 Jun 2012 21:15:13 +0000 (UTC) Received: by bkvi18 with SMTP id i18so1702087bkv.13 for ; Wed, 27 Jun 2012 14:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=vJjQywtQfjYXoCd5xGrML8M4zSpD9EariqdQiNs2QNI=; b=Hwrozt8O+IoRuw1ex60Lp5+ar+/DOqFUWeaKM+ias/eQweUU1Y4Z7PjvLp1Gqzca7Q MIKtGHiHhvsL3bxDOdg8f5vV/G8xyewe3RJNopwPMcF1faczv7yD8Czm7vwYTmaHbrbD P5YegkI+4g3Agid006A6dw7MkSPW2Uirn0CPzWXsVVq5oK3wP/BB15gPJfmfFf7xSYjR Hfg6hl3jqcjZ+mAOYuA5QPJxDngHau/1MvzF3rtViPaQzrtooGnP5/eNalkaxwcU8l8c LjsF/zDc1EDj2++EeK41VrN5xVV3OagAj1V/CqV72LCCmjyOHlM/rWK9VpNkkqFvouw4 S+Yw== Received: by 10.205.129.17 with SMTP id hg17mr443954bkc.88.1340831712586; Wed, 27 Jun 2012 14:15:12 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id iq16sm56432591bkc.6.2012.06.27.14.15.10 (version=SSLv3 cipher=OTHER); Wed, 27 Jun 2012 14:15:11 -0700 (PDT) Sender: Alexander Motin Message-ID: <4FEB77C3.2040803@FreeBSD.org> Date: Thu, 28 Jun 2012 00:14:43 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120626 Thunderbird/13.0.1 MIME-Version: 1.0 To: Hans Petter Selasky References: <4FE9AB28.3070704@passap.ru> <201206271826.33128.hselasky@c2i.net> <4FEB4813.6030007@FreeBSD.org> <201206272208.05877.hselasky@c2i.net> In-Reply-To: <201206272208.05877.hselasky@c2i.net> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: [usb] Kingston 8Gb is not usable 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, 27 Jun 2012 21:15:14 -0000 On 27.06.2012 23:08, Hans Petter Selasky wrote: > On Wednesday 27 June 2012 19:51:15 Alexander Motin wrote: >> On 06/27/12 19:26, Hans Petter Selasky wrote: >>> On Wednesday 27 June 2012 18:15:24 Hans Petter Selasky wrote: >>>> ERR=STALLED >>> >>> Retrying might not work, until sense is cleared, due to stalled error. >>> >>> MAV: Maybe that failed prevent-allow medium removal left a sense error >>> that needs to be cleared. >> >> It should be cleared by fetching sense command. As I was assured by >> several people, it is SIM (controller driver, umass) obligation to fetch >> sense and respectively clear it when error detected. But not sure what >> should umass do if this device STALLs. May be should try to do it also. >> So far I haven't see any properly fetched sense from it in provided logs. > > Are you sure? And where should the sense output be sent? Sense output should be (and are now for working devices) sent within reply on the original command returning with the CHECK CONDITION SCSI status. In addition to general status fields there are space for sense data in struct scsiio: sense_data, sense_len and sense_resid fields. -- Alexander Motin