From owner-freebsd-scsi@FreeBSD.ORG Sun Sep 16 12:21:18 2007 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E56916A46D for ; Sun, 16 Sep 2007 12:21:18 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 7CF1513C469 for ; Sun, 16 Sep 2007 12:21:17 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so932824nfb for ; Sun, 16 Sep 2007 05:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=7jt5EMNeDiLTsMeliJuwoUCndXf5PYRoooC6utzTGlI=; b=b9/sS/huvuu46E8K8hnqq4HrKSpOLrfV5GRCavTOmVL+jrS+mknoxczP3lTch1KLnilgD3NVCumTqt96JY7k80Bq5bqfKgf17dxR61NelNf/j6vfQ0R+vcBIk2eiqZtf2ESnF/DIMeggf6JkuJ7WmGLdJkhPsUXYXtV+hCTr/Lc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=WpIHnHhGn+0gsjHVrGe/jpBZX+mXKqtQm1ZP4GLVpdVdMKDGZOWJcGbPper+cLcgIeSZVk/ngDFbu7SpSaQKq+MgasyvulmjtdNEMh9GzZ0d1DtielX8vRIt7Ltk2YBR27vmdfA8UjB/Z7jf4oLE9Mvk5fP6TGZS97UQE2SQ27k= Received: by 10.78.168.1 with SMTP id q1mr1983352hue.1189943674468; Sun, 16 Sep 2007 04:54:34 -0700 (PDT) Received: from roadrunner.spoerlein.net ( [85.180.170.233]) by mx.google.com with ESMTPS id 39sm2847866hug.2007.09.16.04.54.33 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Sep 2007 04:54:33 -0700 (PDT) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.1/8.14.1) with ESMTP id l8GBsSI1001627; Sun, 16 Sep 2007 13:54:28 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.spoerlein.net (8.14.1/8.14.1/Submit) id l8GBsSS5001626; Sun, 16 Sep 2007 13:54:28 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sun, 16 Sep 2007 13:54:27 +0200 From: Ulrich Spoerlein To: Scott Long Message-ID: <20070916115427.GA1427@roadrunner.spoerlein.net> Mail-Followup-To: Scott Long , freebsd-scsi@FreeBSD.ORG, freebsd-current@FreeBSD.ORG, njl@FreeBSD.ORG References: <46E615C4.1010605@samsco.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46E615C4.1010605@samsco.org> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-scsi@FreeBSD.ORG, njl@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: Retirement of CAM_QUIRK_NOSERIAL X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2007 12:21:18 -0000 On Mon, 10.09.2007 at 22:12:52 -0600, Scott Long wrote: > All, > > The attached patch should make CAM behave properly with regard to > probing device serial numbers only when the device advertises that > it supports it. It will hopefully eliminate the need for the > CAM_QUIRK_NOSERIAL quirk (one instance is left because of an unrelated > legacy problem that may or may not be possible to fix). This should > especially benefit USB-UMASS devices, where the console output should > be less noisy. It might even make more devices work out-of-the-box. While this patch is working fine with my USB/FW HDD enclosure, it breaks my MP3 USB stick kernel: umass0: on uhub5 kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: (da0:umass-sim0:0:0:0): got CAM status 0x4 kernel: (da0:umass-sim0:0:0:0): fatal error, failed to attach to device kernel: (da0:umass-sim0:0:0:0): lost device kernel: cam_debug: queuing for immediate ccb kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: umass0: BBB reset failed, IOERROR kernel: umass0: BBB bulk-in clear stall failed, IOERROR kernel: umass0: BBB bulk-out clear stall failed, IOERROR kernel: (da0:umass-sim0:0:0:0): removing device entry This stick needs the SHUTTLE_INIT | NO_GETMAXLUN quirk. Perhaps there is some interdependencies? The patch also, does not magically allow me to read retail DVDs through my Plextor drive when attached via cd(4), but that is not the goal of the patch anyway. It's funny, though. If I quirk this Plextor DVD to NO_INQUIRY, it will attach via da(4) (sic!) and suddenly all kinds of DVD media start working! umass0: on uhub5 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < > Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 3001MB (1536688 2048 byte sectors: 255H 63S/T 95C) Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.