[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/86] acpi/nvdimm: define macro for NVDIMM Device _DSM
From: |
Michael S. Tsirkin |
Subject: |
[PULL 05/86] acpi/nvdimm: define macro for NVDIMM Device _DSM |
Date: |
Mon, 31 Oct 2022 08:50:55 -0400 |
From: Robert Hoo <robert.hu@linux.intel.com>
Since it will be heavily used in next patch, define macro
NVDIMM_DEVICE_DSM_UUID for "4309AC30-0D11-11E4-9191-0800200C9A66", which is
NVDIMM device specific method uuid defined in NVDIMM _DSM interface spec,
Section 3. [1]
No functional changes in this patch.
[1] https://pmem.io/documents/IntelOptanePMem_DSM_Interface-V2.0.pdf
Signed-off-by: Robert Hoo <robert.hu@linux.intel.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20220922122155.1326543-4-robert.hu@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/acpi/nvdimm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c
index 201317c611..afff911c1e 100644
--- a/hw/acpi/nvdimm.c
+++ b/hw/acpi/nvdimm.c
@@ -922,6 +922,7 @@ void nvdimm_init_acpi_state(NVDIMMState *state,
MemoryRegion *io,
#define NVDIMM_DSM_RFIT_STATUS "RSTA"
#define NVDIMM_QEMU_RSVD_UUID "648B9CF2-CDA1-4312-8AD9-49C4AF32BD62"
+#define NVDIMM_DEVICE_DSM_UUID "4309AC30-0D11-11E4-9191-0800200C9A66"
static void nvdimm_build_common_dsm(Aml *dev,
NVDIMMState *nvdimm_state)
@@ -1029,8 +1030,7 @@ static void nvdimm_build_common_dsm(Aml *dev,
/* UUID for QEMU internal use */), expected_uuid));
aml_append(elsectx, ifctx);
elsectx2 = aml_else();
- aml_append(elsectx2, aml_store(
- aml_touuid("4309AC30-0D11-11E4-9191-0800200C9A66")
+ aml_append(elsectx2, aml_store(aml_touuid(NVDIMM_DEVICE_DSM_UUID)
/* UUID for NVDIMM Devices */, expected_uuid));
aml_append(elsectx, elsectx2);
aml_append(method, elsectx);
--
MST
- [PULL 00/86] pci,pc,virtio: features, tests, fixes, cleanups, Michael S. Tsirkin, 2022/10/31
- [PULL 01/86] bios-tables-test: do not ignore allowed diff list, Michael S. Tsirkin, 2022/10/31
- [PULL 04/86] acpi/ssdt: Fix aml_or() and aml_and() in if clause, Michael S. Tsirkin, 2022/10/31
- [PULL 02/86] hw/i386/e820: remove legacy reserved entries for e820, Michael S. Tsirkin, 2022/10/31
- [PULL 03/86] tests/acpi: allow SSDT changes, Michael S. Tsirkin, 2022/10/31
- [PULL 05/86] acpi/nvdimm: define macro for NVDIMM Device _DSM,
Michael S. Tsirkin <=
- [PULL 06/86] acpi/nvdimm: Implement ACPI NVDIMM Label Methods, Michael S. Tsirkin, 2022/10/31
- [PULL 07/86] test/acpi/bios-tables-test: SSDT: update golden master binaries, Michael S. Tsirkin, 2022/10/31
- [PULL 08/86] virtio-crypto: Support asynchronous mode, Michael S. Tsirkin, 2022/10/31
- [PULL 09/86] crypto: Support DER encodings, Michael S. Tsirkin, 2022/10/31
- [PULL 12/86] acpi/tests/avocado/bits: initial commit of test scripts that are run by biosbits, Michael S. Tsirkin, 2022/10/31
- [PULL 10/86] crypto: Support export akcipher to pkcs8, Michael S. Tsirkin, 2022/10/31
- [PULL 11/86] cryptodev: Add a lkcf-backend for cryptodev, Michael S. Tsirkin, 2022/10/31
- [PULL 15/86] acpi/tests/avocado/bits: add acpi and smbios avocado tests that uses biosbits, Michael S. Tsirkin, 2022/10/31
- [PULL 13/86] acpi/tests/avocado/bits: disable acpi PSS tests that are failing in biosbits, Michael S. Tsirkin, 2022/10/31
- [PULL 16/86] acpi/tests/avocado/bits/doc: add a doc file to describe the acpi bits test, Michael S. Tsirkin, 2022/10/31