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:
parent
78c8b4e61a
commit
f828f106e0
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue