]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm: Set numa_node to NVDIMM devices
authorToshi Kani <toshi.kani@hp.com>
Fri, 19 Jun 2015 18:18:33 +0000 (12:18 -0600)
committerDan Duval <dan.duval@oracle.com>
Tue, 11 Oct 2016 18:42:10 +0000 (14:42 -0400)
commitfd68d12fce2a47c7a367ddc45a2505b8030d911f
tree2009532e2648cc712ad6bb57c9cb43d19b29d0ff
parentf7893867d4e2e5eb38dc554417c8ec0690388e4e
libnvdimm: Set numa_node to NVDIMM devices

Orabug: 22913653

ACPI NFIT table has System Physical Address Range Structure entries that
describe a proximity ID of each range when ACPI_NFIT_PROXIMITY_VALID is
set in the flags.

Change acpi_nfit_register_region() to map a proximity ID to its node ID,
and set it to a new numa_node field of nd_region_desc, which is then
conveyed to the nd_region device.

The device core arranges for btt and namespace devices to inherit their
node from their parent region.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
[djbw: move set_dev_node() from region.c to bus.c]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 41d7a6d637e1440f5410cb43c25a3c41255540c5)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
arch/x86/kernel/pmem.c
drivers/acpi/nfit.c
drivers/nvdimm/bus.c
drivers/nvdimm/nd.h
drivers/nvdimm/region_devs.c
include/linux/libnvdimm.h