OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Anup Patel <apatel@ventanamicro.com>
To: opensbi@lists.infradead.org
Subject: [PATCH 00/16] RPMI and SBI MPXY support for OpenSBI
Date: Tue,  6 Aug 2024 13:03:22 +0530	[thread overview]
Message-ID: <20240806073338.1856901-1-apatel@ventanamicro.com> (raw)

This series adds RPMI and SBI MPXY support for OpenSBI. The RPMI service
groups supported include system reset, system suspend, HSM, CPPC, and
clock. The RPMI clock serivice group is exposed to supervisor software
as an MPXY channel.

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

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

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

Anup Patel (7):
  lib: utils/mailbox: Add generic mailbox library
  lib: utils/mailbox: Add simple FDT based mailbox framework
  lib: utils: Add simple FDT based system suspend driver framework
  lib: utils: Add simple FDT based HSM driver framework
  lib: utils: Add simple FDT based CPPC driver framework
  lib: sbi: Implement SBI MPXY extension
  lib: utils: Add simple FDT based MPXY driver framework

Rahul Pathak (5):
  lib: Increase ROOT_REGION_MAX to accomodate more memregions
  lib/utils: Add RPMI messaging protocol and shared memory transport
    support
  lib/utils: reset: Add RPMI System Reset driver
  lib: sbi: Add SBI Message Proxy (MPXY) framework
  lib: utils/mpxy: Add RPMI client driver for MPXY

Subrahmanya Lingappa (4):
  lib: utils/suspend: Add RPMI system suspend driver
  lib: sbi: Add optional resume address to hart suspend
  lib: utils/hsm: Add RPMI HSM driver
  lib: utils/cppc: Add RPMI CPPC driver

 include/sbi/sbi_ecall_interface.h            |  13 +
 include/sbi/sbi_error.h                      |  14 +-
 include/sbi/sbi_hsm.h                        |   6 +-
 include/sbi/sbi_mpxy.h                       | 181 +++++
 include/sbi/sbi_platform.h                   |  17 +
 include/sbi_utils/cppc/fdt_cppc.h            |  35 +
 include/sbi_utils/hsm/fdt_hsm.h              |  39 ++
 include/sbi_utils/mailbox/fdt_mailbox.h      |  36 +
 include/sbi_utils/mailbox/mailbox.h          | 170 +++++
 include/sbi_utils/mailbox/rpmi_mailbox.h     |  32 +
 include/sbi_utils/mailbox/rpmi_msgprot.h     | 513 ++++++++++++++
 include/sbi_utils/mpxy/fdt_mpxy.h            |  31 +
 include/sbi_utils/suspend/fdt_suspend.h      |  45 ++
 lib/sbi/Kconfig                              |   3 +
 lib/sbi/objects.mk                           |   4 +
 lib/sbi/sbi_domain.c                         |   2 +-
 lib/sbi/sbi_ecall_mpxy.c                     |  68 ++
 lib/sbi/sbi_hsm.c                            |   6 +-
 lib/sbi/sbi_init.c                           |   6 +
 lib/sbi/sbi_mpxy.c                           | 644 ++++++++++++++++++
 lib/utils/Kconfig                            |  10 +
 lib/utils/cppc/Kconfig                       |  19 +
 lib/utils/cppc/fdt_cppc.c                    |  82 +++
 lib/utils/cppc/fdt_cppc_drivers.carray       |   3 +
 lib/utils/cppc/fdt_cppc_rpmi.c               | 287 ++++++++
 lib/utils/cppc/objects.mk                    |  14 +
 lib/utils/hsm/Kconfig                        |  19 +
 lib/utils/hsm/fdt_hsm.c                      |  89 +++
 lib/utils/hsm/fdt_hsm_drivers.carray         |   3 +
 lib/utils/hsm/fdt_hsm_rpmi.c                 | 351 ++++++++++
 lib/utils/hsm/objects.mk                     |  14 +
 lib/utils/mailbox/Kconfig                    |  29 +
 lib/utils/mailbox/fdt_mailbox.c              | 142 ++++
 lib/utils/mailbox/fdt_mailbox_drivers.carray |   3 +
 lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c   | 671 +++++++++++++++++++
 lib/utils/mailbox/mailbox.c                  | 116 ++++
 lib/utils/mailbox/objects.mk                 |  18 +
 lib/utils/mailbox/rpmi_mailbox.c             |  79 +++
 lib/utils/mpxy/Kconfig                       |  19 +
 lib/utils/mpxy/fdt_mpxy.c                    |  50 ++
 lib/utils/mpxy/fdt_mpxy_drivers.carray       |   3 +
 lib/utils/mpxy/fdt_mpxy_rpmi_mbox.c          | 408 +++++++++++
 lib/utils/mpxy/objects.mk                    |  14 +
 lib/utils/reset/Kconfig                      |   5 +
 lib/utils/reset/fdt_reset_rpmi.c             | 141 ++++
 lib/utils/reset/objects.mk                   |   3 +
 lib/utils/suspend/Kconfig                    |  19 +
 lib/utils/suspend/fdt_suspend.c              |  46 ++
 lib/utils/suspend/fdt_suspend_drivers.carray |   3 +
 lib/utils/suspend/fdt_suspend_rpmi.c         | 137 ++++
 lib/utils/suspend/objects.mk                 |  14 +
 platform/generic/allwinner/sun20i-d1.c       |   2 +-
 platform/generic/configs/defconfig           |  12 +
 platform/generic/platform.c                  |  13 +
 54 files changed, 4691 insertions(+), 12 deletions(-)
 create mode 100644 include/sbi/sbi_mpxy.h
 create mode 100644 include/sbi_utils/cppc/fdt_cppc.h
 create mode 100644 include/sbi_utils/hsm/fdt_hsm.h
 create mode 100644 include/sbi_utils/mailbox/fdt_mailbox.h
 create mode 100644 include/sbi_utils/mailbox/mailbox.h
 create mode 100644 include/sbi_utils/mailbox/rpmi_mailbox.h
 create mode 100644 include/sbi_utils/mailbox/rpmi_msgprot.h
 create mode 100644 include/sbi_utils/mpxy/fdt_mpxy.h
 create mode 100644 include/sbi_utils/suspend/fdt_suspend.h
 create mode 100644 lib/sbi/sbi_ecall_mpxy.c
 create mode 100644 lib/sbi/sbi_mpxy.c
 create mode 100644 lib/utils/cppc/Kconfig
 create mode 100644 lib/utils/cppc/fdt_cppc.c
 create mode 100644 lib/utils/cppc/fdt_cppc_drivers.carray
 create mode 100644 lib/utils/cppc/fdt_cppc_rpmi.c
 create mode 100644 lib/utils/cppc/objects.mk
 create mode 100644 lib/utils/hsm/Kconfig
 create mode 100644 lib/utils/hsm/fdt_hsm.c
 create mode 100644 lib/utils/hsm/fdt_hsm_drivers.carray
 create mode 100644 lib/utils/hsm/fdt_hsm_rpmi.c
 create mode 100644 lib/utils/hsm/objects.mk
 create mode 100644 lib/utils/mailbox/Kconfig
 create mode 100644 lib/utils/mailbox/fdt_mailbox.c
 create mode 100644 lib/utils/mailbox/fdt_mailbox_drivers.carray
 create mode 100644 lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c
 create mode 100644 lib/utils/mailbox/mailbox.c
 create mode 100644 lib/utils/mailbox/objects.mk
 create mode 100644 lib/utils/mailbox/rpmi_mailbox.c
 create mode 100644 lib/utils/mpxy/Kconfig
 create mode 100644 lib/utils/mpxy/fdt_mpxy.c
 create mode 100644 lib/utils/mpxy/fdt_mpxy_drivers.carray
 create mode 100644 lib/utils/mpxy/fdt_mpxy_rpmi_mbox.c
 create mode 100644 lib/utils/mpxy/objects.mk
 create mode 100644 lib/utils/reset/fdt_reset_rpmi.c
 create mode 100644 lib/utils/suspend/Kconfig
 create mode 100644 lib/utils/suspend/fdt_suspend.c
 create mode 100644 lib/utils/suspend/fdt_suspend_drivers.carray
 create mode 100644 lib/utils/suspend/fdt_suspend_rpmi.c
 create mode 100644 lib/utils/suspend/objects.mk

