securemsm-kernel: smcinvoke: Add explicit cache flush during callback req from TZ
During Callback request from TZ, smcinvoke in and out buffers need explicit cache operation with legacy smcinvoke. Change-Id: I3eacd69901c1ce117017b2d59a28dfab83b5f3f9
This commit is contained in:
@@ -1350,8 +1350,14 @@ static int invoke_cmd_handler(int cmd, phys_addr_t in_paddr, size_t in_buf_len,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SMCINVOKE_CB_RSP_CMD:
|
case SMCINVOKE_CB_RSP_CMD:
|
||||||
|
if (legacy_smc_call)
|
||||||
|
qtee_shmbridge_inv_shm_buf(out_shm);
|
||||||
ret = qcom_scm_invoke_callback_response(virt_to_phys(out_buf), out_buf_len,
|
ret = qcom_scm_invoke_callback_response(virt_to_phys(out_buf), out_buf_len,
|
||||||
result, response_type, data);
|
result, response_type, data);
|
||||||
|
if (legacy_smc_call) {
|
||||||
|
qtee_shmbridge_inv_shm_buf(in_shm);
|
||||||
|
qtee_shmbridge_inv_shm_buf(out_shm);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user