disp: msm: sde: add client pre_release/post_acquire handles for VM layers
client_pre_release/client_post_acquire hooks in vm_ops allows non-SDE clients to register for callbacks to be invoked - before releasing the resources from the current VM so that the client can updates the respective sw state to indicate the absence of HW ownership - before the first frame push after acquiring the HW to update reset the respective sw state to indicate the presence of HW ownership and resume operations Change-Id: I93e5a2b43c79b4e7cc28e6e0129d8091aa0e508d Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
This commit is contained in:
@@ -119,6 +119,26 @@ struct sde_vm_ops {
|
||||
* @ops - primary VM specific ops functions
|
||||
*/
|
||||
void (*vm_deinit)(struct sde_kms *kms, struct sde_vm_ops *ops);
|
||||
|
||||
/**
|
||||
* vm_check - hook to check with vm_clients for its readiness to release
|
||||
the HW reasources
|
||||
*/
|
||||
int (*vm_check)(void);
|
||||
|
||||
/**
|
||||
* vm_client_pre_release - hook to invoke vm_client list for pre_release
|
||||
handling
|
||||
* @kms - handle to sde_kms
|
||||
*/
|
||||
int (*vm_client_pre_release)(struct sde_kms *kms);
|
||||
|
||||
/**
|
||||
* vm_client_post_acquire - hook to invoke vm_client list for
|
||||
* post_acquire resource handling
|
||||
* @kms - handle to sde_kms
|
||||
*/
|
||||
int (*vm_client_post_acquire)(struct sde_kms *kms);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Referens i nytt ärende
Block a user