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>
This commit is contained in:
Veera Sundaram Sankaran
2020-10-19 16:08:16 -07:00
orang tua b403c57119
melakukan e07097c244
6 mengubah file dengan 83 tambahan dan 21 penghapusan

Melihat File

@@ -897,7 +897,7 @@ static int msm_drm_component_init(struct device *dev)
drm_mode_config_reset(ddev);
if (kms && kms->funcs && kms->funcs->cont_splash_config) {
ret = kms->funcs->cont_splash_config(kms);
ret = kms->funcs->cont_splash_config(kms, NULL);
if (ret) {
dev_err(dev, "kms cont_splash config failed.\n");
goto fail;