disp: msm: fail commit if drm_gem_obj was found attached to a sec CB
This change fails the drm_atomic_commit and avoids S2 translation fault if drm_gem_object is found attached to a secure context bank during non secure session. In the current codeflow, we are detaching the gem object from secure CB and reattaching it to non secure CB, but only S1 pagetables entries get modified and S2 pagetables entries are not corrected since hyp_unassign is not called with CP_PIXEL VMID which can only be done by client when buffer gets allocated. Change-Id: I62302064f96276ef82044ee88fb89e295fb96b4b Signed-off-by: Jayaprakash Madisetty <quic_jmadiset@quicinc.com>
This commit is contained in:
@@ -1991,7 +1991,9 @@ static int sde_plane_prepare_fb(struct drm_plane *plane,
|
||||
ret = msm_framebuffer_prepare(fb,
|
||||
pstate->aspace);
|
||||
if (ret) {
|
||||
SDE_ERROR("failed to prepare framebuffer\n");
|
||||
SDE_ERROR("failed to prepare framebuffer fb:%d plane:%d pipe:%d ret:%d\n",
|
||||
fb->base.id, plane->base.id, psde->pipe, ret);
|
||||
SDE_EVT32(fb->base.id, plane->base.id, psde->pipe, ret, SDE_EVTLOG_ERROR);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user