disp: msm: sde: avoid duplicate fence create from client
SDE fence driver avoids duplicate fence creation if fence timeline is not increased. This may lead to issue if client closes the fence with failure ATOMIC_COMMIT. SDE fence driver provides the closed fd node to subsequent valid commit and leads to invalid state. This patch avoids duplicate fence creation from crtc and connector object instead of sde_fence. Change-Id: Ic7b43762f0ad251fb20e42edb5f4d5f401790e14 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
@@ -765,8 +765,9 @@ int sde_plane_wait_input_fence(struct drm_plane *plane, uint32_t wait_ms)
|
||||
|
||||
switch (rc) {
|
||||
case 0:
|
||||
SDE_ERROR_PLANE(psde, "%ums timeout on %08X\n",
|
||||
wait_ms, prefix);
|
||||
SDE_ERROR_PLANE(psde, "%ums timeout on %08X fd %d\n",
|
||||
wait_ms, prefix, sde_plane_get_property(pstate,
|
||||
PLANE_PROP_INPUT_FENCE));
|
||||
psde->is_error = true;
|
||||
sde_kms_timeline_status(plane->dev);
|
||||
ret = -ETIMEDOUT;
|
||||
|
Reference in New Issue
Block a user