]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nvdimm(4): Export NVDIMM health flags via sysctl
authorRavi Pokala <rpokala@FreeBSD.org>
Tue, 16 Feb 2021 08:03:32 +0000 (00:03 -0800)
committerRavi Pokala <rpokala@FreeBSD.org>
Sun, 21 Feb 2021 01:47:34 +0000 (17:47 -0800)
commit49318a0aac641813d971806667b734feefefbb03
tree71e33c8c55e007ecf4d572a509553b4c9d4005ed
parent780a76a6ec214cec0b8bc1f6b6c249984f5e24f5
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 bdde49b7c7232c6936525f84ffb90856a7cd8e74)
sys/dev/nvdimm/nvdimm.c
sys/dev/nvdimm/nvdimm_nfit.c
sys/dev/nvdimm/nvdimm_var.h