From: "Heiko Stübner" <heiko@sntech.de>
To: paul.walmsley@sifive.com, palmer@dabbelt.com,
aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org
Cc: jeff@riscv.org, xuyinan@ict.ac.cn,
Qinglin Pan <panqinglin2020@iscas.ac.cn>,
panqinglin2020@iscas.ac.cn
Subject: Re: [RESEND PATCH v1 0/2] Add Sv57 page table support
Date: Thu, 25 Nov 2021 00:29:56 +0100 [thread overview]
Message-ID: <4180445.sKpA694EL3@diego> (raw)
In-Reply-To: <20211124112021.788242-1-panqinglin2020@iscas.ac.cn>
Am Mittwoch, 24. November 2021, 12:20:19 CET schrieb panqinglin2020@iscas.ac.cn:
> 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
On a beagleV (which supports only sv39) I've tested both the limit via
the mmu-type in the devicetree and also that the fallback works when
I disable the mmu-type in the dt, so
Tested-by: Heiko Stuebner <heiko@sntech.de>
> 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(-)
>
>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
prev parent reply other threads:[~2021-11-24 23:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Heiko Stübner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4180445.sKpA694EL3@diego \
--to=heiko@sntech.de \
--cc=aou@eecs.berkeley.edu \
--cc=jeff@riscv.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=panqinglin2020@iscas.ac.cn \
--cc=paul.walmsley@sifive.com \
--cc=xuyinan@ict.ac.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.