ArmPkg, MdePkg: drop SPM_MM support from edk2#12308
ArmPkg, MdePkg: drop SPM_MM support from edk2#12308LeviYeoReum wants to merge 5 commits intotianocore:masterfrom
Conversation
Since TF-A v2.14, SPM_MM has been deprecated ([0], [1]). Therefore, drop SPM_MM support in edk2. Link: https://lists.trustedfirmware.org/archives/list/tf-a@lists.trustedfirmware.org/thread/Z6GAD7OGKNDPNKECJ63HQZ4XEYUJXTNM/ [0] Link: https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/about/release-information.rst [1] Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Since TF-A v2.14, SPM_MM has been deprecated ([0], [1]). Therefore, drop SPM_MM support in edk2. Link: https://lists.trustedfirmware.org/archives/list/tf-a@lists.trustedfirmware.org/thread/Z6GAD7OGKNDPNKECJ63HQZ4XEYUJXTNM/ [0] Link: https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/about/release-information.rst [1] Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Since TF-A v2.14, SPM_MM has been deprecated ([0], [1]). Therefore, drop SPM_MM support in edk2. Link: https://lists.trustedfirmware.org/archives/list/tf-a@lists.trustedfirmware.org/thread/Z6GAD7OGKNDPNKECJ63HQZ4XEYUJXTNM/ [0] Link: https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/about/release-information.rst [1] Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Since TF-A v2.14, SPM_MM has been deprecated ([0], [1]). Therefore, remove ArmMmSvc.h header file used for SPM_MM support in edk2. Link: https://lists.trustedfirmware.org/archives/list/tf-a@lists.trustedfirmware.org/thread/Z6GAD7OGKNDPNKECJ63HQZ4XEYUJXTNM/ [0] Link: https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/about/release-information.rst [1] Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Since TF-A v2.14, SPM_MM has been deprecated ([0], [1]). Therefore, remove Management Mode (MM) relevant definitions from ArmStdSmc.h which were defined for SPM_MM support in edk2. Link: https://lists.trustedfirmware.org/archives/list/tf-a@lists.trustedfirmware.org/thread/Z6GAD7OGKNDPNKECJ63HQZ4XEYUJXTNM/ [0] Link: https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/about/release-information.rst [1] Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
|
@apalos fyi |
|
Thanks @ardbiesheuvel. The Arm SP that plans to replace this is also missing Linux kernel patches to enable SetVariable at Runtime which is needed by distros. |
Agreed. I'm fully supportive of deprecating SPM_MM and all new products using FF-A; that is the right direction. But there are recently shipped platforms using SPM_MM and we need to be able to service them for years to come. If the support is stripped in edk2, we cannot do that. I'll note that your first link also indicates long term support for SPM_MM:
In edk2, the long term support branch is master, for better or worse. I would propose creating a similar plan for supporting SPM_MM in edk2's mainline for a number of years, but marking it as deprecated (or at least documenting) and eventually drop the support. |
AFAIK, RPMB via OP-TEE doesn't use the SPM_MM but use FF-A direct message.
Also, There is no SPM_MM interface relavant specificaiton but it was TF-A's interface definition So, If TF-A determines to deprecate it, It should deprecate otherwise, I'm afraid of adding a service or platform to using SPM_MM based. Additionally, in case of linux kernel side, user of MM_COMM is only Stmm which runs with optee RPBM AFAIK.
That is what i afraid of...
@samimujawar, If recently some of platform is shipped using SPM_MM I think we couldn't drop the SPM_MM support rihgt now, But we need to think as @os-d suggested. What do you think? |
Agree with @os-d and @apalos. At present, TFA releases are owned by silicon vendors, whereas OEMs can build their own UEFI. Introducing a breaking change as such would effectively block OEMs from updating their edk2 base until a corresponding TFA update is available. While avoiding updates may reduce short‑term effort, it risks undermining the long‑term health of the ecosystem. |
IIRC it the FF-A messaging in only limited to the RPMB read/write ops. SPM is still needed to communicate with StMM. Unless something changed recently and I missed it.
As I said I am fine deprectating, but only when we have an SP that's on par with the current solution for UEFI
|
Just for confirmation. [...] |
It's not a TA, it looks like one. The stmm_sp.c is responsible for launching it and it's completely sandboxed from the rest of the system (including TAs)
No. Looking at the optee history your commit (OP-TEE/optee_os@aa6d7fc) changed the MM parts I was worried about. With this change in edk2 though you also need in edk2-platforms
|
Description
Since TF-A v2.14, SPM_MM has been deprecated ([0], [1]).
Therefore, drop SPM_MM support in edk2.
Link: https://lists.trustedfirmware.org/archives/list/tf-a@lists.trustedfirmware.org/thread/Z6GAD7OGKNDPNKECJ63HQZ4XEYUJXTNM/ [0]
Link: https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/about/release-information.rst [1]
How This Was Tested
Booting test in FVP
Integration Instructions
N/A