From owner-freebsd-current@FreeBSD.ORG Thu Feb 14 19:44:45 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 76DA8209; Thu, 14 Feb 2013 19:44:45 +0000 (UTC) (envelope-from joel@freebsd.org) Received: from mail.vnode.se (mail.vnode.se [212.247.52.13]) by mx1.freebsd.org (Postfix) with ESMTP id E436A979; Thu, 14 Feb 2013 19:44:44 +0000 (UTC) Received: from mail.vnode.se (localhost [127.0.0.1]) by mail.vnode.se (Postfix) with ESMTP id 837ACE3F07A; Thu, 14 Feb 2013 20:37:14 +0100 (CET) X-Virus-Scanned: amavisd-new at vnode.se Received: from mail.vnode.se ([127.0.0.1]) by mail.vnode.se (mail.vnode.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b0oKJOPBwm3M; Thu, 14 Feb 2013 20:37:08 +0100 (CET) Received: from jd.benders.se (jd.benders.se [212.247.52.12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.vnode.se (Postfix) with ESMTPSA id CCE03E3F079; Thu, 14 Feb 2013 20:37:08 +0100 (CET) Date: Thu, 14 Feb 2013 20:37:07 +0100 From: Joel Dahl To: Hans Petter Selasky , mav@freebsd.org Subject: Re: HEAD memsticks broken? [USB/CAM Problems?] Message-ID: <20130214193707.GD84888@jd.benders.se> References: <20130209073241.GN21730@jd.benders.se> <20130209230939.GQ21730@jd.benders.se> <20130211222105.GC838@jd.benders.se> <201302120851.18810.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201302120851.18810.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 19:44:45 -0000 On 12-02-2013 8:51, Hans Petter Selasky wrote: > On Monday 11 February 2013 23:21:05 Joel Dahl wrote: > > On 10-02-2013 0:09, Joel Dahl wrote: > > > On 09-02-2013 20:28, Alexander Motin wrote: > > > > How long ago that HEAD was built? Could you get full dmesg? I don't > > > > think that "PREVENT ALLOW MEDIUM REMOVAL" should cause device drop. "No > > > > sense data present" also doesn't look right. > > > > > > As I mentioned earlier, I've tried several HEAD snapshots. > > > > Just a quick update on this: I've built quite a few releases now and > > managed to track down the problem to somewhere between r235789 and > > r237855. It'll probably take me another day or two before I know which > > commit actually broke it. > > Hi, > > I don't see any relevant USB+UMASS patches for your issue in this interval, > but many patches in the SCSI/CAM area. I finally found it. A r237477 memstick boots fine. A r237478 memstick does not. 237478 is the following commit by mav@: ------------------------------------------------------------------------ r237478 | mav | 2012-06-23 14:32:53 +0200 (Sat, 23 Jun 2012) | 3 lines Add scsi_extract_sense_ccb() -- wrapper around scsi_extract_sense_len(). It allows to remove number of duplicate checks from several places. ------------------------------------------------------------------------ -- Joel