disp: msm: sde: handle all error cases during sui transitions

During secure-ui, the SMMU, MISR and VBIF states
are altered based on the enable/disable of secure-ui
which is followed by the scm_call. Failure in any of
the steps would lead the system to an unstable state.
Address all the failures and revert back all steps
to get the system back in original state to avoid
any issues.

Change-Id: I736c6cf018c5992ec33806c00e58bf56b818b8a7
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran
2019-10-11 18:15:17 -07:00
committed by Gerrit - the friendly Code Review server
父節點 ca2fbfd531
當前提交 e4a7d473f9
共有 3 個文件被更改,包括 91 次插入44 次删除

查看文件

@@ -189,6 +189,7 @@ enum frame_trigger_mode_type {
* @state: current state of smmu context banks
* @prev_state: previous state of smmu context banks
* @secure_level: secure level cached from crtc
* @prev_secure_level: previous secure level
* @transition_type: transition request type
* @transition_error: whether there is error while transitioning the state
*/
@@ -196,6 +197,7 @@ struct sde_kms_smmu_state_data {
uint32_t state;
uint32_t prev_state;
uint32_t secure_level;
uint32_t prev_secure_level;
uint32_t transition_type;
uint32_t transition_error;
uint32_t sui_misr_state;