[PATCH v3 4/5] drm/xe: Remove xe_lrc_create_seqno_fence()
Rodrigo Vivi
rodrigo.vivi at intel.com
Fri May 24 12:33:24 UTC 2024
On Fri, May 24, 2024 at 09:19:39AM +0200, Thomas Hellström wrote:
> It's not used anymore.
Trusting more the compiler since I didn't apply it individually.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
>
> Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
> ---
> drivers/gpu/drm/xe/xe_lrc.c | 11 -----------
> drivers/gpu/drm/xe/xe_lrc.h | 1 -
> 2 files changed, 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_lrc.c b/drivers/gpu/drm/xe/xe_lrc.c
> index c28796cfaa03..e91967070478 100644
> --- a/drivers/gpu/drm/xe/xe_lrc.c
> +++ b/drivers/gpu/drm/xe/xe_lrc.c
> @@ -1072,17 +1072,6 @@ void xe_lrc_init_seqno_fence(struct xe_lrc *lrc, struct dma_fence *fence)
> xe_hw_fence_init(fence, &lrc->fence_ctx, __xe_lrc_seqno_map(lrc));
> }
>
> -struct dma_fence *xe_lrc_create_seqno_fence(struct xe_lrc *lrc)
> -{
> - struct dma_fence *fence = xe_lrc_alloc_seqno_fence();
> -
> - if (IS_ERR(fence))
> - return fence;
> -
> - xe_lrc_init_seqno_fence(lrc, fence);
> - return fence;
> -}
> -
> s32 xe_lrc_seqno(struct xe_lrc *lrc)
> {
> struct iosys_map map = __xe_lrc_seqno_map(lrc);
> diff --git a/drivers/gpu/drm/xe/xe_lrc.h b/drivers/gpu/drm/xe/xe_lrc.h
> index 7a8752fd8484..c2df6bfd1889 100644
> --- a/drivers/gpu/drm/xe/xe_lrc.h
> +++ b/drivers/gpu/drm/xe/xe_lrc.h
> @@ -47,7 +47,6 @@ u32 xe_lrc_seqno_ggtt_addr(struct xe_lrc *lrc);
> struct dma_fence *xe_lrc_alloc_seqno_fence(void);
> void xe_lrc_free_seqno_fence(struct dma_fence *fence);
> void xe_lrc_init_seqno_fence(struct xe_lrc *lrc, struct dma_fence *fence);
> -struct dma_fence *xe_lrc_create_seqno_fence(struct xe_lrc *lrc);
> s32 xe_lrc_seqno(struct xe_lrc *lrc);
>
> u32 xe_lrc_start_seqno_ggtt_addr(struct xe_lrc *lrc);
> --
> 2.44.0
>
More information about the Intel-xe
mailing list