Skip to content

firmware: arm_ffa: Refactoring and initial/minor v1.1 update

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

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 4 repliesApplied
  2. v210 patches 9 repliesSuperseded
  3. v19 patches 18 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/10firmware: arm_ffa: Add pointer to the ffa_dev_ops in struct ffa_devdrivers/firmware/arm_ffa/bus.c drivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+9 -40 replies
2/10tee: optee: Drop ffa_ops in optee_ffa structure using ffa_dev->ops directlydrivers/tee/optee/ffa_abi.c drivers/tee/optee/optee_private.h+5 -110 replies
3/10firmware: arm_ffa: Remove ffa_dev_ops_get()drivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+0 -150 replies
4/10firmware: arm_ffa: Add support for querying FF-A featuresdrivers/firmware/arm_ffa/driver.c+26 -00 replies
5/10firmware: arm_ffa: Use FFA_FEATURES to detect if native versions are supporteddrivers/firmware/arm_ffa/driver.c+16 -60 replies
6/10firmware: arm_ffa: Make memory apis ffa_device independentdrivers/firmware/arm_ffa/driver.c drivers/tee/optee/ffa_abi.c include/linux/arm_ffa.h+5 -90 replies
7/10firmware: arm_ffa: Rename ffa_dev_ops as ffa_opsdrivers/firmware/arm_ffa/bus.c drivers/firmware/arm_ffa/driver.c drivers/tee/optee/ffa_abi.c +1 more+13 -130 replies
8/10firmware: arm_ffa: Add v1.1 get_partition_info supportdrivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+36 -81 reply
9/10firmware: arm_ffa: Set up 32bit execution mode flag using partiion propertydrivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+14 -12 replies
10/10firmware: arm_ffa: Split up ffa_ops into info, message and memory operationsdrivers/firmware/arm_ffa/driver.c drivers/tee/optee/ffa_abi.c include/linux/arm_ffa.h+45 -180 replies

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchJens WiklanderSumit Garg
1/10R-b
2/10R-b R-b
3/10R-b
4/10R-b
5/10R-b
6/10A-b
7/10R-b R-b
8/10R-b
9/10
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] firmware: arm_ffa: Refactoring and initial/minor v1.1 update

Hi All,

This series is just some refactoring in preparation to add FF-A v1.1 support. It doesn't have any memory layout or notification changes supported in v1.1 yet.

Regards,
Sudeep

v2[2]->v3:
- Fixed the logic to set 32bit mode which was wrong.
- Ensured that we advance each partition info size by returned size even if the size is greater than the partition_info structure, we will still just copy the right size.

v1[1]->v2[2]:
- Merged dropping of ffa_ops in optee_ffa structure and using ffa_dev->ops into single patch
- Added separate patch(didn't fit any patch strictly to fit in) to rename ffa_dev_ops as ffa_ops as suggested by Sumit
- Fixed some minor comments, handling size > structure size in partition_info_get and added extra parameter to ffa_features to get both possible output/interface properties.

[1] https://lore.kernel.org/all/20220830100700.344594-1-sudeep.holla(a)arm.com
[2] https://lore.kernel.org/all/20220902124032.788488-1-sudeep.holla(a)arm.com

Sudeep Holla (10):
firmware: arm_ffa: Add pointer to the ffa_dev_ops in struct ffa_dev
tee: optee: Drop ffa_ops in optee_ffa structure using ffa_dev->ops directly
firmware: arm_ffa: Remove ffa_dev_ops_get()
firmware: arm_ffa: Add support for querying FF-A features
firmware: arm_ffa: Use FFA_FEATURES to detect if native versions are supported
firmware: arm_ffa: Make memory apis ffa_device independent
firmware: arm_ffa: Rename ffa_dev_ops as ffa_ops
firmware: arm_ffa: Add v1.1 get_partition_info support
firmware: arm_ffa: Set up 32bit execution mode flag using partiion property
firmware: arm_ffa: Split up ffa_ops into info, message and memory operations

 drivers/firmware/arm_ffa/bus.c    |   4 +-
 drivers/firmware/arm_ffa/driver.c | 131 +++++++++++++++++++++++-------
 drivers/tee/optee/ffa_abi.c       |  46 +++++------
 drivers/tee/optee/optee_private.h |   1 -
 include/linux/arm_ffa.h           |  36 +++++---
 5 files changed, 151 insertions(+), 67 deletions(-)

--
2.37.3