<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdeModulePkg/Library/ArmFfaLib/ArmFfaCommon.c, branch edk2_master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=edk2_master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=edk2_master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-01-08T12:07:46+00:00</updated>
<entry>
<title>MdePkg,MdeModulePkg/ArmFfaLib: introduce ArmFfaGetPartitionInfo()</title>
<updated>2026-01-08T12:07:46+00:00</updated>
<author>
<name>Levi Yun</name>
<email>yeoreum.yun@arm.com</email>
</author>
<published>2025-10-12T21:02:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=c16f1cc6843b4ec5f246f9d115c37ed12e4bad2c'/>
<id>urn:sha1:c16f1cc6843b4ec5f246f9d115c37ed12e4bad2c</id>
<content type='text'>
Introduce ArmFfaGetPartitionInfo(), which retrieves the first partition
associated with the service GUID. This allows us to remove duplicated
code previously used to obtain the partition ID.

Signed-off-by: Yeoreum Yun &lt;yeoreum.yun@arm.com&gt;
Continuous-integration-options: PatchCheck.ignore-multi-package
</content>
</entry>
<entry>
<title>MdePkg, MdeModulePkg/ArmFfaLib: add funcs to get partition info via regs</title>
<updated>2026-01-08T12:07:46+00:00</updated>
<author>
<name>Levi Yun</name>
<email>yeoreum.yun@arm.com</email>
</author>
<published>2025-08-16T20:40:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=eea64c7fcd7f8d6dddb0173e6c4e43590afe460d'/>
<id>urn:sha1:eea64c7fcd7f8d6dddb0173e6c4e43590afe460d</id>
<content type='text'>
Starting from FF-A v1.2 [0], the FFA_PARTITION_INFO_GET_REGS
interface was added to retrieve partition information
through registers.

This ABI is useful in environments where the Rx/Tx buffer
does not need to be mapped, or where buffer mapping
is not supported for retrieving partition information.

To support this, two new APIs are introduced:
ArmFfaLibPartitionInfoGetRegs() and ArmFfaLibPartitionCountGetRegs().

Link: https://developer.arm.com/documentation/den0077/latest [0]
Continuous-integration-options: PatchCheck.ignore-multi-package
Signed-off-by: Yeoreum Yun &lt;yeoreum.yun@arm.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: ArmFfaLib: Add FFA_YIELD handling</title>
<updated>2025-10-31T07:26:12+00:00</updated>
<author>
<name>kuqin12</name>
<email>42554914+kuqin12@users.noreply.github.com</email>
</author>
<published>2025-09-12T05:02:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=94065db3dc726124b5f607896431e47b36707c90'/>
<id>urn:sha1:94065db3dc726124b5f607896431e47b36707c90</id>
<content type='text'>
If a secure partition on AArch64 platforms would consume extended time
to operate with peripherals, it might elect to yield the control back to
normal world and expect the normal world to callback after hinted period
of time.

This change adds the FFA_YIELD handling from ArmFfaLib to support long
operations from secure partitions. Timeout arguments are ignored because
systems in this context cannot benefit from the timeout period. Treating
FFA_YIELD like FFA_INTERRUPT and expecting the caller to invoke FFA_RUN
is the least disruptive approach while achieving the intended behavior.

This was tested on proprietary hardware platforms and booted to Windows.

Signed-off-by: Kun Qin &lt;kun.qin@microsoft.com&gt;
</content>
</entry>
<entry>
<title>Global: fix ArmFfaLibRun() caller couldn't get ret-args</title>
<updated>2025-09-08T13:14:00+00:00</updated>
<author>
<name>Levi Yun</name>
<email>yeoreum.yun@arm.com</email>
</author>
<published>2025-08-13T09:11:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d8e875e62505e15a48f82ccb49db42be9fda519f'/>
<id>urn:sha1:d8e875e62505e15a48f82ccb49db42be9fda519f</id>
<content type='text'>
When ArmFfaLibDirectMsgReq(2) is preempted, caller of these functions
should resume it works via ArmFfaLibRun() and the secure partition
will be return with FFA_DIRECT_MSG_RESP(2) with return arguments.

However, since ArmFfaLibRun() gets its return in its stack variable,
So caller of ArmFfaLibRun() doesn't get the return arguments from
secure partition.

