Skip to content

More RPMI and MPXY updates

Anup Patel opensbi 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 0 repliesNew
  2. v112 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Addressed comments in PATCH1, PATCH2, PATCH3, PATCH7, and PATCH12
- Added new PATCH13 to update MPXY framework and SBI extension based on latest specification.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13lib: utils: Split the FDT MPXY RPMI mailbox client into two partsinclude/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h lib/utils/mpxy/Kconfig lib/utils/mpxy/fdt_mpxy_rpmi_clock.c +3 more+191 -1540 replies
2/13lib: utils: Constantify mpxy_rpmi_mbox_data in mpxy_rpmi_mboxlib/utils/mpxy/fdt_mpxy_rpmi_clock.c lib/utils/mpxy/fdt_mpxy_rpmi_mbox.c+9 -80 replies
3/13lib: utils: Introduce optional MPXY RPMI service group operationsinclude/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h lib/utils/mpxy/fdt_mpxy_rpmi_mbox.c+32 -40 replies
4/13lib: sbi: Fix capability bit assignment in MPXY frameworklib/sbi/sbi_mpxy.c+6 -60 replies
5/13lib: sbi: Improve local variable declarations in MPXY frameworklib/sbi/sbi_mpxy.c+25 -400 replies
6/13lib: utils: Drop notifications from MPXY RPMI mailbox clientinclude/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h lib/utils/mpxy/fdt_mpxy_rpmi_clock.c lib/utils/mpxy/fdt_mpxy_rpmi_mbox.c+0 -140 replies
7/13lib: utils: Improve variable declarations in MPXY RPMI mailbox clientlib/utils/mpxy/fdt_mpxy_rpmi_mbox.c+13 -160 replies
8/13include: sbi_utils: Include mailbox.h in rpmi_mailbox.h headerinclude/sbi_utils/mailbox/rpmi_mailbox.h+1 -00 replies
9/13lib: utils: Implement get_attribute() for the RPMI shared memory mailboxinclude/sbi_utils/mailbox/rpmi_msgprot.h lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c+47 -10 replies
10/13lib: utils: Populate MPXY channel attributes from RPMI channel attributesinclude/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h lib/utils/mpxy/fdt_mpxy_rpmi_mbox.c+65 -390 replies
11/13include: sbi_utils: Update RPMI service group IDs and BASE service groupinclude/sbi_utils/mailbox/rpmi_msgprot.h lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c+7 -130 replies
12/13lib: utils: Add MPXY RPMI mailbox driver for System MSI service groupinclude/sbi_utils/mailbox/rpmi_msgprot.h lib/utils/mpxy/Kconfig lib/utils/mpxy/fdt_mpxy_rpmi_sysmsi.c +2 more+300 -00 replies
13/13lib: sbi: Update MPXY framework and SBI extension as per latest specinclude/sbi/sbi_ecall_interface.h include/sbi/sbi_mpxy.h lib/sbi/sbi_ecall_mpxy.c +1 more+55 -410 replies

Reviews trailers per patch

7 of 13 patches have a Reviewed-by or Acked-by.

PatchSamuel Holland
1/13
2/13R-b
3/13
4/13R-b
5/13R-b
6/13R-b
7/13R-b
8/13R-b
9/13
10/13
11/13R-b
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/13] More RPMI and MPXY updates

This series does the following:
1) MPXY driver and framework cleanups
2) Update RPMI drivers as-per latest specification
3) Add MPXY RPMI driver for System MSI service group

These patches can also be found in the rpmi_updates_v2 branch at:
https://github.com/avpatel/opensbi.git

To test these patches, use the dev-upstream branch of the following repos:
* https://github.com/ventanamicro/qemu.git
* https://github.com/ventanamicro/linux.git

To enable QEMU RPMI emulation (using librpmi) for virt machine, use "virt,rpmi=on,aia=aplic-imsic" as the QEMU machine name.

Changes since v1:
- Addressed comments in PATCH1, PATCH2, PATCH3, PATCH7, and PATCH12
- Added new PATCH13 to update MPXY framework and SBI extension based on latest specification.

Anup Patel (13):
lib: utils: Split the FDT MPXY RPMI mailbox client into two parts
lib: utils: Constantify mpxy_rpmi_mbox_data in mpxy_rpmi_mbox
lib: utils: Introduce optional MPXY RPMI service group operations
lib: sbi: Fix capability bit assignment in MPXY framework
lib: sbi: Improve local variable declarations in MPXY framework
lib: utils: Drop notifications from MPXY RPMI mailbox client
lib: utils: Improve variable declarations in MPXY RPMI mailbox client
include: sbi_utils: Include mailbox.h in rpmi_mailbox.h header
lib: utils: Implement get_attribute() for the RPMI shared memory
mailbox
lib: utils: Populate MPXY channel attributes from RPMI channel
attributes
include: sbi_utils: Update RPMI service group IDs and BASE service
group
lib: utils: Add MPXY RPMI mailbox driver for System MSI service group
lib: sbi: Update MPXY framework and SBI extension as per latest spec

 include/sbi/sbi_ecall_interface.h           |  15 +-
 include/sbi/sbi_mpxy.h                      |  12 +-
 include/sbi_utils/mailbox/rpmi_mailbox.h    |   1 +
 include/sbi_utils/mailbox/rpmi_msgprot.h    | 117 +++++++-
 include/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h |  79 +++++
 lib/sbi/sbi_ecall_mpxy.c                    |   7 +-
 lib/sbi/sbi_mpxy.c                          | 139 +++++----
 lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c  |  39 ++-
 lib/utils/mpxy/Kconfig                      |  16 +-
 lib/utils/mpxy/fdt_mpxy_rpmi_clock.c        |  87 ++++++
 lib/utils/mpxy/fdt_mpxy_rpmi_mbox.c         | 312 +++++++-------------
 lib/utils/mpxy/fdt_mpxy_rpmi_sysmsi.c       | 204 +++++++++++++
 lib/utils/mpxy/objects.mk                   |   7 +-
 platform/generic/configs/defconfig          |   2 +
 14 files changed, 726 insertions(+), 311 deletions(-)
 create mode 100644 include/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h
 create mode 100644 lib/utils/mpxy/fdt_mpxy_rpmi_clock.c
 create mode 100644 lib/utils/mpxy/fdt_mpxy_rpmi_sysmsi.c
Signature · 1 line
2.43.0