From nobody Tue Nov 30 22:50:19 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6E3D318B243E for ; Tue, 30 Nov 2021 22:50:31 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3cr719bqz4gNf for ; Tue, 30 Nov 2021 22:50:31 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638312624; bh=0Ja5kWemtAy71m3TrR9NbSP83NkOnSbeOq9STj8K+JU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=uQzRfd30H6Xq6bHEubbdK6IcYdR6FcXxu6HXmKqSkE0ekRDwmnzEuz0AUQvHvt5V7l0to7XXeG14uKUEJJ+AZ1CNDXdA99ETQ79+mb6LE13rwE4aPae3BmzMCUQyfvsmcUBMZNph4ZkVdqqEn0thTYpkV9qUWLNS6IQIvwj69JLxsFqkH172GsrgD52P17HF3WqfqAhQ3qdgH8Vg8gLqfRk47VHxYV6fS+l9xC9XSIlcHuzwwr8bsWKbN9IWIgmgTVbhqlU0J67sV54Id8nZi3GikNqZ5I83AGYM99NNZnvosJNiSat8K8zyvmHl8IIxns/QDsA8MwQWeZoEuOcpng== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638312624; bh=xi3a1wXcOesaE3jcvc/Zbtq7pSYnOAgLegagktVg7Rz=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=L/nechfGG5v2BC6g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dbp0YAMupg_opx sKQsPbLJnZwAW98OT2xFG8Xy4qbqsWbiK6PpT.VCmyYRB2C_aVSw0PbLgP2hQdYBRyU24UwmHlKz ETVqqS24yoZ1nPRdHJfGMapdpMRD8U7Kp09Henh7iBdHH7wFqewNSOt4RG2GUfgz3AO0HZcgbIrx g28abS0C1YgjIVTVQMtBr6vkWgv2KDU2PAk9GOc0o0osIOdFTrwKCRLMXQ__icvxhEHfWYnEVLMQ 5pGm17kmO12aJJsDwrMNzPtsaGEkUrD6RGLq8mrBr7kx.CVX.N1rFOEUYk2EcIddFdntIDiYjcOE nfBdMP5C2AQ_TAR6DQjp_eSHnNL9F1nStLfCfEQJMYPXX.NDVmOb4eqc1ADSDoTbI_Rbt5qNUeQG MpodUTFzcxz5I1w3NrPgNhQDYhrf9wCZUOQgT96umvB15m52KbKxMi2qPY9PN607CfpZKH3z5Erm bykscyThyz1nU4jwWdKY2_MDkKKVCL4h6VM5TMbTY X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Tue, 30 Nov 2021 22:50:24 +0000 Received: by kubenode511.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d7313f0d9cb6821b1b3780d0f13e3ee8; Tue, 30 Nov 2021 22:50:20 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: 14-CURRENT Kernel Panic due to USB hub? In-Reply-To: Date: Tue, 30 Nov 2021 14:50:19 -0800 Cc: Andrew Turner , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <54AB82D2-3AAE-4314-B42E-B0BB8352C371@yahoo.com> References: <2b555ef9-12fe-6214-79a0-cebce1933771@selasky.org> <5bfb1865-8033-0da6-27e4-3c25fb067cee@morante.net> <6F2AD5E1-5AB1-4D08-97F4-84E2905D592B@fubar.geek.nz> <45534c79-311b-d1df-c412-5bd782678cfb@selasky.org> <78ed0a6e-2ef0-46a4-f494-8eeef326d15e@selasky.org> <3E44BF3B-9181-480E-8D40-09B66203ADB6@fubar.geek.nz> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4J3cr719bqz4gNf X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Nov-30, at 13:37, Hans Petter Selasky wrote: > On 11/30/21 18:21, Andrew Turner wrote: >>> On 30 Nov 2021, at 14:34, Hans Petter Selasky = wrote: >>>=20 >>> On 11/30/21 15:16, Andrew Turner wrote: >>>>> On 30 Nov 2021, at 12:35, Hans Petter Selasky = wrote: >>>>>=20 >>>>> On 11/30/21 13:22, Andrew Turner wrote: >>>>>> I bisected the detached messages back to 601ee53858f6 [1]. If I = revert this change I no longer see this on the console. >>>>>> I am also unable to reproduce the panic with this change = reverted. As the panic can be difficult to reproduce I am unsure if = reverting this change is enough to fix it, or if it=E2=80=99s just = making it less likely to be triggered. >>>>>> Andrew >>>>>> [1] https://cgit.freebsd.org/src/commit/?id=3D601ee53858f6 >>>>>=20 >>>>> Hi, >>>>>=20 >>>>> Could you verify that you are not running out of kernel stack? >>>> I can still trigger it after doubling the kernel stack size. >>>>>=20 >>>>> May this be due to some code in the .text segment which is not = properly aligned? >>>> I would expect to have seen the issue on other HW. The issue looks = more like it=E2=80=99s memory corruption. >>>>>=20 >>>>> If you compile and load USB as modules, does the panic go away? >>>> I am unable to trigger it after removing xhci from the kernel, and = did get a panic after loading the xhci module. Note the above line of text. >>>> The xhci controller is one that originated in Broadcom. Linux has a = quirk for it to work around an erratum where attaching a USB 1 device = followed by a USB 2 device the linker the latter will come up as USB 1. = They reset the phy when anything less than USB 3 on a disconnect event. >>>=20 >>> And there is no BIOS / UEFI code still running on that XHCI = controller? >> I would expect the UEFI code to not be accessing the XHCI controller = after exiting the loader. >> Andrew >=20 > Hi, >=20 > Could you try to kldload xhci instead of building it into the kernel = config? Maybe you get a different kind of panic that way. Looks like that was already done and reported on. May be you want more = detail about how kldload failure went? > --HPS >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)