opnsense-src/sys/dev/nvdimm
Ravi Pokala ea5a304c73 nvdimm(4): Export NVDIMM health flags via sysctl
The ACPI NFIT specification defines a set of "NVDIMM State Flags". These
flags are already reported by `acpidump -t', but this change makes them
available on a per-device basis, in a format that is more easily parsed.

To simplify this, introduce acpi_nfit_get_memory_maps_by_dimm(), which
locates the (ACPI_NFIT_MEMORY_MAP)s associated with a given
(nfit_handle_t).

Reviewed by:	mav, cem
Tested by:	mav, rpokala (version for stable/12)
MFC after:	3 days
Sponsored by:	Panasas
Differential Revision:	https://reviews.freebsd.org/D28700

(cherry picked from commit bdde49b7c7)
2021-02-20 16:47:55 -08:00
..
nvdimm.c nvdimm(4): Export NVDIMM health flags via sysctl 2021-02-20 16:47:55 -08:00
nvdimm_acpi.c nvdimm(4): Only expose namespaces for accessible data SPAs 2019-11-12 15:50:30 +00:00
nvdimm_e820.c nvdimm_e820: Fix braino in size=all SPA hint 2019-10-18 03:01:21 +00:00
nvdimm_nfit.c nvdimm(4): Export NVDIMM health flags via sysctl 2021-02-20 16:47:55 -08:00
nvdimm_ns.c nvdimm(4): Persist unit numbers in cdev 2019-10-18 21:32:45 +00:00
nvdimm_spa.c Use atomic for start_count in devstat_start_transaction(). 2019-12-30 03:13:38 +00:00
nvdimm_var.h nvdimm(4): Export NVDIMM health flags via sysctl 2021-02-20 16:47:55 -08:00