Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp146844imm; Tue, 7 Aug 2018 15:48:22 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxRd5/4QjJ9Eg05wxqNIVQuNOArrkAkgesGGCpf+aepO7yo4BuOHk5mMw9DgCLgz7DLSuwb X-Received: by 2002:a17:902:6bc8:: with SMTP id m8-v6mr246577plt.162.1533682102122; Tue, 07 Aug 2018 15:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533682102; cv=none; d=google.com; s=arc-20160816; b=R8msBXqpvHqgiV+3h1wB2QJDwooxKBQCvfuMMaa/RGfqX0V2zg6Gg20UJx5/zQ8RRU qFQHSCnISz2SXDtUM3qXXszhUqQ3CX2zxxBArEvg1pBkuL4Iu3KDGXIUYMmBEVipcPVr bjkVtCmo+r+8n+fEjPqhP9M0qAF85AJCdh8bfP3zQzZhQHJPsY0hsrp8y0981k+aTKBl 5F13rusXYogKIjEcyEXVlD5bH+EzXt46410akY8i+W3zAfgwBUvkWurSsYbqJWECOv3l vbaOFtZ/qGtOcAXj/oGbr21iDV+vp0yeQi+9/v7JKdLATy/qwXwz3fKtN31D7PYl0uIL 38LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :arc-authentication-results; bh=R2RMcJ2E3ye5gIlofZs8Lrrtx9NOwuUDHUpey5RqUyM=; b=Kynh1EJw63YLmZ32OqOnQimgttjE90eXmzDYlBo8a7SqGB87eTq4B/U8GMI81cR58G PH8hFrIiJMoWBC0gRWtFrkyqtce1RV3L25thyr5+kUSQUtmA2+NYeHlICFKa1741S9cu y89ga79m0KQ93KE7/dAFxAMHKORu4pk8JX2lEwpZVjo7JAR139DnYIkdpgF9kFc3duUJ 8KKFG+w/9bEpazlDssn2mI1g2kpjafFltl3dcJnMN/5nKFSWMEsMdFpcMH9gcUDess9J 8y5/G9SnGNhaMn+IcR/i4OliVy50ZEno+eGrtZca2qoE/1k9YSvAsWlSemq6TeEOOIBD CxYA== ARC-Authentication-Results: i=1; mx.google.com; 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 b16-v6si1930160pgw.478.2018.08.07.15.48.06; Tue, 07 Aug 2018 15:48:22 -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; 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 S1727000AbeHHBDT (ORCPT + 99 others); Tue, 7 Aug 2018 21:03:19 -0400 Received: from mga11.intel.com ([192.55.52.93]:25108 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbeHHBDT (ORCPT ); Tue, 7 Aug 2018 21:03:19 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Aug 2018 15:46:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,456,1526367600"; d="scan'208";a="64331297" Received: from djiang5-desk3.ch.intel.com ([143.182.136.93]) by orsmga006.jf.intel.com with ESMTP; 07 Aug 2018 15:46:43 -0700 Subject: Re: [PATCH] ACPI: nfit: adjust annotation for why return 0 if fail to find NFIT at startup To: "Verma, Vishal L" , "Williams, Dan J" , "ross.zwisler@linux.intel.com" , "oceanhehy@gmail.com" , "lenb@kernel.org" , "rjw@rjwysocki.net" Cc: "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" , "linux-acpi@vger.kernel.org" , "hehy1@lenovo.com" References: <1533622531-3617-1-git-send-email-oceanhehy@gmail.com> <1533669914.18175.28.camel@intel.com> From: Dave Jiang Openpgp: preference=signencrypt Autocrypt: addr=dave.jiang@intel.com; prefer-encrypt=mutual; keydata= xsPuBE6TbysRDACKOBHZT4ez/3/idMBVQP+cMIJAWfTTLqbHVYLdHMHh4h6IXWLqWgc9AYTx /ajdOrBVGSK9kMuvqRi0iRO1QLOMUAIc2n/44vh/3Fe54QYfgbndeXhHZi7YEwjiTCbpQ336 pS0rS2qQaA8GzFwu96OslLI05j9Ygaqy73qmuk3wxomIYiu9a97aN3oVv1RyTp6gJK1NWT3J On17P1yWUYPvY3KJtpVqnRLkLZeOIiOahgf9+qiYqPhKQI1Ycx4YhbqkNmDG1VqdMtEWREZO DpTti6oecydN37MW1Y+YSzWYDVLWfoLUr2tBveGCRLf/U2n+Tm2PlJR0IZq+BhtuIUVcRLQW vI+XenR8j3vHVNHs9UXW/FPB8Xb5fwY2bJniZ+B4G67nwelhMNWe7H9IcEaI7Eo32fZk+9fo x6GDAhdT0pEetwuhkmI0YYD7cQj1mEx1oEbzX2p/HRW9sHTSv0V2zKbkPvii3qgvCoDb1uLd 4661UoSG0CYaAx8TwBxUqjsBAO9FXDhLHZJadyHmWp64xQGnNgBathuqoSsIWgQWBpfhDACA OYftX52Wp4qc3ZT06NPzGTV35xr4DVftxxUHiwzB/bzARfK8tdoW4A44gN3P03DAu+UqLoqm UP/e8gSLEjoaebjMu8c2iuOhk1ayHkDPc2gugTgLLBWPkhvIEV4rUV9C7TsgAAvNNDAe8X00 Tu1m01A4ToLpYsNWEtM9ZRdKXSo6YS45DFRhel29ZR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pNvKxAEANGHLx0q/R99wzbVdnRthIZttNQ6M4R8 AAtEypE9JG3PLrEd9MUB5wf0fB/2Jypec3x935mRW3Zt1i+TrzjQDzMV5RyTtpWI7PwIh5IZ 0h4OV2yQHFVViHi6lubCRypQYiMzTmEKua3LeBGvUR9vVmpPJZ/UP6VajKqywjPHYBwLAAMF A/9B/PdGc1sZHno0ezuwZO2J9BOsvASNUzamO9to5P9VHTA6UqRvyfXJpNxLF1HjT4ax7Xn4 wGr6V1DCG3JYBmwIZjfinrLINKEK43L+sLbVVi8Mypc32HhNx/cPewROY2vPb4U7y3jhPBtt lt0ZMb75Lh7zY3TnGLOx1AEzmqwZSMJhBBgRCAAJBQJOk28rAhsMAAoJEGQVxPFmo7k+qiUB AKH0QWC+BBBn3pa9tzOz5hTrup+GIzf5TcuCsiAjISEqAPkBTGk5iiGrrHkxsz8VulDVpNxk o6nmKbYpUAltQObU2w== Message-ID: <45efa554-72af-9266-e841-e42e8741fed9@intel.com> Date: Tue, 7 Aug 2018 15:46:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1533669914.18175.28.camel@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/07/2018 12:25 PM, Verma, Vishal L wrote: > > On Tue, 2018-08-07 at 02:15 -0400, Ocean He wrote: >> From: Ocean He > > Just some minor nits in commit message wording: > >> >> Add detail explanation why it's ok to return 0 if fail to find NFIT at > detailed ^for ^we ^an >> startup, refer to chapter 9.20.2 NVDIMM Root Device in ACPI 6.2 spec. > . Refer > > Perhaps Dave can fixup while applying.. Applied and updated. >> >> Signed-off-by: Ocean He >> --- >> v1: https://lists.01.org/pipermail/linux-nvdimm/2018-August/017311.html >> v2: Per Vishal's comments of v1, it turns out that it's right to keep >> "return 0" if NFIT not found at boot time. This v2 adjust annotation >> to avoid misunderstanding of "return 0". > > Looks good, thanks for the update. Feel free to add: > Reviewed-by: Vishal Verma > >> >> drivers/acpi/nfit/core.c | 8 +++++++- >> 1 file changed, 7 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c >> index 7c47900..1b982fe 100644 >> --- a/drivers/acpi/nfit/core.c >> +++ b/drivers/acpi/nfit/core.c >> @@ -3353,7 +3353,13 @@ static int acpi_nfit_add(struct acpi_device *adev) >> >> status = acpi_get_table(ACPI_SIG_NFIT, 0, &tbl); >> if (ACPI_FAILURE(status)) { >> - /* This is ok, we could have an nvdimm hotplugged later */ >> + /* The NVDIMM root device allows OS to trigger enumeration of >> + * NVDIMMs through NFIT at boot time and re-enumeration at >> + * root level via the _FIT method during runtime. >> + * This is ok to return 0 here, we could have an nvdimm >> + * hotplugged later and evaluate _FIT method which returns >> + * data in the format of a series of NFIT Structures. >> + */ >> dev_dbg(dev, "failed to find NFIT at startup\n"); >> return 0; >> }