From: "Andrei Warkentin" <andrei.warkentin@intel.com>
To: Tuan Phan <tphan@ventanamicro.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>,
"Gao, Liming" <gaoliming@byosoft.com.cn>,
"Liu, Zhiguang" <zhiguang.liu@intel.com>,
"sunilvl@ventanamicro.com" <sunilvl@ventanamicro.com>,
"git@danielschaefer.me" <git@danielschaefer.me>
Subject: Re: [PATCH v2 0/6] RISC-V MMU support
Date: Tue, 18 Apr 2023 16:03:37 +0000 [thread overview]
Message-ID: <PH8PR11MB685616B383A030FDB7298AE6839D9@PH8PR11MB6856.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20230414185815.2994-1-tphan@ventanamicro.com>
Hi Tuan,
Do you mind sharing the GitHub branch as well? It would help with the review immensely.
A
> -----Original Message-----
> From: Tuan Phan <tphan@ventanamicro.com>
> Sent: Friday, April 14, 2023 1:58 PM
> To: devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>;
> sunilvl@ventanamicro.com; git@danielschaefer.me; Warkentin, Andrei
> <andrei.warkentin@intel.com>; Tuan Phan <tphan@ventanamicro.com>
> Subject: [PATCH v2 0/6] RISC-V MMU support
>
> RISC-V: Add MMU support
>
> This series adds MMU support for RISC-V. Only SV39/48/57 modes are
> supported and tested. The MMU is required to support setting page
> attribute which is the first basic step to support security booting on RISC-V.
>
> There are three parts:
> 1. Add MMU base library. MMU will be enabled during CpuDxe initialization.
> 2. Fix OvmfPkg/VirtNorFlashDxe that failed to add flash base address to GCD
> if already done.
> 3. Fix all resources should be populated in HOB or added to GCD by driver
> before accessing when MMU enabled.
>
> Changes in v2:
> - Move MMU core to a library.
> - Setup SATP mode as highest possible that HW supports.
>
> Tuan Phan (6):
> MdePkg/BaseLib: RISC-V: Support getting satp register value
> MdePkg/Register: RISC-V: Add satp mode bits shift definition
> UefiCpuPkg: RISC-V: Support MMU with SV39/48/57 mode
> OvmfPkg/RiscVVirt: VirtNorFlashPlatformLib: Fix wrong flash size
> OvmfPkg/VirtNorFlashDxe: Not add memory space if it exists
> OvmfPkg/RiscVVirt: SEC: Add IO memory resource hob for platform
> devices
>
> MdePkg/Include/Library/BaseLib.h | 5 +
> MdePkg/Include/Library/BaseRiscVMmuLib.h | 39 ++
> .../Include/Register/RiscV64/RiscVEncoding.h | 7 +-
> MdePkg/Library/BaseLib/RiscV64/RiscVMmu.S | 8 +
> .../Library/BaseRiscVMmuLib/BaseRiscVMmuLib.c | 569
> ++++++++++++++++++
> .../BaseRiscVMmuLib/BaseRiscVMmuLib.inf | 25 +
> MdePkg/Library/BaseRiscVMmuLib/RiscVMmuCore.S | 31 +
> .../VirtNorFlashStaticLib.c | 3 +-
> OvmfPkg/RiscVVirt/RiscVVirt.dsc.inc | 1 +
> OvmfPkg/RiscVVirt/Sec/Memory.c | 18 +-
> OvmfPkg/RiscVVirt/Sec/Platform.c | 62 ++
> OvmfPkg/RiscVVirt/Sec/SecMain.inf | 1 +
> OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c | 25 +-
> UefiCpuPkg/CpuDxeRiscV64/CpuDxe.c | 9 +-
> UefiCpuPkg/CpuDxeRiscV64/CpuDxe.h | 2 +
> UefiCpuPkg/CpuDxeRiscV64/CpuDxeRiscV64.inf | 2 +
> 16 files changed, 776 insertions(+), 31 deletions(-) create mode 100644
> MdePkg/Include/Library/BaseRiscVMmuLib.h
> create mode 100644
> MdePkg/Library/BaseRiscVMmuLib/BaseRiscVMmuLib.c
> create mode 100644
> MdePkg/Library/BaseRiscVMmuLib/BaseRiscVMmuLib.inf
> create mode 100644 MdePkg/Library/BaseRiscVMmuLib/RiscVMmuCore.S
>
> --
> 2.25.1
next prev parent reply other threads:[~2023-04-18 16:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-14 18:58 [PATCH v2 0/6] RISC-V MMU support Tuan Phan
2023-04-14 18:58 ` [PATCH v2 1/6] MdePkg/BaseLib: RISC-V: Support getting satp register value Tuan Phan
2023-04-18 16:02 ` Andrei Warkentin
2023-04-14 18:58 ` [PATCH v2 2/6] MdePkg/Register: RISC-V: Add satp mode bits shift definition Tuan Phan
2023-04-18 16:05 ` Andrei Warkentin
2023-04-14 18:58 ` [PATCH v2 3/6] UefiCpuPkg: RISC-V: Support MMU with SV39/48/57 mode Tuan Phan
2023-05-24 2:10 ` [edk2-devel] " Chao Li
2023-05-24 9:51 ` Ni, Ray
2023-05-24 18:16 ` Tuan Phan
2023-04-14 18:58 ` [PATCH v2 4/6] OvmfPkg/RiscVVirt: VirtNorFlashPlatformLib: Fix wrong flash size Tuan Phan
2023-04-14 18:58 ` [PATCH v2 5/6] OvmfPkg/VirtNorFlashDxe: Not add memory space if it exists Tuan Phan
2023-04-14 18:58 ` [PATCH v2 6/6] OvmfPkg/RiscVVirt: SEC: Add IO memory resource hob for platform devices Tuan Phan
2023-04-18 16:03 ` Andrei Warkentin [this message]
2023-04-19 22:37 ` [edk2-devel] [PATCH v2 0/6] RISC-V MMU support Tuan Phan
2023-05-08 17:19 ` Andrei Warkentin
2023-05-23 21:59 ` Tuan Phan
2023-05-24 4:17 ` Sunil V L
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-list 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=PH8PR11MB685616B383A030FDB7298AE6839D9@PH8PR11MB6856.namprd11.prod.outlook.com \
--to=devel@edk2.groups.io \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox