edk2/MdePkg/Library/ArmFfaMemMgmtLib
Kannan Suprayan e146b012f5 MdePkg/ArmFfaMemMgmtLib: Set NS bit support in FFA_FEATURES query
Add FFA_FEATURES_MEM_RETRIEVE_REQ_NS_SUPPORT macro and use it in
FFA_FEATURES call for FFA_MEM_RETRIEVE_REQ to indicate NS bit usage
support.

According to DEN0140 FF-A Memory Management Protocol v1.3 ALP1
specification section 1.10.4.1.1 "Discovery of NS bit usage":

"A v1.1 SP must set Bit[1] in the Input properties parameter."

This bit indicates that the Secure Partition supports interpreting
the NS (Non-Secure) bit in FFA_MEM_RETRIEVE_RESP invocations from
the SPMC (Secure Partition Manager Core). The NS bit is used to
specify the security state of a memory region being retrieved.

The Hafnium SPMC implementation enforces this requirement for FF-A
v1.1+ endpoints. Without this bit set, Hafnium returns FFA_NOT_SUPPORTED:

This change is required for proper operation with Hafnium and other
v1.1+ compliant SPMCs that enforce NS bit negotiation.

Signed-off-by: Kannan Suprayan <kannan.suprayan@arm.com>
2026-04-24 13:26:56 +00:00
..
ArmFfaMemMgmtLib.c MdePkg/ArmFfaMemMgmtLib: Set NS bit support in FFA_FEATURES query 2026-04-24 13:26:56 +00:00
ArmFfaMemMgmtLib.inf MdePkg: ArmFfaMemMgmtLib: Introduce FF-A memory protocol library 2025-06-26 17:38:28 +00:00