diff options
author | Dan Williams <[email protected]> | 2018-03-28 10:44:50 -0700 |
---|---|---|
committer | Dan Williams <[email protected]> | 2018-03-28 10:44:50 -0700 |
commit | 466d1493ea830789a2f063f478aaed2e324f0d3d (patch) | |
tree | fef630bbda879a29999e7b92d572b372d421c148 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 0731de476a37c33485af82d64041c9d193208df8 (diff) |
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: <[email protected]>
Fixes: 4b27db7e26cd ("acpi, nfit: add support for the _LS...")
Suggested-by: Erik Schmauss <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions