From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by kanga.kvack.org (Postfix) with ESMTP id 8A0896B02CC for ; Wed, 8 Nov 2017 12:42:43 -0500 (EST) Received: by mail-oi0-f69.google.com with SMTP id b189so2562890oia.10 for ; Wed, 08 Nov 2017 09:42:43 -0800 (PST) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id o45si2341886oto.375.2017.11.08.09.42.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 09:42:42 -0800 (PST) Date: Wed, 8 Nov 2017 12:42:38 -0500 (EST) From: Mikulas Patocka Subject: Re: [dm-devel] [PATCH] vmalloc: introduce vmap_pfn for persistent memory In-Reply-To: <20171108153522.GB24548@infradead.org> Message-ID: References: <20171108095909.GA7390@infradead.org> <20171108150447.GA10374@infradead.org> <20171108153522.GB24548@infradead.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Hellwig Cc: linux-nvdimm@lists.01.org, Christoph Hellwig , linux-mm@kvack.org, dm-devel@redhat.com, Ross Zwisler , Laura Abbott , Dan Williams , "Kirill A . Shutemov" On Wed, 8 Nov 2017, Christoph Hellwig wrote: > On Wed, Nov 08, 2017 at 10:21:38AM -0500, Mikulas Patocka wrote: > > > And what do you do for an architecture with virtuall indexed caches? > > > > Persistent memory is not supported on such architectures - it is only > > supported on x86-64 and arm64. > > For now. But once support is added your driver will just corrupt data > unless you have the right API in place. If dax_flush were able to flush vmapped area, I don't see a problem with it. You obviously can't access the same device simultaneously through vmapped area and direct mapping. But when the persistent memory driver is using the device, no one is expected to touch it anyway. Mikulas -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org