disp: msm: sde: use drm mode set by user-mode in trusted-vm

Trusted-vm uses the cont-splash path to initialize the software
states by reading the hardware registers and populating the
SDE & DRM software states. But drm mode cannot be determined by
register reads, so rely on user-mode to get the mode which comes
as part of the first atomic_commit check phase which handles the
transition. The primary-vm user-mode passes the current mode to
trusted-vm through qrtr which is in-turn passed to driver to
set that particular mode.

Change-Id: I4fb86b40b8a0583c8edb539b0a51dcd33de731ff
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
这个提交包含在:
Veera Sundaram Sankaran
2020-10-19 16:08:16 -07:00
父节点 b403c57119
当前提交 e07097c244
修改 6 个文件,包含 83 行新增21 行删除

查看文件

@@ -704,9 +704,11 @@ 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
* @state: current update atomic commit state
* return: 0 on success; error code otherwise
*/
int sde_kms_vm_trusted_resource_init(struct sde_kms *sde_kms);
int sde_kms_vm_trusted_resource_init(struct sde_kms *sde_kms,
struct drm_atomic_state *state);
/**
* sde_kms_vm_trusted_resource_deinit - release the HW/SW resources