|
@@ -211,9 +211,13 @@ static void __init setup_node_data(int nid, u64 start, u64 end)
|
|
|
*/
|
|
|
nd_pa = memblock_alloc_nid(nd_size, SMP_CACHE_BYTES, nid);
|
|
|
if (!nd_pa) {
|
|
|
- pr_err("Cannot find %zu bytes in node %d\n",
|
|
|
- nd_size, nid);
|
|
|
- return;
|
|
|
+ nd_pa = __memblock_alloc_base(nd_size, SMP_CACHE_BYTES,
|
|
|
+ MEMBLOCK_ALLOC_ACCESSIBLE);
|
|
|
+ if (!nd_pa) {
|
|
|
+ pr_err("Cannot find %zu bytes in node %d\n",
|
|
|
+ nd_size, nid);
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
nd = __va(nd_pa);
|
|
|
|