To resolve this, add output parameter to ArmFfaLibRun() to
receive return arguments.

Continuous-integration-options: PatchCheck.ignore-multi-package
Fixes: 5d1b38dd07c4 ("ArmPkg: Add ArmFfaLib used in Dxe driver")
Reported-by: Mariam Elshakfy &lt;Mariam.Elshakfy@arm.com&gt;
Signed-off-by: Yeoreum Yun &lt;yeoreum.yun@arm.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Library: commonize some duplicate code in ArmFfaLib</title>
<updated>2025-07-14T11:59:38+00:00</updated>
<author>
<name>Levi Yun</name>
<email>yeoreum.yun@arm.com</email>
</author>
<published>2025-06-06T14:16:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=5a2713ec2b369da8c46fd2b41cc044e2d5026300'/>
<id>urn:sha1:5a2713ec2b369da8c46fd2b41cc044e2d5026300</id>
<content type='text'>
Some of code for handling Rx/Tx buffer is duplicate.
This patch commonize some of duplication routine used in
Rx/Tx buffer related functions.

Signed-off-by: Yeoreum Yun &lt;yeoreum.yun@arm.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: ArmFfaLib: Support UUID-GUID conversion interfaces</title>
<updated>2025-06-05T05:01:57+00:00</updated>
<author>
<name>Kun Qin</name>
<email>kuqin@microsoft.com</email>
</author>
<published>2025-04-24T23:52:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=1d0c037b5496824fd51fed413bebdf5098f8c5f0'/>
<id>urn:sha1:1d0c037b5496824fd51fed413bebdf5098f8c5f0</id>
<content type='text'>
This change moves the existing ConvertEfiGuidToUuid function to public
interface to support newly defined functions prototypes.

This change also adds the `ArmConvertUuidToEfiGuid` function
implementation, which is an inverse of the original conversion.

Signed-off-by: Kun Qin &lt;kun.qin@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ArmFfaLib: Replace SMCCC_VERSION check with FF-A version check</title>
<updated>2025-05-01T11:51:16+00:00</updated>
<author>
<name>Mohamed Gamal Morsy</name>
<email>mohamed.morsy@arm.com</email>
</author>
<published>2025-04-25T09:44:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=31fc56c70a4fad8f116c9129812ffeba26d274b7'/>
<id>urn:sha1:31fc56c70a4fad8f116c9129812ffeba26d274b7</id>
<content type='text'>
Patch 8d03c42d38d1 ("ArmPkg: ArmFfaLib: Update FF-A direct message
to support 18 registers") calls SMCCC_VERSION by default during
FF-A initialization even if the SMC conduit is not enabled. This
leads to sending malformed FF-A versions if the SVC conduit is
used instead.

This is observed for example when using an SPMC@EL-1 (e.g. rust-spmc)
which receives the FF-A message via an SVC call and interprets
SMCCC_VERSION as an FF-A Function ID and subsequently fails to
handle it.

Since 18-register support is only support with FF-A &gt;= 1.2, replace
SMCCC_VERSION check with FF-A version check

Signed-off-by: Mohamed Gamal Morsy &lt;mohamed.morsy@arm.com&gt;
</content>
</entry>
<entry>
<title>ArmPkg: ArmFfaLib: Move ArmFfaLib implementation to MdeModulePkg</title>
<updated>2025-04-10T17:52:48+00:00</updated>
<author>
<name>Kun Qin</name>
<email>kuqin@microsoft.com</email>
</author>
<published>2025-04-10T16:32:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=be03ceb1176d71f2adc7634fb0f68491e743e699'/>
<id>urn:sha1:be03ceb1176d71f2adc7634fb0f68491e743e699</id>
<content type='text'>
ArmFfaLib is an implementation of an industry specification-defined
interface with UEFI specific method of handling Rx/Tx buffer sharing
across multiple boot phases, which is more appropriately placed in
MdeModulePkg.

This update relocates the implementation of ArmFfaLib to MdeModulePkg,
thereby supporting the FFA call primitives for all other packages that
depend on this interface.

Continuous-integration-options: PatchCheck.ignore-multi-package
Signed-off-by: Kun Qin &lt;kun.qin@microsoft.com&gt;
</content>
</entry>
</feed>
