From owner-freebsd-current@freebsd.org Fri Dec 6 22:57:44 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EC0BE1BA398 for ; Fri, 6 Dec 2019 22:57:44 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47V7K45dYMz436j; Fri, 6 Dec 2019 22:57:44 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id xB6MvgKu001086 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 6 Dec 2019 14:57:43 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id xB6MvgPo001085; Fri, 6 Dec 2019 14:57:42 -0800 (PST) (envelope-from sgk) Date: Fri, 6 Dec 2019 14:57:42 -0800 From: Steve Kargl To: Alexander Motin Cc: Warner Losh , FreeBSD Current Subject: Re: CAM breaks USB [was Re: USB causing boot to hang] Message-ID: <20191206225742.GB949@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20191206202316.GA1053@troutmask.apl.washington.edu> <20191206223144.GA3224@troutmask.apl.washington.edu> <284e1dd9-23f5-ae48-6e18-fa523f7dc1a3@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <284e1dd9-23f5-ae48-6e18-fa523f7dc1a3@FreeBSD.org> User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47V7K45dYMz436j X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Fri, 06 Dec 2019 22:57:45 -0000 On Fri, Dec 06, 2019 at 05:44:55PM -0500, Alexander Motin wrote: > > Yes, I made the change, and it was supposed to improve USB > inter-operation, but after reading this email I still have no clue what > could be wrong, so ideas welcome. Sorry about the initial vagueness. It took a couple of hours to bisect the problem. > Steve, do you have some devices on that USB, especially umass(4)? Have > you tried to remove them? On a good boot, this is what is reported by dmesg. There is a logitech USB mouse receiver and a Seagate USB hard drive. It does not matter if the hard drive is plugged in or not. % dmesg | grep -E ^u usbus0 on xhci0 usbus1 on ohci0 usbus2: EHCI version 1.0 usbus2 on ehci0 usbus3 on ohci1 usbus4: EHCI version 1.0 usbus4 on ehci1 usbus5 on ohci2 usbus6 on ohci3 usbus7: EHCI version 1.0 usbus7 on ehci2 usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 12Mbps Full Speed USB v1.0 usbus7: 480Mbps High Speed USB v2.0 ugen7.1: at usbus7 uhub0 on usbus7 uhub0: on usbus7 ugen6.1: at usbus6 uhub1 on usbus6 uhub1: on usbus6 ugen5.1: at usbus5 uhub2 on usbus5 uhub2: on usbus5 ugen4.1: at usbus4 uhub3 on usbus4 uhub3: on usbus4 ugen3.1: at usbus3 uhub4 on usbus3 uhub4: on usbus3 ugen2.1: at usbus2 uhub5 on usbus2 uhub5: on usbus2 ugen1.1: at usbus1 uhub6 on usbus1 uhub6: on usbus1 ugen0.1: <0x1106 XHCI root HUB> at usbus0 uhub7 on usbus0 uhub7: <0x1106 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 uhub2: 2 ports with 2 removable, self powered uhub1: 4 ports with 4 removable, self powered uhub4: 5 ports with 5 removable, self powered uhub6: 5 ports with 5 removable, self powered uhub7: 5 ports with 4 removable, self powered ugen0.2: at usbus0 uhub8 on uhub7 uhub8: on usbus0 uhub8: 4 ports with 4 removable, self powered uhub0: 4 ports with 4 removable, self powered uhub3: 5 ports with 5 removable, self powered uhub5: 5 ports with 5 removable, self powered ugen0.3: at usbus0 umass0 on uhub7 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0100 umass0:9:0: Attached to scbus9 ugen3.2: at usbus3 ums0 on uhub4 ums0: on usbus3 ums0: 8 buttons and [XYZT] coordinates ID=0 uhid0 on uhub4 uhid0: on usbus3 % dmesg | grep da0 Trying to mount root from ufs:/dev/ada0p2 [rw]... da0 at umass-sim0 bus 0 scbus9 target 0 lun 0 da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number NA7PEGM0 da0: 400.000MB/s transfers da0: 3815447MB (7814037167 512 byte sectors) da0: quirks=0x2 -- Steve