Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3947231imu; Mon, 28 Jan 2019 13:56:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN5YxII+GJdRHzB/kuokN5CdOa/bcrO1nNLylfhgjk4CKPCiKSTnJ7BL8U5cwo4VL9QTPL1V X-Received: by 2002:a17:902:30a3:: with SMTP id v32mr23752587plb.26.1548712575060; Mon, 28 Jan 2019 13:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548712575; cv=none; d=google.com; s=arc-20160816; b=Gad6pmWeSZ9i0pg+StC/dM+VFzfBs7/fPhUtEpn5sWyn/7ybyOrOfWW9siS1HvHPr/ qgFmQPXyhTXYfQiWzQAAoO2oJsTuM52Gx/TecNK3MTmRZnnC0OCN7ffCskmDwl/F1/Dy 2KAUjcFItHW8zCqmTZ0ywoC8HSzLRHkixm4pVOmmvTKMCfka4v83BLsere2F3Q9w9TSb tLBLGmEl/r0c6uhYDZZJfVA96Ny/LoupzVtIYQ6h09zcUm+/nJLiL+jAiGLtSgWwvsIb PP1ZS0WmGyh9RmyncRgetG7okoSwB+/dz/kY9DpQXTGzg8p7Ix1rqgBCG7g4Fw6T1wHY kBKw== 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=fJGv5UC1ZEba/Eq2hyfcomchZRQQjueOVcfonwYOSrU=; b=wGdtQ3qDBEP1Zqt1Ppq/+bGnF38+rdkNrWt4ZRlEA+RebIDZhFN+oqGVW7fZ72yHLI eDMXwlt1aqb31K94Vm7sGahDqHIuLWPzJLGTSy0oc2pCHecC5VcGibDPAy4BZaHsFDhT FMtqehdedda5Bm+dLhw+4nsoZ2I+dlm2+BzBgIiKszq9cBmvts8PbNnR77AItaDJj3eB hOX+wPHfRkERVHG6ghsqEtrDgcE3Kg7BeLrzgyZVbX9LivI5lU61iLjyu4H2htAd4P97 u6Cs1+pupBG20y9DX/g5LyVccZ3tosTXYSKV2z5Yzx4iLSAglHPGKbPu0ln6DKe8tUjz IdhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=xoOeNpoH; 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 g22si32649249pfj.222.2019.01.28.13.55.58; Mon, 28 Jan 2019 13:56:15 -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=xoOeNpoH; 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 S1727115AbfA1Vy6 (ORCPT + 99 others); Mon, 28 Jan 2019 16:54:58 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:41101 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbfA1Vy5 (ORCPT ); Mon, 28 Jan 2019 16:54:57 -0500 Received: by mail-ot1-f67.google.com with SMTP id u16so16084718otk.8 for ; Mon, 28 Jan 2019 13:54:57 -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=fJGv5UC1ZEba/Eq2hyfcomchZRQQjueOVcfonwYOSrU=; b=xoOeNpoHghsK0tPuMK40eoCS4fnK935mbhi08ueLB90kc5ySkvLMi54umUmq8JXnw/ rtSBEPVCSzTv72pwKfxc4CMDi04VJScnkItMlW/OJ19ptzJLu3xDJFz4FoJqKp80Byn2 zSkCH2eTfGABgw4/qMRWxRui+brn5ibqwZji7rXAatmz8+GVzv02rXhWBKWydLmH3kj4 TsswkK/hFE+pU9tKSvwDSTWk9rfpikxZuYkQnGDLq7WyWaNVH/6KApTq8kI6CFNKjoM9 9ZqSkt15jeVgUlq+NXPA4CIUPsU1v8CzlcyZHKBRr7bjB+ilA3WOYN5DjcMotoUOhn1Y I/Ow== 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=fJGv5UC1ZEba/Eq2hyfcomchZRQQjueOVcfonwYOSrU=; b=UDPk8AshJyMC9oz3BQQ89Gv70Ubrh0Jx+iAhzhcifrTXvZWvt6HndO13mSvAkd0ABv Rbz+J6jtR+WqX/rvYhV19mH4uFnjzcITxVzLMtkFjatqvMtZct49UZZrj+1hgI0egaTh Kkps7drzg2Nvtn+rKNQLlyybOnlQH7pIslj9ZeULjbdCUA1zewMCggD3ouInAu0y1cln dYDUzy67E/4HqDcE+HrBV4XO+JfcSMfrSINVqLiHC8Y5TzaFMkvRM3hAvlu6lIQpUKGa VCTYIG9qNjnydDZ7S/fp5KJxmI1SVxSGT/SS9Khelh2ekMOJDIlkov5+ykli0+4UuXjS yc4g== X-Gm-Message-State: AJcUukccWvsFYwnVihECQ5QHRfyZ6BohpuCFNpQRnEw8m8om5czBi5VO FSJFOxrY9R3ECp5IU8LjijJQNiCItkmMSJGJxavsig== X-Received: by 2002:a9d:394:: with SMTP id f20mr16802078otf.98.1548712496914; Mon, 28 Jan 2019 13:54:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dan Williams Date: Mon, 28 Jan 2019 13:54:46 -0800 Message-ID: Subject: Re: [PATCH] nfit: add Hyper-V NVDIMM DSM command set to white list To: Dexuan Cui Cc: Ross Zwisler , Vishal Verma , Dave Jiang , "Rafael J. Wysocki" , Len Brown , "linux-nvdimm@lists.01.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Michael Kelley , Sasha Levin , Haiyang Zhang , Stephen Hemminger , KY Srinivasan , Josh Poulson , "driverdev-devel@linuxdriverproject.org" 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 Mon, Jan 28, 2019 at 1:40 PM Dexuan Cui wrote: > > > From: Dan Williams > > Sent: Monday, January 28, 2019 1:01 PM > > > > Hi Dexuan, > > Looks good. Just one update request and a note below... > > > > On Wed, Jan 23, 2019 at 12:51 PM Dexuan Cui wrote: > > > ... > > > --- a/drivers/acpi/nfit/core.c > > > +++ b/drivers/acpi/nfit/core.c > > > @@ -1840,7 +1840,7 @@ static int acpi_nfit_add_dimm(struct > > acpi_nfit_desc *acpi_desc, > > > dev_set_drvdata(&adev_dimm->dev, nfit_mem); > > > > > > /* > > > - * Until standardization materializes we need to consider 4 > > > + * Until standardization materializes we need to consider 5 > > > * different command sets. Note, that checking for function0 > > (bit0) > > > * tells us if any commands are reachable through this GUID. > > > */ > > > > This comment is stale. This "HYPERV" family is the first example of > > the "right" way to define a new NVDIMM command set. Lets update it to > > mention the process and considerations for submitting new command sets > > to UEFI (http://www.uefi.org/RFIC_LIST). The fact that there's now a > > defined process is a step forward from when this comment was initially > > written. Also, the fact that the process encourages "adopt" vs > > "supersede" addresses the main concern about vendor-specific > > command-set proliferation. > > I made the below simple change. Is this enough? Please suggest the proper > wording/sentence, as I'm relatively new to NVDIMM, and I don't really know the > history of the standardization process. > > --- a/drivers/acpi/nfit/core.c > +++ b/drivers/acpi/nfit/core.c > @@ -1732,8 +1732,10 @@ static int acpi_nfit_add_dimm(struct acpi_nfit_desc *acpi_desc, > dev_set_drvdata(&adev_dimm->dev, nfit_mem); > > /* > - * Until standardization materializes we need to consider 4 > - * different command sets. Note, that checking for function0 (bit0) > + * New command sets should be submitted to UEFI > + * http://www.uefi.org/RFIC_LIST. > + * How about something a bit more relevant for the code in question: --- There are 4 "legacy" NVDIMM command sets (NVDIMM_FAMILY_{INTEL,MSFT,HPE1,HPE2}) that were created before an EFI working group was established to constrain this proliferation. The nfit driver probes for the supported command set by GUID. Note, If you're a platform developer looking to add a new command set to this probe consider using an existing set, or otherwise seek approval to publish the command set at http://www.uefi.org/RFIC_LIST.