Skip to content

firmware: arm_ffa: Framework notification support + other updates and fixes

Sudeep Holla linux-arm-kernel lkml 3 versions – Applied

Status from this message: Applied to sudeep.holla/linux (for-next/ffa/updates), thanks!

Get series with b4
b4 am [email protected] change-id 20241224-ffa_updates-106fd3df93d5

Versions newest first

  1. v3 Latest19 patches 1 replyApplied
  2. v218 patches 7 repliesSuperseded
  3. v15 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Dropped spurious extra blank line in ffa_setup_partitions()
- Fixed issue with Xarray erase in ffa_partitions_cleanup()
- Used kmemdup() instead of kmalloc() + memcpy()
- Extend support to read non-secure notification bitmaps
- Added Viresh's Tested-by tag
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/19firmware: arm_ffa: Replace SCMI by FF-A in the macrodrivers/firmware/arm_ffa/bus.c+3 -30 replies
2/19firmware: arm_ffa: Replace UUID buffer to standard UUID formatdrivers/firmware/arm_ffa/bus.c include/linux/arm_ffa.h+2 -40 replies
3/19firmware: arm_ffa: Align sync_send_receive{,2} function prototypesdrivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+3 -30 replies
4/19firmware: arm_ffa: Fix big-endian support in __ffa_partition_info_get()drivers/firmware/arm_ffa/driver.c+15 -30 replies
5/19firmware: arm_ffa: Fix big-endian support in __ffa_partition_info_regs_get()drivers/firmware/arm_ffa/driver.c+29 -20 replies
6/19firmware: arm_ffa: Refactor addition of partition information into XArraydrivers/firmware/arm_ffa/driver.c+22 -250 replies
7/19firmware: arm_ffa: Handle the presence of host partition in the partition infodrivers/firmware/arm_ffa/driver.c+4 -00 replies
8/19firmware: arm_ffa: Unregister the FF-A devices when cleaning up the partitionsdrivers/firmware/arm_ffa/bus.c drivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+9 -40 replies
9/19firmware: arm_ffa: Helper to check if a partition can receive REQUEST2 messagesinclude/linux/arm_ffa.h+8 -00 replies
10/19firmware: arm_ffa: Add support for passing UUID in FFA_MSG_SEND2drivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+5 -30 replies
11/19firmware: arm_ffa: Upgrade FF-A version to v1.2 in the driverdrivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+2 -10 replies
12/19firmware: arm_ffa: Reject higher major version as incompatibledrivers/firmware/arm_ffa/driver.c+8 -00 replies
13/19firmware: arm_ffa: Remove unnecessary declaration of ffa_partitions_cleanup()drivers/firmware/arm_ffa/driver.c+16 -170 replies
14/19firmware: arm_ffa: Refactoring to prepare for framework notification supportdrivers/firmware/arm_ffa/driver.c+34 -230 replies
15/19firmware: arm_ffa: Stash ffa_device instead of notify_type in notifier_cb_infodrivers/firmware/arm_ffa/driver.c+7 -80 replies
16/19firmware: arm_ffa: Add support for {un,}registration of framework notificationsdrivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+97 -210 replies
17/19firmware: arm_ffa: Add support for handling framework notificationsdrivers/firmware/arm_ffa/driver.c+43 -70 replies
18/19firmware: arm_ffa: Allow multiple UUIDs per partition to register SRI callbackdrivers/firmware/arm_ffa/driver.c+117 -420 replies
19/19firmware: arm_ffa: Handle ffa_notification_get correctly at virtual FF-A instancedrivers/firmware/arm_ffa/driver.c+24 -70 replies

Reviews trailers per patch

None of the 19 patches has a Reviewed-by or Acked-by.

PatchViresh Kumar
1/19T-b
2/19T-b
3/19T-b
4/19T-b
5/19T-b
6/19
7/19T-b
8/19T-b
9/19T-b
10/19T-b
11/19T-b
12/19T-b
13/19T-b
14/19T-b
15/19T-b
16/19T-b
17/19T-b
18/19T-b
19/19

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/19] firmware: arm_ffa: Framework notification support + other updates and fixes

This bundle of changes mainly have FF-A framework notification support along with other minor updates and fixes.

It adds support to allow multiple UUIDs per partition to register individual SRI callback, to handle Rx buffer full framework notification in particular and general framework/interface to extend in the future.

It also adds support for passing UUID in FFA_MSG_SEND2 which improves the multiple UUID/services per partition support in the driver and an helper to check if a partition can receive REQUEST2 messages or not.

It also improves cleaning up the partitions by adding unregistration of the devices as well as handles the presence of host partition in the partition info.

It also contain fixes big-endian support in couple of functions:
__ffa_partition_info_regs_get() and __ffa_partition_info_get(). Big-endian support is still not complete. Only these changes can be verified at the moment without any additional application or testing support changes.

Regarding the FF-A versions, it upgrades the driver version to v1.2 and rejects any higher major version than the driver version as incompatible.

It also fixes the mis-alignment with sync_send_receive{,2} function prototypes.

It replaces UUID buffer to standard UUID format in the ffa_partition_info structure and fixes a typo in some FF-A bus macros.

---
Changes in v3:
- Dropped spurious extra blank line in ffa_setup_partitions()
- Fixed issue with Xarray erase in ffa_partitions_cleanup()
- Used kmemdup() instead of kmalloc() + memcpy()
- Extend support to read non-secure notification bitmaps
- Added Viresh's Tested-by tag
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- No changes in the patches sent as v1 itself.
- Addition of framework notification support and other updates as listed above
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Sudeep Holla (18):
firmware: arm_ffa: Replace SCMI by FF-A in the macro
firmware: arm_ffa: Replace UUID buffer to standard UUID format
firmware: arm_ffa: Align sync_send_receive{,2} function prototypes
firmware: arm_ffa: Fix big-endian support in __ffa_partition_info_get()
firmware: arm_ffa: Fix big-endian support in __ffa_partition_info_regs_get()
firmware: arm_ffa: Handle the presence of host partition in the partition info
firmware: arm_ffa: Unregister the FF-A devices when cleaning up the partitions
firmware: arm_ffa: Helper to check if a partition can receive REQUEST2 messages
firmware: arm_ffa: Add support for passing UUID in FFA_MSG_SEND2
firmware: arm_ffa: Upgrade FF-A version to v1.2 in the driver
firmware: arm_ffa: Reject higher major version as incompatible
firmware: arm_ffa: Remove unnecessary declaration of ffa_partitions_cleanup()
firmware: arm_ffa: Refactoring to prepare for framework notification support
firmware: arm_ffa: Stash ffa_device instead of notify_type in notifier_cb_info
firmware: arm_ffa: Add support for {un,}registration of framework notifications
firmware: arm_ffa: Add support for handling framework notifications
firmware: arm_ffa: Allow multiple UUIDs per partition to register SRI callback
firmware: arm_ffa: Handle ffa_notification_get correctly at virtual FF-A instance

Viresh Kumar (1):
firmware: arm_ffa: Refactor addition of partition information into XArray

 drivers/firmware/arm_ffa/bus.c    |  13 +-
 drivers/firmware/arm_ffa/driver.c | 526 ++++++++++++++++++++++++++++----------
 include/linux/arm_ffa.h           |  22 +-
 3 files changed, 418 insertions(+), 143 deletions(-)

---
base-commit: 0ad2507d5d93f39619fc42372c347d6006b64319
change-id: 20241224-ffa_updates-106fd3df93d5

Best regards,

Signature · 2 lines
Regards,
Sudeep