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 X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D402C47083 for ; Wed, 2 Jun 2021 14:14:42 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6B5A961242 for ; Wed, 2 Jun 2021 14:14:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B5A961242 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Z+q72PvnNmDt0K2QHabMC5n44cHpM1jroszrqe0/QXo=; b=xvgUmCbA399LYL /tbMYv1fl7beH3pToIYUCpgysvgguoTB2o00UkIPNR2yp26E9oMpqYda/Uk7kNy998TEPOYAb6CHX Ed5EGtgvvWV/+HmuqdWkzLBU2E47a9eAmNnxbN/ahPYaRjP0UwyAWiEdw3d9aidxq68aL1KWkUByy WbqkY2Ne7zNvhb3TYF9TJs6XqI4uGwnH0ua4dipmn4ulCeBtSwnpoxiYTadatFYkZn7njv1GeBzIM hg0R4T3G4R8p28ysnMx2PzWwIIUsczhvlosUviXTxeeH2AIq+/N0LB+SmFtYck4e96k5JkJdS1vma eq9KZhWQS1pYjDL97IlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRcW-004WhO-Pz; Wed, 02 Jun 2021 14:13:20 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRcT-004WfB-7t for linux-arm-kernel@lists.infradead.org; Wed, 02 Jun 2021 14:13:18 +0000 Received: from mail-wr1-f45.google.com ([209.85.221.45]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MXGzQ-1ltUjG0K4s-00Ykj1 for ; Wed, 02 Jun 2021 16:13:12 +0200 Received: by mail-wr1-f45.google.com with SMTP id a20so2526734wrc.0 for ; Wed, 02 Jun 2021 07:13:11 -0700 (PDT) X-Gm-Message-State: AOAM533jlohkgkKeq0edlSrAZYuz4wTlYUIpETuH/2WJhyB8dToe4dFP xE5Le/+LSuAQmv+vVh0OPljezRp3fF+xjeK/8qM= X-Google-Smtp-Source: ABdhPJw7W9/SO2AHRwUSPl3EdlU7xMG2cQNnoB8A3LXhBbtWcFK8LUJTAHXahiLrcSQd1i7IExQSQ9TBbhwhQL0SOZg= X-Received: by 2002:a5d:4050:: with SMTP id w16mr8714597wrp.99.1622643191348; Wed, 02 Jun 2021 07:13:11 -0700 (PDT) MIME-Version: 1.0 References: <20210527124356.22367-1-will@kernel.org> <4d0c8318-bad8-2be7-e292-fc8f70c198de@samsung.com> <20210602135123.GD12753@C02TD0UTHF1T.local> In-Reply-To: <20210602135123.GD12753@C02TD0UTHF1T.local> From: Arnd Bergmann Date: Wed, 2 Jun 2021 16:11:31 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: cache: Lower ARCH_DMA_MINALIGN to 64 (L1_CACHE_BYTES) To: Mark Rutland Cc: Marek Szyprowski , Will Deacon , Linux ARM , Android Kernel Team , Catalin Marinas , Ard Biesheuvel , Vincent Whitchurch , Bartlomiej Zolnierkiewicz X-Provags-ID: V03:K1:aEtOa3reEcW3TYfcZfSZsBGhgctx/jb/FOQFemvLetzqsyrAaDa y3GH6sw0zaL6MOuEmfbMuz0DP2lP6nV6kByxUEggJNJPZYABBRfLoc2keM1LAN/+K0QdB4X 5EO4SAS9OUuesM8N8qlqYQd5x9tLADX6sOpKX2GRjtb6GO4NlxR2MVR69766stSFTBSpcEq vr1X1/cL3cBzTVcqdbVsQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:yDkS3Wzcimk=:zDJ+BcFmLTGqT4E5e4WyrR 7HKKDsBXpZ0A1MjwEtTj3N954DK0U2PVM9BeJcHXVce/URbn0lFdC2JPGIg1ws2HF1FH6eYPz EFH2o1A3bFwmeoMH7e4GZudXDNUN9r9RA2J6TA2jg3VGPJ2/AYrLIQqzvFp6gBxG8p8yMv8Ie H/ZcwHl6IbZK17Umv0SLIJm1dGKB5yc6cj39xmzO6w0bTAGzvUC+2focYl9+xabEYoJizGLpY cgkjYGsHEWYWhnosD1ZAs5KthcoMw1XuUS75e1EoDYxv75VZwRRHNux/W8BLA5vd+GP98rdBB +zny4xAb3SR2tsL68ICWYe8VdpfFnn6Kbq0Y55drD3bPgkzvkj9kMvyAUuXvyo1J9/mG3891S U53LvhvrqtIxq03fVm2DplTqUnmH7IKye1nashnI4pNEUQXS2T8n2sVeGj9M4Ku9cLSIH+axi swgwwS5J+0RUXycCHaW1AWft8J4vQVqmjd/4TluKwUC5cNR6hND7yrP2cknIQgXgS4+o8eDYC 0igN/nzlTgHubv7ffBsn6g= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210602_071317_601083_4A303070 X-CRM114-Status: GOOD ( 22.14 ) 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 Wed, Jun 2, 2021 at 3:51 PM Mark Rutland wrote: > > On Wed, Jun 02, 2021 at 03:25:41PM +0200, Marek Szyprowski wrote: > > On 27.05.2021 14:43, Will Deacon wrote: > > This patch landed in todays linux-next as commit 65688d2a05de ("arm64: > > cache: Lower ARCH_DMA_MINALIGN to 64 (L1_CACHE_BYTES)"). It causes an > > issue on Raspberry Pi 3b board. System boots to userspace fine, but then > > it hangs somewhere during the init scripts after loading the modules. I > > didn't manage to track where it hangs yet though. > > Ouch! > > I have a 3b in a drawer that I might be able to reproduce the issue > with; can you tell me how you're booting that kernel? e.g. which FW and > DT you're using? > > Is your filesystem on the SD card, or some USB storage? I'm guessing > we'll need to stress DMA over one of those. It could be something other than DMA in this case, possibly an out-of-bounds access into a dynamically allocated structure that happens to work when there is extra data at the end of it. Running that kernel with KASAN should help rule this out. Running the same kernel on a Pi 4, or on a virtual machine could also help figure out if there is something hardware specific. Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel