bianbu-linux-6.6/arch/arm
Harith G 4b9fb3aeb9 ARM: 9419/1: mm: Fix kernel memory mapping for xip kernels
[ Upstream commit ed6cbe6e5563452f305e89c15846820f2874e431 ]

The patchset introducing kernel_sec_start/end variables to separate the
kernel/lowmem memory mappings, broke the mapping of the kernel memory
for xipkernels.

kernel_sec_start/end variables are in RO area before the MMU is switched
on for xipkernels.
So these cannot be set early in boot in head.S. Fix this by setting these
after MMU is switched on.
xipkernels need two different mappings for kernel text (starting at
CONFIG_XIP_PHYS_ADDR) and data (starting at CONFIG_PHYS_OFFSET).
Also, move the kernel code mapping from devicemaps_init() to map_kernel().

Fixes: a91da54570 ("ARM: 9089/1: Define kernel physical section start and end")
Signed-off-by: Harith George <harith.g@alifsemi.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-22 15:38:33 +01:00
..
boot ARM: dts: rockchip: Fix the realtek audio codec on rk3036-kylin 2024-11-14 13:19:29 +01:00
common ARM: 9318/1: locomo: move kernel-doc to prevent warnings 2023-08-14 12:17:00 +01:00
configs ARM: configs: sunxi: Enable DRM_DW_HDMI 2024-06-12 11:11:32 +02:00
crypto crypto: simd - Do not call crypto_alloc_tfm during registration 2024-10-10 11:57:26 +02:00
include mm: Introduce pudp/p4dp/pgdp_get() functions 2024-09-12 11:11:40 +02:00
kernel ARM: 9419/1: mm: Fix kernel memory mapping for xip kernels 2024-11-22 15:38:33 +01:00
lib ARM: 9321/1: memset: cast the constant byte to unsigned char 2023-11-20 11:59:20 +01:00
mach-actions
mach-airoha
mach-alpine ARM: alpine: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: Explicitly include correct DT includes 2023-07-29 16:56:04 +03:00
mach-axxia
mach-bcm ARM: bcm: Drop unused includes 2023-07-21 10:01:47 -07:00
mach-berlin ARM: berlin: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-clps711x
mach-davinci ARM: davinci: Convert comma to semicolon 2024-07-18 13:21:16 +02:00
mach-digicolor
mach-dove ARM: dove: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-ep93xx ep93xx: clock: Fix off by one in ep93xx_div_recalc_rate() 2024-10-04 16:29:40 +02:00
mach-exynos ARM: SoC changes for 6.5 2023-06-29 15:28:33 -07:00
mach-footbridge
mach-gemini
mach-highbank
mach-hisi ARM: hisi: Drop unused includes 2023-07-19 06:29:04 +00:00
mach-hpe ARM: hpe: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-imx ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2023-12-13 18:45:18 +01:00
mach-ixp4xx
mach-keystone ARM: keystone: Merge PM function into main support file 2023-08-01 23:57:28 -05:00
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson ARM: meson: Drop unused includes 2023-07-31 11:58:18 +02:00
mach-milbeaut
mach-mmp ARM: mmp: Drop unused includes 2023-08-12 10:31:00 +02:00
mach-moxart
mach-mstar
mach-mv78xx0
mach-mvebu ARM: mvebu: Explicitly include correct DT includes 2023-08-12 10:31:00 +02:00
mach-mxs ARM: 9298/1: Drop custom mdesc->handle_irq() 2023-06-19 09:35:48 +01:00
mach-nomadik ARM: nomadik: Drop unused includes 2023-08-12 10:31:00 +02:00
mach-npcm ARM: npcm: Drop unused includes 2023-08-12 10:31:00 +02:00
mach-nspire ARM: nspire: Remove unused header file mmio.h 2023-08-12 11:49:32 +02:00
mach-omap1 ARM: OMAP1: ams-delta: Fix MODEM initialization failure 2023-10-13 10:59:48 +03:00
mach-omap2 ASoC: ti: Convert Pandora ASoC to GPIO descriptors 2024-04-27 17:11:35 +02:00
mach-orion5x
mach-pxa ARM: spitz: fix GPIO assignment for backlight 2024-08-03 08:53:34 +02:00
mach-qcom
mach-rda
mach-realtek
mach-rockchip ARM: rockchip: Drop unused includes 2023-08-12 10:31:00 +02:00
mach-rpc
mach-s3c
mach-s5pv210 ARM: s5pv210: Explicitly include correct DT includes 2023-08-14 18:15:48 +02:00
mach-sa1100 ARM: locomo: fix locomolcd_power declaration 2023-09-28 09:15:51 +02:00
mach-shmobile ARM: shmobile: rcar-gen2: Drop unused OF includes 2023-07-25 11:11:42 +02:00
mach-socfpga ARM: socfpga: Explicitly include correct DT includes 2023-07-20 14:38:38 -05:00
mach-spear ARM: spear: Explicitly include correct DT includes 2023-08-12 10:31:01 +02:00
mach-sti ARM: sti: Drop unused includes 2023-08-12 10:30:59 +02:00
mach-stm32
mach-sunplus
mach-sunxi ARM: sun9i: smp: fix return code check of of_property_match_string 2024-01-20 11:51:47 +01:00
mach-tegra
mach-uniphier
mach-ux500 ARM: ux500: Move power-domain driver to the genpd dir 2023-07-14 10:41:59 +02:00
mach-versatile ARM: versatile: fix OF node leak in CPUs prepare 2024-10-04 16:29:03 +02:00
mach-vt8500
mach-zynq ARM: zynq: Explicitly include correct DT includes 2023-07-20 17:06:50 +02:00
mm ARM: 9419/1: mm: Fix kernel memory mapping for xip kernels 2024-11-22 15:38:33 +01:00
net Revert "bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()" 2024-07-09 11:44:29 +02:00
nwfpe
plat-orion
probes ARM: 9303/1: kprobes: avoid missing-declaration warnings 2023-06-19 09:35:51 +01:00
tools arch: Register fchmodat2, usually as syscall 452 2023-07-27 12:25:35 +02:00
vdso kbuild: unify vdso_install rules 2024-06-12 11:12:32 +02:00
vfp ARM: 9410/1: vfp: Use asm volatile in fmrx/fmxr macros 2024-10-04 16:28:51 +02:00
xen arm/xen: fix xen_vcpu_info allocation alignment 2023-12-03 07:33:05 +01:00
Kbuild
Kconfig ARM: 9352/1: iwmmxt: Remove support for PJ4/PJ4B cores 2024-04-03 15:28:50 +02:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug
Makefile kbuild: unify vdso_install rules 2024-06-12 11:12:32 +02:00