Skip to contentSkip to conversation

acpi/nvdimm: support NVDIMM _LS{I,R,W} methods

PATCH Superseded Robert Hoo 1 participant 1 message Apr 12, 2022

lore
Share & tools
lore

Robert Hoo

author
#0 lore raw

cover acpi/nvdimm: support NVDIMM _LS{I,R,W} methods

The original NVDIMM _DSM functions (index 4~6) for label operations have been deprecated by new ACPI methods _LS{I,R,W}[1][2].

Patch 1 implements the new _LS{I,R,W} methods, on top of old _DSM implementation.

Patch 2 fixes some typo of logical and/or with bitwise and/or, though functionally they haven't causing trouble.

[1] https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/index.html, 6.5.10 NVDIMM Label Methods
[2] https://pmem.io/documents/IntelOptanePMem_DSM_Interface-V2.0.pdf, 3.10 Deprecated Functions

Robert Hoo (2):
acpi/nvdimm: Create _LS{I,R,W} method for NVDIMM device acpi/nvdimm: Fix aml_or() and aml_and() in if clause

 hw/acpi/nvdimm.c | 60 +++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 54 insertions(+), 6 deletions(-)

base-commit: 95a3fcc7487e5bef262e1f937ed8636986764c4e

Signature · 1 line
2.31.1