consistently use dma_resv locking wrappers
Subsystems (7)
cover consistently use dma_resv locking wrappers
Hi all,
This is prep work for some dma_resv series I'm tinkering with, but I figured good to split this out since good idea to land this no matter what exactly I'll end up creating in dma_resv. With these everything in drivers/gpu nicely goes through either the dma_resv or drm_modeset_lock wrappers, and doesn't call ww_mutex directly.
Review, comments, acks all very much welcome, as usual.
Cheers, Daniel
Daniel Vetter (4):
drm/etnaviv: Use dma_resv locking wrappers
drm/i915: Use dma_resv locking wrappers
drm/msm: Use dma_resv locking wrappers
drm/vc4: Use dma_resv locking wrappers
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 8 +++----- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 6 +++--- drivers/gpu/drm/msm/msm_gem_submit.c | 10 +++++----- drivers/gpu/drm/vc4/vc4_gem.c | 11 +++++------ 4 files changed, 16 insertions(+), 19 deletions(-)
Signature · 6 lines
2.24.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/4 drm/etnaviv: Use dma_resv locking wrappers
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct ww_mutex usage for the fences tracked by dma_resv.
--- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +3 -5
@@ -113,7 +113,7 @@ static void submit_unlock_object(struct etnaviv_gem_submit *submit, int i)if (submit->bos[i].flags &BO_LOCKED ) {struct drm_gem_object *obj = &submit->bos[i].obj->base; -ww_mutex_unlock (&obj->resv->lock); +dma_resv_unlock (obj->resv); submit->bos[i].flags &= ~BO_LOCKED ; } }
@@ -133,8 +133,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock (obj->resv, ticket);if (ret == -EALREADY )DRM_ERROR ("BO at index %u already on submit list\n" , i);
@@ -161,8 +160,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, obj = &submit->bos[contended].obj->base;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_slow_interruptible (obj->resv, ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ; slow_locked = contended;
Signature · 6 lines
2.24.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 1/4] drm/etnaviv: Use dma_resv locking wrappers
Quoted 10 lines · Daniel Vetter
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.Signed-off-by Daniel Vetter <[email protected]>Cc Lucas Stach <[email protected]>Cc Russell King <[email protected]>Cc Christian Gmeiner <[email protected]>
Ping for some review/acks.
Thanks, Daniel
Quoted 40 lines
--- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +3
-5@@ -113,7 +113,7 @@ static void submit_unlock_object(struct etnaviv_gem_submit *submit, int i)if (submit->bos[i].flags &BO_LOCKED ) {struct drm_gem_object *obj = &submit->bos[i].obj->base; -ww_mutex_unlock (&obj->resv->lock); +dma_resv_unlock (obj->resv); submit->bos[i].flags &= ~BO_LOCKED ; } }@@ -133,8 +133,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock (obj->resv, ticket);if (ret == -EALREADY )DRM_ERROR ("BO at index %u already on submit list\n" , i);@@ -161,8 +160,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, obj = &submit->bos[contended].obj->base;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_slow_interruptible (obj->resv, ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ; slow_locked = contended;Signature · 1 line
2.24.0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RE: [PATCH 1/4] drm/etnaviv: Use dma_resv locking wrappers
Quoted 48 lines
-----Original Message-----
From: dri-devel <[email protected]> On Behalf Of Daniel Vetter
Sent: Friday, December 13, 2019 3:08 PM
To: DRI Development <[email protected]>
Cc: Daniel Vetter <[email protected]>; Intel Graphics Development <[email protected]>; [email protected]; Russell King <[email protected]>; Vetter, Daniel <[email protected]>
Subject: Re: [PATCH 1/4] drm/etnaviv: Usedma_resvlocking wrappersQuoted 10 lines · Daniel Vetter
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.Signed-off-by Daniel Vetter <[email protected]>Cc Lucas Stach <[email protected]>Cc Russell King <[email protected]>Cc Christian Gmeiner <[email protected]>Ping for some review/acks.
Thanks, Daniel
Review
Quoted 5 lines
--- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.cdrivers/gpu/drm/etnaviv/etnaviv_gem_submit.c static void submit_unlock_object(struct
Quoted 4 lines
index
aa3e4c3b063a..947b21868e72100644drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +0
-0@@ -113,7 +113,7 @@ static void submit_unlock_object(struct
etnaviv_gem_submit*submit, int i)drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c static int submit_lock_objects(struct
Quoted 9 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +1
-1if (submit->bos[i].flags &BO_LOCKED ) {struct drm_gem_object *obj = &submit->bos[i].obj->base; -ww_mutex_unlock (&obj->resv->lock); +dma_resv_unlock (obj->resv); submit->bos[i].flags &= ~BO_LOCKED ; } }@@ -133,8 +133,7 @@ static int submit_lock_objects(struct
etnaviv_gem_submit*submit,
Quoted 7 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c static int submit_lock_objects(struct etnaviv_gem_submit *submit, · line 136
Quoted 7 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +1
-2contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&obj->resv- lock, - ticket); + ret =dma_resv_lock (obj->resv, ticket);
Should this be dma_resv_lock_interruptible()?
Mike
Quoted 19 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c static int submit_lock_objects(struct · line 139
Quoted 2 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +0
-0if (ret == -EALREADY ) DRM_ERROR("BO at index %u already onsubmit list\n",
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c static int submit_lock_objects(struct
Quoted 2 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +0
-0i);@@ -161,8 +160,7 @@ static int submit_lock_objects(struct
etnaviv_gem_submit*submit,Quoted 10 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +1
-3obj = &submit->bos[contended].obj->base;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_slow_interruptible (obj->resv, ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ; slow_locked = contended; --Quoted 2 lines
2.24.0
Quoted 8 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
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/1 drm/etnaviv: Use dma_resv locking wrappers
In reply to Daniel VetterI'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct ww_mutex usage for the fences tracked by dma_resv.
v2: Fix the lost _interruptible (Michael)
--- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +3 -5
@@ -113,7 +113,7 @@ static void submit_unlock_object(struct etnaviv_gem_submit *submit, int i)if (submit->bos[i].flags &BO_LOCKED ) {struct drm_gem_object *obj = &submit->bos[i].obj->base; -ww_mutex_unlock (&obj->resv->lock); +dma_resv_unlock (obj->resv); submit->bos[i].flags &= ~BO_LOCKED ; } }
@@ -133,8 +133,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_interruptible (obj->resv, ticket);if (ret == -EALREADY )DRM_ERROR ("BO at index %u already on submit list\n" , i);
@@ -161,8 +160,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, obj = &submit->bos[contended].obj->base;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_slow_interruptible (obj->resv, ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ; slow_locked = contended;
Signature · 6 lines
2.24.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
RE: [PATCH] drm/etnaviv: Use dma_resv locking wrappers
Quoted 43 lines
-----Original Message-----
From: dri-devel <[email protected]> On Behalf Of Daniel Vetter
Sent: Friday, December 13, 2019 7:09 PM
To: DRI Development <[email protected]>
Cc: Daniel Vetter <[email protected]>; [email protected]; Ruhl, Michael J <[email protected]>; Russell King <[email protected]>; Vetter, Daniel <[email protected]>
Subject: [PATCH] drm/etnaviv: Usedma_resvlocking wrappersI'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.v2: Fix the lost
_interruptible(Michael)Signed-off-by Daniel Vetter <[email protected]>Cc Lucas Stach <[email protected]>Cc Russell King <[email protected]>Cc Christian Gmeiner <[email protected]>Cc "Ruhl, Michael J" <[email protected]>---
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c| 8 +++-----1 file changed, 3 insertions(+), 5 deletions(-)drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +1
-1@@ -113,7 +113,7 @@ static void submit_unlock_object(struct etnaviv_gem_submit *submit, int i) if (submit->bos[i].flags & BO_LOCKED) {struct drm_gem_object *obj = &submit->bos[i].obj->base; -ww_mutex_unlock (&obj->resv->lock); +dma_resv_unlock (obj->resv); submit->bos[i].flags &= ~BO_LOCKED ; }}
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c static int submit_lock_objects(struct · line 138
Quoted 8 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +1
-2@@ -133,8 +133,7 @@ static int submit_lock_objects(structetnaviv_gem_submit *submit, contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&obj->resv- >lock, - ticket); + ret =dma_resv_lock_interruptible (obj->resv, ticket);
Thanks,
If you need it:
m
Quoted 15 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +0
-0if (ret == -EALREADY )DRM_ERROR("BO at index %u already on
submit list\n",i);drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +1
-2@@ -161,8 +160,7 @@ static int submit_lock_objects(structetnaviv_gem_submit *submit, obj = &submit->bos[contended].obj->base;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_slow_interruptible (obj->resv, ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ;slow_locked = contended;
Quoted 7 lines
--
2.24.0_______________________________________________
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
Re: [PATCH] drm/etnaviv: Use dma_resv locking wrappers
In reply to Daniel VetterQuoted 5 lines · Daniel Vetter
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.
Quoted 8 lines
v2: Fix the lost
_interruptible(Michael)Signed-off-by Daniel Vetter <[email protected]>Cc Lucas Stach <[email protected]>Cc Russell King <[email protected]>Cc Christian Gmeiner <[email protected]>Cc "Ruhl, Michael J" <[email protected]>
If you want to stack other stuff on top of this before the next merge window feel free to take it through drm-misc. Otherwise I'm going to pick it up with the next sweep.
Regards,
Lucas
Quoted 28 lines
--- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +2
-3@@ -113,7 +113,7 @@ static void submit_unlock_object(struct etnaviv_gem_submit *submit, int i)if (submit->bos[i].flags &BO_LOCKED ) {struct drm_gem_object *obj = &submit->bos[i].obj->base; -ww_mutex_unlock (&obj->resv->lock); +dma_resv_unlock (obj->resv); submit->bos[i].flags &= ~BO_LOCKED ; } }@@ -133,8 +133,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_interruptible (obj->resv, ticket);if (ret == -EALREADY )DRM_ERROR ("BO at index %u already on submit list\n" , i);
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c static int submit_lock_objects(struct etnaviv_gem_submit *submit, · line 166
Quoted 9 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +1
-2@@ -161,8 +160,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, obj = &submit->bos[contended].obj->base;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_slow_interruptible (obj->resv, ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ; slow_locked = contended;
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH] drm/etnaviv: Use dma_resv locking wrappers
Quoted 15 lines · Lucas Stach
Quoted 5 lines · Daniel Vetter
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.Quoted 8 lines
v2: Fix the lost
_interruptible(Michael)Signed-off-by Daniel Vetter <[email protected]>Cc Lucas Stach <[email protected]>Cc Russell King <[email protected]>Cc Christian Gmeiner <[email protected]>Cc "Ruhl, Michael J" <[email protected]>
Quoted 5 lines
Reviewed-by Lucas Stach <[email protected]>If you want to stack other stuff on top of this before the next merge window feel free to take it through drm-misc. Otherwise I'm going to pick it up with the next sweep.
I expect a fair amount of stacking in the dma-buf area in the near future , so applied all (except the i915 one, that's already superseeded with i915 specific work) to drm-misc-next.
Thanks for review.
-Daniel
Quoted 42 lines
Regards,
LucasQuoted 37 lines
--- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +3
-5@@ -113,7 +113,7 @@ static void submit_unlock_object(struct etnaviv_gem_submit *submit, int i)if (submit->bos[i].flags &BO_LOCKED ) {struct drm_gem_object *obj = &submit->bos[i].obj->base; -ww_mutex_unlock (&obj->resv->lock); +dma_resv_unlock (obj->resv); submit->bos[i].flags &= ~BO_LOCKED ; } }@@ -133,8 +133,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_interruptible (obj->resv, ticket);if (ret == -EALREADY )DRM_ERROR ("BO at index %u already on submit list\n" , i);@@ -161,8 +160,7 @@ static int submit_lock_objects(struct etnaviv_gem_submit *submit, obj = &submit->bos[contended].obj->base;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&obj->resv->lock, - ticket); + ret =dma_resv_lock_slow_interruptible (obj->resv, ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ; slow_locked = contended;
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
PATCH 2/4 drm/i915: Use dma_resv locking wrappers
In reply to Daniel VetterI'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct ww_mutex usage for the fences tracked by dma_resv.
Aside: We might want to create wrappers for i915_vma locking of the ->resv like we have for the i915_gem_bo itself already.
--- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +3 -3
@@ -1848,7 +1848,7 @@ static int eb_move_to_gpu(struct i915_execbuffer *eb)for (i =0 ; i < count; i++) {struct i915_vma *vma = eb->vma[i]; - err =ww_mutex_lock_interruptible (&vma->resv->lock, &acquire); + err =dma_resv_lock_interruptible (vma->resv, &acquire);if (!err)continue ;
@@ -1859,7 +1859,7 @@ static int eb_move_to_gpu(struct i915_execbuffer *eb) do { int j = i - 1; - ww_mutex_unlock(&eb->vma[j]->resv->lock); + dma_resv_unlock(eb->vma[j]->resv); swap(eb->flags[i], eb->flags[j]); swap(eb->vma[i], eb->vma[j]);
@@ -1868,7 +1868,7 @@ static int eb_move_to_gpu(struct i915_execbuffer *eb)GEM_BUG_ON (vma != eb->vma[0 ]); vma->exec_flags = &eb->flags[0 ]; - err =ww_mutex_lock_slow_interruptible (&vma->resv->lock, + err =dma_resv_lock_slow_interruptible (vma->resv, &acquire); }if (err)
Signature · 6 lines
2.24.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/4] drm/i915: Use dma_resv locking wrappers
Quoted 8 lines · Daniel Vetter
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.Aside: We might want to create wrappers for
i915_vmalocking of the ->resv like we have for thei915_gem_boitself already.
Quoted 7 lines
Signed-off-by Daniel Vetter <[email protected]>Cc Chris Wilson <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc Matthew Auld <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Jani Nikula <[email protected]>---
Maarten/Chris, should I drop this one or keep? I guess this will all change anyway rsn ...
-Daniel
Quoted 37 lines
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +3
-3@@ -1848,7 +1848,7 @@ static int eb_move_to_gpu(struct i915_execbuffer *eb)for (i =0 ; i < count; i++) {struct i915_vma *vma = eb->vma[i]; - err =ww_mutex_lock_interruptible (&vma->resv->lock, &acquire); + err =dma_resv_lock_interruptible (vma->resv, &acquire);if (!err)continue ;@@ -1859,7 +1859,7 @@ static int eb_move_to_gpu(struct i915_execbuffer *eb) do { int j = i - 1; - ww_mutex_unlock(&eb->vma[j]->resv->lock); + dma_resv_unlock(eb->vma[j]->resv); swap(eb->flags[i], eb->flags[j]); swap(eb->vma[i], eb->vma[j]);@@ -1868,7 +1868,7 @@ static int eb_move_to_gpu(struct i915_execbuffer *eb)GEM_BUG_ON (vma != eb->vma[0 ]); vma->exec_flags = &eb->flags[0 ]; - err =ww_mutex_lock_slow_interruptible (&vma->resv->lock, + err =dma_resv_lock_slow_interruptible (vma->resv, &acquire); }if (err)Signature · 1 line
2.24.0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
A message that is not in the archive (sent off-list or not yet received): 20191125094356.161941-1-daniel.vetter-/[email protected]
PATCH 3/4 drm/msm: Use dma_resv locking wrappers
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct ww_mutex usage for the fences tracked by dma_resv.
--- drivers/gpu/drm/msm/msm_gem_submit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/msm/msm_gem_submit.c +5 -5
@@ -157,7 +157,7 @@ static void submit_unlock_unpin_bo(struct msm_gem_submit *submit,msm_gem_unpin_iova (&msm_obj->base, submit->aspace);if (submit->bos[i].flags &BO_LOCKED ) -ww_mutex_unlock (&msm_obj->base.resv->lock); +dma_resv_unlock (msm_obj->base.resv);if (backoff && !(submit->bos[i].flags &BO_VALID )) submit->bos[i].iova =0 ;
@@ -180,8 +180,8 @@ static int submit_lock_objects(struct msm_gem_submit *submit) contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&msm_obj->base.resv->lock, - &submit->ticket); + ret =dma_resv_lock_interruptible (msm_obj->base.resv, + &submit->ticket);if (ret) goto fail; submit->bos[i].flags |=BO_LOCKED ;
@@ -202,8 +202,8 @@ static int submit_lock_objects(struct msm_gem_submit *submit)if (ret == -EDEADLK ) {struct msm_gem_object *msm_obj = submit->bos[contended].obj;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&msm_obj->base.resv->lock, - &submit->ticket); + ret =dma_resv_lock_slow_interruptible (msm_obj->base.resv, + &submit->ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ; slow_locked = contended;
Signature · 6 lines
2.24.0 _______________________________________________ Freedreno mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/freedreno
Re: [PATCH 3/4] drm/msm: Use dma_resv locking wrappers
Quoted 10 lines · Daniel Vetter
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.Signed-off-by Daniel Vetter <[email protected]>Cc Rob Clark <[email protected]>Cc Sean Paul <[email protected]>
Ping for some review/acks.
Thanks, Daniel
Quoted 42 lines
--- drivers/gpu/drm/msm/msm_gem_submit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/msm/msm_gem_submit.c +5
-5@@ -157,7 +157,7 @@ static void submit_unlock_unpin_bo(struct msm_gem_submit *submit,msm_gem_unpin_iova (&msm_obj->base, submit->aspace);if (submit->bos[i].flags &BO_LOCKED ) -ww_mutex_unlock (&msm_obj->base.resv->lock); +dma_resv_unlock (msm_obj->base.resv);if (backoff && !(submit->bos[i].flags &BO_VALID )) submit->bos[i].iova =0 ;@@ -180,8 +180,8 @@ static int submit_lock_objects(struct msm_gem_submit *submit) contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&msm_obj->base.resv->lock, - &submit->ticket); + ret =dma_resv_lock_interruptible (msm_obj->base.resv, + &submit->ticket);if (ret) goto fail; submit->bos[i].flags |=BO_LOCKED ;@@ -202,8 +202,8 @@ static int submit_lock_objects(struct msm_gem_submit *submit)if (ret == -EDEADLK ) {struct msm_gem_object *msm_obj = submit->bos[contended].obj;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&msm_obj->base.resv->lock, - &submit->ticket); + ret =dma_resv_lock_slow_interruptible (msm_obj->base.resv, + &submit->ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ; slow_locked = contended;Signature · 1 line
2.24.0
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Eric Anholt
Reviewed-byRe: [PATCH 3/4] drm/msm: Use dma_resv locking wrappers
Quoted 51 lines · Daniel Vetter
Quoted 10 lines · Daniel Vetter
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.Signed-off-by Daniel Vetter <[email protected]>Cc Rob Clark <[email protected]>Cc Sean Paul <[email protected]>Ping for some review/acks.
Thanks, Daniel
Quoted 34 lines
--- drivers/gpu/drm/msm/msm_gem_submit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/msm/msm_gem_submit.c +3
-5@@ -157,7 +157,7 @@ static void submit_unlock_unpin_bo(struct msm_gem_submit *submit,msm_gem_unpin_iova (&msm_obj->base, submit->aspace);if (submit->bos[i].flags &BO_LOCKED ) -ww_mutex_unlock (&msm_obj->base.resv->lock); +dma_resv_unlock (msm_obj->base.resv);if (backoff && !(submit->bos[i].flags &BO_VALID )) submit->bos[i].iova =0 ;@@ -180,8 +180,8 @@ static int submit_lock_objects(struct msm_gem_submit *submit) contended = i;if (!(submit->bos[i].flags &BO_LOCKED )) { - ret =ww_mutex_lock_interruptible (&msm_obj->base.resv->lock, - &submit->ticket); + ret =dma_resv_lock_interruptible (msm_obj->base.resv, + &submit->ticket);if (ret) goto fail; submit->bos[i].flags |=BO_LOCKED ;@@ -202,8 +202,8 @@ static int submit_lock_objects(struct msm_gem_submit *submit)if (ret == -EDEADLK ) {struct msm_gem_object *msm_obj = submit->bos[contended].obj;/* we lost out in a seqno race, lock and retry.. */ - ret =ww_mutex_lock_slow_interruptible (&msm_obj->base.resv->lock, - &submit->ticket);
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/msm/msm_gem_submit.c +2
-1+ ret =dma_resv_lock_slow_interruptible (msm_obj->base.resv, + &submit->ticket);if (!ret) { submit->bos[contended].flags |=BO_LOCKED ; slow_locked = contended; --2.24.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/4 drm/vc4: Use dma_resv locking wrappers
In reply to Daniel VetterI'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct ww_mutex usage for the fences tracked by dma_resv.
--- drivers/gpu/drm/vc4/vc4_gem.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/gpu/drm/vc4/vc4_gem.c +5 -6
@@ -568,7 +568,7 @@ vc4_unlock_bo_reservations(struct drm_device *dev,for (i =0 ; i < exec->bo_count; i++) {struct drm_gem_object *bo = &exec->bo[i]->base; -ww_mutex_unlock (&bo->resv->lock); +dma_resv_unlock (bo->resv); }ww_acquire_fini (acquire_ctx);
@@ -595,8 +595,7 @@ vc4_lock_bo_reservations(struct drm_device *dev, retry:if (contended_lock !=-1 ) { bo = &exec->bo[contended_lock]->base; - ret =ww_mutex_lock_slow_interruptible (&bo->resv->lock, - acquire_ctx); + ret =dma_resv_lock_slow_interruptible (bo->resv, acquire_ctx);if (ret) {ww_acquire_done (acquire_ctx);return ret;
@@ -609,19 +608,19 @@ vc4_lock_bo_reservations(struct drm_device *dev, bo = &exec->bo[i]->base; - ret =ww_mutex_lock_interruptible (&bo->resv->lock, acquire_ctx); + ret =dma_resv_lock_interruptible (bo->resv, acquire_ctx);if (ret) {int j;for (j =0 ; j < i; j++) { bo = &exec->bo[j]->base; -ww_mutex_unlock (&bo->resv->lock); +dma_resv_unlock (bo->resv); }if (contended_lock !=-1 && contended_lock >= i) { bo = &exec->bo[contended_lock]->base; -ww_mutex_unlock (&bo->resv->lock); +dma_resv_unlock (bo->resv); }if (ret == -EDEADLK ) {
Signature · 6 lines
2.24.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 4/4] drm/vc4: Use dma_resv locking wrappers
Quoted 6 lines · Daniel Vetter
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.Signed-off-by Daniel Vetter <[email protected]>
Ping for some review/acks.
Thanks, Daniel
Quoted 53 lines
--- drivers/gpu/drm/vc4/vc4_gem.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)drivers/gpu/drm/vc4/vc4_gem.c +5
-6@@ -568,7 +568,7 @@ vc4_unlock_bo_reservations(struct drm_device *dev,for (i =0 ; i < exec->bo_count; i++) {struct drm_gem_object *bo = &exec->bo[i]->base; -ww_mutex_unlock (&bo->resv->lock); +dma_resv_unlock (bo->resv); }ww_acquire_fini (acquire_ctx);@@ -595,8 +595,7 @@ vc4_lock_bo_reservations(struct drm_device *dev, retry:if (contended_lock !=-1 ) { bo = &exec->bo[contended_lock]->base; - ret =ww_mutex_lock_slow_interruptible (&bo->resv->lock, - acquire_ctx); + ret =dma_resv_lock_slow_interruptible (bo->resv, acquire_ctx);if (ret) {ww_acquire_done (acquire_ctx);return ret;@@ -609,19 +608,19 @@ vc4_lock_bo_reservations(struct drm_device *dev, bo = &exec->bo[i]->base; - ret =ww_mutex_lock_interruptible (&bo->resv->lock, acquire_ctx); + ret =dma_resv_lock_interruptible (bo->resv, acquire_ctx);if (ret) {int j;for (j =0 ; j < i; j++) { bo = &exec->bo[j]->base; -ww_mutex_unlock (&bo->resv->lock); +dma_resv_unlock (bo->resv); }if (contended_lock !=-1 && contended_lock >= i) { bo = &exec->bo[contended_lock]->base; -ww_mutex_unlock (&bo->resv->lock); +dma_resv_unlock (bo->resv); }if (ret == -EDEADLK ) {Signature · 1 line
2.24.0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Eric Anholt
Acked-byRe: [PATCH 4/4] drm/vc4: Use dma_resv locking wrappers
Quoted 58 lines · Daniel Vetter
Quoted 6 lines · Daniel Vetter
I'll add more fancy logic to them soon, so everyone really has to use them. Plus they already provide some nice additional debug infrastructure on top of direct
ww_mutexusage for the fences tracked bydma_resv.Signed-off-by Daniel Vetter <[email protected]>Ping for some review/acks.
Thanks, Daniel
Quoted 45 lines
--- drivers/gpu/drm/vc4/vc4_gem.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)drivers/gpu/drm/vc4/vc4_gem.c +4
-5@@ -568,7 +568,7 @@ vc4_unlock_bo_reservations(struct drm_device *dev,for (i =0 ; i < exec->bo_count; i++) {struct drm_gem_object *bo = &exec->bo[i]->base; -ww_mutex_unlock (&bo->resv->lock); +dma_resv_unlock (bo->resv); }ww_acquire_fini (acquire_ctx);@@ -595,8 +595,7 @@ vc4_lock_bo_reservations(struct drm_device *dev, retry:if (contended_lock !=-1 ) { bo = &exec->bo[contended_lock]->base; - ret =ww_mutex_lock_slow_interruptible (&bo->resv->lock, - acquire_ctx); + ret =dma_resv_lock_slow_interruptible (bo->resv, acquire_ctx);if (ret) {ww_acquire_done (acquire_ctx);return ret;@@ -609,19 +608,19 @@ vc4_lock_bo_reservations(struct drm_device *dev, bo = &exec->bo[i]->base; - ret =ww_mutex_lock_interruptible (&bo->resv->lock, acquire_ctx); + ret =dma_resv_lock_interruptible (bo->resv, acquire_ctx);if (ret) {int j;for (j =0 ; j < i; j++) { bo = &exec->bo[j]->base; -ww_mutex_unlock (&bo->resv->lock); +dma_resv_unlock (bo->resv); }if (contended_lock !=-1 && contended_lock >= i) { bo = &exec->bo[contended_lock]->base;
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/vc4/vc4_gem.c +1
-2-ww_mutex_unlock (&bo->resv->lock); +dma_resv_unlock (bo->resv); }if (ret == -EDEADLK ) { --2.24.0
Assuming they're supposed to be exactly equivalent currently,
but we should really just be using drm_gem_lock_reservations()
_______________________________________________
dri-devel mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for consistently use dma_resv locking wrappers
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: consistently use dma_resv locking wrappers
URL : https://patchwork.freedesktop.org/series/69970/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 7776c394b6e2 drm/etnaviv: Use dma_resv locking wrappers -:49: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 26 lines checkedc13d788d8bd6 drm/i915: Use dma_resv locking wrappers
-:51: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 24 lines checked5e8c7f04d447 drm/msm: Use dma_resv locking wrappers
-:51: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 28 lines checked
819963635922 drm/vc4: Use dma_resv locking wrappers
-:58: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 39 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for consistently use dma_resv locking wrappers
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: consistently use dma_resv locking wrappers
URL : https://patchwork.freedesktop.org/series/69970/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_7416 -> Patchwork_15417
====================================================
Summary
-------
**WARNING**
Minor unknown changes coming with Patchwork_15417 need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_15417, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_15417:
### IGT changes ###
#### Warnings ####
* igt@i915_selftest@live_workarounds:
- fi-kbl-soraka: [TIMEOUT][1] ([fdo#112387]) -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-kbl-soraka/igt@i915_selftest@live_workarounds.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-kbl-soraka/igt@i915_selftest@live_workarounds.html
Known issues
------------
Here are the changes found in Patchwork_15417 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@module-reload:
- fi-skl-lmem: [PASS][3] -> [DMESG-WARN][4] ([fdo#112261])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-skl-lmem/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-skl-lmem/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-hsw-peppy: [PASS][5] -> [DMESG-FAIL][6] ([fdo#112147])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-hsw-peppy/igt@i915_selftest@live_blt.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-hsw-peppy/igt@i915_selftest@live_blt.html
* igt@i915_selftest@live_hangcheck:
- fi-hsw-4770r: [PASS][7] -> [DMESG-FAIL][8] ([fdo#111991])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-hsw-4770r/igt@i915_selftest@live_hangcheck.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-hsw-4770r/igt@i915_selftest@live_hangcheck.html
#### Possible fixes ####
* igt@i915_pm_rpm@module-reload:
- fi-skl-6770hq: [FAIL][9] ([fdo#108511]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-skl-6770hq/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-skl-6770hq/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][11] ([fdo#111407]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-kbl-7500u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-kbl-7500u/igt@[email protected]
#### Warnings ####
* igt@gem_exec_suspend@basic-s0:
- fi-kbl-x1275: [DMESG-WARN][13] ([fdo#103558] / [fdo#105602]) -> [DMESG-WARN][14] ([fdo#103558] / [fdo#105602] / [fdo#105763]) +2 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-kbl-x1275/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-kbl-x1275/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-kbl-x1275: [DMESG-WARN][15] ([fdo#103558] / [fdo#105602] / [fdo#105763]) -> [DMESG-WARN][16] ([fdo#103558] / [fdo#105602]) +9 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-kbl-x1275/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-kbl-x1275/igt@[email protected]
* igt@runner@aborted:
- fi-cfl-guc: [FAIL][17] ([fdo#110943]) -> [FAIL][18] ([fdo#110943] / [fdo#112387])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-cfl-guc/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-cfl-guc/igt@[email protected]
- fi-kbl-x1275: [FAIL][19] ([fdo#112387]) -> [FAIL][20] ([fdo#105602])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-kbl-x1275/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-kbl-x1275/igt@[email protected]
- fi-kbl-guc: [FAIL][21] ([fdo#110943]) -> [FAIL][22] ([fdo#110943] / [fdo#112387])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7416/fi-kbl-guc/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/fi-kbl-guc/igt@[email protected]
[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#105763]: https://bugs.freedesktop.org/show_bug.cgi?id=105763
[fdo#108511]: https://bugs.freedesktop.org/show_bug.cgi?id=108511
[fdo#110943]: https://bugs.freedesktop.org/show_bug.cgi?id=110943
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[fdo#111991]: https://bugs.freedesktop.org/show_bug.cgi?id=111991
[fdo#112147]: https://bugs.freedesktop.org/show_bug.cgi?id=112147
[fdo#112261]: https://bugs.freedesktop.org/show_bug.cgi?id=112261
[fdo#112387]: https://bugs.freedesktop.org/show_bug.cgi?id=112387
Participating hosts (47 -> 44)
------------------------------
Additional (2): fi-skl-guc fi-gdg-551
Missing (5): fi-ilk-m540 fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7416 -> Patchwork_15417
CI-20190529: 20190529
CI_DRM_7416: 27c78108eb4aa74878015666a796dcfe09dcbd00 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5305: eafaa79dfb71f7251126f1c000e0cbe94425c95a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15417: 81996363592231adeb3e5612d7791e23ae3c8411 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
819963635922 drm/vc4: Use dma_resv locking wrappers 5e8c7f04d447 drm/msm: Use dma_resv locking wrappers c13d788d8bd6 drm/i915: Use dma_resv locking wrappers 7776c394b6e2 drm/etnaviv: Use dma_resv locking wrappers
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15417/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Daniel Vetter
Hi all,
This is prep work for some
dma_resvseries I'm tinkering with, but I figured good to split this out since good idea to land this no matter what exactly I'll end up creating indma_resv. With these everything indrivers/gpunicely goes through either thedma_resvordrm_modeset_lockwrappers, and doesn't callww_mutexdirectly.Review, comments, acks all very much welcome, as usual.
Quoted 7 lines
Cheers, Daniel
Daniel Vetter (4):
drm/etnaviv: Usedma_resvlocking wrappers
drm/i915: Usedma_resvlocking wrappers
drm/msm: Usedma_resvlocking wrappers
drm/vc4: Usedma_resvlocking wrappers
Ping for some review/acks on this series ...
-Daniel
Quoted 10 lines
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 8 +++----- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 6 +++--- drivers/gpu/drm/msm/msm_gem_submit.c | 10 +++++----- drivers/gpu/drm/vc4/vc4_gem.c | 11 +++++------ 4 files changed, 16 insertions(+), 19 deletions(-)Signature · 1 line
2.24.0
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