-- 
2.34.1



             reply	other threads:[~2024-08-06  7:33 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-06  7:33 Anup Patel [this message]
2024-08-06  7:33 ` [PATCH 01/16] lib: Increase ROOT_REGION_MAX to accomodate more memregions Anup Patel
2024-08-06  7:33 ` [PATCH 02/16] lib: utils/mailbox: Add generic mailbox library Anup Patel
2024-08-06  7:33 ` [PATCH 03/16] lib: utils/mailbox: Add simple FDT based mailbox framework Anup Patel
2024-08-06  7:33 ` [PATCH 04/16] lib/utils: Add RPMI messaging protocol and shared memory transport support Anup Patel
2024-08-16  1:01   ` Bo Gan
2024-08-17  6:54     ` Anup Patel
2024-08-26 22:34   ` Bo Gan
2024-08-06  7:33 ` [PATCH 05/16] lib/utils: reset: Add RPMI System Reset driver Anup Patel
2024-08-06  7:33 ` [PATCH 06/16] lib: utils: Add simple FDT based system suspend driver framework Anup Patel
2024-08-06  7:33 ` [PATCH 07/16] lib: utils/suspend: Add RPMI system suspend driver Anup Patel
2024-08-06  7:33 ` [PATCH 08/16] lib: utils: Add simple FDT based HSM driver framework Anup Patel
2024-08-06  7:33 ` [PATCH 09/16] lib: sbi: Add optional resume address to hart suspend Anup Patel
2024-08-06  7:33 ` [PATCH 10/16] lib: utils/hsm: Add RPMI HSM driver Anup Patel
2024-08-06  7:33 ` [PATCH 11/16] lib: utils: Add simple FDT based CPPC driver framework Anup Patel
2024-08-06  7:33 ` [PATCH 12/16] lib: utils/cppc: Add RPMI CPPC driver Anup Patel
2024-08-06  7:33 ` [PATCH 13/16] lib: sbi: Add SBI Message Proxy (MPXY) framework Anup Patel
2024-10-11 11:26   ` Yu-Chien Peter Lin
2024-10-11 11:51     ` Rahul Pathak
2024-08-06  7:33 ` [PATCH 14/16] lib: sbi: Implement SBI MPXY extension Anup Patel
2024-08-07  9:24   ` Yu-Chien Peter Lin
2024-08-07  9:34     ` Rahul Pathak
2024-08-07  9:46       ` Yu-Chien Peter Lin
2024-08-06  7:33 ` [PATCH 15/16] lib: utils: Add simple FDT based MPXY driver framework Anup Patel
2024-08-06  7:33 ` [PATCH 16/16] lib: utils/mpxy: Add RPMI client driver for MPXY Anup Patel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240806073338.1856901-1-apatel@ventanamicro.com \
    --to=apatel@ventanamicro.com \
    --cc=opensbi@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox