disp: msm: sde: add msgq support for sde vm layer
Linux message queues(msgq) are used to communicate between VM's This change creates a display specific msgq and a set of framework api's for the VM layer to invoke communication between the VMs'. Display msgq is bidirectional. Tx end is created by default for both the VM's. Rx is kept optional to avoid unnecessary creation of listener threads. Change-Id: If4e6410045293d6b21087a76ec018d4784dd5238 Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Tento commit je obsažen v:

odevzdal
Amine Najahi

rodič
2fb129f394
revize
d076f02017
@@ -10,6 +10,7 @@
|
||||
#include "sde_kms.h"
|
||||
#include "sde_vm_common.h"
|
||||
#include "sde_crtc.h"
|
||||
#include "sde_vm_msgq.h"
|
||||
|
||||
struct hh_notify_vmid_desc *sde_vm_populate_vmid(hh_vmid_t vmid)
|
||||
{
|
||||
@@ -321,3 +322,11 @@ int sde_vm_request_valid(struct sde_kms *sde_kms,
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
int sde_vm_msg_send(struct sde_vm *sde_vm, void *msg, size_t msg_size)
|
||||
{
|
||||
if (!sde_vm)
|
||||
return -EINVAL;
|
||||
|
||||
return sde_vm_msgq_send(sde_vm, msg, msg_size);
|
||||
}
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele