Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp295250rdb; Sat, 27 Jan 2024 07:00:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsgqlf3xc+QdgRwLi0EBh1ZxjQJdrP87YJOuLa5+FElkqeseUVSorhVRy/j/+ykhT7FbcS X-Received: by 2002:a05:622a:38d:b0:42a:2ec6:bf1a with SMTP id j13-20020a05622a038d00b0042a2ec6bf1amr2023953qtx.95.1706367612224; Sat, 27 Jan 2024 07:00:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706367612; cv=pass; d=google.com; s=arc-20160816; b=GMDTDwKAr8r5rXY8Ox7LUF1MR+KgTjN24IOkQHj9KFMi/KCSFVoCXqrQ2RUlAdQF3D bjPEMUiwMonkjiyx/OIDi0Yt1fmhb4gVXlg08i07aq4s1MbkYSubHQoj4Glu1xtkuM5Q y7mbl16cGaRZyJEjuHgCCFH1RWp0RjNJ4xn9DJvo0Ltm/8QkxRoVW10XFEP5IZyUCdqm wOuaGpZaELzpVDNKbtDTwSvbRsOlyLS1gN8Hs3MJHtjiZuv7lg0IZMNBBPnJLuwlR9FV GDLKUjhimYyNr6GxU581YR52Xspr9pNZys67x1OAKRGn6Fd8PrAGjKwOnXfhG0w8tioL 0NWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:to:from:date:references:in-reply-to:message-id:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent :feedback-id:dkim-signature:dkim-signature; bh=PTTnJNpgNLbDx/r8kMhAAD2XWV9ioSxofi77o56JusE=; fh=1aUzjLKTW/VtCR9kyJnuzclOF3PCuG6vQ3tUFlr9N/Q=; b=HNniJHfgKNQ0m4KGDsAkaTFVSvmncZq8PKraSBjQgMz47vDEGxl31PhDqFNvc79MyW OeRrIeUB8GyNU4U69wUcel0yhbQ9JxTzx+8jNSlatmwQn/B63KEc62GGDkRFbluuhPOW cz/Vv+5Cn/+Dc9rrgRqRjLd7uzZwcvDzZl+HHVckQbLlnmItymaxe1YAPyWNmlBKZc22 5Xcfq8aCsWM13jXM5i2cunGf2soxCDGsJJ6Yxbde7rkLSQDN6MgrEPcvz2LlyOxOptGQ tjq7uetfH3to9+MrEIVCLsEueD4XKlZRRJSpSm2qwrWgj/w4U3hDL8sXXFCxjvVWmC+6 ZKoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=YIJ99kLY; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=vu2MCvLv; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-40612-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f1-20020ac859c1000000b0042a2444e319si3602940qtf.474.2024.01.27.07.00.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 07:00:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40612-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=YIJ99kLY; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=vu2MCvLv; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-40612-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F8351C23E3A for ; Fri, 26 Jan 2024 20:14:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 596D922EF8; Fri, 26 Jan 2024 20:14:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="YIJ99kLY"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="vu2MCvLv" Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EF1323742; Fri, 26 Jan 2024 20:14:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706300080; cv=none; b=Ze1clGZUfLQkjZ9vOrz0PDMlcPqK4NAsOVTr7fdIhOY82dFHLbg4C3TW/faOeixFR1jcAG0jJgrVidtW1165rABhLBXQXdia2qHhQi6iz7oU+FvqT/3Xjv5FJ1Xhf5zruzlOg/AAgcmmmneHpPYU5cgwyI7FD//pa8b8MTSHG3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706300080; c=relaxed/simple; bh=OZ+ewMuXtA4D3cA/M9PX3XdetpRqcRYxX9K0zlX/pAs=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To: Subject:Content-Type; b=bjpvytn7X4zu2MIn8fXtE4HsREIC/m1TgG4OQblcZ7JieDAJotRwI+qOW86HefOqeWENxn/e6G1MlZk3LCnpyxJB382fxzcacpB2BUL1W0VZpyaTjyfumc2zN9ZNV76SQ5tTC/4Cq1b3aG9jOebDC4WP8pUAqquEeFjqAJG4UUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=YIJ99kLY; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=vu2MCvLv; arc=none smtp.client-ip=64.147.123.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7150F3200A35; Fri, 26 Jan 2024 15:14:36 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 26 Jan 2024 15:14:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1706300075; x=1706386475; bh=PTTnJNpgNL bDx/r8kMhAAD2XWV9ioSxofi77o56JusE=; b=YIJ99kLYDyqroGJIzUbpHzPHVX QsvSynFvH4MInjiyWyZHTn0Qd0cAeJ2P6DIiCx1h3g0xzP/5T7J9BSuXzuKCM+Ia v2OcmD2n36J/kgiOa95fuBHNJUUpF0BxdK/ZOpHl/vcNIFO224cgA6JLCZUw+0pV QoDd9wlfBiAY51lcpejIQpVJWb5IfEBxJ43C+IeK7pVMZHJv4RMnfg1LaY/fbOME MsxQAwoAuxr7uhhaWcbWg+7LGZQj4gUJZRQWo3BY/B76pfk03v8D1AfxkKRqj/zG dTFqvAjYl89iqOuXc2+VHrIiNalGMpfh5q73x3GnicCz7QRcIqHk2njeFFXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1706300075; x=1706386475; bh=PTTnJNpgNLbDx/r8kMhAAD2XWV9i oSxofi77o56JusE=; b=vu2MCvLvQA8eiso83CL7hL5P4fRPHqqI2Ykvr+Ussytp 2ydwGhRFwTs7/4Pj3EDqlwKqsHcPCNkL+CWMJtB/mVp1nVKQJBST/puHQPgAlbfP NNXHT8XC8Nc+Ej0fHR5NvCEDhiDlBh57a7G//Gc6q9hpDvkFyOPcVkYOl75WtSr7 MP4X4vcySrf/ASU0iaZC0/wUFtaj/eD+jx3FSFr4U9cdfqkdKKnWMMuvoz/M2dSl IAwVPKzqvRXkBcvwVFRcP3Dxsn2fwkZkefnYxwsupJPm1VfYPaHLxA1K8wUVb2vJ H1FSCWH5og9QLRgQIUArNRbM5Vxrxvq4AUqSg754Vg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeljedgudeffecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffegffdutddvhefffeeltefhjeejgedvleffjeeigeeuteelvdettddulefg udfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4C631B6008D; Fri, 26 Jan 2024 15:14:35 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-119-ga8b98d1bd8-fm-20240108.001-ga8b98d1b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: Date: Fri, 26 Jan 2024 21:14:15 +0100 From: "Arnd Bergmann" To: "Mathieu Desnoyers" , "Dan Williams" , "Vishal Verma" , "Dave Jiang" , "Matthew Wilcox" , "Andrew Morton" , "Linus Torvalds" , linux-mm , Linux-Arch , nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, linux-kernel , "Russell King" Subject: Re: [REGRESSION] v5.13: FS_DAX unavailable on 32-bit ARM Content-Type: text/plain On Fri, Jan 26, 2024, at 20:33, Mathieu Desnoyers wrote: > > A) I have prepared a patch series introducing cache_is_aliasing() with > new Kconfig > options: > > * ARCH_HAS_CACHE_ALIASING > * ARCH_HAS_CACHE_ALIASING_DYNAMIC > > and implemented it for all architectures. The "DYNAMIC" implementation > implements cache_is_aliasing() as a runtime check, which is what is needed > on architectures like 32-bit ARM. > > With this we can basically narrow down the list of architectures which are > unsupported by DAX to those which are really affected, without actually solving > the issue for architectures with virtually aliased dcaches. The dynamic option should only be required when building for ARMv6, which is really rare. On an ARMv7-only configuration, we know that the dcache is non-aliasing, so the compile-time check should be sufficient. Even on ARMv6, this could be done as a compile-time choice by platform, since we mostly know what the chips can do: bcm2835, imx3, wm8750 and s3c64xx are non-aliasing because they are limited to 16KB L1 caches, while omap2 and as2500 are aliasing with 32KB caches. With realview/integrator it depends on the exact CPU that was installed. Arnd