Skip to content

RFC Mapped kernel support for Broadcom XLP

Jayachandran C linux-mips 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5MIPS: Make MAPPED_KERNEL config option commonarch/mips/Kconfig arch/mips/sgi-ip27/Kconfig+8 -80 replies
2/5MIPS: Add platform function to fixup memoryarch/mips/kernel/setup.c arch/mips/netlogic/common/Makefile arch/mips/netlogic/common/memory.c +2 more+59 -160 replies
3/5MIPS: Netlogic: Mapped kernel supportarch/mips/Kconfig arch/mips/include/asm/mach-netlogic/kernel-entry-init.h arch/mips/include/asm/mach-netlogic/spaces.h +8 more+277 -80 replies
4/5MIPS: Compress MAPPED kernelsarch/mips/boot/compressed/calc_vmlinuz_load_addr.c arch/mips/boot/compressed/decompress.c arch/mips/boot/compressed/head.S+19 -10 replies
5/5MIPS: Netlogic: Map kernel with 1G/4G pages on XLPIIarch/mips/netlogic/common/memory.c+159 -780 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/5] Mapped kernel support for Broadcom XLP

This patchset adds support for loading a XLR/XLP kernel compiled with a CKSEG2 load address.

The changes are to:
- move the existing MAPPED_KERNEL option from sgi-ip27 to common config
- Add a plat_mem_fixup function to arch_mem_init which will allow the platform to calculate the kernel wired TLB entries and save them so that all the CPUs can set them up at boot.
- Update PAGE_OFFSET, MAP_BASE and MODULE_START when mapped kernel is enabled.
- Update compressed kernel code to generate the final executable in KSEG0 and map the load address of the embedded kernel before loading it.
- Use wired entries of sizes 256M/1G/4G to map the available memory on XLP9xx and XLP2xx

Comments and suggestions welcome.

JC.

Ashok Kumar (1):
MIPS: Netlogic: Mapped kernel support

Jayachandran C (4):
MIPS: Make MAPPED_KERNEL config option common
MIPS: Add platform function to fixup memory
MIPS: Compress MAPPED kernels
MIPS: Netlogic: Map kernel with 1G/4G pages on XLPII

 arch/mips/Kconfig                                  |    7 +
 arch/mips/boot/compressed/calc_vmlinuz_load_addr.c |    9 +
 arch/mips/boot/compressed/decompress.c             |    6 +-
 arch/mips/boot/compressed/head.S                   |    5 +
 .../include/asm/mach-netlogic/kernel-entry-init.h  |   50 ++++
 arch/mips/include/asm/mach-netlogic/spaces.h       |   25 ++
 arch/mips/include/asm/netlogic/common.h            |   15 ++
 arch/mips/include/asm/pgtable-64.h                 |    4 +
 arch/mips/kernel/setup.c                           |    4 +
 arch/mips/mm/tlb-r4k.c                             |    2 +
 arch/mips/netlogic/Platform                        |    5 +
 arch/mips/netlogic/common/Makefile                 |    1 +
 arch/mips/netlogic/common/memory.c                 |  247 ++++++++++++++++++++
 arch/mips/netlogic/common/reset.S                  |   40 ++++
 arch/mips/netlogic/common/smpboot.S                |   16 +-
 arch/mips/netlogic/xlp/setup.c                     |   14 --
 arch/mips/netlogic/xlr/setup.c                     |    3 +-
 arch/mips/netlogic/xlr/wakeup.c                    |    7 +-
 arch/mips/sgi-ip27/Kconfig                         |    8 -
 19 files changed, 440 insertions(+), 28 deletions(-)
 create mode 100644 arch/mips/include/asm/mach-netlogic/kernel-entry-init.h
 create mode 100644 arch/mips/include/asm/mach-netlogic/spaces.h
 create mode 100644 arch/mips/netlogic/common/memory.c
Signature · 1 line
1.7.9.5