disp: msm: use FB_NON_SEC_DIR_TRANS plane hint for TUI VM buffers

Add plane buffer flag to get the correct aspace during
TUI VM usecase. FB_NON_SEC_DIR_TRANS plane flag is set
by user-mode to indicate S2-only non-secure buffer in
TUI VM. Return the default drm device when SMMU is not
available during get_aspace_device to make the working
seamless with/without SMMU.

Change-Id: I158dc17ba51ff4b2f302d3e7017db8ab3cfe2b84
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran
2020-03-04 11:56:18 -08:00
committato da Gerrit - the friendly Code Review server
parent bfec52ae7b
commit 68b75aac24
4 ha cambiato i file con 33 aggiunte e 10 eliminazioni

Vedi File

@@ -701,6 +701,7 @@ static int _sde_plane_get_aspace(
if (!aspace)
return -EINVAL;
break;
case SDE_DRM_FB_NON_SEC_DIR_TRANS:
case SDE_DRM_FB_SEC_DIR_TRANS:
*aspace = NULL;
break;