/linux-master/drivers/gpu/drm/xe/tests/ |
H A D | xe_mocs.c | 77 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 D | selftest_mocs.c | 18 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 D | intel_mocs.c | 111 * 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 D | intel_gt_types.h | 278 } mocs; member in struct:intel_gt
|
H A D | intel_migrate.c | 535 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 D | intel_workarounds.c | 869 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 D | intel_lrc.c | 1433 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 D | xe_mocs.c | 471 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 D | xe_migrate.c | 558 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 D | xe_gt_types.h | 310 /** @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 D | xe_hw_engine.c | 337 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 D | xe_guc.c | 429 shim_flags |= REG_FIELD_PREP(GUC_MOCS_INDEX_MASK, gt->mocs.uc_index);
|
/linux-master/drivers/gpu/drm/i915/gem/selftests/ |
H A D | i915_gem_client_blt.c | 163 *cs++ = (BLIT_CCTL_SRC_MOCS(gt->mocs.uc_index) | 164 BLIT_CCTL_DST_MOCS(gt->mocs.uc_index));
|