From 08278cb8cbc9414f85b4acb5a811d0dfc69b2335 Mon Sep 17 00:00:00 2001 From: Jayaprakash Madisetty Date: Tue, 1 Jun 2021 12:28:40 +0530 Subject: [PATCH] disp: msm: sde: add changes to fix the sde fence signaled logic This change allows signalling of sde fences when sequence number is less than done_count. In current scenario, fence is not signaled as the subtraction result is not typecasted to int before updating the status causing the UI thread to block on sde fence. Change-Id: I3ca62222e0c67223b9eaf299474a2c282d761d3a Signed-off-by: Jayaprakash Madisetty Signed-off-by: Samantha Tran --- msm/sde/sde_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/sde/sde_fence.c b/msm/sde/sde_fence.c index 17b7d4a5ef..daa6b133b0 100644 --- a/msm/sde/sde_fence.c +++ b/msm/sde/sde_fence.c @@ -155,7 +155,7 @@ static bool sde_fence_signaled(struct dma_fence *fence) struct sde_fence *f = to_sde_fence(fence); bool status; - status = (int)((fence->seqno - f->ctx->done_count) <= 0); + status = ((int)(fence->seqno - f->ctx->done_count) <= 0); SDE_DEBUG("status:%d fence seq:%llu and timeline:%u\n", status, fence->seqno, f->ctx->done_count); return status;