Chen Zhou
9e0a17db51
arm64: replace memblock_alloc_low with memblock_alloc
...
If we use "crashkernel=Y[@X]" and the start address is above 4G,
the arm64 kdump capture kernel may call memblock_alloc_low() failure
in request_standard_resources(). Replacing memblock_alloc_low() with
memblock_alloc().
[ 0.000000] MEMBLOCK configuration:
[ 0.000000] memory size = 0x0000000040650000 reserved size = 0x0000000004db7f39
[ 0.000000] memory.cnt = 0x6
[ 0.000000] memory[0x0] [0x00000000395f0000-0x000000003968ffff], 0x00000000000a0000 bytes on node 0 flags: 0x4
[ 0.000000] memory[0x1] [0x0000000039730000-0x000000003973ffff], 0x0000000000010000 bytes on node 0 flags: 0x4
[ 0.000000] memory[0x2] [0x0000000039780000-0x000000003986ffff], 0x00000000000f0000 bytes on node 0 flags: 0x4
[ 0.000000] memory[0x3] [0x0000000039890000-0x0000000039d0ffff], 0x0000000000480000 bytes on node 0 flags: 0x4
[ 0.000000] memory[0x4] [0x000000003ed00000-0x000000003ed2ffff], 0x0000000000030000 bytes on node 0 flags: 0x4
[ 0.000000] memory[0x5] [0x0000002040000000-0x000000207fffffff], 0x0000000040000000 bytes on node 0 flags: 0x0
[ 0.000000] reserved.cnt = 0x7
[ 0.000000] reserved[0x0] [0x0000002040080000-0x0000002041c4dfff], 0x0000000001bce000 bytes flags: 0x0
[ 0.000000] reserved[0x1] [0x0000002041c53000-0x0000002042c203f8], 0x0000000000fcd3f9 bytes flags: 0x0
[ 0.000000] reserved[0x2] [0x000000207da00000-0x000000207dbfffff], 0x0000000000200000 bytes flags: 0x0
[ 0.000000] reserved[0x3] [0x000000207ddef000-0x000000207fbfffff], 0x0000000001e11000 bytes flags: 0x0
[ 0.000000] reserved[0x4] [0x000000207fdf2b00-0x000000207fdfc03f], 0x0000000000009540 bytes flags: 0x0
[ 0.000000] reserved[0x5] [0x000000207fdfd000-0x000000207ffff3ff], 0x0000000000202400 bytes flags: 0x0
[ 0.000000] reserved[0x6] [0x000000207ffffe00-0x000000207fffffff], 0x0000000000000200 bytes flags: 0x0
[ 0.000000] Kernel panic - not syncing: request_standard_resources: Failed to allocate 384 bytes
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.1.0-next-20190321+ #4
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x188
[ 0.000000] show_stack+0x24/0x30
[ 0.000000] dump_stack+0xa8/0xcc
[ 0.000000] panic+0x14c/0x31c
[ 0.000000] setup_arch+0x2b0/0x5e0
[ 0.000000] start_kernel+0x90/0x52c
[ 0.000000] ---[ end Kernel panic - not syncing: request_standard_resources: Failed to allocate 384 bytes ]---
Link: https://www.spinics.net/lists/arm-kernel/msg715293.html
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2019-03-27 18:12:41 +00:00
..
2019-03-19 12:47:44 +00:00
2018-07-18 01:18:05 +09:00
2018-10-31 08:54:16 -07:00
2017-06-29 11:33:15 +01:00
2019-02-07 23:10:45 +01:00
2019-02-06 10:05:20 +00:00
2019-01-03 18:57:57 -08:00
2019-02-06 10:05:18 +00:00
2018-05-17 17:28:09 +01:00
2019-01-10 17:49:35 +00:00
2017-12-01 13:05:08 +00:00
2018-07-04 18:34:24 +01:00
2018-12-06 14:38:53 +00:00
2019-03-19 14:55:10 +00:00
2018-01-02 13:50:34 +00:00
2018-12-13 16:42:46 +00:00
2018-09-11 11:08:49 +01:00
2018-11-02 17:24:17 +00:00
2018-09-27 21:54:43 +02:00
2018-02-06 22:53:13 +00:00
2017-04-04 17:50:59 +01:00
2018-03-09 08:58:22 +01:00
2018-03-09 08:58:22 +01:00
2018-05-17 18:19:53 +01:00
2018-12-10 11:50:12 +00:00
2019-02-26 16:57:59 +00:00
2018-09-27 21:55:23 +02:00
2018-12-31 11:46:59 -08:00
2019-02-20 14:05:37 +00:00
2018-12-10 18:42:17 +00:00
2019-02-01 14:10:02 +00:00
2018-06-26 09:07:56 +02:00
2019-02-01 14:10:01 +00:00
2018-12-10 18:57:17 +00:00
2018-11-27 18:47:33 +00:00
2017-10-24 16:23:07 +01:00
2019-02-06 10:05:16 +00:00
2019-01-06 09:46:51 +09:00
2019-02-01 14:07:23 +00:00
2018-12-07 15:28:21 +00:00
2019-03-01 16:23:38 +00:00
2019-02-05 09:34:49 +00:00
2019-03-05 21:07:19 -08:00
2019-01-04 10:09:21 +00:00
2018-11-27 19:00:45 +00:00
2018-11-27 19:00:45 +00:00
2017-12-01 13:04:59 +00:00
2018-09-03 16:50:35 +02:00
2018-09-17 16:33:23 -05:00
2019-01-03 18:57:57 -08:00
2019-01-19 22:57:38 +00:00
2018-04-19 13:29:54 +02:00
2018-12-13 16:42:47 +00:00
2019-02-06 10:05:18 +00:00
2018-10-01 11:57:04 +01:00
2019-03-10 10:17:23 -07:00
2018-03-19 18:14:25 +00:00
2018-03-19 18:14:25 +00:00
2018-12-06 14:38:53 +00:00
2018-12-22 08:21:02 -05:00
2018-07-31 12:08:22 +01:00
2019-03-27 18:12:41 +00:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2018-09-25 15:10:54 +01:00
2018-12-10 11:50:11 +00:00
2017-01-12 15:05:39 +00:00
2019-02-06 10:05:20 +00:00
2018-09-14 17:46:19 +01:00
2019-03-19 14:55:10 +00:00
2018-09-18 12:02:27 +01:00
2018-07-12 14:49:48 +01:00
2019-01-05 11:28:39 -08:00
2018-07-12 14:49:48 +01:00
2019-01-04 14:18:01 +00:00
2018-12-22 08:21:02 -05:00
2018-07-06 13:18:18 +01:00
2017-11-02 11:10:55 +01:00
2019-02-06 10:05:22 +00:00
2017-08-09 12:16:28 +01:00
2018-12-04 12:48:25 +00:00