diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-09-24 09:57:34 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-10-07 10:03:40 -0700 |
commit | 4b27db7e26cdb9deb4a211e963e2993fde0110cb (patch) | |
tree | b730464ad24dbd0ac015bc214aad91ea02766586 /drivers/acpi/nfit/nfit.h | |
parent | 10246dc84dfcabb05f2d29d442c9de967fd61270 (diff) | |
download | linux-4b27db7e26cdb9deb4a211e963e2993fde0110cb.tar.gz linux-4b27db7e26cdb9deb4a211e963e2993fde0110cb.tar.bz2 linux-4b27db7e26cdb9deb4a211e963e2993fde0110cb.zip |
acpi, nfit: add support for the _LSI, _LSR, and _LSW label methods
ACPI 6.2 adds support for named methods to access the label storage area
of an NVDIMM. We prefer these new methods if available and otherwise
fallback to the NVDIMM_FAMILY_INTEL _DSMs. The kernel ioctls,
ND_IOCTL_{GET,SET}_CONFIG_{SIZE,DATA}, remain generic and the driver
translates the 'package' payloads into the NVDIMM_FAMILY_INTEL 'buffer'
format to maintain compatibility with existing userspace and keep the
output buffer parsing code in the driver common.
The output payloads are mostly compatible save for the 'label area
locked' status that moves from the 'config_size' (_LSI) command to the
'config_read' (_LSR) command status.
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi/nfit/nfit.h')
-rw-r--r-- | drivers/acpi/nfit/nfit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/nfit/nfit.h b/drivers/acpi/nfit/nfit.h index f2c6380bdbb2..3976d649f27c 100644 --- a/drivers/acpi/nfit/nfit.h +++ b/drivers/acpi/nfit/nfit.h @@ -140,6 +140,9 @@ struct nfit_mem { struct resource *flush_wpq; unsigned long dsm_mask; int family; + u32 has_lsi:1; + u32 has_lsr:1; + u32 has_lsw:1; }; struct acpi_nfit_desc { |