mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
f489f6c6eb
When enabling SHM bridge, QTEE returns 0 and sets error 4 in result to
qcom_scm for unsupported platforms. Currently, tzmem interprets this as
an unknown error rather than recognizing it as an unsupported platform.
Error log:
[ 0.177224] qcom_scm firmware:scm: error (____ptrval____): Failed to enable the TrustZone memory allocator
[ 0.177244] qcom_scm firmware:scm: probe with driver qcom_scm failed with error 4
To address this, modify the function call qcom_scm_shm_bridge_enable()
to remap result to indicate an unsupported error. This way, tzmem will
correctly identify it as an unsupported platform case instead of
reporting it as an error.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
qcom_qseecom_uefisecapp.c | ||
qcom_qseecom.c | ||
qcom_scm-legacy.c | ||
qcom_scm-smc.c | ||
qcom_scm.c | ||
qcom_scm.h | ||
qcom_tzmem.c | ||
qcom_tzmem.h |