Skip to content

xen/arm: ffa: Improvements and fixes

Bertrand Marquis xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 12 repliesIn review
  2. v210 patches 24 repliesSuperseded
  3. v110 patches 18 repliesSuperseded

Changes in v3 from the cover letter

- add some comments in code
- add some R-b from Jens
- handle comments from Jens (details in each patch)
- rebase on top of latest staging

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10xen/arm: ffa: Rework firmware discoveryxen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_rxtx.c+26 -191 reply
2/10xen/arm: ffa: Rework feature discoveryxen/arch/arm/tee/ffa.c+34 -231 reply
3/10xen/arm: ffa: Fix version negotiationxen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_private.h+43 -130 replies
4/10xen/arm: ffa: Fine granular call supportxen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_notif.c xen/arch/arm/tee/ffa_partinfo.c +3 more+103 -164 replies
5/10xen/arm: ffa: Rework partition info getxen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_partinfo.c xen/arch/arm/tee/ffa_private.h+118 -840 replies
6/10xen/arm: ffa: Use bit 15 convention for SPsxen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_partinfo.c xen/arch/arm/tee/ffa_private.h +1 more+74 -181 reply
7/10xen/arm: ffa: Transmit RXTX buffers to the SPMCxen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_partinfo.c xen/arch/arm/tee/ffa_private.h +2 more+170 -663 replies
8/10xen/arm: ffa: move message function into ffa_msg.cxen/arch/arm/tee/Makefile xen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_msg.c +1 more+84 -680 replies
9/10xen/arm: ffa: Remove per VM notif_enabledxen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_notif.c xen/arch/arm/tee/ffa_private.h+8 -251 reply
10/10xen/arm: ffa: Add indirect message supportxen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_msg.c xen/arch/arm/tee/ffa_private.h+56 -01 reply

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchJens Wiklander
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

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

Read the v3 thread

Cover letter [PATCH v3 00/10] xen/arm: ffa: Improvements and fixes

This serie contains various patches to rework how firmware discovery and feature detection is done and allow to have a more fine granular filtering of the calls we do or not to the firmware.

There is also a patch introducing the use of the "bit 15" convention from the FF-A specification to distinguish between secure and non-secure identifiers as Xen VM IDs cannot have bit 15 set.

Finally we introduce support for indirect messages and for that we transmit the RXTX buffers to the SPMC and we put the message related functions into their own source file.

Changes in v3:
- add some comments in code
- add some R-b from Jens
- handle comments from Jens (details in each patch)
- rebase on top of latest staging

Changes in v2:
- do not activate FF-A if firmware does not support it
- various clean up and small fixes explained in each patch
- rebase on top of latest staging

Bertrand Marquis (10):
xen/arm: ffa: Rework firmware discovery xen/arm: ffa: Rework feature discovery xen/arm: ffa: Fix version negotiation xen/arm: ffa: Fine granular call support xen/arm: ffa: Rework partition info get xen/arm: ffa: Use bit 15 convention for SPs xen/arm: ffa: Transmit RXTX buffers to the SPMC xen/arm: ffa: move message function into ffa_msg.c xen/arm: ffa: Remove per VM notif_enabled xen/arm: ffa: Add indirect message support

 xen/arch/arm/tee/Makefile       |   1 +
 xen/arch/arm/tee/ffa.c          | 251 +++++++++++++++-----------------
 xen/arch/arm/tee/ffa_msg.c      | 130 +++++++++++++++++
 xen/arch/arm/tee/ffa_notif.c    |  21 +--
 xen/arch/arm/tee/ffa_partinfo.c | 234 ++++++++++++++++++++---------
 xen/arch/arm/tee/ffa_private.h  |  79 ++++++++--
 xen/arch/arm/tee/ffa_rxtx.c     | 169 +++++++++++++++++----
 xen/arch/arm/tee/ffa_shm.c      |  39 +++--
 8 files changed, 654 insertions(+), 270 deletions(-)
 create mode 100644 xen/arch/arm/tee/ffa_msg.c
Signature · 1 line
2.47.0