disp: msm: sde: reserve resources on trusted vm usecase start

The MEM & IRQ lend handlers signals the resources
are lent from the primary VM. Reserve the SDE HW
resources in trusted VM using the cont-splash path
and setup the SDE & DRM software states. Set the
DSI connector status to active for the handoff
display during the start and disable it at the end
of the session.

Change-Id: I75b6df735eb5609cc521808aca0ddfb0b3993e84
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran
2020-04-04 20:45:08 -07:00
zatwierdzone przez Gerrit - the friendly Code Review server
rodzic 7bb6e30418
commit 96438460c6
3 zmienionych plików z 101 dodań i 1 usunięć

Wyświetl plik

@@ -701,6 +701,19 @@ void sde_kms_irq_enable_notify(struct sde_kms *sde_kms, bool enable);
*/
int sde_kms_get_io_resources(struct sde_kms *kms, struct msm_io_res *io_res);
/**
* sde_kms_vm_trusted_resource_init - reserve/initialize the HW/SW resources
* @sde_kms: poiner to sde_kms structure
* return: 0 on success; error code otherwise
*/
int sde_kms_vm_trusted_resource_init(struct sde_kms *sde_kms);
/**
* sde_kms_vm_trusted_resource_deinit - release the HW/SW resources
* @sde_kms: poiner to sde_kms structure
*/
void sde_kms_vm_trusted_resource_deinit(struct sde_kms *sde_kms);
/**
* sde_kms_vm_trusted_post_commit - function to prepare the VM after the
* last commit before releasing the HW
@@ -710,6 +723,7 @@ int sde_kms_get_io_resources(struct sde_kms *kms, struct msm_io_res *io_res);
*/
int sde_kms_vm_trusted_post_commit(struct sde_kms *sde_kms,
struct drm_atomic_state *state);
/**
* sde_kms_vm_primary_post_commit - function to prepare the VM after the
* last commit before assign the HW
@@ -738,5 +752,4 @@ int sde_kms_vm_trusted_prepare_commit(struct sde_kms *sde_kms,
*/
int sde_kms_vm_primary_prepare_commit(struct sde_kms *sde_kms,
struct drm_atomic_state *state);
#endif /* __sde_kms_H__ */