[RFC v2 07/13] sync_file: Use dma-fence driver and timeline name helpers
Christian König
christian.koenig at amd.com
Mon May 12 08:25:17 UTC 2025
On 5/9/25 17:33, Tvrtko Ursulin wrote:
> Access the dma-fence internals via the previously added helpers.
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at igalia.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/dma-buf/sync_file.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/dma-buf/sync_file.c b/drivers/dma-buf/sync_file.c
> index d9b1c1b2a72b..212df4b849fe 100644
> --- a/drivers/dma-buf/sync_file.c
> +++ b/drivers/dma-buf/sync_file.c
> @@ -137,8 +137,8 @@ char *sync_file_get_name(struct sync_file *sync_file, char *buf, int len)
> struct dma_fence *fence = sync_file->fence;
>
> snprintf(buf, len, "%s-%s%llu-%lld",
> - fence->ops->get_driver_name(fence),
> - fence->ops->get_timeline_name(fence),
> + dma_fence_driver_name(fence),
> + dma_fence_timeline_name(fence),
> fence->context,
> fence->seqno);
> }
> @@ -262,9 +262,9 @@ static long sync_file_ioctl_merge(struct sync_file *sync_file,
> static int sync_fill_fence_info(struct dma_fence *fence,
> struct sync_fence_info *info)
> {
> - strscpy(info->obj_name, fence->ops->get_timeline_name(fence),
> + strscpy(info->obj_name, dma_fence_timeline_name(fence),
> sizeof(info->obj_name));
> - strscpy(info->driver_name, fence->ops->get_driver_name(fence),
> + strscpy(info->driver_name, dma_fence_driver_name(fence),
> sizeof(info->driver_name));
>
> info->status = dma_fence_get_status(fence);
More information about the Intel-gfx
mailing list