dma-buf/sync_file: enable signaling even with poll(.timeout=0)
Subsystems (2)
PATCH 1/1 dma-buf/sync_file: enable signaling even with poll(.timeout=0)
From: Gustavo Padovan <[email protected]>
This reverts commit ecebca79f6976ddaddfd054d699272515869ea28.
Do not enable fence callback on poll() when using fence_array causes the fence_array to not signal.
For now we will revert the change and enable signaling everytime time poll is called with timeout=0 as well.
--- drivers/dma-buf/sync_file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/dma-buf/sync_file.c +1 -2
@@ -308,8 +308,7 @@ static unsigned int sync_file_poll(struct file *file, poll_table *wait)poll_wait (file, &sync_file->wq, wait); -if (!poll_does_not_wait (wait) && - !test_and_set_bit (POLL_ENABLED , &sync_file->fence->flags)) { +if (!test_and_set_bit (POLL_ENABLED , &sync_file->fence->flags)) {if (dma_fence_add_callback (sync_file->fence, &sync_file->cb, fence_check_cb_func) <0 )wake_up_all (&sync_file->wq);
Signature · 6 lines
2.5.5 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 3 lines · Gustavo Padovan
From: Gustavo Padovan <[email protected]>
This reverts commit
ecebca79f6976ddaddfd054d699272515869ea28.
When doing a revert please don't change the subject of the revert, at least if you didn't change anything in the resulting diff. That way reverts jump out a lot more, which I think is useful. -Daniel
Quoted 34 lines
Do not enable fence callback on
poll()when usingfence_arraycauses thefence_arrayto not signal.For now we will revert the change and enable signaling everytime time poll is called with timeout=0 as well.
Cc Chris Wilson <[email protected]>Signed-off-by Gustavo Padovan <[email protected]>--- drivers/dma-buf/sync_file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/dma-buf/sync_file.c +1
-2@@ -308,8 +308,7 @@ static unsigned int sync_file_poll(struct file *file, poll_table *wait)poll_wait (file, &sync_file->wq, wait); -if (!poll_does_not_wait (wait) && - !test_and_set_bit (POLL_ENABLED , &sync_file->fence->flags)) { +if (!test_and_set_bit (POLL_ENABLED , &sync_file->fence->flags)) {if (dma_fence_add_callback (sync_file->fence, &sync_file->cb, fence_check_cb_func) <0 )wake_up_all (&sync_file->wq);Signature · 6 lines
2.5.5 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
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