riscv: Get rid of MAXPHYSMEM configs
commitdb1503d355
upstream. CONFIG_MAXPHYSMEM_* are actually never used, even the nommu defconfigs selecting the MAXPHYSMEM_2GB had no effects on PAGE_OFFSET since it was preempted by !MMU case right before. In addition, the move of the kernel mapping at the end of the address space broke the use of MAXPHYSMEM_2G with MMU since it defines PAGE_OFFSET at the same address as the kernel mapping. Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Fixes:2bfc6cd81b
("riscv: Move kernel mapping outside of linear mapping") Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com> Tested-by: Geert Uytterhoeven <geert@linux-m68k.org> Tested-by: Conor Dooley <Conor.Dooley@microchip.com> Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
cee8830146
Коммит
6250ecf5ba
|
@ -158,10 +158,9 @@ config PA_BITS
|
||||||
|
|
||||||
config PAGE_OFFSET
|
config PAGE_OFFSET
|
||||||
hex
|
hex
|
||||||
default 0xC0000000 if 32BIT && MAXPHYSMEM_1GB
|
default 0xC0000000 if 32BIT
|
||||||
default 0x80000000 if 64BIT && !MMU
|
default 0x80000000 if 64BIT && !MMU
|
||||||
default 0xffffffff80000000 if 64BIT && MAXPHYSMEM_2GB
|
default 0xffffffe000000000 if 64BIT
|
||||||
default 0xffffffe000000000 if 64BIT && MAXPHYSMEM_128GB
|
|
||||||
|
|
||||||
config KASAN_SHADOW_OFFSET
|
config KASAN_SHADOW_OFFSET
|
||||||
hex
|
hex
|
||||||
|
@ -270,24 +269,6 @@ config MODULE_SECTIONS
|
||||||
bool
|
bool
|
||||||
select HAVE_MOD_ARCH_SPECIFIC
|
select HAVE_MOD_ARCH_SPECIFIC
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "Maximum Physical Memory"
|
|
||||||
default MAXPHYSMEM_1GB if 32BIT
|
|
||||||
default MAXPHYSMEM_2GB if 64BIT && CMODEL_MEDLOW
|
|
||||||
default MAXPHYSMEM_128GB if 64BIT && CMODEL_MEDANY
|
|
||||||
|
|
||||||
config MAXPHYSMEM_1GB
|
|
||||||
depends on 32BIT
|
|
||||||
bool "1GiB"
|
|
||||||
config MAXPHYSMEM_2GB
|
|
||||||
depends on 64BIT && CMODEL_MEDLOW
|
|
||||||
bool "2GiB"
|
|
||||||
config MAXPHYSMEM_128GB
|
|
||||||
depends on 64BIT && CMODEL_MEDANY
|
|
||||||
bool "128GiB"
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
|
|
||||||
config SMP
|
config SMP
|
||||||
bool "Symmetric Multi-Processing"
|
bool "Symmetric Multi-Processing"
|
||||||
help
|
help
|
||||||
|
|
|
@ -29,8 +29,6 @@ CONFIG_EMBEDDED=y
|
||||||
CONFIG_SLOB=y
|
CONFIG_SLOB=y
|
||||||
# CONFIG_MMU is not set
|
# CONFIG_MMU is not set
|
||||||
CONFIG_SOC_CANAAN=y
|
CONFIG_SOC_CANAAN=y
|
||||||
CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic"
|
|
||||||
CONFIG_MAXPHYSMEM_2GB=y
|
|
||||||
CONFIG_SMP=y
|
CONFIG_SMP=y
|
||||||
CONFIG_NR_CPUS=2
|
CONFIG_NR_CPUS=2
|
||||||
CONFIG_CMDLINE="earlycon console=ttySIF0"
|
CONFIG_CMDLINE="earlycon console=ttySIF0"
|
||||||
|
|
|
@ -21,8 +21,6 @@ CONFIG_EMBEDDED=y
|
||||||
CONFIG_SLOB=y
|
CONFIG_SLOB=y
|
||||||
# CONFIG_MMU is not set
|
# CONFIG_MMU is not set
|
||||||
CONFIG_SOC_CANAAN=y
|
CONFIG_SOC_CANAAN=y
|
||||||
CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic"
|
|
||||||
CONFIG_MAXPHYSMEM_2GB=y
|
|
||||||
CONFIG_SMP=y
|
CONFIG_SMP=y
|
||||||
CONFIG_NR_CPUS=2
|
CONFIG_NR_CPUS=2
|
||||||
CONFIG_CMDLINE="earlycon console=ttySIF0 rootdelay=2 root=/dev/mmcblk0p1 ro"
|
CONFIG_CMDLINE="earlycon console=ttySIF0 rootdelay=2 root=/dev/mmcblk0p1 ro"
|
||||||
|
|
|
@ -27,7 +27,6 @@ CONFIG_SLOB=y
|
||||||
# CONFIG_SLAB_MERGE_DEFAULT is not set
|
# CONFIG_SLAB_MERGE_DEFAULT is not set
|
||||||
# CONFIG_MMU is not set
|
# CONFIG_MMU is not set
|
||||||
CONFIG_SOC_VIRT=y
|
CONFIG_SOC_VIRT=y
|
||||||
CONFIG_MAXPHYSMEM_2GB=y
|
|
||||||
CONFIG_SMP=y
|
CONFIG_SMP=y
|
||||||
CONFIG_CMDLINE="root=/dev/vda rw earlycon=uart8250,mmio,0x10000000,115200n8 console=ttyS0"
|
CONFIG_CMDLINE="root=/dev/vda rw earlycon=uart8250,mmio,0x10000000,115200n8 console=ttyS0"
|
||||||
CONFIG_CMDLINE_FORCE=y
|
CONFIG_CMDLINE_FORCE=y
|
||||||
|
|
Загрузка…
Ссылка в новой задаче