From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 43E422116DA3E for ; Sun, 14 Oct 2018 16:44:11 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id q50so17263073otd.0 for ; Sun, 14 Oct 2018 16:44:11 -0700 (PDT) MIME-Version: 1.0 References: <20181014231828.17139-1-oohall@gmail.com> <20181014231828.17139-2-oohall@gmail.com> In-Reply-To: <20181014231828.17139-2-oohall@gmail.com> From: Dan Williams Date: Sun, 14 Oct 2018 16:43:59 -0700 Message-ID: Subject: Re: [PATCH v3 2/2] powerpc/pseries: Add driver for PAPR SCM regions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Oliver O'Halloran Cc: Nathan Fontenot , linuxppc-dev , linux-nvdimm List-ID: On Sun, Oct 14, 2018 at 4:19 PM Oliver O'Halloran wrote: > > Adds a driver that implements support for enabling and accessing PAPR > SCM regions. Unfortunately due to how the PAPR interface works we can't > use the existing of_pmem driver (yet) because: > > a) The guest is required to use the H_SCM_BIND_MEM h-call to add > add the SCM region to it's physical address space, and > b) There is currently no mechanism for relating a bare of_pmem region > to the backing DIMM (or not-a-DIMM for our case). > > Both of these are easily handled by rolling the functionality into a > seperate driver so here we are... > > Acked-by: Dan Williams > Signed-off-by: Oliver O'Halloran > --- > The alternative implementation here is that we have the pseries code > do the h-calls and craft a pmem-region@ node based on that. > However, that doesn't solve b) and mpe has expressed his dislike of > adding new stuff to the DT at runtime so i'd say that's a non-starter. > --- > v2: no change > v3: Corrected the mapping to use a DPA start address of zero > Added cond_resched() calls in the bind/unbind loops Looks good, could I trouble you for an ack on the build / merge fix? https://patchwork.kernel.org/patch/10640385/ _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm