mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
MALI: bifrost: only call dma_fence_set_error() for actual errors
This would eliminate the repeating WARNING logs from dma_fence_set_error(). Change-Id: I3b319decb8899dfc0410f4975e31bb1c67f7ae9f Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
This commit is contained in:
@@ -143,7 +143,8 @@ static inline int kbase_fence_out_signal(struct kbase_jd_atom *katom,
|
||||
KERNEL_VERSION(4, 9, 68) <= LINUX_VERSION_CODE)
|
||||
fence_set_error(katom->dma_fence.fence, status);
|
||||
#elif (KERNEL_VERSION(4, 11, 0) <= LINUX_VERSION_CODE)
|
||||
dma_fence_set_error(katom->dma_fence.fence, status);
|
||||
if (status < 0)
|
||||
dma_fence_set_error(katom->dma_fence.fence, status);
|
||||
#else
|
||||
katom->dma_fence.fence->status = status;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user