Re: [PATCH v2 0/6] de-stage SW_SYNC validation frawework

2016-08-11 Thread Gustavo Padovan
Hi Eric, 2016-08-11 Eric Engestrom : > On Mon, Aug 08, 2016 at 06:24:16PM -0300, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > Hi Greg, > > > > This is the last step in the Sync Framwork de-stage task. It de-stage > > the SW_SYNC validation fr

Re: [PATCH v2 1/6] staging/android: remove doc from sw_sync

2016-08-11 Thread Gustavo Padovan
Hi Pavel, 2016-08-09 Pavel Machek <pa...@ucw.cz>: > On Mon 2016-08-08 18:24:17, Gustavo Padovan wrote: > > From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> > > > > SW_SYNC should never be used by other pieces of the kernel apart from > > sync_deb

Re: [PATCH v2 1/6] staging/android: remove doc from sw_sync

2016-08-11 Thread Gustavo Padovan
Hi Pavel, 2016-08-09 Pavel Machek : > On Mon 2016-08-08 18:24:17, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > SW_SYNC should never be used by other pieces of the kernel apart from > > sync_debug as it is only a Sync File Validation Framework, so hide an

Re: [PATCH 2/7] staging/android: display sync_pt name on debugfs

2016-08-09 Thread Gustavo Padovan
2016-08-09 Maarten Lankhorst <maarten.lankho...@linux.intel.com>: > Op 08-08-16 om 21:59 schreef Gustavo Padovan: > > 2016-08-08 Maarten Lankhorst <maarten.lankho...@linux.intel.com>: > > > >> Op 20-06-16 om 17:53 schreef Gustavo Padovan: >

Re: [PATCH 2/7] staging/android: display sync_pt name on debugfs

2016-08-09 Thread Gustavo Padovan
2016-08-09 Maarten Lankhorst : > Op 08-08-16 om 21:59 schreef Gustavo Padovan: > > 2016-08-08 Maarten Lankhorst : > > > >> Op 20-06-16 om 17:53 schreef Gustavo Padovan: > >>> From: Gustavo Padovan > >>> > >>> When creating a sync

[PATCH v2 1/6] staging/android: remove doc from sw_sync

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> SW_SYNC should never be used by other pieces of the kernel apart from sync_debug as it is only a Sync File Validation Framework, so hide any info to avoid confuse this with a standard kernel internal API. Signed-off-by: Gustavo P

[PATCH v2 1/6] staging/android: remove doc from sw_sync

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan SW_SYNC should never be used by other pieces of the kernel apart from sync_debug as it is only a Sync File Validation Framework, so hide any info to avoid confuse this with a standard kernel internal API. Signed-off-by: Gustavo Padovan --- drivers/staging/android

[PATCH v2 5/6] staging/android: add Doc for SW_SYNC ioctl interface

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> This interface is hidden from kernel headers and it is intended for use only for testing. So testers would have to add the ioctl information internally. This is to prevent misuse of this feature. Signed-off-by: Gustavo Padovan <gus

[PATCH v2 2/6] staging/android: do not let userspace trigger WARN_ON

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Closing the timeline without waiting all fences to signal is not a critical failure, it is just bad usage from userspace so avoid calling WARN_ON in this case. Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk>

[PATCH v2 4/6] staging/android: prepare sw_sync files for de-staging

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> remove file paths in the comments and add short description about each file. v2: remove file paths instead of just change them. Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- drivers/staging/android/sw_s

[PATCH v2 5/6] staging/android: add Doc for SW_SYNC ioctl interface

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan This interface is hidden from kernel headers and it is intended for use only for testing. So testers would have to add the ioctl information internally. This is to prevent misuse of this feature. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sw_sync.c | 31

[PATCH v2 2/6] staging/android: do not let userspace trigger WARN_ON

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan Closing the timeline without waiting all fences to signal is not a critical failure, it is just bad usage from userspace so avoid calling WARN_ON in this case. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sw_sync.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 4/6] staging/android: prepare sw_sync files for de-staging

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan remove file paths in the comments and add short description about each file. v2: remove file paths instead of just change them. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sw_sync.c| 2 +- drivers/staging/android/sync_debug.c | 2 +- drivers/staging

[PATCH v2 3/6] staging/android: move trace/sync.h to sync_trace.h

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> The common behaviour for trace headers is to have them in the same folder they are used, instead of creating a special trace/ directory. Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- drivers/staging/andro

