Message ID | 20230120133455.3962413-11-alexander.stein@ew.tq-group.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | TQMLS1021A support | expand |
On Fri, Jan 20, 2023, at 14:34, Alexander Stein wrote: > From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> > > The only missing configuration option preventing us from using > multi_v7_defconfig with the Raspberry Pi 4 is ARM_LPAE. It's needed as > the PCIe controller found on the SoC depends on 64bit addressing, yet > can't be included as not all v7 boards support LPAE. > > Introduce multi_v7_lpae_defconfig, built off multi_v7_defconfig, which will > avoid us having to duplicate and maintain multiple similar configurations. > > Needless to say the Raspberry Pi 4 is not the only platform that can > benefit from this new configuration. > > Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> > Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> This is ok in principle, two minor points though: > +include $(srctree)/scripts/Makefile.defconf > +PHONY += multi_v7_lpae_defconfig > +multi_v7_lpae_defconfig: > + $(call merge_into_defconfig,multi_v7_defconfig,lpae) > > define archhelp > echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' The new target does not get listed in 'make help' as far as I can tell, can you add it there in the process? > diff --git a/arch/arm/configs/lpae.config b/arch/arm/configs/lpae.config > new file mode 100644 > index 0000000000000..19bab134e014b > --- /dev/null > +++ b/arch/arm/configs/lpae.config > @@ -0,0 +1 @@ > +CONFIG_ARM_LPAE=y My feeling is that we probably want CONFIG_VMSPLIT_2G=y here as well, given that a lot of the systems that want LPAE will have a lot of memory, and are limited by the amount of lowmem even when CONFIG_HIGHMEM is enabled. Can you make sure that this works on your machine, and include this option? Arnd
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 506dbc72323bc..80d9eaf3dc06a 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -314,6 +314,10 @@ endif # My testing targets (bypasses dependencies) bp:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/bootpImage +include $(srctree)/scripts/Makefile.defconf +PHONY += multi_v7_lpae_defconfig +multi_v7_lpae_defconfig: + $(call merge_into_defconfig,multi_v7_defconfig,lpae) define archhelp echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' diff --git a/arch/arm/configs/lpae.config b/arch/arm/configs/lpae.config new file mode 100644 index 0000000000000..19bab134e014b --- /dev/null +++ b/arch/arm/configs/lpae.config @@ -0,0 +1 @@ +CONFIG_ARM_LPAE=y