dma-buf/fence: fix fence_is_later v2
PATCH 1/1 dma-buf/fence: fix fence_is_later v2
From: Christian König <[email protected]>
A fence is never later than itself. This caused a bunch of overhead for AMDGPU.
v2: simplify check as suggested by Michel.
--- include/linux/fence.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fence.h +1 -1
@@ -292,7 +292,7 @@ static inline bool fence_is_later(struct fence *f1, struct fence *f2)if (WARN_ON (f1->context != f2->context))return false; -return f1->seqno - f2->seqno <INT_MAX ; +return (int )(f1->seqno - f2->seqno) >0 ; }/**
Signature · 6 lines
2.5.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 20 lines · Alex Deucher
From: Christian König <[email protected]>
A fence is never later than itself. This caused a bunch of overhead for AMDGPU.
v2: simplify check as suggested by Michel.
Signed-off-by Christian König <[email protected]>Reviewed-by Michel Dänzer <[email protected]>Reviewed-by Alex Deucher <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- include/linux/fence.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/fence.h +0
-0
include/linux/fence.h static inline bool fence_is_later(struct fence *f1, struct fence *f2) · line 298
Quoted 8 lines
include/linux/fence.h +1
-1@@ -292,7 +292,7 @@ static inline bool fence_is_later(struct fence *f1, struct fence *f2)if (WARN_ON (f1->context != f2->context))return false; -return f1->seqno - f2->seqno <INT_MAX ; +return (int )(f1->seqno - f2->seqno) >0 ; }/**
According to
scripts/get_maintainer.pl include/linux/fence.h
this patch should be sent to:
Sumit Semwal <[email protected]> (maintainer:DMA BUFFER SHARING FRAMEWORK) [email protected] (open list:DMA BUFFER SHARING FRAMEWORK) [email protected] (open list:DMA BUFFER SHARING FRAMEWORK) [email protected] (moderated list:DMA BUFFER SHARING FRAMEWORK) [email protected] (open list)
I'd add at least Sumit and the linaro-mm-sig list.
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 36 lines · Michel Dänzer
Quoted 20 lines · Alex Deucher
From: Christian König <[email protected]>
A fence is never later than itself. This caused a bunch of overhead for AMDGPU.
v2: simplify check as suggested by Michel.
Signed-off-by Christian König <[email protected]>Reviewed-by Michel Dänzer <[email protected]>Reviewed-by Alex Deucher <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- include/linux/fence.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/fence.h +0
-0include/linux/fence.h static inline bool fence_is_later(struct fence *f1, struct fence *f2) · line 298
Quoted 8 lines
include/linux/fence.h +1
-1@@ -292,7 +292,7 @@ static inline bool fence_is_later(struct fence *f1, struct fence *f2)if (WARN_ON (f1->context != f2->context))return false; -return f1->seqno - f2->seqno <INT_MAX ; +return (int )(f1->seqno - f2->seqno) >0 ; }/** According to
scripts/get_maintainer.plinclude/linux/fence.hthis patch should be sent to:
Quoted 7 lines
Sumit Semwal <[email protected]> (maintainer:DMA BUFFER SHARING FRAMEWORK) [email protected] (open list:DMA BUFFER SHARING FRAMEWORK) [email protected] (open list:DMA BUFFER SHARING FRAMEWORK) [email protected] (moderated list:DMA BUFFER SHARING FRAMEWORK) [email protected] (open list)
I'd add at least Sumit and the linaro-mm-sig list.
Plus Maarten Lankhorst please, and Gustavo Padovan maybe. Not sure Sumit is still all that active on dma-buf/fence maintainership ... -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sumit Semwal
maintainerHi Daniel,
Quoted 6 lines · Daniel Vetter
Quoted 4 lines · Michel Dänzer
Quoted 3 lines · Alex Deucher
From: Christian König <[email protected]>
A fence is never later than itself. This caused a bunch of overhead
for AMDGPU.
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
v2: simplify check as suggested by Michel.
Signed-off-by Christian König <[email protected]>Reviewed-by Michel Dänzer <[email protected]>Reviewed-by Alex Deucher <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- include/linux/fence.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines
Quoted 5 lines
include/linux/fence.h static inline bool fence_is_later(struct fence
Quoted 5 lines
include/linux/fence.h +0
-0@@ -292,7 +292,7 @@ static inline bool fence_is_later(struct fence
*f1, struct fence *f2)
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
include/linux/fence.h +1
-1if (WARN_ON (f1->context != f2->context))return false; -return f1->seqno - f2->seqno <INT_MAX ; +return (int )(f1->seqno - f2->seqno) >0 ; }/**
Quoted 7 lines
Quoted 7 lines
According to
scripts/get_maintainer.plinclude/linux/fence.hthis patch should be sent to:
Sumit Semwal <[email protected]> (maintainer:DMA BUFFER SHARING
FRAMEWORK)
Quoted 3 lines
Quoted 3 lines
[email protected] (open list:DMA BUFFER SHARING FRAMEWORK) [email protected] (open list:DMA BUFFER SHARING FRAMEWORK) [email protected] (moderated list:DMA BUFFER SHARING
FRAMEWORK)
Quoted 6 lines
Quoted 3 lines
[email protected] (open list)
I'd add at least Sumit and the linaro-mm-sig list.
Plus Maarten Lankhorst please, and Gustavo Padovan maybe. Not sure Sumit is still all that active on dma-buf/fence maintainership ...
Am here very much, though I do apologize I haven't actively provided review comments on the fence related series. I'll improve on that for sure!
Yes, it is still a good idea to add Maarten for fence stuff in the least.
Quoted 9 lines
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel