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:
Zhen Chen 2019-08-27 15:37:10 +08:00 committed by Tao Huang
parent 78c8b4e61a
commit f828f106e0

View file

@ -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