Hi Carlos,
This repo has changes enabling FF-A in EDK2 https://git.gitlab.arm.com/infra-solutions/reference-design/platsw/edk2/-/co.... This platform uses Hafnium SPMC which runs in S-EL2, but that should be transparent to NWd and S-EL0 components.
The only change FF-A enablement introduced in the MM comm protocol is the way the SWd component (StMM or SmmGW) is notified about new request data serialized into the carveout buffer. For this an SMCCC compatible FF-A direct message/response pair is used. Please find the FF-A ABI description here: https://trusted-services.readthedocs.io/en/integration/services/uefi-smm-ser... This ABI is currently up-stream in u-boot and Trusted Services.
/George
-----Original Message----- From: Carlos Liu via Trusted-services trusted-services@lists.trustedfirmware.org Sent: Tuesday, January 23, 2024 8:07 AM To: trusted-services@lists.trustedfirmware.org Subject: [Trusted-services] Any document to integrate smm-gateway into edk2 UEFI project?
We guess that all things we have to do is replace the following implementation into smm client.
EFI_SMM_VARIABLE_PROTOCOL gSmmVariable = { VariableServiceGetVariable, VariableServiceGetNextVariableName, SmmVariableSetVariable, VariableServiceQueryVariableInfo };
EDKII_SMM_VAR_CHECK_PROTOCOL mSmmVarCheck = { VarCheckRegisterSetVariableCheckHandler, VarCheckVariablePropertySet, VarCheckVariablePropertyGet };
And I correct or something we miss? Do you have to document to integrate this feature into UEFI variable smm service?
Carlos