Skip to contentSkip to conversation

arm-bsp: tc: use proper UUID in optee and linux kernel

PATCH Applied Davidson K 2 participants 2 messages Jan 19, 2022

lore
Share & tools
lore

Davidson K

author
#0 lore raw

PATCH 1/1 arm-bsp: tc: use proper UUID in optee and linux kernel

Recently the way of handling Secure Partitions UUID changed in TF-A and that needs corresponding changes in required components. Hence changing them for optee and linux kernel.

---
 .../linux/linux-arm-platforms.inc             |  1 -
 ...-optee-hack-for-UUID-endianess-issue.patch | 58 -------------------
 .../optee-os/tc/0001-Fix-optee-UUID.patch     | 27 +++++++++
 .../optee/optee-os-generic-tc.inc             |  1 +
 4 files changed, 28 insertions(+), 59 deletions(-)
 delete mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.10/tc/0020-drivers-optee-hack-for-UUID-endianess-issue.patch
 create mode 100644 meta-arm-bsp/recipes-security/optee/files/optee-os/tc/0001-Fix-optee-UUID.patch
meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc +0 -1
index 5dadc44..1e09da3 100644
@@ -272,7 +272,6 @@ SRC_URI:append:tc = " \
     file://0017-optee-refactor-driver-with-internal-callbacks.patch \
     file://0018-optee-add-a-FF-A-memory-pool.patch \
     file://0019-optee-add-FF-A-support.patch \
-    file://0020-drivers-optee-hack-for-UUID-endianess-issue.patch \
     file://0021-arm_ffa-add-support-for-FFA-v1.1.patch \
     "
 KERNEL_FEATURES:append:tc = " bsp/arm-platforms/tc.scc"
meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.10/tc/0020-drivers-optee-hack-for-UUID-endianess-issue.patch deleted +0 -58

58 lines not on this page · raw message

meta-arm-bsp/recipes-security/optee/files/optee-os/tc/0001-Fix-optee-UUID.patch new file +27 -0
new file mode 100644
index 0000000..5374c02
@@ -0,0 +1,27 @@
+From 37fd6f3c18015bcad2c099bf9269e72140e55557 Mon Sep 17 00:00:00 2001
+From: Davidson K <[email protected]>
+Date: Wed, 12 Jan 2022 17:14:03 +0530
+Subject: [PATCH] Fix optee UUID
+
+Upstream-Status: Backport [https://github.com/OP-TEE/optee_os/commit/a9a8e483b6ff7f6e40c5ed95310a18e0bd1993c3#diff-2a310f8cc43d961b2efc05ac1619521653ba8977ff5e6dc5bb89754fd60fe954]
+Signed-off-by: Davidson K <[email protected]>
+---
+ core/arch/arm/plat-totalcompute/fdts/optee_sp_manifest.dts | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/core/arch/arm/plat-totalcompute/fdts/optee_sp_manifest.dts b/core/arch/arm/plat-totalcompute/fdts/optee_sp_manifest.dts
+index 04847c4d..3b76fc7d 100644
+--- a/core/arch/arm/plat-totalcompute/fdts/optee_sp_manifest.dts
++++ b/core/arch/arm/plat-totalcompute/fdts/optee_sp_manifest.dts
+@@ -14,7 +14,7 @@
+ 	/* Properties */
+ 	description = "op-tee";
+ 	ffa-version = <0x00010000>; /* 31:16 - Major, 15:0 - Minor */
+-	uuid = <0x486178e0 0xe7f811e3 0xbc5e0002 0xa5d5c51b>;
++	uuid = <0xe0786148 0xe311f8e7 0x02005ebc 0x1bc5d5a5>;
+ 	id = <1>;
+ 	execution-ctx-count = <8>;
+ 	exception-level = <2>; /* S-EL1 */
+-- 
+2.17.1
+
meta-arm-bsp/recipes-security/optee/optee-os-generic-tc.inc +1 -0
index 644af42..5f64f5a 100644
@@ -11,6 +11,7 @@ SRC_URI:append:tc = " \
     file://0001-WIP-Enable-managed-exit.patch \
     file://0003-ffa-Update-function-ID-according-to-FFA-v1.1-spec.patch \
     file://0001-plat-totalcompute-Specify-managed-exit-in-the-partit.patch \
+    file://0001-Fix-optee-UUID.patch \
     "
 
 COMPATIBLE_MACHINE = "(tc?)"
Signature · 1 line
2.34.1
Applied
#1 lore raw
Quoted 3 lines · Davidson K

Recently the way of handling Secure Partitions UUID changed in TF-A and that needs corresponding changes in required components. Hence changing them for optee and linux kernel.

Applied, thanks!

[1/1] arm-bsp: tc: use proper UUID in optee and linux kernel

      commit: 8734d146744ef3b1845889e00a2d213625214bc3

Best regards,

Signature · 1 line
Jon Mason <[email protected]>