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 <jmadiset@codeaurora.org> Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:

committed by
Samantha Tran

parent
eacfafbaed
commit
08278cb8cb
@@ -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;
|
||||
|
Reference in New Issue
Block a user