[PATCH 0/2] Fix permission checks for S-mode MMIO memregions

Samuel Holland samuel.holland at sifive.com
Fri Nov 21 11:37:50 PST 2025


This series fixes a bug where, if a driver or platform creates a
memregion covering an MMIO range shared with S-mode, the fdt_fixup code
would erroneously consider the device as inaccessible to S-mode and
disable its DT node. While fixing this bug, I noticed that the RPMI
sysmsi driver has the same problem, so that fix is also included.


Samuel Holland (2):
  lib: sbi_domain: Allow MMIO access to non-MMIO ranges
  lib: utils: Use SBI_DOMAIN_MMIO to check MMIO device permissions

 lib/sbi/sbi_domain.c                  | 6 +++++-
 lib/utils/fdt/fdt_fixup.c             | 2 +-
 lib/utils/mpxy/fdt_mpxy_rpmi_sysmsi.c | 3 ++-
 3 files changed, 8 insertions(+), 3 deletions(-)

-- 
2.47.2

base-commit: fade4399d2a47a3ff9c5ecd5dd4c3cba7a4eace7
branch: up/memregion-mmio



More information about the opensbi mailing list