mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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:
parent
f11da41a6e
commit
7b50ca2b1e
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue