]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: arm_ffa: Fetch the Rx/Tx buffer size using ffa_features()
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 20 Aug 2024 14:28:00 +0000 (15:28 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 20 Aug 2024 14:40:45 +0000 (15:40 +0100)
commit61824feae5c07987f70519b1235e50baa138b3c2
treee62a2a222d9f2714ffba72d9f2f14774074e36a3
parenteaca7ef8f31a9040021683d381ddb83eb6fd7774
firmware: arm_ffa: Fetch the Rx/Tx buffer size using ffa_features()

An endpoint can discover the minimum size, maximum size and alignment
boundary for the Rx/Tx buffers by passing the function ID of the
FFA_RXTX_MAP ABI as input in the FFA_FEATURES interface. The maximum
size is an optional field and a value of 0 means that the partition
manager or the hypervisor does not enforce a maximum size.

Use the discovery mechanism and remove the hardcoded 4kB buffer size.
If the discovery fails, it still defaults to 4kB.

Message-Id: <20240820-ffa_v1-2-v2-7-18c0c5f3c65e@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c