disp: msm: sde: stage white frame when input fence has error set
Add changes to check for error status in dma_fence on task wakeup and when error is set white frame gets staged to handle such input fence failures. Change-Id: I8f3c9f746334c6d03a272ab4e33f51afb84057ea Signed-off-by: Jayaprakash Madisetty <jmadiset@codeaurora.org>
This commit is contained in:
@@ -37,18 +37,18 @@ signed long sde_sync_wait(void *fnc, long timeout_ms)
|
||||
|
||||
rc = dma_fence_wait_timeout(fence, true,
|
||||
msecs_to_jiffies(timeout_ms));
|
||||
if (!rc || (rc == -EINVAL)) {
|
||||
if (!rc || (rc == -EINVAL) || fence->error) {
|
||||
if (fence->ops->timeline_value_str)
|
||||
fence->ops->timeline_value_str(fence,
|
||||
timeline_str, TIMELINE_VAL_LENGTH);
|
||||
|
||||
SDE_ERROR(
|
||||
"fence driver name:%s timeline name:%s seqno:0x%llx timeline:%s signaled:0x%x\n",
|
||||
"fence driver name:%s timeline name:%s seqno:0x%llx timeline:%s signaled:0x%x error:%d\n",
|
||||
fence->ops->get_driver_name(fence),
|
||||
fence->ops->get_timeline_name(fence),
|
||||
fence->seqno, timeline_str,
|
||||
fence->ops->signaled ?
|
||||
fence->ops->signaled(fence) : 0xffffffff);
|
||||
fence->ops->signaled(fence) : 0xffffffff, fence->error);
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
Referens i nytt ärende
Block a user