From owner-freebsd-current@freebsd.org Mon Jul 8 17:30:33 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 7028C15E4402 for ; Mon, 8 Jul 2019 17:30:33 +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 BEFC781196; Mon, 8 Jul 2019 17:30:32 +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 x68HUVSo060155 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 8 Jul 2019 10:30:31 -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 x68HUVUv060154; Mon, 8 Jul 2019 10:30:31 -0700 (PDT) (envelope-from sgk) Date: Mon, 8 Jul 2019 10:30:30 -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: <20190708173030.GA60139@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <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> <20190707222555.GA55146@troutmask.apl.washington.edu> <602f5c9b-e15e-d08f-f388-47fc0a560803@selasky.org> <20190708170323.GA59922@troutmask.apl.washington.edu> <20190708172414.GA60059@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190708172414.GA60059@troutmask.apl.washington.edu> User-Agent: Mutt/1.11.4 (2019-03-13) X-Rspamd-Queue-Id: BEFC781196 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.91 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.88)[0.880,0]; FROM_HAS_DN(0.00)[]; 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)[]; MX_GOOD(-0.01)[cached: troutmask.apl.washington.edu]; NEURAL_SPAM_LONG(0.31)[0.315,0]; NEURAL_SPAM_MEDIUM(0.84)[0.837,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.06), asn: 73(-0.14), 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: Mon, 08 Jul 2019 17:30:33 -0000 On Mon, Jul 08, 2019 at 10:24:14AM -0700, Steve Kargl wrote: > On Mon, Jul 08, 2019 at 07:09:39PM +0200, Hans Petter Selasky wrote: > > On 2019-07-08 19:03, Steve Kargl wrote: > > > On Mon, Jul 08, 2019 at 11:50:31AM +0200, Hans Petter Selasky wrote: > > >> Hi Steve, > > >> > > >> Can you test this patch? > > >> > > >> I made a slight variant which delay the explore threads instead of the > > >> main thread running all the sysinits. > > >> > > >> --HPS > > > > > > With this patch, the kernel does not find any > > > USB devices. > > > > > > > Did you double check the patch was compiled? > > > > Do you see the new sysctl added? > > > > Yes, the new sysctl is added. > > % sysctl -a | grep usb | grep explore > hw.usb.explore_wait: 250 > Setting hw.usb.explore_wait=500 in /boot/loader.conf allowed the laptop to find the mouse and external hard drive. It seems at least for my laptop that 250 is too conservative. -- Steve