From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 488ACC433EF for ; Tue, 14 Dec 2021 11:22:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IjIuGbps7isF1gi/sgBMTHd7lSz6Oq2FvHaDubGqAoE=; b=1QSNis9LiOGeO3 BzqUFyCT81sq8dsBW/AFRruF5x8NWhZRQii9aUFFS7v2LWM0Rc2QprOUaNJfzhsNc5fv+iFXwJlKx Z4C6YgyB12CprObS6fi1r8UGMHmVOLmfpTHrWxpAjuBUT1KPfDRC9jDU58pTAt9CjtEQg6L6LLaUz YrvJuiUG1AqR1vbDM8u7qqDrB30lL23Vf0MZZnSAMrg5VOcOqy+fpBCcu5HVBu2FAn17b+aM80kFL Kd6q/GbjyDQKkyFsWzV5heZPtALcxcbFsu4Ra86fYq5zHSWeF0WLMH0wut4XV6cAIzGp2H/eeW/MG XBH7JQVMDkz7EaaDAadw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mx5rq-00DgMQ-C6; Tue, 14 Dec 2021 11:21:10 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mx5rl-00DgLC-Uj for linux-arm-kernel@lists.infradead.org; Tue, 14 Dec 2021 11:21:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=re+A+VgqWP+VuzBjah9LZeI0kzGTDdBNysKZxjJuNuQ=; b=N7lITvbQDgqsVxtZNfGzciFiiM b+UX7mxnZh4LF+I5narByKnmJvv+zPLGOffFa1x+SIAA4YPV3Ywkhcc9X+Op4aOMrGMK/uo71r0Rd SRNAjhkRywLfYRajb2D798hIyrC+BsJ0Fgx5mX3HB+L8v0Rkn3pvrCRDlAbyAZkduTYw2qJKS7BFu vSVpJYGv0jGv6mH22JSLHUwf/OGPDFUwTrMIvyOYg1uMWubsCGMG8y8HmQ9j3gZ2B1tq4gCNqn6XZ EJTwPmbiHyAPHfi+wOofHq07AU+cF2u1kkg8jNRTPL+lBCIL9TlbcoAp068AG1dxAHR+mjQkLflge idoqGWcw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:56270) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mx5re-0004pu-SQ; Tue, 14 Dec 2021 11:20:58 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mx5ra-0003Sj-4R; Tue, 14 Dec 2021 11:20:54 +0000 Date: Tue, 14 Dec 2021 11:20:54 +0000 From: "Russell King (Oracle)" To: Joshua Scott Cc: "linux-arm-kernel@lists.infradead.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Chris Packham Subject: Re: Unhandled prefetch abort when probing USB flash drive Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_032106_085977_64150C97 X-CRM114-Status: GOOD ( 17.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Dec 14, 2021 at 05:13:20AM +0000, Joshua Scott wrote: > Hi, > > I have been running into a kernel panic when probing a USB flash drive, and was after some advice or suggestions on what might be going wrong. > > First up, the details of my setup: > * Initially seen on Linux 5.7.19, but I've tested on a vanilla copy of Linux 5.15.0 without any extra modules, and the panic still occurs. > * Flash drive (lsusb): Bus 001 Device 002: ID 1005:b113 Apacer Technology, Inc. Handy Steno 2.0/HT203 > * Our system is based on the Marvell 98DX323x SoC (Arm v7, based on the Armada 370/XP) Does it work with any kernel? If it doesn't, then I would suspect a hardware bug, power supply glitch, or a SDRAM timing issue. Why? These seem somewhat random and spurious. In the example prefetch abort, it's weird on two accounts: 1) "external abort on non-linefetch" means that we weren't accessing cached memory, but the kernel is always in cached memory. 2) prefetch abort means the instruction stream failed to read from this location, but we later see in the Code: line that we have been able to read the instructions into the data cache. If the system runs fine without the flash drive attached, I would suggest it's a power issue. I would suggest trying with an externally powered USB hub, so the hub sources the power for the flash drive and see whether that makes a difference. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel