]> git.itanic.dy.fi Git - linux-stable/commit
firmware: arm_ffa: Use FFA_FEATURES to detect if native versions are supported
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 7 Sep 2022 14:52:35 +0000 (15:52 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 8 Sep 2022 10:30:34 +0000 (11:30 +0100)
commite57fba9105fac60d81a7ff2ce70d347d7ae95943
tree1005d5a07d0697d9f929ce7c97f80767f0567edb
parentcb1f4c2c15bb708b1ec8c70926c43ab6b6c93ecb
firmware: arm_ffa: Use FFA_FEATURES to detect if native versions are supported

Currently, the ffa_dev->mode_32bit is use to detect if the native 64-bit
or 32-bit versions of FF-A ABI needs to be used. However for the FF-A
memory ABIs, it is not dependent on the ffa_device(i.e. the partition)
itself, but the partition manager(SPM).

So, the FFA_FEATURES can be use to detect if the native 64bit ABIs are
supported or not and appropriate calls can be made based on that.

Use FFA_FEATURES to detect if native versions of MEM_LEND or MEM_SHARE
are implemented and make of the same to use native memory ABIs later on.

Link: https://lore.kernel.org/r/20220907145240.1683088-6-sudeep.holla@arm.com
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c