]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm: Add DSM support for Address Range Scrub commands
authorVishal Verma <vishal.l.verma@intel.com>
Thu, 9 Jul 2015 19:25:36 +0000 (13:25 -0600)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:19:12 +0000 (12:19 -0500)
commit2b9b820468bdecb168e7b53478dd0bf525d71d7e
treee0e93cb6cc4e820265fd374c746ffc3a82908472
parent8d16e6d236b9660a7498b58b4e827d85b7a7d614
libnvdimm: Add DSM support for Address Range Scrub commands

Orabug: 22913653

Add support for the three ARS DSM commands:
- Query ARS Capabilities - Queries the firmware to check if a given
  range supports scrub, and if so, which type (persistent vs. volatile)
- Start ARS - Starts a scrub for a given range/type
- Query ARS Status - Checks status of a previously started scrub, and
  provides the error logs if any.

  The commands are described by the example DSM spec at:
  http://pmem.io/documents/NVDIMM_DSM_Interface_Example.pdf

Also add these commands to the nfit_test test framework, and return
canned data.

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 39c686b862cdb2049b90e095b6c6c727b2a7ab60)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/acpi/nfit.c
drivers/acpi/nfit.h
include/uapi/linux/ndctl.h
tools/testing/nvdimm/test/nfit.c