The secure processor does not have the capability to vote
for the DFAB clock. The vote for DFAB clock in HLOS ensures
that the secure processor does not freeze.
CRs-fixed: 335852
Change-Id: I8c003299c30efce2e391b8da168f691e850ce763
Signed-off-by: Ramesh Masavarapu <rameshm@codeaurora.org>
In a scenario where the client application crashes, tzapps is left
running on the secure domain. When a client application crashes,
the tzapp (loaded during open) needs to be unloaded to clean off
the tzapps state machine.
Change-Id: If0a14667c5d49e066bd777c2b1389915595f32aa
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Allow client to send information to replace a specific field of
the cmd buffer with the physical address. This is done via a new
IOCTL, TZCOM_IOCTL_SEND_CMD_FD_REQ, which is used to import the
ion fd handle. This IOCTL takes in a new send_cmd_fd_op_req
structure that has the same format as send-cmd_op_req with a
new field added: an array of ion handles (ifd_data.fd) and
cmd_buf_offset.
The client sends in an array of ion fd handle along with the
offset to the command buffer field.
This new IOCTL allows a client to send information regarding
which field(s) (at cmd_buf_offset) in the cmd_buf to replace.
These field(s) are replaced with the physical addr of the
buffer addressed by the respective ifd_data.fd handle.
Change-Id: If210013d46e24776fe6f5c6aa257505b3b1e6e00
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Add a new IOCTL call to the driver to properly
abort all threads blocked on wait queues. Updated
release call for proper cleanup.
CRs-fixed: 303637, 304152
Signed-off-by: Sachin Shah <sachins@codeaurora.org>
Use safe list iterator where needed, check return
value for scm_call and add condition check for
different input buffer lengths.
Signed-off-by: Sachin Shah <sachins@codeaurora.org>
Response buffer is always an offset in input shared buffer.
Can't rely on the sb_in_rsp_addr as that value is not filled
from TZ side. This also makes it consitent with the response
buffer calculation in tzcom_send_cmd().
Signed-off-by: Sachin Shah <sachins@codeaurora.org>
- Zero out SB input buffer after a request is
successfully fulfilled to meet security
requirements.
- Remove redundant check for response length.
Signed-off-by: Sachin Shah <sachins@codeaurora.org>