mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
sync: dump sync state of fence errors
Change-Id: I297a43aadf83504993040ea875c7f22d988628f1 Signed-off-by: Erik Gilling <konkers@android.com>
This commit is contained in:
@@ -571,8 +571,11 @@ int sync_fence_wait(struct sync_fence *fence, long timeout)
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
if (fence->status < 0)
|
||||
if (fence->status < 0) {
|
||||
pr_info("fence error %d on [%p]\n", fence->status, fence);
|
||||
sync_dump();
|
||||
return fence->status;
|
||||
}
|
||||
|
||||
if (fence->status == 0) {
|
||||
pr_info("fence timeout on [%p] after %dms\n", fence,
|
||||
|
||||
Reference in New Issue
Block a user