]> git.itanic.dy.fi Git - linux-stable/commit
firmware: arm_ffa: Don't set the memory region attributes for MEM_LEND
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 19 Sep 2023 17:41:01 +0000 (18:41 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 25 Sep 2023 18:43:49 +0000 (19:43 +0100)
commit9dda1178479aa0a73fe0eaabfe2d9a1c603cfeed
treeb9afb65ca77bc2582652c517f7ecfc18b9f5726b
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
firmware: arm_ffa: Don't set the memory region attributes for MEM_LEND

As per the FF-A specification: section "Usage of other memory region
attributes", in a transaction to donate memory or lend memory to a single
borrower, if the receiver is a PE or Proxy endpoint, the owner must not
specify the attributes and the relayer will return INVALID_PARAMETERS
if the attributes are set.

Let us not set the memory region attributes for MEM_LEND.

Fixes: 82a8daaecfd9 ("firmware: arm_ffa: Add support for MEM_LEND")
Reported-by: Joao Alves <joao.alves@arm.com>
Reported-by: Olivier Deprez <olivier.deprez@arm.com>
Link: https://lore.kernel.org/r/20230919-ffa_v1-1_notif-v2-13-6f3a3ca3923c@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c