linux/arch/riscv
Atish Patra abb8e86b26
RISC-V: Set current memblock limit
Currently, linux kernel can not use last 4k bytes of addressable space
because IS_ERR_VALUE macro treats those as an error. This will be an issue
for RV32 as any memblock allocator potentially allocate chunk of memory
from the end of DRAM (2GB) leading bad address error even though the
address was technically valid.

Fix this issue by limiting the memblock if available memory spans the
entire address space.

Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-01-15 21:35:47 -08:00
..
boot dts: phy: add GPIO number and active state used for phy reset 2021-01-13 20:59:16 -08:00
configs riscv: defconfig: enable gpio support for HiFive Unleashed 2021-01-13 20:59:46 -08:00
include riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL 2021-01-12 20:34:44 -08:00
kernel RISC-V: Do not allocate memblock while iterating reserved memblocks 2021-01-15 21:35:46 -08:00
lib riscv: provide memmove implementation 2020-12-10 17:27:54 -08:00
mm RISC-V: Set current memblock limit 2021-01-15 21:35:47 -08:00
net treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
Kbuild riscv: Allow device trees to be built into the kernel 2020-05-18 11:38:05 -07:00
Kconfig RISC-V Patches for the 5.11 Merge Window, Part 1 2020-12-18 10:43:07 -08:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Kconfig.socs clk: sifive: Use common name for prci configuration 2020-12-16 12:22:59 -08:00
Makefile riscv: Clean up boot dir 2020-11-09 11:54:45 -08:00