From owner-freebsd-current@freebsd.org Sat Jul 6 21:46:08 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 B20F015D3AD9 for ; Sat, 6 Jul 2019 21:46:08 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B9EA481DCB; Sat, 6 Jul 2019 21:45:05 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 274AA26030B; Sat, 6 Jul 2019 23:45:01 +0200 (CEST) Subject: Re: Someone broke USB To: Ian Lepore , sgk@troutmask.apl.washington.edu Cc: freebsd-current@freebsd.org, takawata@FreeBSD.org References: <20190706182301.GA45149@troutmask.apl.washington.edu> <770bc251-7d0f-d56f-6b86-89245b79945f@selasky.org> <20190706194124.GA45536@troutmask.apl.washington.edu> <8ccf4066-7edc-e8c3-d669-16f649ec03c2@selasky.org> <20190706210613.GA45709@troutmask.apl.washington.edu> <4d866257df0aa0a671973555b4a9a0eb27088d5c.camel@freebsd.org> From: Hans Petter Selasky Message-ID: <0758ce54-54af-ce27-a0e3-6a1d20f10bd0@selasky.org> Date: Sat, 6 Jul 2019 23:44:22 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <4d866257df0aa0a671973555b4a9a0eb27088d5c.camel@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: B9EA481DCB X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-5.01 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mail.turbocat.net]; NEURAL_HAM_SHORT(-0.13)[-0.134,0]; IP_SCORE(-2.56)[ip: (-9.09), ipnet: 2a01:4f8::/29(-1.94), asn: 24940(-1.78), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Sat, 06 Jul 2019 21:46:09 -0000 Hi Takanori, Can you have a look at the issues reported in this thread? Are the ACPI functions you call thread safe? USB will enumerate multiple busses at the same time. --HPS On 2019-07-06 23:08, Ian Lepore wrote: > On Sat, 2019-07-06 at 14:06 -0700, Steve Kargl wrote: >> On Sat, Jul 06, 2019 at 10:50:59PM +0200, Hans Petter Selasky wrote: >>> On 2019-07-06 21:41, Steve Kargl wrote: >>>> On Sat, Jul 06, 2019 at 08:33:39PM +0200, Hans Petter Selasky >>>> wrote: >>>>> On 2019-07-06 20:23, Steve Kargl wrote: >>>>>> So, how does one get usb working, again? >>>>>> >>>>>> -- Steve >>>>> >>>>> Can you show dmesg? >>>>> >>>> >>>> It looks like the enumeration of busses and devices has changed. >>>> grepping for uhub and usbus of the working and broken dmesg.boot >>>> gives >>>> >>> >>> Are you able to bisect the commit introducing the bad behaviour? >>> >> >> I'll give it a shot. I have two revision number to work with. >> > > It seems almost certain to be r349161 that causes the problem. >