All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Boot RISC-V kernel from any 4KB aligned address
@ 2019-03-21  9:47 ` Anup Patel
  0 siblings, 0 replies; 32+ messages in thread
From: Anup Patel @ 2019-03-21  9:47 UTC (permalink / raw)
  To: Palmer Dabbelt, Albert Ou
  Cc: Atish Patra, Paul Walmsley, Christoph Hellwig, Mike Rapoport,
	linux-riscv, linux-kernel, Anup Patel

This patchset primarily extends initial page table setup using fixmap
to boot Linux RISC-V kernel (64bit and 32bit) from any 4KB aligned address.

We also add 32bit defconfig to allow people to try 32bit Linux RISC-V
kernel as well.

The patchset is based on Linux-5.1-rc1 and tested on SiFive Unleashed
board and QEMU virt machine.

It can also be found in riscv_setup_vm_v2 branch of
https//github.com/avpatel/linux.git

Changes since v1:
- Add kconfig option BOOT_PAGE_ALIGNED to enable 4KB aligned booting
- Improved initial page table setup code to select best/biggest
  possible mapping size based on load address alignment
- Added PATCH4 to remove redundant trampoline page table
- Added PATCH5 to fix memory reservation in setup_bootmem()

Anup Patel (5):
  RISC-V: Add separate defconfig for 32bit systems
  RISC-V: Make setup_vm() independent of GCC code model
  RISC-V: Allow booting kernel from any 4KB aligned address
  RISC-V: Remove redundant trampoline page table
  RISC-V: Fix memory reservation in setup_bootmem()

 arch/riscv/Kconfig                  |  11 +
 arch/riscv/configs/rv32_defconfig   |  84 ++++++
 arch/riscv/include/asm/fixmap.h     |   5 +
 arch/riscv/include/asm/pgtable-64.h |   5 +
 arch/riscv/include/asm/pgtable.h    |   6 +-
 arch/riscv/kernel/head.S            |  15 +-
 arch/riscv/kernel/setup.c           |   4 +-
 arch/riscv/mm/init.c                | 391 +++++++++++++++++++++++-----
 8 files changed, 450 insertions(+), 71 deletions(-)
 create mode 100644 arch/riscv/configs/rv32_defconfig

-- 
2.17.1


^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2019-03-25  4:20 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21  9:47 [PATCH v2 0/5] Boot RISC-V kernel from any 4KB aligned address Anup Patel
2019-03-21  9:47 ` Anup Patel
2019-03-21  9:47 ` [PATCH v2 1/5] RISC-V: Add separate defconfig for 32bit systems Anup Patel
2019-03-21  9:47   ` Anup Patel
2019-03-21  9:47 ` [PATCH v2 2/5] RISC-V: Make setup_vm() independent of GCC code model Anup Patel
2019-03-21  9:47   ` Anup Patel
2019-03-23 15:45   ` Mike Rapoport
2019-03-23 15:45     ` Mike Rapoport
2019-03-25  4:19     ` Anup Patel
2019-03-25  4:19       ` Anup Patel
2019-03-21  9:47 ` [PATCH v2 3/5] RISC-V: Allow booting kernel from any 4KB aligned address Anup Patel
2019-03-21  9:47   ` Anup Patel
2019-03-23 15:40   ` Mike Rapoport
2019-03-23 15:40     ` Mike Rapoport
2019-03-23 17:24     ` Christoph Hellwig
2019-03-23 17:24       ` Christoph Hellwig
2019-03-24  4:16       ` Anup Patel
2019-03-24  4:16         ` Anup Patel
2019-03-24  3:32     ` Anup Patel
2019-03-24  3:32       ` Anup Patel
2019-03-21  9:47 ` [PATCH v2 4/5] RISC-V: Remove redundant trampoline page table Anup Patel
2019-03-21  9:47   ` Anup Patel
2019-03-22 13:33   ` Christoph Hellwig
2019-03-22 13:33     ` Christoph Hellwig
2019-03-25  4:17     ` Anup Patel
2019-03-25  4:17       ` Anup Patel
2019-03-21  9:47 ` [PATCH v2 5/5] RISC-V: Fix memory reservation in setup_bootmem() Anup Patel
2019-03-21  9:47   ` Anup Patel
2019-03-22 13:31   ` Christoph Hellwig
2019-03-22 13:31     ` Christoph Hellwig
2019-03-23 15:44   ` Mike Rapoport
2019-03-23 15:44     ` Mike Rapoport

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.