Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1593366ybg; Tue, 2 Jun 2020 14:25:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQRmA/isIauoOK8/dFkunOb9U88RGQSvu0+NRUg1Q95ge3Knaql/7wRrgJIrLT450wOdji X-Received: by 2002:a17:906:18e9:: with SMTP id e9mr24504498ejf.140.1591133157374; Tue, 02 Jun 2020 14:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591133157; cv=none; d=google.com; s=arc-20160816; b=XNIh3VXur0pHsqMAvdi/ZBT54ciUp/CFXzDoxs13LsViXRMZ1LxdkVSXb5wVCCxOeh x6ei4uVsA/yp9U8/+QEa0zSL9g1/uONsBsuy5XLqRumRVegBuBOqxppVyIxe0YZcDkg8 +hrh6x/PJgjoJc7+CL0BCQI8OTgbYJmYgoxz6SgYESUinDuKFlk9WGTDacekgc2Kh2Rx Ac5lQPxtvIdCsVvFcvzKLKElJpVFwbUhSoLuPFFAUGKT/hwIzvJFENvtD324JcdVh26u hUKrUA2GpxKHzTIZCnT9CF1a20cy+CGm3eRr4F8gkXgOM19hLZEEuWrdF18x3e3QjC0W aOlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=H4mcKbVxdzZ4F85CScJV/7YpGjt8PJ0acEeE2GdAtIs=; b=oouJzx34/6vPBPllLTgsaRdtSWCboc05dUDsLNhTXgSijaz5dQbty60qMPxeWp20UU QqUf9atq/bfWiTYyIwPU/lLKt6XULhHvc9jnmK1CuRcbHbQXRwl9bgy19zjBBScklqqW W5z2lRJ2jvvHPjc+6XBPrJviEr5rHQ3XB7zCicdrrJJl2Vl9Iwp3xwOVNUR4iwA5Wkg+ SZfoBMTD2VCwAZEXxnVVaXtRQcxjO45yEdS7B3RnS5eq8V84wEQGhEVfaqnTDaOWXJ5/ CBsX2OGH2RhNPpZ5D5ghBUL74WAE/732FYcWksGMBNUf/gvFGJ3C3nXjr9jdjhaDNMcH iWtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id w25si58639ejv.102.2020.06.02.14.25.34; Tue, 02 Jun 2020 14:25:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726420AbgFBVVY (ORCPT + 99 others); Tue, 2 Jun 2020 17:21:24 -0400 Received: from mga18.intel.com ([134.134.136.126]:40557 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgFBVVY (ORCPT ); Tue, 2 Jun 2020 17:21:24 -0400 IronPort-SDR: 6fGXS/pnLWMV21RalINYW+IijYIz9gaCOCZRaPw+N3BgUy5bc6yf87J0jW9WS7bngNxJwxfSVA O8E5AG0n/BIA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2020 14:21:23 -0700 IronPort-SDR: EEhUn07lmi4P8XEIms+7mISCZo6Hbipu2OAakqiDzCXegZjKU3IFYy+VS8AuKGL1yBiwXGfZhF J37NFW7669zA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,465,1583222400"; d="scan'208";a="257242816" Received: from iweiny-desk2.sc.intel.com ([10.3.52.147]) by fmsmga007.fm.intel.com with ESMTP; 02 Jun 2020 14:21:23 -0700 Date: Tue, 2 Jun 2020 14:21:23 -0700 From: Ira Weiny To: Vaibhav Jain Cc: linuxppc-dev@lists.ozlabs.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, Dan Williams , "Aneesh Kumar K . V" , Michael Ellerman , Oliver O'Halloran , Santosh Sivaraj , Steven Rostedt Subject: Re: [RESEND PATCH v9 1/5] powerpc: Document details on H_SCM_HEALTH hcall Message-ID: <20200602212122.GB1676657@iweiny-DESK2.sc.intel.com> References: <20200602101438.73929-1-vaibhav@linux.ibm.com> <20200602101438.73929-2-vaibhav@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200602101438.73929-2-vaibhav@linux.ibm.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 02, 2020 at 03:44:34PM +0530, Vaibhav Jain wrote: > Add documentation to 'papr_hcalls.rst' describing the bitmap flags > that are returned from H_SCM_HEALTH hcall as per the PAPR-SCM > specification. > > Cc: "Aneesh Kumar K . V" > Cc: Dan Williams > Cc: Michael Ellerman > Cc: Ira Weiny Acked-by: Ira Weiny > Signed-off-by: Vaibhav Jain > --- > Changelog: > > Resend: > * None > > v8..v9: > * s/SCM/PMEM device. [ Dan Williams, Aneesh ] > > v7..v8: > * Added a clarification on bit-ordering of Health Bitmap > > Resend: > * None > > v6..v7: > * None > > v5..v6: > * New patch in the series > --- > Documentation/powerpc/papr_hcalls.rst | 46 ++++++++++++++++++++++++--- > 1 file changed, 42 insertions(+), 4 deletions(-) > > diff --git a/Documentation/powerpc/papr_hcalls.rst b/Documentation/powerpc/papr_hcalls.rst > index 3493631a60f8..48fcf1255a33 100644 > --- a/Documentation/powerpc/papr_hcalls.rst > +++ b/Documentation/powerpc/papr_hcalls.rst > @@ -220,13 +220,51 @@ from the LPAR memory. > **H_SCM_HEALTH** > > | Input: drcIndex > -| Out: *health-bitmap, health-bit-valid-bitmap* > +| Out: *health-bitmap (r4), health-bit-valid-bitmap (r5)* > | Return Value: *H_Success, H_Parameter, H_Hardware* > > Given a DRC Index return the info on predictive failure and overall health of > -the NVDIMM. The asserted bits in the health-bitmap indicate a single predictive > -failure and health-bit-valid-bitmap indicate which bits in health-bitmap are > -valid. > +the PMEM device. The asserted bits in the health-bitmap indicate one or more states > +(described in table below) of the PMEM device and health-bit-valid-bitmap indicate > +which bits in health-bitmap are valid. The bits are reported in > +reverse bit ordering for example a value of 0xC400000000000000 > +indicates bits 0, 1, and 5 are valid. > + > +Health Bitmap Flags: > + > ++------+-----------------------------------------------------------------------+ > +| Bit | Definition | > ++======+=======================================================================+ > +| 00 | PMEM device is unable to persist memory contents. | > +| | If the system is powered down, nothing will be saved. | > ++------+-----------------------------------------------------------------------+ > +| 01 | PMEM device failed to persist memory contents. Either contents were | > +| | not saved successfully on power down or were not restored properly on | > +| | power up. | > ++------+-----------------------------------------------------------------------+ > +| 02 | PMEM device contents are persisted from previous IPL. The data from | > +| | the last boot were successfully restored. | > ++------+-----------------------------------------------------------------------+ > +| 03 | PMEM device contents are not persisted from previous IPL. There was no| > +| | data to restore from the last boot. | > ++------+-----------------------------------------------------------------------+ > +| 04 | PMEM device memory life remaining is critically low | > ++------+-----------------------------------------------------------------------+ > +| 05 | PMEM device will be garded off next IPL due to failure | > ++------+-----------------------------------------------------------------------+ > +| 06 | PMEM device contents cannot persist due to current platform health | > +| | status. A hardware failure may prevent data from being saved or | > +| | restored. | > ++------+-----------------------------------------------------------------------+ > +| 07 | PMEM device is unable to persist memory contents in certain conditions| > ++------+-----------------------------------------------------------------------+ > +| 08 | PMEM device is encrypted | > ++------+-----------------------------------------------------------------------+ > +| 09 | PMEM device has successfully completed a requested erase or secure | > +| | erase procedure. | > ++------+-----------------------------------------------------------------------+ > +|10:63 | Reserved / Unused | > ++------+-----------------------------------------------------------------------+ > > **H_SCM_PERFORMANCE_STATS** > > -- > 2.26.2 >