Skip to content
Commit 466d1493 authored by Dan Williams's avatar Dan Williams
Browse files

acpi, nfit: rework NVDIMM leaf method detection

Some BIOSen do not handle 0-byte transfer lengths for the _LSR and _LSW
(label storage read/write) methods. This causes Linux to fallback to the
deprecated _DSM path, or otherwise disable label support.

Introduce acpi_nvdimm_has_method() to detect whether a method is
available rather than calling the method, require _LSI and _LSR to be
paired, and require read support before enabling write support.

Cc: <stable@vger.kernel.org>
Fixes: 4b27db7e

 ("acpi, nfit: add support for the _LS...")
Suggested-by: default avatarErik Schmauss <erik.schmauss@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 0731de47
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment