gpu: remove sync_pt_list non-empty warn when release mali fence.
authorsky zhou <sky.zhou@amlogic.com>
Mon, 13 Nov 2017 07:59:28 +0000 (15:59 +0800)
committersky zhou <sky.zhou@amlogic.com>
Mon, 13 Nov 2017 07:59:28 +0000 (15:59 +0800)
PD#154231: remove sync_pt_list non-empty warning.
When fence is not signaled, the sync_pt_list is not empty.
So the sync_pt_list non-empty is legal, don't need to warn it.

Change-Id: I6b50292fe0939e8d7397983b566481aa6f1ceeac

mali/linux/mali_internal_sync.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index ea9557a..43d34f1
@@ -657,8 +657,14 @@ static void mali_internal_fence_release(struct fence *fence)
 
 
        spin_lock_irqsave(fence->lock, flags);
+#if 0
        if (WARN_ON_ONCE(!list_empty(&sync_pt->sync_pt_list)))
                list_del(&sync_pt->sync_pt_list);
+#else
+       //sync_pt_list empty is possible, dont show warn.
+       if (!list_empty(&sync_pt->sync_pt_list))
+               list_del(&sync_pt->sync_pt_list);
+#endif
        spin_unlock_irqrestore(fence->lock, flags);
 
        if (parent->ops->free_pt)