From owner-freebsd-usb@FreeBSD.ORG Mon Mar 2 15:49:12 2015 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1E104336 for ; Mon, 2 Mar 2015 15:49:12 +0000 (UTC) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A7EDD9D4 for ; Mon, 2 Mar 2015 15:49:11 +0000 (UTC) Received: by wesw55 with SMTP id w55so34144445wes.4 for ; Mon, 02 Mar 2015 07:49:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:reply-to:mime-version:content-type :content-transfer-encoding; bh=ZcP/l2oStrhd7ela0MDlstAsjdZaX9FV/6SZQrX+9Is=; b=PmjPA1QbwW7Rb98P4L/YKu/VWCh6IfPrpDRTuexgcSwA3daWGNdvJSePE2YYBiTqnD EqkoK6m9caNliO+JutuTFr9kfbNo1d41oMZzDCdty3wlkC5+1ulXtNC5yea0/XQK+cdq N1NyOfMwDUnIscCNjxaq4He4PxwXrfG83Trr4O79bMsfHHW7oLk+R9BjyXfdo+sZMR92 4RaJNVKXnfhb+Y0RFPbQWt9thkplATvT1l8M8Lzz5oQju7TBCo2xVdZaEDXikhzpDaY4 wQH1828nj5AgGqYNbXbvF8B+TdUOK69D2M3XV8mAzB/UBwe6brVSz7B4elw5VCBaDdv7 nqRw== X-Received: by 10.194.234.40 with SMTP id ub8mr60805929wjc.100.1425311350177; Mon, 02 Mar 2015 07:49:10 -0800 (PST) Received: from ernst.home (p578E1CDD.dip0.t-ipconnect.de. [87.142.28.221]) by mx.google.com with ESMTPSA id bd3sm16577087wib.17.2015.03.02.07.49.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 07:49:09 -0800 (PST) Date: Mon, 2 Mar 2015 16:49:07 +0100 From: Gary Jennejohn To: usb@freebsd.org Subject: enumeration failure of disks in external box redux Message-ID: <20150302164907.3ab2eac6@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 15:49:12 -0000 I spent most of the day doing a binary search to find out which commit broke enumeration of the disks in my external disk box, which is using the JMicron USB3 bridge chip. It turned out that there was some kind of breakage in my /usr/src, which I verified by exporting r279520 to /usr/src_279520 and then compiling and installing a new kernel from there. This kernel then worked correctly. BUT! I *must* set dma_bits in xhci.c to 32, otherwise enumeration fails miserably. I suspect that the problem reported recently in a 10.1 (?) PR is also due to dma_bits being set to 64, since IIRC the reporter has the same JMicron USB3 bridge chip in his box. So, HPS, how about an option or quirk to force dma_bits to 32 for us poor users stuck with this brain-damaged JMicron chip? -- Gary Jennejohn