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=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 AD8C0C4708F for ; Wed, 2 Jun 2021 14:17:07 +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 7F36261242 for ; Wed, 2 Jun 2021 14:17:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7F36261242 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com 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:References:In-Reply-To:MIME-Version: Date:Message-ID:From:Cc:To:Subject:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eHFi8P2rAxau6fNC7alcDmqSUlYlpFOj8oKK0bKVAcU=; b=FNo5EIZv4FLDAo ZTIJS5nu9pgVmIMo7niTteS+oMoqc6ZfCrcWxSn6gw9bsZZZCymQ7EZ/qFWJcpIlqRWppuPd5LkBY iywU1GmMSv9RWkdwjK6yPmdKp73fx1DwqklRXMUewIOtXT2T5fMRm2tz6U+QSR2gLBaMc7+aNT23K FA2OxIRVUgysoawIjxAx5KSgFsTWPTEw9ibvVxihdZZJNWqBug/LZijyYjbo0IslESgWWIvnPXgXF FzM3dSM41+WjYxbcukLLYX2eJFprrR7jnWUO/iQiPA1fwHvumVmBe/CV4wVR69M+SddKyIC8PWOFK hS2r7EjbUQdVRYyAwhfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRej-004XCa-Ek; Wed, 02 Jun 2021 14:15:37 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRee-004XBW-CA for linux-arm-kernel@lists.infradead.org; Wed, 02 Jun 2021 14:15:35 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20210602141528euoutp02e09438d1a9219c712e959ed7f586d2b9~EyYKtPjl_1785617856euoutp02O for ; Wed, 2 Jun 2021 14:15:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20210602141528euoutp02e09438d1a9219c712e959ed7f586d2b9~EyYKtPjl_1785617856euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1622643328; bh=DP+zu1Uros8KB+j2S+IY401V+TX7vSeqy8emMYw1/BY=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=npw4SLiAZ6IPmYUJyf+lGXDMlKtZDEiJ64hdXr3IX4STvEMmRHzv01EJy9QcPfQG1 noNKJ5Yz0Wy7rA3mf/8s/qDWDLKXXuF3/pM5pGIJnT9GODJ1JNEEVGmnZylzHsHtoJ NUKHunuzuWwkbfl5JUmcyYofGK2+wj2/rE6F8Ht0= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20210602141527eucas1p1609d1aae531591f1cca8e5e1e7281578~EyYJ2534Y0790607906eucas1p1B; Wed, 2 Jun 2021 14:15:27 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 76.42.09444.F7297B06; Wed, 2 Jun 2021 15:15:27 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20210602141527eucas1p1147a8f09bac63a12397deed7c30d947f~EyYJaHngq0768607686eucas1p13; Wed, 2 Jun 2021 14:15:27 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210602141527eusmtrp118849aad6e2ad26fc23dc4b91c487ce3~EyYJZE8yM0383603836eusmtrp1B; Wed, 2 Jun 2021 14:15:27 +0000 (GMT) X-AuditID: cbfec7f4-dd5ff700000024e4-c3-60b7927fa9bb Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8C.5B.08705.F7297B06; Wed, 2 Jun 2021 15:15:27 +0100 (BST) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210602141526eusmtip2e92905f92921c354f69f5b813db25773~EyYI0Jmte2760227602eusmtip2B; Wed, 2 Jun 2021 14:15:26 +0000 (GMT) Subject: Re: [PATCH] arm64: cache: Lower ARCH_DMA_MINALIGN to 64 (L1_CACHE_BYTES) To: Arnd Bergmann , Mark Rutland Cc: Will Deacon , Linux ARM , Android Kernel Team , Catalin Marinas , Ard Biesheuvel , Vincent Whitchurch , Bartlomiej Zolnierkiewicz From: Marek Szyprowski Message-ID: <90750e79-e623-a6ae-9a64-2635797764af@samsung.com> Date: Wed, 2 Jun 2021 16:15:27 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHKsWRmVeSWpSXmKPExsWy7djP87r1k7YnGBycYGTx88t7Rou/k46x W2ycsZ7V4v2yHkaLHdtFLDY9vsZqsfT6RSaL89v8LVrumDpwemzbvY3VY828NYwev39NYvS4 vi7AY9OqTjaPzUvqPfq2rGIMYI/isklJzcksSy3St0vgyth76wNjwWSeis6WLSwNjOc4uxg5 OCQETCSmb5XrYuTiEBJYwSix8ehTdgjnC6PEqa+XmCCcz4wSdw4/Zuli5ATr2P3lE1TVckaJ 76vfMkM4Hxkl/n/6xAhSJSwQLLHt8kNmEFtEwE3i29EpjCBFzAIHmSQ6tvSygiTYBAwlut52 sYHYvAJ2Ehv2bWcHsVkEVCRuzd/JAnKgqECyxO+NuhAlghInZz4Bu4JTIFBi053zTCA2s4C8 xPa3c5ghbHGJW0/mg50tIfCDQ2LVm3tMEGe7SLxs62SGsIUlXh3fwg5hy0icntzDAtHQzCjx 8Nxadginh1HictMMRogqa4k7536xgVzELKApsX6XPkTYUWL61f9MkJDkk7jxVhDiCD6JSdum M0OEeSU62oQgqtUkZh1fB7f24IVLzBMYlWYheW0WkndmIXlnFsLeBYwsqxjFU0uLc9NTi43y Usv1ihNzi0vz0vWS83M3MQKT1Ol/x7/sYFz+6qPeIUYmDsZDjBIczEoivO55WxOEeFMSK6tS i/Lji0pzUosPMUpzsCiJ8yZtWRMvJJCeWJKanZpakFoEk2Xi4JRqYNqqufbfxYVKCpPvhFQm ypjn68fXbD1YE/R05su5Myf9zj+6o2LahSssMxat3mz976LahokvfuvLtijndlgenCPQE7za /5dz+fX9WcFLLRbc1P3ht0q6T/hZrz3Dn7vH4m3Sr922kbLcal0UPV9894QejeMy/rqOGyv9 ZaQmn1o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19IgtuHzYK+eO6xMHr S8ykEz89ni6qclxyuPWC90mJqY7TX1QEH1W/LBB464mqyBOhpLYtSSvO5ayJrO2V6fH6vvZH eKrT1r7mvTmfFllwcHzzn+0622epxNP/M8/93XxyWtmF1f9CfSzObfi7sI7Vp27jnerXt5s7 F3l/W7b1aWvIgTcPV/wwOXVOXdNY7V+WD3+amsfyEzYblViKMxINtZiLihMBMRLoL1UDAAA= X-CMS-MailID: 20210602141527eucas1p1147a8f09bac63a12397deed7c30d947f X-Msg-Generator: CA X-RootMTR: 20210602132541eucas1p17127696041c26c00d1d2f50bef9cfaf0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210602132541eucas1p17127696041c26c00d1d2f50bef9cfaf0 References: <20210527124356.22367-1-will@kernel.org> <4d0c8318-bad8-2be7-e292-fc8f70c198de@samsung.com> <20210602135123.GD12753@C02TD0UTHF1T.local> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210602_071532_791894_EB300E99 X-CRM114-Status: GOOD ( 20.89 ) 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 Hi Arnd, On 02.06.2021 16:11, Arnd Bergmann wrote: > 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. Okay, I will enable KASAN and give it a try. > Running the same kernel on a Pi 4, or on a virtual machine could also help > figure out if there is something hardware specific. Exactly the same kernel binary boots fine on RPi4, virt (qemu) and a few other arm64 boards I have on my test farm. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel