[PATCH v2 0/2] Improve PMP feature detection

Anup Patel Anup.Patel at wdc.com
Fri Oct 23 05:53:51 EDT 2020



> -----Original Message-----
> From: Atish Patra <atish.patra at wdc.com>
> Sent: 21 October 2020 06:28
> To: opensbi at lists.infradead.org
> Cc: Atish Patra <Atish.Patra at wdc.com>; Anup Patel <Anup.Patel at wdc.com>
> Subject: [PATCH v2 0/2] Improve PMP feature detection
> 
> This series improves the PMP detection by detecting the minimum
> granularity and address size supported by the platform. It prevents any pmp
> region writes that are not supported by platform leading to more robust and
> secure implementation.
> 
> Tested generic platform for following boards:
> 1. Qemu
> 2. HiFive Unleashed
> 3. OmniXtend

Make sure you test on QEMU RV32 as well.

Regards,
Anup

> 
> Changes from v1->v2:
> 1. Implement pmp address size computation.
> 2. Improve pmp granularity detection mechanism.
> 
> Atish Patra (2):
> lib: sbi: Check pmp range granularity and size before setting pmp
> lib: sbi: Improve boot time print with additional PMP information
> 
> include/sbi/sbi_hart.h |  2 ++
> lib/sbi/sbi_hart.c     | 56 ++++++++++++++++++++++++++++++++++++++----
> lib/sbi/sbi_init.c     | 15 ++++++-----
> 3 files changed, 62 insertions(+), 11 deletions(-)
> 
> --
> 2.25.1




More information about the opensbi mailing list