[PATCH v2 3/6] staging/android: move trace/sync.h to sync_trace.h

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan The common behaviour for trace headers is to have them in the same folder they are used, instead of creating a special trace/ directory. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sw_sync.c| 2 +- drivers/staging/android/sync_trace.h | 32

[PATCH v2 6/6] dma-buf/sw_sync: de-stage SW_SYNC

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> SW_SYNC allows to run tests on the sync_file framework via debugfs on /sync/sw_sync Opening and closing the file triggers creation and release of a sync timeline. To create fences on this timeline the SW_SYNC_IOC_CREATE_FENCE ioctl

[PATCH v2 6/6] dma-buf/sw_sync: de-stage SW_SYNC

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan SW_SYNC allows to run tests on the sync_file framework via debugfs on /sync/sw_sync Opening and closing the file triggers creation and release of a sync timeline. To create fences on this timeline the SW_SYNC_IOC_CREATE_FENCE ioctl should be used. To increment

[PATCH v2 0/6] de-stage SW_SYNC validation frawework

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Hi Greg, This is the last step in the Sync Framwork de-stage task. It de-stage the SW_SYNC validation framework and the sync_debug info debugfs file. The first 2 patches are clean up and improvements and the rest is preparation to de

[PATCH v2 0/6] de-stage SW_SYNC validation frawework

2016-08-08 Thread Gustavo Padovan
From: Gustavo Padovan Hi Greg, This is the last step in the Sync Framwork de-stage task. It de-stage the SW_SYNC validation framework and the sync_debug info debugfs file. The first 2 patches are clean up and improvements and the rest is preparation to de-stage and then finally the actual de

Re: [PATCH 2/7] staging/android: display sync_pt name on debugfs

2016-08-08 Thread Gustavo Padovan
2016-08-08 Maarten Lankhorst <maarten.lankho...@linux.intel.com>: > Op 20-06-16 om 17:53 schreef Gustavo Padovan: > > From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> > > > > When creating a sync_pt the name received wasn't used anywhere. > > Now

Re: [PATCH 2/7] staging/android: display sync_pt name on debugfs

2016-08-08 Thread Gustavo Padovan
2016-08-08 Maarten Lankhorst : > Op 20-06-16 om 17:53 schreef Gustavo Padovan: > > From: Gustavo Padovan > > > > When creating a sync_pt the name received wasn't used anywhere. > > Now we add it to the sync info debug output to make it easier to indetify > > t

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-08-08 Thread Gustavo Padovan
2016-07-24 Pavel Machek <pa...@ucw.cz>: > On Mon 2016-08-08 16:08:12, Gustavo Padovan wrote: > > 2016-08-07 Pavel Machek <pa...@ucw.cz>: > > > > > On Sun 2016-07-24 15:21:11, Greg Kroah-Hartman wrote: > > > > On Mon, Jul 18, 2016 at 04:12

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-08-08 Thread Gustavo Padovan
2016-07-24 Pavel Machek : > On Mon 2016-08-08 16:08:12, Gustavo Padovan wrote: > > 2016-08-07 Pavel Machek : > > > > > On Sun 2016-07-24 15:21:11, Greg Kroah-Hartman wrote: > > > > On Mon, Jul 18, 2016 at 04:12:45PM -0300, Gustavo Padovan wrote: > > &

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-08-08 Thread Gustavo Padovan
2016-08-07 Pavel Machek <pa...@ucw.cz>: > On Sun 2016-07-24 15:21:11, Greg Kroah-Hartman wrote: > > On Mon, Jul 18, 2016 at 04:12:45PM -0300, Gustavo Padovan wrote: > > > Hi, > > > > > > Do you think there is time to get this in for 4.8? > >

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-08-08 Thread Gustavo Padovan
2016-08-07 Pavel Machek : > On Sun 2016-07-24 15:21:11, Greg Kroah-Hartman wrote: > > On Mon, Jul 18, 2016 at 04:12:45PM -0300, Gustavo Padovan wrote: > > > Hi, > > > > > > Do you think there is time to get this in for 4.8? > > > > No, it wa

[PATCH v6 4/5] Documentation: add doc for sync_file_get_fence()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Document the new function added to sync_file.c v2: Adapt to fence_array v3: Take in Chris Wilson suggestions Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Acked-by: Christian König <christian.koe...@am

