Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp991403ybb; Wed, 1 Apr 2020 13:30:14 -0700 (PDT) X-Google-Smtp-Source: APiQypJCZb9VqSBziNi2+K7ekhsBMKl7+1CWCbFV/ECjJXXquISD9rv5dDkJ4Fz0H38a20cvRnUd X-Received: by 2002:aca:cdd1:: with SMTP id d200mr104632oig.153.1585773014301; Wed, 01 Apr 2020 13:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585773014; cv=none; d=google.com; s=arc-20160816; b=MtYtGWIYx5T9xd63+faigL3nPiBudFBYY/bQMUFxWpdVvsYKQ5Wi/PczwqnHtU8885 /Gu9uENiQBRHU6/0+lCNpj3frlVAgljfWlSGaabMMxrMli9o+lJIAdmoVBP/O4S1toO6 i0JSJ7q/cSE5CZHjE0cHBP2xjqpOhXLIGYVC4V5U/BsfL/acDf7hCr26yrbhTT50qb+y 82w0SnGiMFFaw0FPbqlR41CiNLL0VaSnCJrJcaPJZCMcnUF+bpvoU+xY7I5k6+EP+fod KlHObSmK2cmo9dnPWiH4Qze9xmkg0sBY2FyJdHABORkCPHLYIMNgjSMjEy7OIfE0K6Jv FjTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=v6qcM856obImsvuT5rUIEhvwVnK1DhMJt2Id7uvyK5Q=; b=JseIyrc8vvN80I3enIH4lS4FDBrV0v+Sndii9XCa0bytGG6mAyHHLJXuX2LwiAVq6G 0FBqHbxybRp9kwkwNO+TTQPRIE/3itH+uFcQl8ZS6fOgx7fWeiXH3SHpF6RlZXiC82Pg 03Pa00kbSfKeT0b65dVNmyt8W7OXOEMWzL9gFmjcvgHXHTvsK7+Al2vG49hFdC2qr3v1 d37wWsNVXJT+ma0fivRfvPJKbeECt4a0Huswn9Q4TylzmaoQ8m1Ke1Ob+NmO9ETSTYLE Q0fhRiQufdm+FNSdxNpvk+1vLOu2rVWn4ZQHJrPeRicUTxVoplNjVeAg1EB9DZjUHXNI WffA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Y3vyS0+7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m25si1318379oic.230.2020.04.01.13.29.55; Wed, 01 Apr 2020 13:30:14 -0700 (PDT) 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=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Y3vyS0+7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732861AbgDAU1J (ORCPT + 99 others); Wed, 1 Apr 2020 16:27:09 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:38492 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732441AbgDAU1I (ORCPT ); Wed, 1 Apr 2020 16:27:08 -0400 Received: by mail-ed1-f68.google.com with SMTP id e5so1492817edq.5 for ; Wed, 01 Apr 2020 13:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v6qcM856obImsvuT5rUIEhvwVnK1DhMJt2Id7uvyK5Q=; b=Y3vyS0+7xmMlD2o1DE1joAP9And7I2d2qjY0yOuvGnXvyW98YWzWm7aa6SSnMW9fGv xmbCsUf8tHEs1igbgJL3MR2/QQ9CQsbFnA6iygRiBg0Wr89wbN2oYs93y2m0+MLBc9j0 XZRVztiCpXL+RZE2oEq1MFt12hQvmpIntSCzUl1th3RBpoByO2/Fu41HxaGtFIdOelv6 Z8TUAwfBiHAzT9ov8b0OI473ujkzD9NlE3o2pCzmz/Z3D+q+HTGIcrnaSwtBrsELjwyT RifPDZRqTf60vamEdkpnnVKHQZJPAHKj5NeFxs8bRaNtVcgXRIYIiN2JEGUUS+w9tUY6 z8tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v6qcM856obImsvuT5rUIEhvwVnK1DhMJt2Id7uvyK5Q=; b=ZkeTFbp2CS7SqjyFcLIFzhw1rV/0PmpOzc3htNjWRxC4Xy7R4RjHPMDy9R6SaB08Mf Yg78JvnamTW76OY/9MdBBX7+F3zE4Xv5AF1A8wnaChdmTPbWZpGrWunt5mhXnalBmm1/ Ve8vEDBHitY5JanxqCa9YY2TVziXKEGXDCHsnYEXXLaUKwsoh71ASV8lIzbDrgq+PKKE NBMrNLv21mEW6/0nfqDWZ26pusrQYY7ICTa/vsGxcNpzsF9RmNHU2Ul24qVuuDoQZ6OZ XrAaOKjnGa0nEwWbgt1TPvu2hUXShqp2dUKC18pC6QV26TccCDZXVNuY3/CumjNn6hcV kW3Q== X-Gm-Message-State: ANhLgQ0BB8RpsVkbV7hz0GlXUVT52QsGHxkL+F8oyTQIA3ItMLaibcHy MSM4ShejMYHWJtINLvL+LZj/DPuI4MqJ5pP5XaNrnA== X-Received: by 2002:a50:d847:: with SMTP id v7mr22275521edj.154.1585772826833; Wed, 01 Apr 2020 13:27:06 -0700 (PDT) MIME-Version: 1.0 References: <20200327071202.2159885-1-alastair@d-silva.org> <20200327071202.2159885-12-alastair@d-silva.org> In-Reply-To: <20200327071202.2159885-12-alastair@d-silva.org> From: Dan Williams Date: Wed, 1 Apr 2020 13:26:55 -0700 Message-ID: Subject: Re: [PATCH v4 11/25] powerpc: Enable the OpenCAPI Persistent Memory driver for powernv_defconfig To: "Alastair D'Silva" Cc: "Aneesh Kumar K . V" , "Oliver O'Halloran" , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Frederic Barrat , Andrew Donnellan , Arnd Bergmann , Greg Kroah-Hartman , Vishal Verma , Dave Jiang , Ira Weiny , Andrew Morton , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Anton Blanchard , Krzysztof Kozlowski , Mahesh Salgaonkar , Madhavan Srinivasan , =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , Anju T Sudhakar , Hari Bathini , Thomas Gleixner , Greg Kurz , Nicholas Piggin , Masahiro Yamada , Alexey Kardashevskiy , Linux Kernel Mailing List , linuxppc-dev , linux-nvdimm , Linux MM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 29, 2020 at 10:23 PM Alastair D'Silva wrote: > > This patch enables the OpenCAPI Persistent Memory driver, as well > as DAX support, for the 'powernv' defconfig. > > DAX is not a strict requirement for the functioning of the driver, but it > is likely that a user will want to create a DAX device on top of their > persistent memory device. > > Signed-off-by: Alastair D'Silva > Reviewed-by: Andrew Donnellan > --- > arch/powerpc/configs/powernv_defconfig | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/powerpc/configs/powernv_defconfig b/arch/powerpc/configs/powernv_defconfig > index 71749377d164..921d77bbd3d2 100644 > --- a/arch/powerpc/configs/powernv_defconfig > +++ b/arch/powerpc/configs/powernv_defconfig > @@ -348,3 +348,8 @@ CONFIG_KVM_BOOK3S_64=m > CONFIG_KVM_BOOK3S_64_HV=m > CONFIG_VHOST_NET=m > CONFIG_PRINTK_TIME=y > +CONFIG_ZONE_DEVICE=y > +CONFIG_OCXL_PMEM=m > +CONFIG_DEV_DAX=m > +CONFIG_DEV_DAX_PMEM=m > +CONFIG_FS_DAX=y These options have dependencies. I think it would better to implement a top-level configuration question called something like PERSISTENT_MEMORY_ALL that goes and selects all the bus providers and infrastructure and lets other defaults follow along. For example, CONFIG_DEV_DAX could grow a "default LIBNVDIMM" and then CONFIG_DEV_DAX_PMEM would default on as well. If CONFIG_PERSISTENT_MEMORY_ALL selected all the bus providers and ZONE_DEVICE then the Kconfig system could prompt you to where the dependencies are not satisfied.