From nobody Tue Nov 30 14:16:37 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 3B82418C03B2 for ; Tue, 30 Nov 2021 14:17:09 +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 4J3PRn0XDtz4dSH for ; Tue, 30 Nov 2021 14:17:09 +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 7DC934E659; Tue, 30 Nov 2021 14:16:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fubar.geek.nz; s=mail; t=1638281798; bh=qLS4Lf6zMSn4oVkzPqV9F/vo9M5UDo8h+wdxBuRucIw=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=Qum2+o9i3uRgaEuTOAF23Yl/kuu/ucJBZRqng6TwdNiuNZjdnSEZ7L4qiged/X/iY uhMqnEGOfQUy9BENgGIkjcuyhogZEczS0/+8274t4LckmnRvRZoQjkSN4em6tqoCsL KLYADhJmC5DAzlS6YHSaWJmlLXyRDEPMBYCHpGBNgu+j16e6whE1d+2NQvaFoMhw2j lpAwN2Dz9xVDAIFyUQHQlyS1G85t/OWiJ47i9ZeWvChtiaEfQbY/vx9x9cBUtUeI+T LrWVRJyvE6LESrRJ+XDsYaAqsdCFf28Ds392nqKfjDMTd/Qj06RtYq1h+eeXQ5iZnI eA3X7T7Kv/1Nqo/P8CAHzvuVHIXI0+FuZD6dAKzH+8nzEWzTPMhLvgwn62kvMoFbbb 9sy2LgKLxi1+L8FbCxvLvsUEMO5xlSecJ9zwNzKFTu8Scg0990hZQMArfhPmvaFJR1 +am/DJktn2XKRlRc/xgpNVv3L6HZydE9rzSB6sfLUaiufQUJ55D4pu4cDZo0CrzeQy wKCDdsID7vofhbGmVneC95KYvY8kb/G6WO1HG4P2/6cpswJbepz1UhB6yaQO4EoUQN X+SscIlYmujPbQidds8i85Ic089ZrITeNV6XVIacwx+uFSlQY65nNvUeKvIGt76Ogu Ep2X5nOJioQGMsiL9qleXotc= 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 12.4 \(3445.104.21\)) Subject: Re: 14-CURRENT Kernel Panic due to USB hub? From: Andrew Turner In-Reply-To: <45534c79-311b-d1df-c412-5bd782678cfb@selasky.org> Date: Tue, 30 Nov 2021 14:16:37 +0000 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3445.104.21) X-Rspamd-Queue-Id: 4J3PRn0XDtz4dSH X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > 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= Andrew=