]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/imagination: Rename pvr_queue_fence_is_ufo_backed() to reflect usage
authorAlessio Belle <alessio.belle@imgtec.com>
Mon, 30 Mar 2026 07:56:39 +0000 (08:56 +0100)
committerMatt Coster <matt.coster@imgtec.com>
Wed, 8 Apr 2026 10:17:13 +0000 (11:17 +0100)
This function is only used by the synchronization code to figure out if
a fence belongs to this driver.
Rename it to pvr_queue_fence_is_native() and update its documentation to
reflect its current purpose.

Signed-off-by: Alessio Belle <alessio.belle@imgtec.com>
Reviewed-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
Link: https://patch.msgid.link/20260330-job-submission-fixes-cleanup-v1-4-7de8c09cef8c@imgtec.com
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
drivers/gpu/drm/imagination/pvr_queue.c
drivers/gpu/drm/imagination/pvr_queue.h
drivers/gpu/drm/imagination/pvr_sync.c

index 527eae1309d86e03cd1c18d3dccdc46000122747..df0a110ed96fe3d12594967d2c7ba14204205e30 100644 (file)
@@ -898,16 +898,16 @@ static const struct drm_sched_backend_ops pvr_queue_sched_ops = {
 };
 
 /**
- * pvr_queue_fence_is_ufo_backed() - Check if a dma_fence is backed by a UFO object
+ * pvr_queue_fence_is_native() - Check if a dma_fence is native to this driver.
  * @f: Fence to test.
  *
- * A UFO-backed fence is a fence that can be signaled or waited upon FW-side.
- * pvr_job::done_fence objects are backed by the timeline UFO attached to the queue
- * they are pushed to, but those fences are not directly exposed to the outside
- * world, so we also need to check if the fence we're being passed is a
- * drm_sched_fence that was coming from our driver.
+ * Check if the fence we're being passed is a drm_sched_fence that is coming from this driver.
+ *
+ * It may be a UFO-backed fence i.e. a fence that can be signaled or waited upon FW-side,
+ * such as pvr_job::done_fence objects that are backed by the timeline UFO attached to the queue
+ * they are pushed to.
  */
-bool pvr_queue_fence_is_ufo_backed(struct dma_fence *f)
+bool pvr_queue_fence_is_native(struct dma_fence *f)
 {
        struct drm_sched_fence *sched_fence = f ? to_drm_sched_fence(f) : NULL;
 
index fc1986d73fc88e8454d16935d549a550d12f2ef5..4aa72665ce2568d96ac26b2866284c8d07299435 100644 (file)
@@ -141,7 +141,7 @@ struct pvr_queue {
        u64 callstack_addr;
 };
 
-bool pvr_queue_fence_is_ufo_backed(struct dma_fence *f);
+bool pvr_queue_fence_is_native(struct dma_fence *f);
 
 int pvr_queue_job_init(struct pvr_job *job, u64 drm_client_id);
 
index 3582616ff72208799349a4a884004abd2c3e48c9..757a18b1ab8f09ecf89c7f8c0f6a3a0f3ba219d9 100644 (file)
@@ -211,7 +211,7 @@ pvr_sync_add_dep_to_job(struct drm_sched_job *job, struct dma_fence *f)
        int err = 0;
 
        dma_fence_unwrap_for_each(uf, &iter, f) {
-               if (pvr_queue_fence_is_ufo_backed(uf))
+               if (pvr_queue_fence_is_native(uf))
                        native_fence_count++;
        }
 
@@ -227,7 +227,7 @@ pvr_sync_add_dep_to_job(struct drm_sched_job *job, struct dma_fence *f)
                if (err)
                        continue;
 
-               if (pvr_queue_fence_is_ufo_backed(uf)) {
+               if (pvr_queue_fence_is_native(uf)) {
                        struct drm_sched_fence *s_fence = to_drm_sched_fence(uf);
 
                        /* If this is a native dependency, we wait for the scheduled fence,