]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: NFIT: Use fallback node id when numa info in NFIT table is incorrect
authorJia He <justin.he@arm.com>
Wed, 22 Sep 2021 15:29:19 +0000 (23:29 +0800)
committerDan Williams <dan.j.williams@intel.com>
Mon, 27 Sep 2021 18:40:43 +0000 (11:40 -0700)
commit050c8561332d5009fac1686f9ed540be2067fd83
tree36cd7f60919ecb9458ec90a655106fa4c92a83cd
parent875d56e13eab01967bd5d33adc78a50a61ab7b99
ACPI: NFIT: Use fallback node id when numa info in NFIT table is incorrect

When ACPI NFIT table is failing to populate correct numa information
on arm64, dax_kmem will get NUMA_NO_NODE from the NFIT driver.

Without this patch, pmem can't be probed as RAM devices on arm64 guest:
  $ndctl create-namespace -fe namespace0.0 --mode=devdax --map=dev -s 1g -a 128M
  kmem dax0.0: rejecting DAX region [mem 0x240400000-0x2bfffffff] with invalid node: -1
  kmem: probe of dax0.0 failed with error -22

Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jia He <justin.he@arm.com>
Cc: <stable@vger.kernel.org>
Fixes: b62f840a5a6f ("device-dax: "Hotplug" persistent memory for use like normal RAM")
Link: https://lore.kernel.org/r/20210922152919.6940-1-justin.he@arm.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c