[PATCH v1 0/7] Smepmp fixes and improvements

Anup Patel anup at brainfault.org
Sun Sep 24 05:54:09 PDT 2023


On Thu, Sep 7, 2023 at 5:19 PM Mayuresh Chitale
<mchitale at ventanamicro.com> wrote:
>
> This series fixes issues found when testing smepmp on Qemu and other
> Ventana platforms. We need to add PMP rules for those device regions
> (e.g UART, syscon registers) that are accessed in both M and S/U modes.
> Also the sequence of programming the PMP rules needs to be changed such
> that the M-only rules are programmed before enabling the mseccfg.MML bit.
>
> Anup Patel (5):
>   lib: sbi: Factor-out Smepmp configuration as separate function
>   lib: sbi: Don't clear mseccfg.MML bit in sbi_hart_smepmp_configure()
>   lib: sbi: Fix pmp_flags for Smepmp read-only shared region
>   lib: sbi: Populate M-only Smepmp entries before setting mseccfg.MML
>   lib: utils/regmap: Mark syscon region as shared read-write

Applied this series to the riscv/opensbi repo.

Thanks,
Anup

>
> Mayuresh Chitale (2):
>   include: sbi_domain: Fix permission test macros
>   lib: utils/serial: Add shared regions for serial drivers
>
>  include/sbi/sbi_domain.h             |  34 ++--
>  lib/sbi/sbi_hart.c                   | 225 ++++++++++++++++++---------
>  lib/utils/regmap/fdt_regmap_syscon.c |   7 +
>  lib/utils/serial/cadence-uart.c      |   6 +-
>  lib/utils/serial/fdt_serial_htif.c   |  10 ++
>  lib/utils/serial/uart8250.c          |   7 +-
>  6 files changed, 197 insertions(+), 92 deletions(-)
>
> --
> 2.34.1
>



More information about the opensbi mailing list