From owner-freebsd-current@freebsd.org Sun Jul 7 22:26:00 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4769615CC555 for ; Sun, 7 Jul 2019 22:26:00 +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 2477877E16; Sun, 7 Jul 2019 22:25:58 +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 x67MPuna055156 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 7 Jul 2019 15:25:56 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x67MPtdH055155; Sun, 7 Jul 2019 15:25:55 -0700 (PDT) (envelope-from sgk) Date: Sun, 7 Jul 2019 15:25:55 -0700 From: Steve Kargl To: Hans Petter Selasky Cc: Ian Lepore , freebsd-current@freebsd.org, takawata@freebsd.org Subject: Re: Someone broke USB Message-ID: <20190707222555.GA55146@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20190706231453.GA46470@troutmask.apl.washington.edu> <20190707080510.GA48223@troutmask.apl.washington.edu> <20190707165429.GA50543@troutmask.apl.washington.edu> <025dfdc1-b2d2-ef88-c2d6-32d8f3620a9d@selasky.org> <99a61cc8-495f-a333-b4bc-46fc929bae37@selasky.org> <20190707185818.GA51398@troutmask.apl.washington.edu> <20ee6a81-d513-8332-8e47-6676dbb9a159@selasky.org> <20190707203635.GA53065@troutmask.apl.washington.edu> <2ccb6b71-022d-5b66-3ba9-007e2647b3e2@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ccb6b71-022d-5b66-3ba9-007e2647b3e2@selasky.org> User-Agent: Mutt/1.11.4 (2019-03-13) X-Rspamd-Queue-Id: 2477877E16 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.06 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.24)[-0.244,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[washington.edu]; AUTH_NA(1.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.94)[0.938,0]; MX_GOOD(-0.01)[cached: troutmask.apl.washington.edu]; NEURAL_SPAM_MEDIUM(0.48)[0.484,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.01)[ip: (0.07), ipnet: 128.95.0.0/16(0.07), asn: 73(-0.13), country: US(-0.06)] 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: Sun, 07 Jul 2019 22:26:00 -0000 On Sun, Jul 07, 2019 at 10:46:10PM +0200, Hans Petter Selasky wrote: > On 2019-07-07 22:36, Steve Kargl wrote: > > On Sun, Jul 07, 2019 at 09:10:00PM +0200, Hans Petter Selasky wrote: > >> On 2019-07-07 20:58, Steve Kargl wrote: > >>> I assume the pause goes after "max--;" statement. I also > >>> assume you want the info with the sysctl removed from > >>> /boot/loader.conf. > >> > >> You can play with it and see what happens. > >> > > > > Built kernel with pause() added, and commented out the > > sysctl in /boot/loader.conf. One reboot took a long > > time to get to the a login prompt, but all of my USB > > devices were found. A few reboots appeared to hang > > after probing the USB mouse (or perhaps I was too > > impatient). > > > > On a side note, it seems the wpi0 mapped to wlan0 > > is now unstable. Luckily, I have an ath(4) pccard > > that I can use instead of the builtin wifi of the > > laptop. The joys of current. :-) > > > > It sounds like we have a race there and that a wait between the probes > solves it. > > Can you try the attached patch on top of -current: > Hans, this patch seems to work. Just booted a kernel and all my devices were correctly found. Thanks for your help. -- Steve 20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4 20161221 https://www.youtube.com/watch?v=IbCHE-hONow