]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.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 Williams <dan.j.williams@intel.com>
Fri, 26 Jun 2015 15:23:38 +0000 (11:23 -0400)
commit41d7a6d637e1440f5410cb43c25a3c41255540c5
treeab171ea1b5a44823485b2776776c112da197703d
parent99759869faf15471cfce251bc138848d8af7d162
libnvdimm: Set numa_node to NVDIMM devices

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>
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