drm/imagination: Rename pvr_queue_fence_is_ufo_backed() to reflect usage

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>
This commit is contained in:
Alessio Belle 2026-03-30 08:56:39 +01:00 committed by Matt Coster
parent 18998b3cb7
commit c162e65509
No known key found for this signature in database
GPG Key ID: 79BC19F3D9DE6AB0
3 changed files with 10 additions and 10 deletions

View 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;

View 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);

View 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,