aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/nvdimm
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-01-31 22:47:04 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-01-31 22:47:04 +0000
commit7674dce0a4b7d49efee2adfdd8b9cbd0ee50c688 (patch)
tree18712f2b515b1b2620fccbe2661fb2a15051b031 /sys/modules/nvdimm
parent7dcbca8d672cab1f7ce445e2ecfe53f09c45cf1c (diff)
downloadsrc-7674dce0a4b7d49efee2adfdd8b9cbd0ee50c688.tar.gz
src-7674dce0a4b7d49efee2adfdd8b9cbd0ee50c688.zip
nvdimm: only enumerate present nvdimm devices
Not all child devices of the NVDIMM root device represent DIMM devices which are present in the system. The spec says (ACPI 6.2, sec 9.20.2): For each NVDIMM present or intended to be supported by platform, platform firmware also exposes an NVDIMM device ... under the NVDIMM root device. Present NVDIMM devices are found by walking all of the NFIT table's SPA ranges, then walking the NVDIMM regions mentioned by those SPA ranges. A set of NFIT walking helper functions are introduced to avoid the need to splat the enumeration logic across several disparate callbacks. Submitted by: D Scott Phillips <d.scott.phillips@intel.com> Sponsored by: Intel Corporation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D18439
Notes
Notes: svn path=/head/; revision=343629
Diffstat (limited to 'sys/modules/nvdimm')
-rw-r--r--sys/modules/nvdimm/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/modules/nvdimm/Makefile b/sys/modules/nvdimm/Makefile
index 5381345a9486..77fa6453ecbc 100644
--- a/sys/modules/nvdimm/Makefile
+++ b/sys/modules/nvdimm/Makefile
@@ -4,6 +4,7 @@
KMOD= nvdimm
SRCS= nvdimm.c \
+ nvdimm_nfit.c \
nvdimm_spa.c
SRCS+= acpi_if.h bus_if.h device_if.h