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 87211C4332F for ; Fri, 11 Nov 2022 11:55:55 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BEgqo5NGogLx/hzD3kLQmhYYx0Xpsa5N+Soc5sly1yI=; b=0p9J85ryAZf8tn pGG9xrVdEsmkqE/vJUYZQRZDOc53H2IbMvEfhYIDCQHxN7w5TzSchb/Kf0f4qEhxGgZYg7HahBDP8 jxhCLBr7p3L05mwnPF5X0l53kizNjWfVX3NbZEXus5w2ktTl+6KrLWMmaIb57BxIfEqoeh04DD4XO /DIeYzgUreTT5HNNUs0x0melHcgb0k+BsWsehMPVqs0fvGGpwlm6bJb40y/6KeGJNibRClXkIrBMj UWGeHwBca+Vo5/Qjin7HUOMBdwaJV4iJPmFoJGDJ/X0LT0RE585p/YcvaPGFe7SAH5QEIlSI1v41D GKuDw+OiaPcKSjo04KVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otScZ-00FQnH-VC; Fri, 11 Nov 2022 11:54:56 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otScV-00FQjq-Ut for linux-arm-kernel@lists.infradead.org; Fri, 11 Nov 2022 11:54:54 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 501C31FB; Fri, 11 Nov 2022 03:54:51 -0800 (PST) Received: from [10.57.38.243] (unknown [10.57.38.243]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 98E9C3F534; Fri, 11 Nov 2022 03:54:43 -0800 (PST) Message-ID: Date: Fri, 11 Nov 2022 11:54:22 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [GIT PULL] arm64 updates for 6.1-rc1 Content-Language: en-GB To: Catalin Marinas , Amit Pundir Cc: Bjorn Andersson , Sibi Sankar , Manivannan Sadhasivam , Will Deacon , Linus Torvalds , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov References: <20221005144116.2256580-1-catalin.marinas@arm.com> From: Robin Murphy In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221111_035452_138560_5EB35C62 X-CRM114-Status: GOOD ( 20.40 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2022-11-11 11:15, Catalin Marinas wrote: > On Tue, Nov 08, 2022 at 10:58:16PM +0530, Amit Pundir wrote: >> On Tue, 25 Oct 2022 at 18:08, Amit Pundir wrote: >>> On Wed, 12 Oct 2022 at 17:24, Catalin Marinas wrote: >>>> On Sat, Oct 08, 2022 at 08:28:26PM +0530, Amit Pundir wrote: >>>>> On Wed, 5 Oct 2022 at 20:11, Catalin Marinas wrote: >>>>>> Will Deacon (2): >>>>>> arm64: dma: Drop cache invalidation from arch_dma_prep_coherent() >>>>> >>>>> This patch broke AOSP on Dragonboard 845c (SDM845). I don't see any >>>>> relevant crash in the attached log and device silently reboots into >>>>> USB crash dump mode. The crash is fairly reproducible on db845c. I >>>>> could trigger it twice in 5 reboots and it always crash at the same >>>>> point during the boot process. Reverting this patch fixes the crash. >>>>> >>>>> I'm happy to test run any debug patche(s), that would help narrow >>>>> down this breakage. > [...] >>> Further narrowed down the breakage to the userspace daemon rmtfs >>> https://github.com/andersson/rmtfs. Is there anything specific in the >>> userspace code that I should be paying attention to? FWIW, this scenario appears to have pretty much everything going on - buffers allocated from no-map carveouts, being shared with firmware as well as DMA devices, being poked by userspace through /dev/mem, and presumably with the funky Qualcomm sort-of-coherent outer cache in the mix too (where IIRC the outer non-cacheable attribute behaves differently for CPUs vs. DMA). If anything's ever going to go awry with mismatched attributes and stale cachelines, it's probably in that setup somewhere. > Since you don't see anything in the logs like a crash and the system > restarts, I suspect it's some deadlock and that's triggering the > watchdog. We have an erratum (826319) but that's for Cortex-A53. IIUC > SDM845 has Kryo 3xx series which based on some random google searches is > derived from A75/A55. Unfortunately the MIDR_EL1 register doesn't match > the Arm Ltd numbering, so I have no idea what CPUs these are by looking > at the boot log. Note that the EL2 firmware on these things tends to happily reset the system without warning if you so much as look at it funny, so I'd imagine a straightforward timeout or other unexpected condition due to coherency getting lost somewhere in the kernel/firmware/device handoff process is probably more than enough. Robin. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel