Huang Ying
920d9ffcd4
x86, fakenuma: Fix invalid starting node ID
...
[ Upstream commit ccae0f36d500aef727f98acd8d0601e6b262a513 ]
Commit:
cc9aec03e58f ("x86/numa_emulation: Introduce uniform split capability")
uses "-1" as the starting node ID, which causes the strange kernel log as
follows, when "numa=fake=32G" is added to the kernel command line:
Faking node -1 at [mem 0x0000000000000000-0x0000000893ffffff] (35136MB)
Faking node 0 at [mem 0x0000001840000000-0x000000203fffffff] (32768MB)
Faking node 1 at [mem 0x0000000894000000-0x000000183fffffff] (64192MB)
Faking node 2 at [mem 0x0000002040000000-0x000000283fffffff] (32768MB)
Faking node 3 at [mem 0x0000002840000000-0x000000303fffffff] (32768MB)
And finally the kernel crashes:
BUG: Bad page state in process swapper pfn:00011
page:(____ptrval____) refcount:0 mapcount:1 mapping:(____ptrval____) index:0x55cd7e44b270 pfn:0x11
failed to read mapping contents, not a valid kernel address?
flags: 0x5(locked|uptodate)
raw: 0000000000000005 000055cd7e44af30 000055cd7e44af50 0000000100000006
raw: 000055cd7e44b270 000055cd7e44b290 0000000000000000 000055cd7e44b510
page dumped because: page still charged to cgroup
page->mem_cgroup:000055cd7e44b510
Modules linked in:
CPU: 0 PID: 0 Comm: swapper Not tainted 5.9.0-rc2 #1
Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0008.031920191559 03/19/2019
Call Trace:
dump_stack+0x57/0x80
bad_page.cold+0x63/0x94
__free_pages_ok+0x33f/0x360
memblock_free_all+0x127/0x195
mem_init+0x23/0x1f5
start_kernel+0x219/0x4f5
secondary_startup_64+0xb6/0xc0
Fix this bug via using 0 as the starting node ID. This restores the
original behavior before cc9aec03e58f.
[ mingo: Massaged the changelog. ]
Fixes: cc9aec03e58f ("x86/numa_emulation: Introduce uniform split capability")
Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200904061047.612950-1-ying.huang@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-09 19:12:28 +02:00
..
2018-10-31 08:54:16 -07:00
2019-11-29 10:10:00 +01:00
2019-06-03 16:18:12 +02:00
2019-06-05 17:37:17 +02:00
2019-05-21 10:50:45 +02:00
2020-03-25 08:25:58 +01:00
2019-05-21 10:50:45 +02:00
2019-05-14 09:47:47 -07:00
2018-05-19 11:56:57 +02:00
2020-01-09 10:19:56 +01:00
2020-01-09 10:19:56 +01:00
2020-06-22 09:31:08 +02:00
2019-05-30 11:26:35 -07:00
2020-04-01 11:01:59 +02:00
2019-06-14 16:37:30 +02:00
2019-06-07 23:12:13 +02:00
2018-08-08 22:28:34 +02:00
2019-05-18 11:49:57 +09:00
2019-06-19 17:09:55 +02:00
2019-07-09 11:52:34 -07:00
2019-08-09 22:52:10 +10:00
2019-05-08 19:08:35 +02:00
2019-05-30 11:26:35 -07:00
2020-06-07 13:18:51 +02:00
2019-05-27 09:36:28 -05:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2020-09-09 19:12:28 +02:00
2017-11-02 11:10:55 +01:00
2019-09-05 13:03:04 +02:00
2018-12-17 18:54:25 +01:00
2020-05-27 17:46:32 +02:00
2017-11-02 11:10:55 +01:00
2019-09-25 17:51:39 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2018-02-15 01:15:52 +01:00
2019-12-31 16:44:04 +01:00
2018-10-31 08:54:16 -07:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:36:37 +02:00
2019-08-29 20:52:53 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-08-19 21:54:16 -07:00
2019-07-24 14:43:37 +02:00