Linux-RISC-V Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH v1 0/2] Add Sv57 page table support
@ 2021-11-24 11:20 panqinglin2020
  2021-11-24 11:20 ` [PATCH v1 1/2] riscv, mm: Add Sv57 support based on Sv48 implementation panqinglin2020
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: panqinglin2020 @ 2021-11-24 11:20 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, linux-riscv; +Cc: jeff, xuyinan, Qinglin Pan

From: Qinglin Pan <panqinglin2020@iscas.ac.cn>

This patchset is based on Alex's Sv48 patchset v2.

This implements Sv57 support at runtime. The kernel will try to boot with
5-level page table firstly when the mmu-type field in dtb is "mmu,sv57" or null,
and will fallback to 4-level if the HW does not support it.

Tested on:
  - qemu rv64 sv39
  - qemu rv64 sv48
  - qemu rv64 sv57
  - Sifive unmatched

Qinglin Pan (2):
  riscv,mm: Add Sv57 support based on Sv48 implementation
  Documentation, mm: Add Sv57 vm layout documentation

 Documentation/riscv/vm-layout.rst   |  36 ++++++
 arch/riscv/Kconfig                  |   4 +-
 arch/riscv/include/asm/csr.h        |   1 +
 arch/riscv/include/asm/fixmap.h     |   1 +
 arch/riscv/include/asm/page.h       |   1 +
 arch/riscv/include/asm/pgalloc.h    |  49 ++++++++
 arch/riscv/include/asm/pgtable-64.h | 103 ++++++++++++++++-
 arch/riscv/include/asm/pgtable.h    |   4 +-
 arch/riscv/kernel/cpu.c             |   4 +-
 arch/riscv/mm/init.c                | 169 +++++++++++++++++++++++++---
 10 files changed, 348 insertions(+), 24 deletions(-)

-- 
2.32.0


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2021-12-06 10:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-24 11:20 [RESEND PATCH v1 0/2] Add Sv57 page table support panqinglin2020
2021-11-24 11:20 ` [PATCH v1 1/2] riscv, mm: Add Sv57 support based on Sv48 implementation panqinglin2020
2021-11-29 11:20   ` Alexandre ghiti
2021-11-29 12:18     ` Heiko Stübner
2021-11-30  3:11     ` 潘庆霖
2021-12-06 10:53       ` Alexandre ghiti
2021-11-24 11:20 ` [PATCH v1 2/2] Documentation, mm: Add Sv57 vm layout documentation panqinglin2020
2021-11-24 23:29 ` [RESEND PATCH v1 0/2] Add Sv57 page table support Heiko Stübner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox