Skip to content

Support ACPI NVDIMM Label Methods

Robert Hoo qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 11 repliesIn review
  2. v35 patches 11 repliesSuperseded
  3. v26 patches 13 repliesSuperseded

Changes in v4 from the cover letter

Use more LocalX in ASL functions, instead of global scope variables.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tests/acpi: allow SSDT changestests/qtest/bios-tables-test-allowed-diff.h+2 -00 replies
2/5acpi/ssdt: Fix aml_or() and aml_and() in if clausehw/acpi/nvdimm.c+3 -40 replies
3/5acpi/nvdimm: define macro for NVDIMM Device _DSMhw/acpi/nvdimm.c+2 -20 replies
4/5acpi/nvdimm: Implement ACPI NVDIMM Label Methodshw/acpi/nvdimm.c+95 -01 reply
5/5test/acpi/bios-tables-test: SSDT: update golden master binariestests/data/acpi/pc/SSDT.dimmpxm tests/data/acpi/q35/SSDT.dimmpxm tests/qtest/bios-tables-test-allowed-diff.h +1 more+68 -710 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJingqi LiuIgor Mammedov
1/5R-b
2/5R-b R-b
3/5R-b
4/5R-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] Support ACPI NVDIMM Label Methods

Originally NVDIMM Label methods was defined in Intel PMEM _DSM Interface Spec [1], of function index 4, 5 and 6.
Recent ACPI spec [2] has deprecated those _DSM methods with ACPI NVDIMM Label Methods _LS{I,R,W}. The essence of these functions has no changes.

This patch set is to update QEMU emulation on this, as well as update bios-table-test golden binaries.

[1] Intel PMEM _DSM Interface Spec v2.0, 3.10 Deprecated Functions
https://pmem.io/documents/IntelOptanePMem_DSM_Interface-V2.0.pdf
[2] ACPI Spec v6.4, 6.5.10 NVDIMM Label Methods
https://uefi.org/sites/default/files/resources/ACPI_Spec_6_4_Jan22.pdf

---
Change Log:
v3 --> v4:
Use more LocalX in ASL functions, instead of global scope variables.

v2 --> v3:
Patch of nvdimm_debug() --> qemu trace, has been separated and already upstream'ed.
Patch of accepting _DSM rev.2 is dropped, as unnecessary. Roll back implementation to the idea of simply wrapper _DSM.

v1 --> v2:
Almost rewritten
Separate Patch 2
Dance with tests/qtest/bios-table-tests
Add trace event

Robert Hoo (5):
tests/acpi: allow SSDT changes
acpi/ssdt: Fix aml_or() and aml_and() in if clause acpi/nvdimm: define macro for NVDIMM Device _DSM acpi/nvdimm: Implement ACPI NVDIMM Label Methods test/acpi/bios-tables-test: SSDT: update golden master binaries

 hw/acpi/nvdimm.c                 | 106 +++++++++++++++++++++++++++++--
 tests/data/acpi/pc/SSDT.dimmpxm  | Bin 734 -> 1815 bytes
 tests/data/acpi/q35/SSDT.dimmpxm | Bin 734 -> 1815 bytes
 3 files changed, 100 insertions(+), 6 deletions(-)

base-commit: 6338c30111d596d955e6bc933a82184a0b910c43

Signature · 1 line
2.31.1