SBI_00_05 - OpenSBI RPMI MM Support

About

This project aims to implement and upstream the MM service group based on MPXY SBI extension in OpenSBI.  This project helps the PoC project EDK2_00_02 - StandaloneMmPkg (PoC) and let it use the spec defined SBI interface.

Project Scope and Timelines

The MM service group implementation includes.

  • Leverage the SBI MPXY extension, which carries the RPMI message
  • Put MM inter-doman messaging payload in shared memory
  • Add an MM Service in RPMI with APIs:
    • MM_VERSION
    • MM_COMMUNICATE
    • MM_COMPLETE

Components and Repos.

Based on RPMI PoC

 OpenSBI  : https://github.com/ventanamicro/opensbi/tree/dev-upstream
 Qemu     : https://github.com/ventanamicro/qemu/tree/dev-upstream
 Linux    : https://github.com/ventanamicro/linux/tree/dev-upstream
 edk2     : https://github.com/ventanamicro/edk2/tree/dev-upstream
 edk2-platform : https://github.com/ventanamicro/edk2-platforms/tree/dev-upstream

The latest code for this Project

 OpenSBI  : https://github.com/yli147/opensbi/tree/dev-standalonemm-mpxy-v3

Stakeholders and Partners

Dependencies

Here are the links to the draft specifications for RPMI and MPXY which were shared in the past on the riscv org mailing list for review.
RPMI: https://github.com/riscv-non-isa/riscv-rpmi
MPXY: https://lists.riscv.org/g/tech-prs/message/948

Measure of Success

Code upstream to OpenSBI

RISE Requirements

None,

Status

Dependency

SBI_00_06 - OpenSBI RPMI support  , MPXY/RPMI Specification


Development

ONGOING

URL: NA
Development Timeline1H 2024
Upstreaming

TBD

URL:
Upstream version

ContactsYong Li


Updates

 

Rebased with the latest MPXY & RPMI PoC

https://github.com/yli147/opensbi/tree/dev-standalonemm-mpxy-v3


 

RPXY driver for StandaloneMm, which is based on the latest RPXY and RPMI spec.

https://github.com/ventanamicro/opensbi/pull/1

Need rebase on MPXY implementation once MPXY is ready


 

Pending on https://lf-rise.atlassian.net/wiki/display/HOME/SBI_00_04+-+Domain+Context+Switch+Support 

Once the patch has been upstreamed, will do the code rebase for this OpenSBI RPMI MM Support