From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DA14C4BA09 for ; Wed, 26 Feb 2020 00:35:51 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3788120732 for ; Wed, 26 Feb 2020 00:35:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3788120732 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=au1.ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CB1B76B0003; Tue, 25 Feb 2020 19:35:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C63A06B000C; Tue, 25 Feb 2020 19:35:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B2A956B000D; Tue, 25 Feb 2020 19:35:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0062.hostedemail.com [216.40.44.62]) by kanga.kvack.org (Postfix) with ESMTP id 9B5A96B0003 for ; Tue, 25 Feb 2020 19:35:50 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 5E057181AC9C6 for ; Wed, 26 Feb 2020 00:35:50 +0000 (UTC) X-FDA: 76530410460.01.pot72_32e625e5b1c58 X-HE-Tag: pot72_32e625e5b1c58 X-Filterd-Recvd-Size: 9037 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf32.hostedemail.com (Postfix) with ESMTP for ; Wed, 26 Feb 2020 00:35:49 +0000 (UTC) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01Q0ZgqS129555 for ; Tue, 25 Feb 2020 19:35:48 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ydcp02dwy-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 25 Feb 2020 19:35:47 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 26 Feb 2020 00:35:34 -0000 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 26 Feb 2020 00:35:28 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01Q0ZRs843254056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Feb 2020 00:35:27 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6BA844C04E; Wed, 26 Feb 2020 00:35:27 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE81D4C044; Wed, 26 Feb 2020 00:35:26 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 26 Feb 2020 00:35:26 +0000 (GMT) Received: from adsilva.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 138A1A00F1; Wed, 26 Feb 2020 11:35:22 +1100 (AEDT) From: "Alastair D'Silva" To: Dan Williams 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 , =?ISO-8859-1?Q?C=E9dric?= 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 Date: Wed, 26 Feb 2020 11:35:25 +1100 In-Reply-To: References: <20200221032720.33893-1-alastair@au1.ibm.com> <240fbefc6275ac0a6f2aa68715b3b73b0e7a8310.camel@au1.ibm.com> <20200224043750.GM24185@bombadil.infradead.org> <83034494d5c3da1fa63b172e844f85d0fec7910a.camel@au1.ibm.com> Organization: IBM Australia Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.3 (3.34.3-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 20022600-0012-0000-0000-0000038A44FB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20022600-0013-0000-0000-000021C6E901 Message-Id: <0e605b595cd03ef34c41a0b3d2304d7fb3ed7690.camel@au1.ibm.com> Subject: RE: [PATCH v3 00/27] Add support for OpenCAPI Persistent Memory devices X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-25_09:2020-02-25,2020-02-25 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002260001 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, 2020-02-25 at 16:32 -0800, Dan Williams wrote: > On Tue, Feb 25, 2020 at 4:14 PM Alastair D'Silva < > alastair@au1.ibm.com> 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. Great, thanks for clarifying, text is so imprecise when it comes to nuance :) I'll move ti back to drivers/nvdimm/ocxl then. -- Alastair D'Silva Open Source Developer Linux Technology Centre, IBM Australia mob: 0423 762 819