libnvdimm, e820: fix numa node for e820-type-12 pmem ranges
authorDan Williams <[email protected]>
Thu, 12 Nov 2015 00:46:33 +0000 (16:46 -0800)
committerDan Williams <[email protected]>
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: <[email protected]>
Reported-by: Boaz Harrosh <[email protected]>
Tested-by: Boaz Harrosh <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
drivers/nvdimm/e820.c