[Intel-xe] [PATCH 3/3] drm/xe: Don't emit extra MI_BATCH_BUFFER_END in WA batchbuffer
Matt Roper
matthew.d.roper at intel.com
Wed Mar 29 17:33:34 UTC 2023
The MI_BATCH_BUFFER_END is already added automatically by
__xe_bb_create_job(); including it in the construction of the workaround
batchbuffer results in an unnecessary duplicate.
Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
---
drivers/gpu/drm/xe/xe_gt.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index fd7a5b43ba3e..bc821f431c45 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -203,8 +203,6 @@ static int emit_wa_job(struct xe_gt *gt, struct xe_engine *e)
bb->cs[bb->len++] = entry->set_bits;
}
}
- bb->cs[bb->len++] = MI_NOOP;
- bb->cs[bb->len++] = MI_BATCH_BUFFER_END;
batch_ofs = xe_bo_ggtt_addr(gt->kernel_bb_pool.bo);
job = xe_bb_create_wa_job(e, bb, batch_ofs);
--
2.39.2
More information about the Intel-xe
mailing list