Skip to contentSkip to conversation

arm64: defconfig: Enable QCOMTEE for Qualcomm SoCs

PATCH Superseded Harshal Dev 2 participants 5 messages Dec 2, 2025 – Dec 5, 2025

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: defconfig: Enable QCOMTEE for Qualcomm SoCs

Enable config for the QCOMTEE driver to facilitate communication with the Qualcomm Trusted Execution Environment (QTEE) on Qualcomm platforms.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index cdb7d69e3b24..57b2b09d0479 100644
@@ -1789,6 +1789,7 @@ CONFIG_FPGA_MGR_ZYNQMP_FPGA=m
 CONFIG_FPGA_MGR_VERSAL_FPGA=m
 CONFIG_TEE=y
 CONFIG_OPTEE=y
+CONFIG_QCOMTEE=y
 CONFIG_MUX_GPIO=m
 CONFIG_MUX_MMIO=y
 CONFIG_SLIMBUS=m

---
base-commit: 47b7b5e32bb7264b51b89186043e1ada4090b558
change-id: 20251202-qcom_qcomtee_defconfig-8dc0fed1411b

Best regards,

Signature · 1 line
Harshal Dev <[email protected]>
#1 lore raw
Quoted 2 lines · Harshal Dev

Enable config for the QCOMTEE driver to facilitate communication with the Qualcomm Trusted Execution Environment (QTEE) on Qualcomm platforms.

Which platforms use it?
Why this cannot be a module?

Quoted 6 lines
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

Best regards,
Krzysztof

#2 lore raw
Quoted 7 lines · Krzysztof Kozlowski
Quoted 2 lines · Harshal Dev

Enable config for the QCOMTEE driver to facilitate communication with the Qualcomm Trusted Execution Environment (QTEE) on Qualcomm platforms.

Which platforms use it?
Why this cannot be a module?

Also, you did not really cc necessary lists. Use get_maintainers.pl on qcom soc code for example.

Best regards,
Krzysztof

#3 lore raw

Hi, Krzysztof

Quoted 11 lines · Krzysztof Kozlowski
Quoted 7 lines · Krzysztof Kozlowski
Quoted 2 lines · Harshal Dev

Enable config for the QCOMTEE driver to facilitate communication with the Qualcomm Trusted Execution Environment (QTEE) on Qualcomm platforms.

Which platforms use it?
Why this cannot be a module?

Also, you did not really cc necessary lists. Use get_maintainers.pl on qcom soc code for example.

Sure, thanks for pointing this out, I will add the folks from Qcom SoC code in the next patch. :)

Regards,
Harshal

Quoted 4 lines

Best regards,
Krzysztof

#4 lore raw
In reply to Krzysztof Kozlowski

Hi Krzysztof,

Quoted 5 lines · Krzysztof Kozlowski
Quoted 2 lines · Harshal Dev

Enable config for the QCOMTEE driver to facilitate communication with the Qualcomm Trusted Execution Environment (QTEE) on Qualcomm platforms.

Which platforms use it?

The Qualcomm Trusted Execution Environment (QTEE) firmware is available on all
Qualcomm platforms. However, certain platforms like db410c (APQ8016), where QTEE
does not support Object-IPC (the communication protocol implemented by QCOMTEE driver)
a graceful -EIO is returned by qcom_scm_qtee_init() which is in-charge of dynamically
registering the QCOMTEE driver as a platform driver during qcom_scm_probe().
More details available here: https://lore.kernel.org/op-tee/20250820-qcom-tee-using-tee-ss-without-mem-obj-v8-0-7066680f138a@oss.qualcomm.com/T/#m1eba97cb921c958034ffe7e2bfb776177ba48eb6

And so, the QCOMTEE driver can be safely enabled on all Qualcomm platforms regardless of QTEE firmware version.

Quoted 1 line

Why this cannot be a module?

Upon a bit of reflection, I have realized that it is completely fine to have this driver built as an in-tree module. I have also validated that this presents no issues during loading/unloading of the driver.

I will send a new patch and update the CONFIG_QCOMTEE flag to m.

Regards,
Harshal

Quoted 9 lines
Quoted 7 lines
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

Best regards,
Krzysztof