aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Chong <[email protected]>2018-04-11 10:19:53 +0100
committerJens Wiklander <[email protected]>2018-12-11 14:38:40 +0100
commit3c15ddb97c77f34ba009910becd5921f169770a2 (patch)
treea973355e4fcfcc8dc883ab1eceadf561afa4e72e
parent40e020c129cfc991e8ab4736d2665351ffd1468d (diff)
tee: optee: log message if dynamic shm is enabled
When dynamic shared memory support is enabled in the OP-TEE Trusted OS, it doesn't mean that the driver supports it, which can confuse users during debugging. Log a message when dynamic shared memory is enabled in the driver, to let users know for sure. Suggested-by: Jerome Forissier <[email protected]> Signed-off-by: Victor Chong <[email protected]> Reviewed-by: Jerome Forissier <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
-rw-r--r--drivers/tee/optee/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index 34dce850067b..e5efce3c08e2 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -631,6 +631,9 @@ static struct optee *optee_probe(struct device_node *np)
optee_enable_shm_cache(optee);
+ if (optee->sec_caps & OPTEE_SMC_SEC_CAP_DYNAMIC_SHM)
+ pr_info("dynamic shared memory is enabled\n");
+
pr_info("initialized driver\n");
return optee;
err: