From 7293d203cfd074eea72b22910d06eb98e45daffd Mon Sep 17 00:00:00 2001 From: Zhen Kong Date: Thu, 29 Jun 2017 15:22:14 -0700 Subject: qseecom: update on smcinvoke-aware listeners operations With the introduction of MinkIPC for TA-to-TA communication, if a request for blocking a TA (on a busy listener) is received by qseecom, it may not be originated from the last TA to which a command (or unblock response) was sent to. So, make change to use a session_id instead of app_id to uniquely identify this blocked request and a new cmd ID to support this smcinvoke-aware listener operation. Change-Id: I362e9acfa52c055b5759c210bb881da40f4e0776 Signed-off-by: Zhen Kong --- include/soc/qcom/qseecomi.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/soc/qcom/qseecomi.h b/include/soc/qcom/qseecomi.h index 6497d962e347..e199978302bf 100644 --- a/include/soc/qcom/qseecomi.h +++ b/include/soc/qcom/qseecomi.h @@ -336,7 +336,7 @@ __packed struct qseecom_client_send_fsm_key_req { __packed struct qseecom_continue_blocked_request_ireq { uint32_t qsee_cmd_id; - uint32_t app_id; + uint32_t app_or_session_id; /*legacy: app_id; smcinvoke: session_id*/ }; @@ -681,6 +681,9 @@ __packed struct qseecom_continue_blocked_request_ireq { #define TZ_OS_CONTINUE_BLOCKED_REQUEST_ID \ TZ_SYSCALL_CREATE_SMC_ID(TZ_OWNER_QSEE_OS, TZ_SVC_LISTENER, 0x04) +#define TZ_OS_CONTINUE_BLOCKED_REQUEST_SMCINVOKE_ID \ + TZ_SYSCALL_CREATE_SMC_ID(TZ_OWNER_QSEE_OS, TZ_SVC_LISTENER, 0x07) + #define TZ_OS_CONTINUE_BLOCKED_REQUEST_ID_PARAM_ID \ TZ_SYSCALL_CREATE_PARAM_ID_1(TZ_SYSCALL_PARAM_TYPE_VAL) -- cgit v1.2.3