Skip to content

Smepmp fixes and improvements

Mayuresh Chitale opensbi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7include: sbi_domain: Fix permission test macrosinclude/sbi/sbi_domain.h+15 -190 replies
2/7lib: sbi: Factor-out Smepmp configuration as separate functionlib/sbi/sbi_hart.c+110 -700 replies
3/7lib: sbi: Don't clear mseccfg.MML bit in sbi_hart_smepmp_configure()lib/sbi/sbi_hart.c+2 -40 replies
4/7lib: sbi: Fix pmp_flags for Smepmp read-only shared regionlib/sbi/sbi_hart.c+1 -10 replies
5/7lib: sbi: Populate M-only Smepmp entries before setting mseccfg.MMLlib/sbi/sbi_hart.c+57 -120 replies
6/7lib: utils/serial: Add shared regions for serial driverslib/utils/serial/cadence-uart.c lib/utils/serial/fdt_serial_htif.c lib/utils/serial/uart8250.c+21 -20 replies
7/7lib: utils/regmap: Mark syscon region as shared read-writelib/utils/regmap/fdt_regmap_syscon.c+7 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/7] Smepmp fixes and improvements

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

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(-)
Signature · 1 line
2.34.1