From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932787AbbFEVXq (ORCPT ); Fri, 5 Jun 2015 17:23:46 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:32785 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932489AbbFEVXm (ORCPT ); Fri, 5 Jun 2015 17:23:42 -0400 MIME-Version: 1.0 In-Reply-To: <20150605205052.20751.77149.stgit@dwillia2-desk3.amr.corp.intel.com> References: <20150605205052.20751.77149.stgit@dwillia2-desk3.amr.corp.intel.com> Date: Fri, 5 Jun 2015 14:23:41 -0700 Message-ID: Subject: Re: [PATCH v4 0/9] introduce __pfn_t, evacuate struct page from sgls From: Dan Williams To: "linux-kernel@vger.kernel.org" Cc: Jens Axboe , Boaz Harrosh , david , linux-arch@vger.kernel.org, linux-fsdevel , Arnd Bergmann , Konrad Rzeszutek Wilk , Benjamin Herrenschmidt , "torvalds@linux-foundation.org" , Heiko Carstens , Christoph Hellwig , Julia Lawall , Paul Mackerras , "H. Peter Anvin" , Tejun Heo , Matthew Wilcox , Andrew Morton , Ross Zwisler , Ingo Molnar , Martin Schwidefsky , "linux-nvdimm@lists.01.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 5, 2015 at 2:19 PM, Dan Williams wrote: > Introduce __pfn_t which: > > 1/ Allows kernel internal DAX mappings to adhere to the lifetime of the > the underlying block device. In general, it enables a mechanism to > allow any device driver to advertise "device memory" (CONFIG_DEV_PFN) > to other parts of the kernel. > > 2/ Replaces usage of struct page in struct scatterlist. A scatterlist > need only carry enough information to generate a dma address, and > removing struct page from scatterlists is a precursor to allowing DMA to > device memory. Some dma mapping implementations are not ready for a > scatterlist-pfn to reference unampped device memory, those > implementations are disabled by CONFIG_DEV_PFN=y. > > Changes since v4 [1]: v3: https://lists.01.org/pipermail/linux-nvdimm/2015-May/000749.html