Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp831749ybl; Sun, 1 Dec 2019 14:01:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyplUL5JKtfieOwbNHDl0BzELStBUYn+eEKAwY6uBb9YoMh65Oa+idee+TRZ0D6JVMjnu2a X-Received: by 2002:a50:d849:: with SMTP id v9mr9803036edj.105.1575237663981; Sun, 01 Dec 2019 14:01:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575237663; cv=none; d=google.com; s=arc-20160816; b=ZqWkv3kAsCuGIF/Q1NoqbRjTV87TgV9kYGufI4h7UzNGvLkPR8C8MlNmz9A4n8qYZu foeac1iecSCVl+tSXG/0hZ3lJHbbAyW54CSZLxKIIyNm4ftOF8+fMSo2RN8xoaDki3ea jkYS9aY+tQSlknyxul+yhjx/544flET3Nrw6KOw5mA1m94KkKPzR5noy1S9T2B/nO5UE Q/mDiTdKHTMcFsmsh7r5WQEtTbZoii0mpwVs2BILxuqR5jLJdBN4U2QJXTm2Qt4QFHOY b6pJ2GodsEwv60q+HmijbKp9xL4Mq8ccP71gvv/7QDb6O5m6xbMAOXiFruVrCwC7unGY IdEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=wGf8SOslmQtXKi1QI9BMUXk6iVKg26mOeGKK2Ks7MYE=; b=Hx+0gkJAzBMOOGyLHnWDm9ZvRLXkup826svNobVQlIChK3mDqjaAG6zCOy8GEG6r4l gwUOG5sdgj/b48kqb1rzDM1EHBISocaPa96Jo+/cp41DKectABQekYRDdbs9U/Jp7nw7 nBzb0NWYbc4jzoGZlSPmnw5FLPiquwZ3o+dwugPVkb+QzyeRgS0koIWmbqg/opRObPiy AKCPpbZDx+KPA/XHjlFDEun4luLtENgwAKcXeVO3/KW3xKNUHjihuSgNZMTdS5bD2ZSp XT5m821/HKe6Er9afeKszuyvS06Xsf6nruFHkKxW0j7STGKMKerhoZovnqNCIx2aXh83 AF4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jonmasters-org.20150623.gappssmtp.com header.s=20150623 header.b=haC2yWer; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dm19si13166780edb.214.2019.12.01.14.00.19; Sun, 01 Dec 2019 14:01:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@jonmasters-org.20150623.gappssmtp.com header.s=20150623 header.b=haC2yWer; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727297AbfLAV62 (ORCPT + 99 others); Sun, 1 Dec 2019 16:58:28 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:40744 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbfLAV62 (ORCPT ); Sun, 1 Dec 2019 16:58:28 -0500 Received: by mail-qk1-f195.google.com with SMTP id a137so28860034qkc.7 for ; Sun, 01 Dec 2019 13:58:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jonmasters-org.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wGf8SOslmQtXKi1QI9BMUXk6iVKg26mOeGKK2Ks7MYE=; b=haC2yWerrh/EPaAEWE30LtPPVcYglspCRi6YH2nLwTymB5BM0YVdLfcoNnZKG3q3Bp nOSJ41/CKSvenze+4GkAAoq9bgeuRouOnCj/Es44/V2bwrq26knTKVbWMzAGr0r749mb l9l7id8p4zBh9Bje3/MjsdxqHSo5evu/yTNVQi8BvsDS+18ao29L2rZrywVaBAa5E+Bn x0RXh5ocXSXB2kcnHvuNdkfBFp74hGdBEPxb3dVc9RanQywc+6L9xpOsFqptvfDXXicS mFu5VCz81jgRJ+DlsgqYbP8yL+YXeDjRXyJey+9AqIWUJ9fl43km/G+rUxio59oiON8g B+JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=wGf8SOslmQtXKi1QI9BMUXk6iVKg26mOeGKK2Ks7MYE=; b=hgDqZDOHJZZGvh3/wtkje46hGW8+08DPYGNPVTyIvTcKvHbpcgVRbV0vVweQFtfTPf U7Y1gAat0hjXGPLqDcFJCDeRXELpXmK37YMYSy9AwE9JDXrzG9N+ClEnY9RfHHTdP0hT 6Ft2x/1k6juoFVMDs8QlS5fR1OtLmmmyWtAYq8gKWz7M9mrLQXGVafICGhIj2rFNwCVz w+1OUFMDKx8AL8K5CbDvit8CHWCWtdhtzPgcjVapgFeh9gYLBr7NVqhe9n86J9fiK0yq PKZmV5eN8UMMAuQbD88vEI8E7DXIcPW0RbuYtypR8Uu8f+Hm54QKymK1RGotrbFKKoVH Fomg== X-Gm-Message-State: APjAAAURpGNiSglFzZiFIxsdXOrzUe/UreDo4bFxwqd7LzLMpSvXVhd2 lKCzu7N58SC79F9sU0B72yh0Zg== X-Received: by 2002:a37:434d:: with SMTP id q74mr28864727qka.187.1575237507536; Sun, 01 Dec 2019 13:58:27 -0800 (PST) Received: from independence.bos.jonmasters.org (24-148-33-89.s2391.c3-0.grn-cbr1.chi-grn.il.cable.rcncustomer.com. [24.148.33.89]) by smtp.gmail.com with ESMTPSA id t38sm4905845qta.78.2019.12.01.13.58.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Dec 2019 13:58:27 -0800 (PST) Subject: Re: DAX filesystem support on ARMv8 To: Bharat Kumar Gogada , Matthew Wilcox , Dan Williams Cc: "linux-nvdimm@lists.01.org" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "viro@zeniv.linux.org.uk" , "jack@suse.cz" References: <20191112220212.GC7934@bombadil.infradead.org> From: Jon Masters Organization: World Organi{s,z}ation of Broken Dreams Message-ID: Date: Sun, 1 Dec 2019 13:54:45 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/14/19 1:54 AM, Bharat Kumar Gogada wrote: >> >> On Tue, Nov 12, 2019 at 09:15:18AM -0800, Dan Williams wrote: >>> On Mon, Nov 11, 2019 at 6:12 PM Bharat Kumar Gogada >> wrote: >>>> >>>> Hi All, >>>> >>>> As per Documentation/filesystems/dax.txt >>>> >>>> The DAX code does not work correctly on architectures which have >>>> virtually mapped caches such as ARM, MIPS and SPARC. >>>> >>>> Can anyone please shed light on dax filesystem issue w.r.t ARM architecture >> ? >>> >>> The concern is VIVT caches since the kernel will want to flush pmem >>> addresses with different virtual addresses than what userspace is >>> using. As far as I know, ARMv8 has VIPT caches, so should not have an >>> issue. Willy initially wrote those restrictions, but I am assuming >>> that the concern was managing the caches in the presence of virtual >>> aliases. >> >> The kernel will also access data at different virtual addresses from userspace. >> So VIVT CPUs will be mmap/read/write incoherent, as well as being flush >> incoherent. > > Thanks a lot Wilcox and Dan for clarification. > So the above restriction only applies to ARM architectures with VIVT caches and not > for VIPT caches. VMSAv8-64 (Armv8) requires that data caches behave as if they were PIPT. Meaning there is not a situation as described above. Jon. -- Computer Architect