[Intel-xe] [PATCH v4 1/4] drm/xe/migrate: Remove unused emit_pte() parameter
Niranjana Vishwanathapura
niranjana.vishwanathapura at intel.com
Sat Mar 4 00:14:00 UTC 2023
Remove unused 'struct xe_bo *bo' from emit_pte()
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
drivers/gpu/drm/xe/tests/xe_migrate.c | 2 +-
drivers/gpu/drm/xe/xe_migrate.c | 13 +++++--------
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c
index 0de17e90aba9..3d8f4dfe2834 100644
--- a/drivers/gpu/drm/xe/tests/xe_migrate.c
+++ b/drivers/gpu/drm/xe/tests/xe_migrate.c
@@ -276,7 +276,7 @@ static void xe_migrate_sanity_test(struct xe_migrate *m, struct kunit *test)
expected |= GEN12_PTE_PS64;
xe_res_first(pt->ttm.resource, 0, pt->size, &src_it);
emit_pte(m, bb, NUM_KERNEL_PDE - 1, xe_bo_is_vram(pt),
- &src_it, GEN8_PAGE_SIZE, pt);
+ &src_it, GEN8_PAGE_SIZE);
run_sanity_job(m, xe, bb, bb->len, "Writing PTE for our fake PT", test);
retval = xe_map_rd(xe, &bo->vmap, GEN8_PAGE_SIZE * (NUM_KERNEL_PDE - 1),
diff --git a/drivers/gpu/drm/xe/xe_migrate.c b/drivers/gpu/drm/xe/xe_migrate.c
index bc69ec17d5ad..c2610e377eb1 100644
--- a/drivers/gpu/drm/xe/xe_migrate.c
+++ b/drivers/gpu/drm/xe/xe_migrate.c
@@ -425,7 +425,7 @@ static void emit_pte(struct xe_migrate *m,
struct xe_bb *bb, u32 at_pt,
bool is_vram,
struct xe_res_cursor *cur,
- u32 size, struct xe_bo *bo)
+ u32 size)
{
u32 ptes;
u64 ofs = at_pt * GEN8_PAGE_SIZE;
@@ -674,19 +674,17 @@ struct dma_fence *xe_migrate_copy(struct xe_migrate *m,
emit_arb_clear(bb);
if (!src_is_vram)
- emit_pte(m, bb, src_L0_pt, src_is_vram, &src_it, src_L0,
- bo);
+ emit_pte(m, bb, src_L0_pt, src_is_vram, &src_it, src_L0);
else
xe_res_next(&src_it, src_L0);
if (!dst_is_vram)
- emit_pte(m, bb, dst_L0_pt, dst_is_vram, &dst_it, src_L0,
- bo);
+ emit_pte(m, bb, dst_L0_pt, dst_is_vram, &dst_it, src_L0);
else
xe_res_next(&dst_it, src_L0);
if (copy_system_ccs)
- emit_pte(m, bb, ccs_pt, false, &ccs_it, ccs_size, bo);
+ emit_pte(m, bb, ccs_pt, false, &ccs_it, ccs_size);
bb->cs[bb->len++] = MI_BATCH_BUFFER_END;
update_idx = bb->len;
@@ -858,8 +856,7 @@ struct dma_fence *xe_migrate_clear(struct xe_migrate *m,
/* Preemption is enabled again by the ring ops. */
if (!clear_vram) {
emit_arb_clear(bb);
- emit_pte(m, bb, clear_L0_pt, clear_vram, &src_it, clear_L0,
- bo);
+ emit_pte(m, bb, clear_L0_pt, clear_vram, &src_it, clear_L0);
} else {
xe_res_next(&src_it, clear_L0);
}
--
2.21.0.rc0.32.g243a4c7e27
More information about the Intel-xe
mailing list