From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f71.google.com (mail-pg0-f71.google.com [74.125.83.71]) by kanga.kvack.org (Postfix) with ESMTP id AEC854403E0 for ; Wed, 8 Nov 2017 04:59:11 -0500 (EST) Received: by mail-pg0-f71.google.com with SMTP id 184so2047470pga.3 for ; Wed, 08 Nov 2017 01:59:11 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id g1si3664000pln.619.2017.11.08.01.59.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 01:59:10 -0800 (PST) Date: Wed, 8 Nov 2017 01:59:09 -0800 From: Christoph Hellwig Subject: Re: [PATCH] vmalloc: introduce vmap_pfn for persistent memory Message-ID: <20171108095909.GA7390@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Mikulas Patocka Cc: Ross Zwisler , linux-mm@kvack.org, linux-nvdimm@lists.01.org, Dan Williams , dm-devel@redhat.com, Laura Abbott , Christoph Hellwig , "Kirill A . Shutemov" On Tue, Nov 07, 2017 at 05:03:11PM -0500, Mikulas Patocka wrote: > Hi > > I am developing a driver that uses persistent memory for caching. A > persistent memory device can be mapped in several discontiguous ranges. > > The kernel has a function vmap that takes an array of pointers to pages > and maps these pages to contiguous linear address space. However, it can't > be used on persistent memory because persistent memory may not be backed > by page structures. > > This patch introduces a new function vmap_pfn, it works like vmap, but > takes an array of pfn_t - so it can be used on persistent memory. How is cache flushing going to work for this interface assuming that your write to/from the virtual address and expect it to be persisted on pmem? -- 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