linux-sg2042/arch/riscv
Atish Patra de5f4b8f63
RISC-V: Define MAXPHYSMEM_1GB only for RV32
MAXPHYSMEM_1GB option was added for RV32 because RV32 only supports 1GB
of maximum physical memory. This lead to few compilation errors reported
by kernel test robot which created the following configuration combination
which are not useful but can be configured.

1. MAXPHYSMEM_1GB & RV64
2, MAXPHYSMEM_2GB & RV32

Fix this by restricting MAXPHYSMEM_1GB for RV32 and MAXPHYSMEM_2GB only for
RV64.

Fixes: e557793799 ("RISC-V: Fix maximum allowed phsyical memory for RV32")
Cc: stable@vger.kernel.org
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-02-02 18:36:42 -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: Align on L1_CACHE_BYTES when STRICT_KERNEL_RWX 2021-02-02 18:36:29 -08:00
kernel RISC-V: Fix .init section permission update 2021-02-02 18:35:42 -08:00
lib riscv: provide memmove implementation 2020-12-10 17:27:54 -08:00
mm riscv: Fixup pfn_valid error with wrong max_mapnr 2021-01-22 20:18:03 -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: Define MAXPHYSMEM_1GB only for RV32 2021-02-02 18:36:42 -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