Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4261468ybv; Tue, 25 Feb 2020 16:34:11 -0800 (PST) X-Google-Smtp-Source: APXvYqzG3IRJNGbeFrvTD7tvin8ZJCmhslY37RAPavZH6nbUkcR63Q3F4XJ/q7+k9i8JQznykW6s X-Received: by 2002:aca:c709:: with SMTP id x9mr1132362oif.130.1582677251561; Tue, 25 Feb 2020 16:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582677251; cv=none; d=google.com; s=arc-20160816; b=e8lzmwmyeqeRfnbbw9B7HkfAjf2mSIEaEZTFysIVTnsaSWprS7ePiaq7POWU3ss8eE TSk+XkXS+u00XMafB22FNbrhwgus+zRYKocFluVizwg6AwKFPGVNIW/RkrtvpbH1FD/W 73wAa64NDxWM9dZSb4OBGIfewil2qEUC6Ja2HQ1/eVgZ6DyigxepPbciENhzaQhAKxUn VypOGjnndaydDzrWfXTnJU6sxcY0wqlDeOlnR9c1Xfv7nzHugZ3doX0nco+tKKvfsOuF EMHH/IcSvu8AbmYnXYHS420HMXeLMCGd98u4x+eVhJmR62KAQQ9p0/F0QAil6PDF5vQ4 dpJA== 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=f70455Z6ta/EJCB61dHVpdnNh4osTmAbssLK2ZDouI8=; b=fJO7ODM5onlOK+zFm1EMvJwaXOTl/390SxnQiafCGGuo59XeUhdhYbmug3mmv+SV7m OQJgPbzBlzevxEMUnlTYRe5J+cukFrDQg70qLdQH5UhOs98RdmQrKS0pJo/Laj1TlJD0 SFett607rz4tYamm5c6V+6vVMh2T7FgA7XTz58qYPsXoMVr4V9UGwiMSYhLgiFjVJVpS frxjsnVwsdr7CH/X7AEHRKNvO9/1vGhJBH7XIvpSZBCelwVvzL9ldO5QqgMGOKauVKLx sYJIMlombqxl/+lDM9SHYUnAlC+S6cGy0ypl2f0kiMjUoxofFTursA5RHf8zbJB8Zh4m 6S6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=1rFC1q7e; 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 a205si189328oif.159.2020.02.25.16.33.59; Tue, 25 Feb 2020 16:34:11 -0800 (PST) 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=1rFC1q7e; 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 S1729481AbgBZAco (ORCPT + 99 others); Tue, 25 Feb 2020 19:32:44 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45477 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728865AbgBZAcn (ORCPT ); Tue, 25 Feb 2020 19:32:43 -0500 Received: by mail-ot1-f68.google.com with SMTP id 59so1305798otp.12 for ; Tue, 25 Feb 2020 16:32:42 -0800 (PST) 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=f70455Z6ta/EJCB61dHVpdnNh4osTmAbssLK2ZDouI8=; b=1rFC1q7eiqEoo/Ct8CLTc8uB6k3LoZ19oRJxA++l0zQgLc/UuThtXzQMgIWfj0sABp Tu/rBPamdN1eVJvSLzs32HeQA4BVe2YUCQ1Tn2metD9qEWM0OzwmfiMBaESZbeWmVueY 31XvzUzGzkYQ+M5LGVFUZzc+9QGaHPlVPsaxO62G1PTIwMacG1h2AXJ7RsfUhr9pAPYS pAFjp6krJgYzuaxPTz+vUaSvelbdMaNAu5U4sM+5GFJ8T583/KnVxZ7l59pGq8Zx1N55 /0KS/3htbv5/xl4ByvCEOahacZfCCi1uloIgUD+0kK2IgnIpjShkvcodpT/EheCpFi3J eEMw== 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=f70455Z6ta/EJCB61dHVpdnNh4osTmAbssLK2ZDouI8=; b=gLXeFCZcS/eziiWtt2o9JQakl4+PP8cASYBkL5wzZVSF1hp0dx3OWgfRfJyW9FjVqd FJWerAX7Z8XsBCBFBEdtwA9D0tzNMLy4Mvnws1y7jyLg/Kx1u4+bSRXMvpxlY1Ra7fz6 CJFUTR2u8zFwyRWoTSVzHQtEs0iecUX25nfqb0r8/qROdI+rgBz9MkbC8FplEBLuP56y lqlFssGV+ja0X2JZrVfFDpBojdz/QTOw9jR/UmyQSgWYBCFE6seI2kFkAok7gaGMCbEz ae433r6YbgaePPw2Q0wtrL2/z5oCnBPpEvZUJt6XzF+uRcPCJO/DXUsb8CvtYk5Zi2YN dsqg== X-Gm-Message-State: APjAAAUodE3fZsSdEFW351GHLeY5a+ihLB2ohQKW/OsVw+3GlLgecC+5 2zjN0JKLBCv6ws4B0YC0Riqk77to+L4lGb8buIalDg== X-Received: by 2002:a9d:64d8:: with SMTP id n24mr886741otl.71.1582677162325; Tue, 25 Feb 2020 16:32:42 -0800 (PST) MIME-Version: 1.0 References: <20200221032720.33893-1-alastair@au1.ibm.com> <240fbefc6275ac0a6f2aa68715b3b73b0e7a8310.camel@au1.ibm.com> <20200224043750.GM24185@bombadil.infradead.org> <83034494d5c3da1fa63b172e844f85d0fec7910a.camel@au1.ibm.com> In-Reply-To: From: Dan Williams Date: Tue, 25 Feb 2020 16:32:31 -0800 Message-ID: Subject: Re: [PATCH v3 00/27] Add support for OpenCAPI Persistent Memory devices To: "Alastair D'Silva" Cc: "Oliver O'Halloran" , Matthew Wilcox , "Aneesh Kumar K . V" , 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 Tue, Feb 25, 2020 at 4:14 PM Alastair D'Silva wrote: > > On Mon, 2020-02-24 at 17:51 +1100, Oliver O'Halloran wrote: > > On Mon, Feb 24, 2020 at 3:43 PM Alastair D'Silva < > > alastair@au1.ibm.com> wrote: > > > On Sun, 2020-02-23 at 20:37 -0800, Matthew Wilcox wrote: > > > > On Mon, Feb 24, 2020 at 03:34:07PM +1100, Alastair D'Silva wrote: > > > > > V3: > > > > > - Rebase against next/next-20200220 > > > > > - Move driver to arch/powerpc/platforms/powernv, we now > > > > > expect > > > > > this > > > > > driver to go upstream via the powerpc tree > > > > > > > > That's rather the opposite direction of normal; mostly drivers > > > > live > > > > under > > > > drivers/ and not in arch/. It's easier for drivers to get > > > > overlooked > > > > when doing tree-wide changes if they're hiding. > > > > > > This is true, however, given that it was not all that desirable to > > > have > > > it under drivers/nvdimm, it's sister driver (for the same hardware) > > > is > > > also under arch, and that we don't expect this driver to be used on > > > any > > > platform other than powernv, we think this was the most reasonable > > > place to put it. > > > > Historically powernv specific platform drivers go in their respective > > subsystem trees rather than in arch/ and I'd prefer we kept it that > > way. When I added the papr_scm driver I put it in the pseries > > platform > > directory because most of the pseries paravirt code lives there for > > some reason; I don't know why. Luckily for me that followed the same > > model that Dan used when he put the NFIT driver in drivers/acpi/ and > > the libnvdimm core in drivers/nvdimm/ so we didn't have anything to > > argue about. However, as Matthew pointed out, it is at odds with how > > most subsystems operate. Is there any particular reason we're doing > > things this way or should we think about moving libnvdimm users to > > drivers/nvdimm/? > > > > Oliver > > > I'm not too fussed where it ends up, as long as it ends up somewhere :) > > From what I can tell, the issue is that we have both "infrastructure" > drivers, and end-device drivers. To me, it feels like drivers/nvdimm > should contain both, and I think this feels like the right approach. > > I could move it back to drivers/nvdimm/ocxl, but I felt that it was > only tolerated there, not desired. This could be cleared up with a > response from Dan Williams, and if it is indeed dersired, this is my > preferred location. Apologies if I gave the impression it was only tolerated. I'm ok with drivers/nvdimm/ocxl/, and to the larger point I'd also be ok with a drivers/{acpi => nvdimm}/nfit and {arch/powerpc/platforms/pseries => drivers/nvdimm}/papr_scm.c move as well to keep all the consumers of the nvdimm related code together with the core.