disp: sde: hold an extra PM refcount in trusted VM

pm runtime suspend/resume is not supported in trusted vm since
the power domain is controlled by the primary VM. Hold an
extra refcount on the drm device in trusted vm to avoid pm
runtime calls.

Change-Id: I57c22887eb8b11f8ce318479ca36b84cda385d60
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
This commit is contained in:
Jeykumar Sankaran 2020-08-13 10:49:36 -07:00
commit 7b50ca2b1e

View file

@ -1008,6 +1008,8 @@ int sde_kms_vm_trusted_prepare_commit(struct sde_kms *sde_kms,
ddev = sde_kms->dev;
pm_runtime_get_sync(ddev->dev);
cstate = to_sde_crtc_state(state->crtcs[0].new_state);
vm_req = sde_crtc_get_property(cstate, CRTC_PROP_VM_REQ_STATE);
@ -1283,6 +1285,8 @@ int sde_kms_vm_trusted_post_commit(struct sde_kms *sde_kms,
if (vm_ops->vm_release)
rc = vm_ops->vm_release(sde_kms);
pm_runtime_put_sync(ddev->dev);
return rc;
}