[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 11/15] nvdimm acpi: check revision
From: |
Xiao Guangrong |
Subject: |
[Qemu-devel] [PATCH 11/15] nvdimm acpi: check revision |
Date: |
Thu, 17 Mar 2016 16:32:57 +0800 |
Cuurently only revision 1 is supported
Signed-off-by: Xiao Guangrong <address@hidden>
---
hw/acpi/nvdimm.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c
index 071f66f..83d80f5 100644
--- a/hw/acpi/nvdimm.c
+++ b/hw/acpi/nvdimm.c
@@ -481,6 +481,13 @@ nvdimm_dsm_write(void *opaque, hwaddr addr, uint64_t val,
unsigned size)
nvdimm_debug("Revision %#x Handler %#x Function %#x.\n", in->revision,
in->handle, in->function);
+ if (in->revision != 0x1 /* Currently we only support DSM Spec Rev1. */) {
+ nvdimm_debug("Revision %#x is not supported, expect %#x.\n",
+ in->revision, 0x1);
+ nvdimm_dsm_no_payload(1 /* Not Supported */, dsm_mem_addr);
+ goto exit;
+ }
+
/* Handle 0 is reserved for NVDIMM Root Device. */
if (!in->handle) {
nvdimm_dsm_root(in, dsm_mem_addr);
--
1.8.3.1
- [Qemu-devel] [PATCH 04/15] nvdimm: support nvdimm label, (continued)
- [Qemu-devel] [PATCH 04/15] nvdimm: support nvdimm label, Xiao Guangrong, 2016/03/17
- [Qemu-devel] [PATCH 06/15] acpi: add aml_call5, Xiao Guangrong, 2016/03/17
- [Qemu-devel] [PATCH 07/15] nvdimm acpi: set HDLE properly, Xiao Guangrong, 2016/03/17
- [Qemu-devel] [PATCH 08/15] nvdimm acpi: save arg3 of _DSM method, Xiao Guangrong, 2016/03/17
- [Qemu-devel] [PATCH 10/15] nvdimm acpi: abstract the operations for root device and nvdimm devices, Xiao Guangrong, 2016/03/17
- [Qemu-devel] [PATCH 09/15] nvdimm acpi: check UUID, Xiao Guangrong, 2016/03/17
- [Qemu-devel] [PATCH 11/15] nvdimm acpi: check revision,
Xiao Guangrong <=
- [Qemu-devel] [PATCH 13/15] nvdimm acpi: support Get Namespace Label Data function, Xiao Guangrong, 2016/03/17
- [Qemu-devel] [PATCH 12/15] nvdimm acpi: support Get Namespace Label Size function, Xiao Guangrong, 2016/03/17
- [Qemu-devel] [PATCH 14/15] nvdimm acpi: support Set Namespace Label Data function, Xiao Guangrong, 2016/03/17
- [Qemu-devel] [PATCH 15/15] docs: add NVDIMM ACPI documentation, Xiao Guangrong, 2016/03/17
- Re: [Qemu-devel] [PATCH 00/15] NVDIMM: introduce nvdimm label support, Stefan Hajnoczi, 2016/03/17