Skip to content

Commit de5f4b8

Browse files
atishp04palmer-dabbelt
authored andcommitted
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: e557793 ("RISC-V: Fix maximum allowed phsyical memory for RV32") Cc: [email protected] Reported-by: Randy Dunlap <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Atish Patra <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent eefb5f3 commit de5f4b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/riscv/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,10 @@ choice
252252
default MAXPHYSMEM_128GB if 64BIT && CMODEL_MEDANY
253253

254254
config MAXPHYSMEM_1GB
255+
depends on 32BIT
255256
bool "1GiB"
256257
config MAXPHYSMEM_2GB
258+
depends on 64BIT && CMODEL_MEDLOW
257259
bool "2GiB"
258260
config MAXPHYSMEM_128GB
259261
depends on 64BIT && CMODEL_MEDANY

0 commit comments

Comments
 (0)