From nobody Tue Nov 30 17:21:29 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 3B84618ADD4A for ; Tue, 30 Nov 2021 17:21:32 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from fry.fubar.geek.nz (fry.fubar.geek.nz [139.59.165.16]) by mx1.freebsd.org (Postfix) with ESMTP id 4J3TXX0bHPz4m3m for ; Tue, 30 Nov 2021 17:21:31 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from [192.168.42.21] (cpc91232-cmbg18-2-0-cust554.5-4.cable.virginm.net [82.2.126.43]) by fry.fubar.geek.nz (Postfix) with ESMTPSA id 8D27A4E659; Tue, 30 Nov 2021 17:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fubar.geek.nz; s=mail; t=1638292890; bh=2HRSum9ZRDN581b2CxopNQABSHBqoAMqpWwSBJ6NO54=; h=From:Subject:Date:In-Reply-To:Cc:To:References; b=upI/DJzgn07tfX+scCOWSktqf/gX9lmG5IwjhK9L7ttp+qj7JTTz1jmlEax7vKOPb AegC7LGv484OXT2IL8WICN1cI6mATGY8F2C9zqRfo3vasHBX8y5N37eLGvYZSJb98Z Jk2hFysFy1QClNdMQ7Mr0pGtp3Ayo2r6HtfQqFwIgnNj/SaeZNGQky8cHh3zuabH3t /o+/fZrXvwPjL6wCdNy7MX3R0LgteDJJrDsMQrBF/5nBEroiUwbRxBzV3Jy4pkrfKL ewPt62/4+2Mf8hLzd/gssz6AsfiWx9jHm8A63zCSxQkWqId2ZRkMyNNDJFTiOLLGSq LQ1dDFT4hnnR1MCEKHl48re/nRN+S2+132Sr6v3WPqjNQbN+chb6BXcjNfIoaePr/n Ry9aZWTulefRkL6tWWhfeVXtSxLKUWGPF45qAhpbnjp5EOVXEtspi989HyKR2mXvte mbO3AvxiYLfmWMCVVlS8DZnAIprgOG5RK2d0fQe9ciEbFHlmqHdA0rk5Sy8iFsRUSc r+zFdv/AK/DSthpyM+4kwyLjKnNkrEoIxvhD/1D9Jd+401JR00d0IgpLkfe/NOD5va tiJRtZqctx/oRTgJj0R6LmOZdPuElOwNJNyiVDxBxnoOfMDFP0MEnpdHOC13mEwonO d4/kxse0G8PoyTEX0BEWKg1Y= From: Andrew Turner Message-Id: <3E44BF3B-9181-480E-8D40-09B66203ADB6@fubar.geek.nz> Content-Type: multipart/alternative; boundary="Apple-Mail=_2FC43BF1-1937-4BCE-82CA-884C72B358B5" 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 12.4 \(3445.104.21\)) Subject: Re: 14-CURRENT Kernel Panic due to USB hub? Date: Tue, 30 Nov 2021 17:21:29 +0000 In-Reply-To: <78ed0a6e-2ef0-46a4-f494-8eeef326d15e@selasky.org> Cc: freebsd-arm@freebsd.org To: Hans Petter Selasky 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> X-Mailer: Apple Mail (2.3445.104.21) X-Rspamd-Queue-Id: 4J3TXX0bHPz4m3m X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail=_2FC43BF1-1937-4BCE-82CA-884C72B358B5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > 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. >> 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 --Apple-Mail=_2FC43BF1-1937-4BCE-82CA-884C72B358B5--