disp: msm: sde: avoid physical encoder disable(s) in trusted VM

VM switches during TUI usecase are expected to be seamless i.e without
display reset. In SDE language, this translates to respective display
drivers not tearing down the HW pipeline while releasing the HW.

In Primary VM, this taken care by keeping the DRM pipeline alive when
TUI is active.

In Trusted VM, since the client creates and destroys the display per
session, checks are needed to bypass the physical encoder disable(s).

Change-Id: Iac42f02806962405c9364b1ffed85778229977e9
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Šī revīzija ir iekļauta:
Jeykumar Sankaran
2020-05-19 21:02:56 -07:00
vecāks 935af8104a
revīzija 06ab29478d
3 mainīti faili ar 15 papildinājumiem un 8 dzēšanām

Parādīt failu

@@ -2802,7 +2802,8 @@ static void sde_encoder_virt_disable(struct drm_encoder *drm_enc)
* and after physical encoder is disabled, to make sure timing
* engine is already disabled (for video mode).
*/
sde_encoder_dce_disable(sde_enc);
if (!sde_in_trusted_vm(sde_kms))
sde_encoder_dce_disable(sde_enc);
sde_encoder_resource_control(drm_enc, SDE_ENC_RC_EVENT_STOP);