]> git.itanic.dy.fi Git - linux-stable/commit
firmware: arm_ffa: Update memory descriptor to support v1.1 format
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 5 Oct 2023 14:45:09 +0000 (15:45 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Sun, 8 Oct 2023 20:18:48 +0000 (21:18 +0100)
commit113580530ee7dc61e668b641d657920734533b9f
tree42155760ae2ec11a6cc119835bb88747a2e9fdb2
parente4607b84c6819bb59c48063ed41eee1fc7f736a0
firmware: arm_ffa: Update memory descriptor to support v1.1 format

Update memory transaction descriptor structure to accommodate couple of
new entries in v1.1 which were previously marked reserved and MBZ(must
be zero).

It also removes the flexible array member ep_mem_access in the memory
transaction descriptor structure as it need not be at fixed offset.
Also update ffa_mem_desc_offset() accessor to handle both old and new
formats of memory transaction descriptors.

The updated ffa_mem_region structure aligns with new format in v1.1 and
hence the driver/user must take care not to use members beyond and
including ep_mem_offset when using the old format.

Link: https://lore.kernel.org/r/20231005-ffa_v1-1_notif-v4-16-cddd3237809c@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c
include/linux/arm_ffa.h