disp: sde: add CRTC property for VM requests

Add a CRTC property to request the VM to acquire/release
HW resources.

Display driver in trusted VM boots up without HW ownership. Set
the default value of the property as RELEASED to handle resource
assignments.

Change-Id: Iea651a2fea902d95d4b954052af4ef016af15a91
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
This commit is contained in:
Jeykumar Sankaran
2020-03-11 16:10:18 -07:00
parent 98a6a1131c
commit 8b032e5e46
3 changed files with 28 additions and 0 deletions

View File

@@ -88,6 +88,18 @@ enum sde_crtc_cache_state {
CACHE_STATE_FRAME_READ
};
/**
* enum sde_crtc_vm_req: request for VM operations
* @VM_REQ_NONE: no request. Normal VM operations.
* @VM_REQ_RELEASE: request to release the HW resources from the current VM
* @VM_REQ_ACQUIRE: request to acquire the HW resources in the current VM
*/
enum sde_crtc_vm_req {
VM_REQ_NONE,
VM_REQ_RELEASE,
VM_REQ_ACQUIRE,
};
/**
* @connectors : Currently associated drm connectors for retire event
* @num_connectors: Number of associated drm connectors for retire event