Searched refs:mocs (Results 1 - 13 of 13) sorted by relevance

/linux-master/drivers/gpu/drm/xe/tests/
H A Dxe_mocs.c77 u32 mocs; local
90 i < info->n_entries ? (mocs = get_entry_control(info, i)), 1 : 0;
97 XELP_GLOBAL_MOCS(i).addr, reg_val, mocs);
98 if (reg_val != mocs)
99 KUNIT_FAIL(test, "mocs reg 0x%x has incorrect val.\n",
108 /* Basic check the system is configured with the expected mocs table */
110 struct live_mocs mocs; local
117 flags = live_mocs_init(&mocs, gt);
119 read_mocs_table(gt, &mocs.table);
121 read_l3cc_table(gt, &mocs
136 struct live_mocs mocs; local
[all...]
/linux-master/drivers/gpu/drm/i915/gt/
H A Dselftest_mocs.c18 struct drm_i915_mocs_table *mocs; member in struct:live_mocs
77 arg->mocs = &arg->table;
234 /* Read the mocs tables back using SRM */
237 err = read_mocs_table(rq, arg->mocs, &offset);
250 err = check_mocs_table(ce->engine, arg->mocs, &vaddr);
265 struct live_mocs mocs; local
268 /* Basic check the system is configured with the expected mocs table */
270 err = live_mocs_init(&mocs, gt);
276 err = check_mocs_engine(&mocs, engine->kernel_context);
282 live_mocs_fini(&mocs);
291 struct live_mocs mocs; local
351 __live_mocs_reset(struct live_mocs *mocs, struct intel_context *ce, bool using_guc) argument
393 struct live_mocs mocs; local
[all...]
H A Dintel_mocs.c111 * catch accidental use of reserved and unused mocs indexes.
144 * mocs:63
599 #define for_each_mocs(mocs, t, i) \
601 i < (t)->n_entries ? (mocs = get_entry_control((t), i)), 1 : 0;\
609 u32 mocs; local
613 for_each_mocs(mocs, table, i)
614 intel_uncore_write_fw(uncore, _MMIO(addr + i * 4), mocs);
710 gt->mocs.uc_index = table.uc_index;
712 gt->mocs.wb_index = table.wb_index;
728 * Initialize the L3CC table as part of mocs initalizatio
[all...]
H A Dintel_gt_types.h278 } mocs; member in struct:intel_gt
H A Dintel_migrate.c535 int mocs = rq->engine->gt->mocs.uc_index << 1; local
568 FIELD_PREP(XY_CTRL_SURF_MOCS_MASK, mocs);
571 FIELD_PREP(XY_CTRL_SURF_MOCS_MASK, mocs);
921 int mocs = rq->engine->gt->mocs.uc_index << 1; local
942 *cs++ = FIELD_PREP(XY_FAST_COLOR_BLT_MOCS_MASK, mocs) |
H A Dintel_workarounds.c869 u8 mocs; local
877 mocs = engine->gt->mocs.uc_index;
881 BLIT_CCTL_MOCS(mocs, mocs));
2307 mocs_r = engine->gt->mocs.uc_index;
2308 mocs_w = engine->gt->mocs.uc_index;
2312 mocs_r = engine->gt->mocs.wb_index;
H A Dintel_lrc.c1433 int mocs = gt->mocs.uc_index << 1; local
1455 *cs++ = FIELD_PREP(XY_FAST_COLOR_BLT_MOCS_MASK, mocs) | 0x3f;
/linux-master/drivers/gpu/drm/xe/
H A Dxe_mocs.c471 u32 mocs; local
477 i < info->n_entries ? (mocs = get_entry_control(info, i)), 1 : 0;
480 XELP_GLOBAL_MOCS(i).addr, mocs);
483 xe_gt_mcr_multicast_write(gt, XEHP_GLOBAL_MOCS(i), mocs);
485 xe_mmio_write32(gt, XELP_GLOBAL_MOCS(i), mocs);
534 gt->mocs.uc_index = table.uc_index;
535 gt->mocs.wb_index = table.wb_index;
H A Dxe_migrate.c558 u32 mocs; local
565 mocs = FIELD_PREP(XE2_XY_CTRL_SURF_MOCS_INDEX_MASK, gt->mocs.uc_index);
573 mocs = FIELD_PREP(XY_CTRL_SURF_MOCS_MASK, gt->mocs.uc_index);
581 *cs++ = upper_32_bits(src_ofs) | mocs;
583 *cs++ = upper_32_bits(dst_ofs) | mocs;
594 u32 mocs = 0; local
602 mocs = FIELD_PREP(XE2_XY_FAST_COPY_BLT_MOCS_INDEX_MASK, gt->mocs
[all...]
H A Dxe_gt_types.h310 /** @mocs: info */
312 /** @mocs.uc_index: UC index */
314 /** @mocs.wb_index: WB index, only used on L3_CCS platforms */
316 } mocs; member in struct:xe_gt
H A Dxe_hw_engine.c337 const u8 mocs_write_idx = gt->mocs.uc_index;
338 const u8 mocs_read_idx = gt->mocs.uc_index;
392 const u8 mocs_write_idx = gt->mocs.uc_index;
395 gt->mocs.wb_index : gt->mocs.uc_index;
H A Dxe_guc.c429 shim_flags |= REG_FIELD_PREP(GUC_MOCS_INDEX_MASK, gt->mocs.uc_index);
/linux-master/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_client_blt.c163 *cs++ = (BLIT_CCTL_SRC_MOCS(gt->mocs.uc_index) |
164 BLIT_CCTL_DST_MOCS(gt->mocs.uc_index));

Completed in 191 milliseconds