Browse Source

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 <[email protected]>
Jeykumar Sankaran 4 năm trước cách đây
mục cha
commit
7b50ca2b1e
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      msm/sde/sde_kms.c

+ 4 - 0
msm/sde/sde_kms.c

@@ -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;
 }