Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1082503ybc; Tue, 12 Nov 2019 14:03:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzNRefsg0aFB2ov/3/y5/tewuPjd04+y+YNyns4Lz/lBFzNJxxuZWgkOPTVyXtWbIGu+B0p X-Received: by 2002:a17:906:a28d:: with SMTP id i13mr29980968ejz.288.1573596205605; Tue, 12 Nov 2019 14:03:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573596205; cv=none; d=google.com; s=arc-20160816; b=akug4OGEuQnLnEfgVLEZi0Icsay5WezhakpoeneNreIjcGgcRwqSSLnnunDOKEfr8q CAPTCMZRoiE2kVe1iGtQq7Iyd6nYJRZ3dKUGEKpN1X0Q7OrGz7DYpsBMsdIcSGXpgaQR EWVVChAYYK0y44GOvDzQXE9t/yiseA0SWfSRZtyvqyVZkr1bo940aGOO70R/vSYsVUkq QyhmISrhzXye/jEBbsVsWULe4p17itpL3zPst8i3x8d8dUbaGkd2GL/3VlcAPnqv/5X2 ogBjkOtqoFgRYHowLeUtKGHchQi/Syo30urVoWyM5pZ9Cv8+tbjDrHS0hDsHI0EpJpdX e6fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7jAEbZsBzv3PFISvUcPFIFd7joU8uP8zZrxP8zk/r9M=; b=SX8xwxgesNSrrH0QCbW/7RfLQgUDQeACFzYbGpFGeMXvAgdJcXp2daO88syAtRX5SR dad5Q/qC1OweWQhpfjhHU4QMQfYbClYgwQN/cY/MPrIwnD/SOdU7sD83TNpQTAwATNM3 10rRP1a9pnST2h3z/3bRi9RYRfIYhx9J+DbwRNrn8j18J1tI+tf2J23AIJEyXkBK4/ss +sjvyC4seYYdFpWFodJ/9oTnvBViczxUCtEkUq9Yh6sS2iN5PKCdPcB/QZidesFZbkZ1 oGDJeeNyZUXC1wC2ceMJjt/JR+4szejnHhJ7RiIzSwPi6Rwoxgr4lQTeDzKAQU8bqPAT uU6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=K16IxrZq; 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 l16si868008ejg.240.2019.11.12.14.03.00; Tue, 12 Nov 2019 14:03:25 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=K16IxrZq; 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 S1726957AbfKLWCQ (ORCPT + 99 others); Tue, 12 Nov 2019 17:02:16 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:51124 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbfKLWCP (ORCPT ); Tue, 12 Nov 2019 17:02:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7jAEbZsBzv3PFISvUcPFIFd7joU8uP8zZrxP8zk/r9M=; b=K16IxrZqUhqYgrANYfZo7ZnoD feYnXP9G733dvNL6/NsO3XGUkXqkNGRgGIRqKsPy38+Ued5nKS4GIFDNZhC5X7kAhq241K5uLSzHK cgqa7pAgkjuTVkfuyHdgHl3AawqxRhEQX5mFdKogL4n85ZBuXblzmmuSVRmEYCaReEhQTYtkVqdh/ Ewg8hdV2JRyXaUqsBSBGiEGssfnGsfoTfpjqrwty7p9wEM50oTuSkQY1OZAoQUW87W5Xy7Ftm7fMf 3W7ntvKrQMgeDFRIyqugl/z8IxQ0C895lbV5qQ3zgU+6Y7kbuGXRR3YjWZ73FpjOpGuU/AxrFAImg NseFvGxSA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUeEm-0001EA-GF; Tue, 12 Nov 2019 22:02:12 +0000 Date: Tue, 12 Nov 2019 14:02:12 -0800 From: Matthew Wilcox To: Dan Williams Cc: Bharat Kumar Gogada , "linux-nvdimm@lists.01.org" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "viro@zeniv.linux.org.uk" , "jack@suse.cz" Subject: Re: DAX filesystem support on ARMv8 Message-ID: <20191112220212.GC7934@bombadil.infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.