[PATCH v6 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first tim

[PATCH v6 4/5] Documentation: add doc for sync_file_get_fence()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Document the new function added to sync_file.c v2: Adapt to fence_array v3: Take in Chris Wilson suggestions Signed-off-by: Gustavo Padovan Acked-by: Christian König Reviewed-by: Chris Wilson --- Documentation/sync_file.txt | 14 ++ 1 file changed, 14

[PATCH v6 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first time poll() is called. This avoid re

[PATCH v6 3/5] dma-buf/sync_file: add sync_file_get_fence()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the

[PATCH v6 3/5] dma-buf/sync_file: add sync_file_get_fence()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the fence we return v3: - Adapt

[PATCH v6 2/5] dma-buf/sync_file: refactor fence storage in struct sync_file

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. Th

[PATCH v6 2/5] dma-buf/sync_file: refactor fence storage in struct sync_file

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. This change cleans up sync_file a bit.

[PATCH v6 1/5] dma-buf/fence-array: add fence_is_array()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Chr

[PATCH v6 1/5] dma-buf/fence-array: add fence_is_array()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson Cc: Christian König Signed-off-by: Gustavo Padovan Reviewed-by: Chris Wilson Reviewed

[PATCH v5 3/5] dma-buf/sync_file: add sync_file_get_fence()

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the

[PATCH v5 3/5] dma-buf/sync_file: add sync_file_get_fence()

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the fence we return v3: - Adapt

[PATCH v5 4/5] Documentation: add doc for sync_file_get_fence()

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Document the new function added to sync_file.c v2: Adapt to fence_array Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Acked-by: Christian König <christian.koe...@amd.com> --- Documentation/

[PATCH v5 1/5] dma-buf/fence-array: add fence_is_array()

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Chr

[PATCH v5 4/5] Documentation: add doc for sync_file_get_fence()

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan Document the new function added to sync_file.c v2: Adapt to fence_array Signed-off-by: Gustavo Padovan Acked-by: Christian König --- Documentation/sync_file.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/sync_file.txt b

[PATCH v5 1/5] dma-buf/fence-array: add fence_is_array()

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson Cc: Christian König Signed-off-by: Gustavo Padovan Reviewed-by: Chris Wilson Reviewed

[PATCH v5 2/5] dma-buf/sync_file: refactor fence storage in struct sync_file

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. Th

[PATCH v5 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first tim

[PATCH v5 2/5] dma-buf/sync_file: refactor fence storage in struct sync_file

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. This change cleans up sync_file a bit.

[PATCH v5 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-04 Thread Gustavo Padovan
From: Gustavo Padovan Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first time poll() is called. This avoid re

Re: [PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-04 Thread Gustavo Padovan
2016-08-03 Chris Wilson <ch...@chris-wilson.co.uk>: > On Tue, Jul 12, 2016 at 03:08:45PM -0300, Gustavo Padovan wrote: > > From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> > > > > Signalling doesn't need to be enabled at sync_file creation, it is only

Re: [PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-04 Thread Gustavo Padovan
2016-08-03 Chris Wilson : > On Tue, Jul 12, 2016 at 03:08:45PM -0300, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > Signalling doesn't need to be enabled at sync_file creation, it is only > > required if userspace waiting the fence to signal through pol

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-07-18 Thread Gustavo Padovan
Hi, Do you think there is time to get this in for 4.8? Thanks. 2016-06-20 Gustavo Padovan <gust...@padovan.org>: > From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> > > Hi Greg, > > This is the last step in the Sync Framwork de-stage task. It de-stage > th

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-07-18 Thread Gustavo Padovan
Hi, Do you think there is time to get this in for 4.8? Thanks. 2016-06-20 Gustavo Padovan : > From: Gustavo Padovan > > Hi Greg, > > This is the last step in the Sync Framwork de-stage task. It de-stage > the SW_SYNC validation framework and the sync_debug info debugfs fi

[PATCH v4 4/5] Documentation: add doc for sync_file_get_fence()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Document the new function added to sync_file.c v2: Adapt to fence_array Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Acked-by: Christian König <christian.koe...@amd.com> --- Documentation/

[PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first tim

[PATCH v4 4/5] Documentation: add doc for sync_file_get_fence()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Document the new function added to sync_file.c v2: Adapt to fence_array Signed-off-by: Gustavo Padovan Acked-by: Christian König --- Documentation/sync_file.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/sync_file.txt b

[PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first time poll() is called. This avoid re

[PATCH v4 1/5] dma-buf/fence-array: add fence_is_array()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Chr

[PATCH v4 1/5] dma-buf/fence-array: add fence_is_array()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson Cc: Christian König Signed-off-by: Gustavo Padovan Reviewed-by: Chris Wilson Reviewed

[PATCH v4 3/5] dma-buf/sync_file: add sync_file_get_fence()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the

[PATCH v4 2/5] dma-buf/sync_file: refactor fence storage in struct sync_file

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. Th

[PATCH v4 3/5] dma-buf/sync_file: add sync_file_get_fence()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the fence we return v3: - Adapt

[PATCH v4 2/5] dma-buf/sync_file: refactor fence storage in struct sync_file

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. This change cleans up sync_file a bit.

Re: [PATCH] dma-buf/sync_file: only enable fence signalling during wait

2016-07-12 Thread Gustavo Padovan
2016-07-12 Maarten Lankhorst <maarten.lankho...@linux.intel.com>: > Op 11-07-16 om 22:27 schreef Gustavo Padovan: > > 2016-07-10 Maarten Lankhorst <maarten.lankho...@linux.intel.com>: > > > >> Op 08-07-16 om 17:44 schreef Gustavo Padovan: >

Re: [PATCH] dma-buf/sync_file: only enable fence signalling during wait

2016-07-12 Thread Gustavo Padovan
2016-07-12 Maarten Lankhorst : > Op 11-07-16 om 22:27 schreef Gustavo Padovan: > > 2016-07-10 Maarten Lankhorst : > > > >> Op 08-07-16 om 17:44 schreef Gustavo Padovan: > >>> From: Gustavo Padovan > >>> > >>> Signalling doesn't need to

Re: [PATCH] dma-buf/sync_file: only enable fence signalling during wait

2016-07-11 Thread Gustavo Padovan
2016-07-10 Maarten Lankhorst <maarten.lankho...@linux.intel.com>: > Op 08-07-16 om 17:44 schreef Gustavo Padovan: > > From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> > > > > Signalling doesn't need to be enabled at sync_file creation, it is only > >

Re: [PATCH] dma-buf/sync_file: only enable fence signalling during wait

2016-07-11 Thread Gustavo Padovan
2016-07-10 Maarten Lankhorst : > Op 08-07-16 om 17:44 schreef Gustavo Padovan: > > From: Gustavo Padovan > > > > Signalling doesn't need to be enabled at sync_file creation, it is only > > required if userspace waiting the fence to signal through poll(). > > >

[PATCH] dma-buf/sync_file: only enable fence signalling during wait

2016-07-08 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first tim

[PATCH] dma-buf/sync_file: only enable fence signalling during wait

2016-07-08 Thread Gustavo Padovan
From: Gustavo Padovan Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first time poll() is called. This avoid re

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-07-07 Thread Gustavo Padovan
Hi Greg, Any comment on this? Thanks, Gustavo 2016-06-20 Gustavo Padovan <gust...@padovan.org>: > From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> > > Hi Greg, > > This is the last step in the Sync Framwork de-stage task. It de-stage > th

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-07-07 Thread Gustavo Padovan
Hi Greg, Any comment on this? Thanks, Gustavo 2016-06-20 Gustavo Padovan : > From: Gustavo Padovan > > Hi Greg, > > This is the last step in the Sync Framwork de-stage task. It de-stage > the SW_SYNC validation framework and the sync_debug info debugfs file. >

[PATCH 5/6] drm/rcar-du: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH 5/6] drm/rcar-du: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c index

[PATCH 3/6] drm/atmel: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 3/6] drm/atmel: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc

[PATCH 4/6] drm/nouveau: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- drivers/gpu/drm/nouveau/nouveau_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

[PATCH 6/6] drm/tilcdc: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gp

[PATCH 4/6] drm/nouveau: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/nouveau/nouveau_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau

[PATCH 6/6] drm/tilcdc: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index

[PATCH 1/6] drm: make drm_vblank_count_and_time() static

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> As they are not used anywhere outside drm_irq.c make them static. Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- drivers/gpu/drm/drm_irq.c | 7 ++- include/drm/drmP.h| 2 -- 2 files changed,

[PATCH 2/6] drm/armada: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- drivers/gpu/drm/armada/armada_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gp

[PATCH 1/6] drm: make drm_vblank_count_and_time() static

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan As they are not used anywhere outside drm_irq.c make them static. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/drm_irq.c | 7 ++- include/drm/drmP.h| 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_irq.c b

[PATCH 2/6] drm/armada: use drm_crtc_handle_vblank()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Remove legacy usage of drm_handle_vblank() Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/armada/armada_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index

[PATCH v3 4/4] Documentation: add doc for sync_file_get_fence()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Document the new function added to sync_file.c v2: Adapt to fence_array Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- Documentation/sync_file.txt | 15 +++ 1 file changed, 15 insertions(+)

[PATCH v3 4/4] Documentation: add doc for sync_file_get_fence()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Document the new function added to sync_file.c v2: Adapt to fence_array Signed-off-by: Gustavo Padovan --- Documentation/sync_file.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/sync_file.txt b/Documentation/sync_file.txt index

[PATCH v3 0/4] dma-buf/sync_file: rework fences on struct sync_file

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Hi all, This patchset improves fence support on Sync File. The basic idea is to have only sync_file->fence and store all fences there, either as normal fences or fence_arrays. That way we can remove some potential duplication w

[PATCH v3 2/4] dma-buf/sync_file: rework fence storage in struct file

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. Th

[PATCH v3 0/4] dma-buf/sync_file: rework fences on struct sync_file

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Hi all, This patchset improves fence support on Sync File. The basic idea is to have only sync_file->fence and store all fences there, either as normal fences or fence_arrays. That way we can remove some potential duplication when using fence_array with sync_f

[PATCH v3 2/4] dma-buf/sync_file: rework fence storage in struct file

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. This change cleans up sync_file a bit.

[PATCH v3 1/4] dma-buf/fence-array: add fence_is_array()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Chr

[PATCH v3 1/4] dma-buf/fence-array: add fence_is_array()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson Cc: Christian König Signed-off-by: Gustavo Padovan Reviewed-by: Chris Wilson

[PATCH v3 3/4] dma-buf/sync_file: add sync_file_get_fence()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the

[PATCH v3 3/4] dma-buf/sync_file: add sync_file_get_fence()

2016-07-04 Thread Gustavo Padovan
From: Gustavo Padovan Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the fence we return v3: - Adapt

[PATCH v2 0/4] dma-buf/sync_file: rework fences on struct sync_file

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Hi all, This is an attempt to improve fence support on Sync File. The basic idea is to have only sync_file->fence and store all fences there, either as normal fences or fence_arrays. That way we can remove some potential duplica

[PATCH v2 0/4] dma-buf/sync_file: rework fences on struct sync_file

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan Hi all, This is an attempt to improve fence support on Sync File. The basic idea is to have only sync_file->fence and store all fences there, either as normal fences or fence_arrays. That way we can remove some potential duplication when using fence_array with sync_f

[PATCH v2 3/4] dma-buf/sync_file: add sync_file_get_fence()

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the

[PATCH v2 3/4] dma-buf/sync_file: add sync_file_get_fence()

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the fence we return v3: - Adapt

[PATCH v2 2/4] dma-buf/sync_file: rework fence storage in struct file

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. Th

[PATCH v2 2/4] dma-buf/sync_file: rework fence storage in struct file

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. This change cleans up sync_file a bit.

[PATCH v2 1/4] dma-buf/fence-array: add fence_is_array()

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Chr

[PATCH v2 4/4] Documentation: add doc for sync_file_get_fence()

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Document the new function added to sync_file.c v2: Adapt to fence_array Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> --- Documentation/sync_file.txt | 15 +++ 1 file changed, 15 insertions(+)

[PATCH v2 1/4] dma-buf/fence-array: add fence_is_array()

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson Cc: Christian König Signed-off-by: Gustavo Padovan Reviewed-by: Chris Wilson

[PATCH v2 4/4] Documentation: add doc for sync_file_get_fence()

2016-07-01 Thread Gustavo Padovan
From: Gustavo Padovan Document the new function added to sync_file.c v2: Adapt to fence_array Signed-off-by: Gustavo Padovan --- Documentation/sync_file.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/sync_file.txt b/Documentation/sync_file.txt index

[PATCH 2/2] dma-buf/sync_file: rework fence storage in struct file

2016-06-30 Thread Gustavo Padovan
From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. Th

<    1   2   3   4   5   6   7   8   9   10   >