Re: [PATCH 08/10] dma-buf/resv: replace shared fence with new fences container

2019-08-24 Thread Chris Wilson
Quoting Christian König (2019-08-21 13:31:45) > @@ -528,20 +352,9 @@ void dma_resv_prune_fences(struct dma_resv *obj) > dma_fence_put(fence); > } > > - list = dma_resv_get_list(obj); > - if (!list) > - return; > - > - for (i = 0; i <

Re: [PATCH 08/10] dma-buf/resv: replace shared fence with new fences container

2019-08-22 Thread Christian König
Am 22.08.19 um 10:37 schrieb Christian König: Am 21.08.19 um 19:35 schrieb Chris Wilson: Quoting Chris Wilson (2019-08-21 16:24:22) Quoting Christian König (2019-08-21 13:31:45) @@ -117,17 +120,10 @@ i915_gem_busy_ioctl(struct drm_device *dev, void *data,

Re: [PATCH 08/10] dma-buf/resv: replace shared fence with new fences container

2019-08-22 Thread Christian König
Am 21.08.19 um 19:35 schrieb Chris Wilson: Quoting Chris Wilson (2019-08-21 16:24:22) Quoting Christian König (2019-08-21 13:31:45) @@ -117,17 +120,10 @@ i915_gem_busy_ioctl(struct drm_device *dev, void *data, busy_check_writer(rcu_dereference(obj->base.resv->fence_excl));

Re: [PATCH 08/10] dma-buf/resv: replace shared fence with new fences container

2019-08-21 Thread Chris Wilson
Quoting Chris Wilson (2019-08-21 16:24:22) > Quoting Christian König (2019-08-21 13:31:45) > > @@ -117,17 +120,10 @@ i915_gem_busy_ioctl(struct drm_device *dev, void > > *data, > > > > busy_check_writer(rcu_dereference(obj->base.resv->fence_excl)); > > > > /* Translate

Re: [PATCH 08/10] dma-buf/resv: replace shared fence with new fences container

2019-08-21 Thread Chris Wilson
Quoting Christian König (2019-08-21 13:31:45) > @@ -528,20 +352,9 @@ void dma_resv_prune_fences(struct dma_resv *obj) > dma_fence_put(fence); > } > > - list = dma_resv_get_list(obj); > - if (!list) > - return; > - > - for (i = 0; i <

Re: [PATCH 08/10] dma-buf/resv: replace shared fence with new fences container

2019-08-21 Thread Chris Wilson
Quoting Christian König (2019-08-21 13:31:45) > @@ -117,17 +120,10 @@ i915_gem_busy_ioctl(struct drm_device *dev, void *data, > > busy_check_writer(rcu_dereference(obj->base.resv->fence_excl)); > > /* Translate shared fences to READ set of engines */ > - list =

[PATCH 08/10] dma-buf/resv: replace shared fence with new fences container

2019-08-21 Thread Christian König
Replace the old shared fences with the new readers container and change all callers accordingly. Signed-off-by: Christian König --- drivers/dma-buf/dma-buf.c | 99 +--- drivers/dma-buf/dma-resv.c| 524 +++---