]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dma-buf: rename dma_resv_get_excl_rcu to _unlocked
authorChristian König <christian.koenig@amd.com>
Wed, 2 Jun 2021 10:44:32 +0000 (12:44 +0200)
committerChristian König <christian.koenig@amd.com>
Sun, 6 Jun 2021 09:19:30 +0000 (11:19 +0200)
That describes much better what the function is doing here.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210602111714.212426-6-christian.koenig@amd.com
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/drm_gem_atomic_helper.c
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/gem/i915_gem_object.h
drivers/gpu/drm/i915/gem/i915_gem_wait.c
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_sw_fence.c
drivers/gpu/drm/nouveau/dispnv50/wndw.c
drivers/gpu/drm/panfrost/panfrost_job.c
include/linux/dma-resv.h

index 9989425e9875a8d12643f643b1ea24a4054e1cd4..263b4fb03303a4522b2624b88286b63297f4891b 100644 (file)
@@ -1375,7 +1375,7 @@ int drm_gem_fence_array_add_implicit(struct xarray *fence_array,
 
        if (!write) {
                struct dma_fence *fence =
-                       dma_resv_get_excl_rcu(obj->resv);
+                       dma_resv_get_excl_unlocked(obj->resv);
 
                return drm_gem_fence_array_add(fence_array, fence);
        }
index a005c5a0ba46ac0db118e68d7d51559eb90cb58a..a27135084ae5c8cc43c600c71f6c46c9518f91e1 100644 (file)
@@ -147,7 +147,7 @@ int drm_gem_plane_helper_prepare_fb(struct drm_plane *plane, struct drm_plane_st
                return 0;
 
        obj = drm_gem_fb_get_obj(state->fb, 0);
-       fence = dma_resv_get_excl_rcu(obj->resv);
+       fence = dma_resv_get_excl_unlocked(obj->resv);
        drm_atomic_set_fence_for_plane(state, fence);
 
        return 0;
index d05c359945799f89a946ee30d70543c2dccad00d..c942d2a8c252ec1172446e8d916c6ae21ccb0c3f 100644 (file)
@@ -195,7 +195,7 @@ static int submit_fence_sync(struct etnaviv_gem_submit *submit)
                        if (ret)
                                return ret;
                } else {
-                       bo->excl = dma_resv_get_excl_rcu(robj);
+                       bo->excl = dma_resv_get_excl_unlocked(robj);
                }
 
        }
index 384ff0bb6e19448d84e808cf4a7ecedc60e11bf9..f17c5f54feb6657c324c48efb351317e817ea3d6 100644 (file)
@@ -11040,7 +11040,7 @@ intel_prepare_plane_fb(struct drm_plane *_plane,
                if (ret < 0)
                        goto unpin_fb;
 
-               fence = dma_resv_get_excl_rcu(obj->base.resv);
+               fence = dma_resv_get_excl_unlocked(obj->base.resv);
                if (fence) {
                        add_rps_boost_after_vblank(new_plane_state->hw.crtc,
                                                   fence);
index 2ebd79537aea98c5f0b76244bbacd9cfec006446..7c0eb425cb3b36457d37fcc79028a4480ba52fca 100644 (file)
@@ -500,7 +500,7 @@ i915_gem_object_last_write_engine(struct drm_i915_gem_object *obj)
        struct dma_fence *fence;
 
        rcu_read_lock();
-       fence = dma_resv_get_excl_rcu(obj->base.resv);
+       fence = dma_resv_get_excl_unlocked(obj->base.resv);
        rcu_read_unlock();
 
        if (fence && dma_fence_is_i915(fence) && !dma_fence_is_signaled(fence))
index 4b9856d5ba14f3f1ef3975af557d925cd14e58cd..c13aeddf5aa7b1358daec7f494f9d29e1a987439 100644 (file)
@@ -73,7 +73,7 @@ i915_gem_object_wait_reservation(struct dma_resv *resv,
                 */
                prune_fences = count && timeout >= 0;
        } else {
-               excl = dma_resv_get_excl_rcu(resv);
+               excl = dma_resv_get_excl_unlocked(resv);
        }
 
        if (excl && timeout >= 0)
@@ -170,7 +170,7 @@ i915_gem_object_wait_priority(struct drm_i915_gem_object *obj,
 
                kfree(shared);
        } else {
-               excl = dma_resv_get_excl_rcu(obj->base.resv);
+               excl = dma_resv_get_excl_unlocked(obj->base.resv);
        }
 
        if (excl) {
index bec9c3652188b47dd5ee0c7969ee87c49f29965c..c85494f411f4dfed6a3ce5bb18474b4f03e19fdb 100644 (file)
@@ -1611,7 +1611,7 @@ i915_request_await_object(struct i915_request *to,
                        dma_fence_put(shared[i]);
                kfree(shared);
        } else {
-               excl = dma_resv_get_excl_rcu(obj->base.resv);
+               excl = dma_resv_get_excl_unlocked(obj->base.resv);
        }
 
        if (excl) {
index 2744558f3050757f6c90b411f26dbb729999ec4c..7aaf74552d06c1c88280a83eba32ae5691f7bc71 100644 (file)
@@ -606,7 +606,7 @@ int i915_sw_fence_await_reservation(struct i915_sw_fence *fence,
                        dma_fence_put(shared[i]);
                kfree(shared);
        } else {
-               excl = dma_resv_get_excl_rcu(resv);
+               excl = dma_resv_get_excl_unlocked(resv);
        }
 
        if (ret >= 0 && excl && excl->ops != exclude) {
index 0cb1f9d848d3eb6339552b563bd2cdf134e6681b..8d048bacd6f0207ed452bf2962084d1f4d83b9ab 100644 (file)
@@ -561,7 +561,7 @@ nv50_wndw_prepare_fb(struct drm_plane *plane, struct drm_plane_state *state)
                        asyw->image.handle[0] = ctxdma->object.handle;
        }
 
-       asyw->state.fence = dma_resv_get_excl_rcu(nvbo->bo.base.resv);
+       asyw->state.fence = dma_resv_get_excl_unlocked(nvbo->bo.base.resv);
        asyw->image.offset[0] = nvbo->offset;
 
        if (wndw->func->prepare) {
index 6003cfeb132215be72279b020d0a3fbab45d2e90..2df3e999a38d0be7b2c44c1826d1fafaa7dc8080 100644 (file)
@@ -203,7 +203,7 @@ static void panfrost_acquire_object_fences(struct drm_gem_object **bos,
        int i;
 
        for (i = 0; i < bo_count; i++)
-               implicit_fences[i] = dma_resv_get_excl_rcu(bos[i]->resv);
+               implicit_fences[i] = dma_resv_get_excl_unlocked(bos[i]->resv);
 }
 
 static void panfrost_attach_object_fences(struct drm_gem_object **bos,
index 8dc19d65a217f36506e8835a936ef0126e95ca38..3e0eefcead44293d7003b9e595a3e2fb734125c4 100644 (file)
@@ -229,7 +229,7 @@ dma_resv_excl_fence(struct dma_resv *obj)
 }
 
 /**
- * dma_resv_get_excl_rcu - get the reservation object's
+ * dma_resv_get_excl_unlocked - get the reservation object's
  * exclusive fence, without lock held.
  * @obj: the reservation object
  *
@@ -240,7 +240,7 @@ dma_resv_excl_fence(struct dma_resv *obj)
  * The exclusive fence or NULL if none
  */
 static inline struct dma_fence *
-dma_resv_get_excl_rcu(struct dma_resv *obj)
+dma_resv_get_excl_unlocked(struct dma_resv *obj)
 {
        struct dma_fence *fence;