disp: msm: sde: revert to previous smmu state upon failure to switch

This change saves the previous state before moving into the transitional
smmu state, during secure-display/secure-camera usecases. Upon failure
to complete the transition, set smmu state to the previous state.
Previously, smmu state was staying in transitional state.

Change-Id: I1a78ddcf6ac1c7ea66c8c2095cd1a6d6160647a1
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
这个提交包含在:
Samantha Tran
2019-08-30 17:05:56 -07:00
父节点 685240ed01
当前提交 ad97f0cf4d
修改 3 个文件,包含 21 行新增5 行删除

查看文件

@@ -187,12 +187,14 @@ enum frame_trigger_mode_type {
/**
* struct sde_kms_smmu_state_data: stores the smmu state and transition type
* @state: current state of smmu context banks
* @prev_state: previous state of smmu context banks
* @secure_level: secure level cached from crtc
* @transition_type: transition request type
* @transition_error: whether there is error while transitioning the state
*/
struct sde_kms_smmu_state_data {
uint32_t state;
uint32_t prev_state;
uint32_t secure_level;
uint32_t transition_type;
uint32_t transition_error;