![]() + /* MEM_SET command supports setting only 8-bit value. + u32 size, u32 pitch, u32 value, bool is_vram) +static int emit_clear(struct xe_gt *gt, struct xe_bb *bb, u64 src_ofs, +static u32 emit_clear_cmd_len(struct xe_device *xe) if (GRAPHICS_VERx100(gt->xe) cs != len + bb->len) U32 mocs = xe_mocs_index_to_value(gt->mocs.uc_index) + u64 src_ofs, u32 size, u32 pitch, u32 value, +static void emit_clear_main_copy(struct xe_gt *gt, struct xe_bb *bb, + XE_BUG_ON(cs - bb->cs != len + bb->len) + *cs++ = FIELD_PREP(PVC_MS_MOCS_INDEX_MASK, mocs) + *cs++ = PVC_MEM_SET_CMD | PVC_MS_MATRIX | (len - 2) + u32 mocs = xe_mocs_index_to_value(gt->mocs.uc_index) #define _INSTR(client) ((client) cs + bb->len a/drivers/gpu/drm/xe/regs/xe_gpu_commands.h Signed-off-by: Balasubramani Vivekanandan ĭrivers/gpu/drm/xe/regs/xe_gpu_commands.h | 9 ++++ĭrivers/gpu/drm/xe/xe_migrate.c | 66 +++++++++++++++++++++-Ĥ files changed, 76 insertions(+), 5 deletions(-)ĭiff -git a/drivers/gpu/drm/xe/regs/xe_gpu_commands.h b/drivers/gpu/drm/xe/regs/xe_gpu_commands.h Since MEM_SET only supports setting 8-bit value, to keep things simpleĮmit_clear funciton is restricted only to clear memory address range MEM_SET is used which is available both in main and link copy engines. If it supports, then instead of using XY_FAST_COLOR instruction, Link copy engines doesn't support the XY_FAST_COLOR instruction.Ĭurrently this instruction is used only at one place to clear a ttmĪ new device_info member is created to know if a platform has link copyĮngine. ` (3 subsequent siblings) 4 siblings, 1 reply 8+ messages in thread 8:15 ` drm/xe/tests: Adapt migrate_sanity_test for " Balasubramani Vivekanandan 8:14 drm/xe: Skip XY_FAST_COLOR instruction on link copy engines Balasubramani 8:14 ` Balasubramani Vivekanandan * drm/xe: Skip XY_FAST_COLOR instruction on link copy engines s/GRAPHICS_VERx100(gt->xe)/GRAPHICS_VERx100(xe) (Niranjana)ĭrm/xe: Skip XY_FAST_COLOR instruction on link copy enginesĭrm/xe/tests: Adapt migrate_sanity_test for link copy enginesĭrivers/gpu/drm/xe/regs/xe_gpu_commands.h | 9 +++ĭrivers/gpu/drm/xe/tests/xe_migrate.c | 19 ++++-ĭrivers/gpu/drm/xe/xe_device_types.h | 2 +ĭrivers/gpu/drm/xe/xe_migrate.c | 70 +++++++++++++++++++++-ĥ files changed, 94 insertions(+), 10 deletions(-) bitmask definitions reorder with most significant bit first (Lucas) Adapt migrate sanity kunit tests for platforms with link copy Modified the patch such that when using MEM_SET instruction, onlyĪllow clearing the memory region, setting of value is not supported. Use MEM_SET instructions as alternative on platforms with link copyĮngines which does not support the XY_FAST_COLOR instruction. To: intel-xe +Cc: Matt Roper, Lucas De Marchi ` (4 more replies) 0 siblings, 5 replies 8+ messages in threadįrom: Balasubramani Vivekanandan 8:14 UTC ( / raw) ![]() ![]() Drm/xe: Skip XY_FAST_COLOR instruction on link copy engines All of help / color / mirror / Atom feed * drm/xe: Skip XY_FAST_COLOR instruction on link copy engines 8:14 Balasubramani Vivekanandan
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |