]> Gentwo Git Trees - linux/.git/commit
firmware: arm_ffa: Add support for IMPDEF value in the memory access descriptor
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 23 Sep 2025 15:09:27 +0000 (16:09 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 13 Oct 2025 09:34:46 +0000 (10:34 +0100)
commit11fb1a82aefa6f7fea6ac82334edb5639b9927df
treef101fd9f272ad21fb04e9c87a503daa73cdd14ba
parent3a8660878839faadb4f1a6dd72c3179c1df56787
firmware: arm_ffa: Add support for IMPDEF value in the memory access descriptor

FF-A v1.2 introduced 16 byte IMPLEMENTATION DEFINED value in the endpoint
memory access descriptor to allow any sender could to specify an its any
custom value for each receiver. Also this value must be specified by the
receiver when retrieving the memory region. The sender must ensure it
informs the receiver of this value via an IMPLEMENTATION DEFINED mechanism
such as a partition message.

So the FF-A driver can use the message interfaces to communicate the value
and set the same in the ffa_mem_region_attributes structures when using
the memory interfaces.

The driver ensure that the size of the endpoint memory access descriptors
is set correctly based on the FF-A version.

Fixes: 9fac08d9d985 ("firmware: arm_ffa: Upgrade FF-A version to v1.2 in the driver")
Reported-by: Lixiang Mao <liximao@qti.qualcomm.com>
Tested-by: Lixiang Mao <liximao@qti.qualcomm.com>
Message-Id: <20250923150927.1218364-1-sudeep.holla@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c
include/linux/arm_ffa.h