]> Git Repo - linux.git/commitdiff
tee: optee: log message if dynamic shm is enabled
authorVictor Chong <[email protected]>
Wed, 11 Apr 2018 09:19:53 +0000 (10:19 +0100)
committerJens Wiklander <[email protected]>
Tue, 11 Dec 2018 13:38:40 +0000 (14:38 +0100)
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]>
drivers/tee/optee/core.c

index 34dce850067b9e9c379274ef8b3c91da4bb42ef0..e5efce3c08e2eee08c3a3bc6fb330da07df5c4b8 100644 (file)
@@ -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:
This page took 0.066999 seconds and 4 git commands to generate.