libnvdimm, e820: fix numa node for e820-type-12 pmem ranges
authorDan Williams <dan.j.williams@intel.com>
Thu, 12 Nov 2015 00:46:33 +0000 (16:46 -0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 12 Nov 2015 17:21:18 +0000 (09:21 -0800)
commitf7256dc0cdbc68903502997bde619f555a910f50
treef419b12cd2c374efda2afd682f97a6bb2f9acbb0
parentf42957967fb435aef6fc700fbbd9df89533b9a2e
libnvdimm, e820: fix numa node for e820-type-12 pmem ranges

Rather than punt on the numa node for these e820 ranges try to find a
better answer with memory_add_physaddr_to_nid() when it is available.

Cc: <stable@vger.kernel.org>
Reported-by: Boaz Harrosh <boaz@plexistor.com>
Tested-by: Boaz Harrosh <boaz@plexistor.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/e820.c