You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08: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