mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
drm/i915: Remove unused intel_ring_cacheline_align
The last use of intel_ring_cacheline_align() was removed in 2017 by
commit afa8ce5b30 ("drm/i915: Nuke legacy flip queueing code")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Tvrtko Ursulin <tursulin@igalia.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241227113754.25871-3-tursulin@igalia.com
This commit is contained in:
parent
64420d2f3e
commit
0a1584ec3d
|
|
@ -308,30 +308,6 @@ u32 *intel_ring_begin(struct i915_request *rq, unsigned int num_dwords)
|
|||
return cs;
|
||||
}
|
||||
|
||||
/* Align the ring tail to a cacheline boundary */
|
||||
int intel_ring_cacheline_align(struct i915_request *rq)
|
||||
{
|
||||
int num_dwords;
|
||||
void *cs;
|
||||
|
||||
num_dwords = (rq->ring->emit & (CACHELINE_BYTES - 1)) / sizeof(u32);
|
||||
if (num_dwords == 0)
|
||||
return 0;
|
||||
|
||||
num_dwords = CACHELINE_DWORDS - num_dwords;
|
||||
GEM_BUG_ON(num_dwords & 1);
|
||||
|
||||
cs = intel_ring_begin(rq, num_dwords);
|
||||
if (IS_ERR(cs))
|
||||
return PTR_ERR(cs);
|
||||
|
||||
memset64(cs, (u64)MI_NOOP << 32 | MI_NOOP, num_dwords / 2);
|
||||
intel_ring_advance(rq, cs + num_dwords);
|
||||
|
||||
GEM_BUG_ON(rq->ring->emit & (CACHELINE_BYTES - 1));
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_DRM_I915_SELFTEST)
|
||||
#include "selftest_ring.c"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ struct intel_ring *
|
|||
intel_engine_create_ring(struct intel_engine_cs *engine, int size);
|
||||
|
||||
u32 *intel_ring_begin(struct i915_request *rq, unsigned int num_dwords);
|
||||
int intel_ring_cacheline_align(struct i915_request *rq);
|
||||
|
||||
unsigned int intel_ring_update_space(struct intel_ring *ring);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user