From f5e55f971d5442de4ec28a66b318f07c48d0fd47 Mon Sep 17 00:00:00 2001 From: sky zhou Date: Mon, 13 Nov 2017 15:59:28 +0800 Subject: [PATCH] gpu: remove sync_pt_list non-empty warn when release mali fence. 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 | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100755 => 100644 mali/linux/mali_internal_sync.c diff --git a/mali/linux/mali_internal_sync.c b/mali/linux/mali_internal_sync.c old mode 100755 new mode 100644 index ea9557a..43d34f1 --- a/mali/linux/mali_internal_sync.c +++ b/mali/linux/mali_internal_sync.c @@ -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) -- 2.20.1