public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 00/10] firmware: scmi: add SCMI base protocol support
@ 2023-06-28  0:48 AKASHI Takahiro
  2023-06-28  0:48 ` [PATCH 01/10] firmware: scmi: implement SCMI base protocol AKASHI Takahiro
                   ` (9 more replies)
  0 siblings, 10 replies; 38+ messages in thread
From: AKASHI Takahiro @ 2023-06-28  0:48 UTC (permalink / raw)
  To: trini, sjg; +Cc: etienne.carriere, u-boot, AKASHI Takahiro

This patch series allows users to access SCMI base protocol provided by
SCMI server (platform). It will also be utilized in separate patches
in the future to add sanity/validity checks for other protocols.
See SCMI specification document v3.2 beta[1] for more details about SCMI
base protocol.

What is currently not implemented is
- SCMI_BASE_NOTIFY_ERRORS command and notification callback mechanism

This feature won't be very useful in the current U-Boot environment.

[1] https://developer.arm.com/documentation/den0056/e/?lang=en


Test
====
The patch series was tested on the following platforms:
* sandbox
* qemu-arm64 with OPTEE as SCMI server


Prerequisite:
=============
* This patch series is based on v2023.07-rc and relies on the following
  patch:

[2] https://lists.denx.de/pipermail/u-boot/2023-June/520083.html


Patches:
========
Patch#1-#4: Add SCMI base protocol driver
Patch#5-#7: Add SCMI base protocol device unit test
Patch#8-#10: Add scmi command


Change history:
===============
v1 (Jun, 28, 2023)
* initial release

AKASHI Takahiro (10):
  firmware: scmi: implement SCMI base protocol
  firmware: scmi: framework for installing additional protocols
  firmware: scmi: install base protocol to SCMI agent
  sandbox: remove SCMI base node definition from test.dts
  firmware: scmi: fake base protocol commands on sandbox
  test: dm: simplify SCMI unit test on sandbox
  test: dm: add SCMI base protocol test
  cmd: add scmi command for SCMI firmware
  doc: cmd: add documentation for scmi
  test: dm: add scmi command test

 arch/sandbox/dts/test.dts                  |   4 -
 arch/sandbox/include/asm/scmi_test.h       |   7 +-
 cmd/Kconfig                                |   8 +
 cmd/Makefile                               |   1 +
 cmd/scmi.c                                 | 373 +++++++++++++++
 doc/usage/cmd/scmi.rst                     |  98 ++++
 drivers/firmware/scmi/Makefile             |   1 +
 drivers/firmware/scmi/base.c               | 523 +++++++++++++++++++++
 drivers/firmware/scmi/sandbox-scmi_agent.c | 379 ++++++++++++++-
 drivers/firmware/scmi/scmi_agent-uclass.c  | 195 +++++++-
 include/dm/uclass-id.h                     |   1 +
 include/scmi_agent-uclass.h                |  84 ++++
 include/scmi_agent.h                       |  24 +
 include/scmi_protocols.h                   | 201 +++++++-
 test/dm/scmi.c                             | 233 +++++++--
 15 files changed, 2057 insertions(+), 75 deletions(-)
 create mode 100644 cmd/scmi.c
 create mode 100644 doc/usage/cmd/scmi.rst
 create mode 100644 drivers/firmware/scmi/base.c

-- 
2.41.0


^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2023-07-15 23:44 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-28  0:48 [PATCH 00/10] firmware: scmi: add SCMI base protocol support AKASHI Takahiro
2023-06-28  0:48 ` [PATCH 01/10] firmware: scmi: implement SCMI base protocol AKASHI Takahiro
2023-06-29 19:09   ` Simon Glass
2023-07-03  0:37     ` AKASHI Takahiro
2023-06-28  0:48 ` [PATCH 02/10] firmware: scmi: framework for installing additional protocols AKASHI Takahiro
2023-06-28  0:48 ` [PATCH 03/10] firmware: scmi: install base protocol to SCMI agent AKASHI Takahiro
2023-06-28  0:48 ` [PATCH 04/10] sandbox: remove SCMI base node definition from test.dts AKASHI Takahiro
2023-06-29 19:10   ` Simon Glass
2023-06-28  0:48 ` [PATCH 05/10] firmware: scmi: fake base protocol commands on sandbox AKASHI Takahiro
2023-06-29 19:09   ` Simon Glass
2023-06-28  0:48 ` [PATCH 06/10] test: dm: simplify SCMI unit test " AKASHI Takahiro
2023-06-29 19:09   ` Simon Glass
2023-06-28  0:48 ` [PATCH 07/10] test: dm: add SCMI base protocol test AKASHI Takahiro
2023-06-29 19:09   ` Simon Glass
2023-07-03  0:57     ` AKASHI Takahiro
2023-07-03 13:30       ` Simon Glass
2023-07-04  2:35         ` AKASHI Takahiro
2023-07-07 17:35           ` Simon Glass
2023-07-10  2:04             ` AKASHI Takahiro
2023-07-10 19:45               ` Simon Glass
2023-07-11  1:02                 ` AKASHI Takahiro
     [not found]                   ` <CAPnjgZ3HyYBRU0nQmauC1KBd-krOOJAORmbSRUki=KUHc+=TMw@mail.gmail.com>
2023-07-14  0:41                     ` AKASHI Takahiro
2023-07-15 23:40                       ` Simon Glass
2023-06-28  0:48 ` [PATCH 08/10] cmd: add scmi command for SCMI firmware AKASHI Takahiro
2023-06-29 19:10   ` Simon Glass
2023-07-03  0:55     ` AKASHI Takahiro
2023-07-03 13:30       ` Simon Glass
2023-07-04  1:26         ` AKASHI Takahiro
2023-07-07 17:35           ` Simon Glass
2023-07-10  1:46             ` AKASHI Takahiro
2023-06-28  0:48 ` [PATCH 09/10] doc: cmd: add documentation for scmi AKASHI Takahiro
2023-06-29 19:10   ` Simon Glass
2023-07-03  1:19     ` AKASHI Takahiro
2023-07-03 13:30       ` Simon Glass
2023-07-04  2:05         ` AKASHI Takahiro
2023-07-07 17:35           ` Simon Glass
2023-06-28  0:48 ` [PATCH 10/10] test: dm: add scmi command test AKASHI Takahiro
2023-06-29 19:10   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox