Skip to content

Commit b64d471

Browse files
committed
tee: optee: making OPTEE_SHM_NUM_PRIV_PAGES configurable via Kconfig
This change adds KCONFIG option to set number of pages out of whole shared memory to be used for OP-TEE driver private data structures. Signed-off-by: Sahil Malhotra <[email protected]>
1 parent f5d5641 commit b64d471

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

drivers/tee/optee/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ config OPTEE_BENCHMARK
1212
help
1313
This enables benchmarking feature in the OP-TEE Trusted
1414
Execution Environment (TEE) driver.
15+
16+
config OPTEE_SHM_NUM_PRIV_PAGES
17+
int "Private Shared Memory Pages"
18+
default 1
19+
depends on OPTEE
20+
help
21+
This sets the number of private shared memory pages to be
22+
used by OP-TEE TEE driver.

drivers/tee/optee/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
#define DRIVER_NAME "optee"
3535

36-
#define OPTEE_SHM_NUM_PRIV_PAGES 1
36+
#define OPTEE_SHM_NUM_PRIV_PAGES CONFIG_OPTEE_SHM_NUM_PRIV_PAGES
3737

3838
/**
3939
* optee_from_msg_param() - convert from OPTEE_MSG parameters to

0 commit comments

Comments
 (0)