Home
last modified time | relevance | path

Searched refs:sseu (Results 1 – 25 of 25) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/i915/gt/
Dintel_sseu.c14 void intel_sseu_set_info(struct sseu_dev_info *sseu, u8 max_slices, in intel_sseu_set_info() argument
17 sseu->max_slices = max_slices; in intel_sseu_set_info()
18 sseu->max_subslices = max_subslices; in intel_sseu_set_info()
19 sseu->max_eus_per_subslice = max_eus_per_subslice; in intel_sseu_set_info()
23 intel_sseu_subslice_total(const struct sseu_dev_info *sseu) in intel_sseu_subslice_total() argument
27 if (sseu->has_xehp_dss) in intel_sseu_subslice_total()
28 return bitmap_weight(sseu->subslice_mask.xehp, in intel_sseu_subslice_total()
29 XEHP_BITMAP_BITS(sseu->subslice_mask)); in intel_sseu_subslice_total()
31 for (i = 0; i < ARRAY_SIZE(sseu->subslice_mask.hsw); i++) in intel_sseu_subslice_total()
32 total += hweight8(sseu->subslice_mask.hsw[i]); in intel_sseu_subslice_total()
[all …]
Dintel_sseu_debugfs.c16 struct sseu_dev_info *sseu) in cherryview_sseu_device_status() argument
36 sseu->slice_mask = BIT(0); in cherryview_sseu_device_status()
37 sseu->subslice_mask.hsw[0] |= BIT(ss); in cherryview_sseu_device_status()
42 sseu->eu_total += eu_cnt; in cherryview_sseu_device_status()
43 sseu->eu_per_subslice = max_t(unsigned int, in cherryview_sseu_device_status()
44 sseu->eu_per_subslice, eu_cnt); in cherryview_sseu_device_status()
50 struct sseu_dev_info *sseu) in gen11_sseu_device_status() argument
58 for (s = 0; s < info->sseu.max_slices; s++) { in gen11_sseu_device_status()
82 for (s = 0; s < info->sseu.max_slices; s++) { in gen11_sseu_device_status()
87 sseu->slice_mask |= BIT(s); in gen11_sseu_device_status()
[all …]
Dintel_sseu.h109 intel_sseu_from_device_info(const struct sseu_dev_info *sseu) in intel_sseu_from_device_info() argument
112 .slice_mask = sseu->slice_mask, in intel_sseu_from_device_info()
113 .subslice_mask = sseu->subslice_mask.hsw[0], in intel_sseu_from_device_info()
114 .min_eus_per_subslice = sseu->max_eus_per_subslice, in intel_sseu_from_device_info()
115 .max_eus_per_subslice = sseu->max_eus_per_subslice, in intel_sseu_from_device_info()
122 intel_sseu_has_subslice(const struct sseu_dev_info *sseu, int slice, in intel_sseu_has_subslice() argument
125 if (slice >= sseu->max_slices || in intel_sseu_has_subslice()
126 subslice >= sseu->max_subslices) in intel_sseu_has_subslice()
129 if (sseu->has_xehp_dss) in intel_sseu_has_subslice()
130 return test_bit(subslice, sseu->subslice_mask.xehp); in intel_sseu_has_subslice()
[all …]
Dintel_context_sseu.c18 const struct intel_sseu sseu) in gen8_emit_rpcs_config() argument
33 *cs++ = intel_sseu_make_rpcs(rq->engine->gt, &sseu); in gen8_emit_rpcs_config()
41 gen8_modify_rpcs(struct intel_context *ce, const struct intel_sseu sseu) in gen8_modify_rpcs() argument
66 ret = gen8_emit_rpcs_config(rq, ce, sseu); in gen8_modify_rpcs()
76 const struct intel_sseu sseu) in intel_context_reconfigure_sseu() argument
87 if (!memcmp(&ce->sseu, &sseu, sizeof(sseu))) in intel_context_reconfigure_sseu()
90 ret = gen8_modify_rpcs(ce, sseu); in intel_context_reconfigure_sseu()
92 ce->sseu = sseu; in intel_context_reconfigure_sseu()
Dintel_gt_mcr.h58 intel_sseu_has_subslice(&(gt_)->info.sseu, 0, ss_) : \
59 intel_sseu_has_subslice(&(gt_)->info.sseu, group_, instance_))
Dintel_workarounds.c546 if (!is_power_of_2(gt->info.sseu.subslice_7eu[i])) in skl_tune_iz_hashing()
555 ss = ffs(gt->info.sseu.subslice_7eu[i]) - 1; in skl_tune_iz_hashing()
1110 const struct sseu_dev_info *sseu = &to_gt(i915)->info.sseu; in gen9_wa_init_mcr() local
1127 slice = ffs(sseu->slice_mask) - 1; in gen9_wa_init_mcr()
1128 GEM_BUG_ON(slice >= ARRAY_SIZE(sseu->subslice_mask.hsw)); in gen9_wa_init_mcr()
1129 subslice = ffs(intel_sseu_get_hsw_subslices(sseu, slice)); in gen9_wa_init_mcr()
1272 const struct sseu_dev_info *sseu = &gt->info.sseu; in icl_wa_init_mcr() local
1276 GEM_BUG_ON(hweight8(sseu->slice_mask) > 1); in icl_wa_init_mcr()
1287 subslice = __ffs(intel_sseu_get_hsw_subslices(sseu, 0)); in icl_wa_init_mcr()
1303 const struct sseu_dev_info *sseu = &gt->info.sseu; in xehp_init_mcr() local
[all …]
Dintel_gt_types.h275 struct sseu_dev_info sseu; member
Dintel_context_types.h180 struct intel_sseu sseu; member
Dintel_gt_mcr.c122 intel_slicemask_from_xehp_dssmask(gt->info.sseu.subslice_mask, in intel_gt_mcr_init()
623 dss = intel_sseu_find_first_xehp_dss(&gt->info.sseu, 0, 0); in get_nonterminated_steering()
Dintel_context.c401 ce->sseu = engine->sseu; in intel_context_init()
Dintel_context.h48 const struct intel_sseu sseu);
Dintel_engine_types.h415 struct intel_sseu sseu; member
Dintel_engine_cs.c821 int ss_per_ccs = info->sseu.max_subslices / I915_MAX_CCS; in engine_mask_apply_compute_fuses()
831 ccs_mask = intel_slicemask_from_xehp_dssmask(info->sseu.compute_subslice_mask, in engine_mask_apply_compute_fuses()
1282 engine->sseu = in engine_setup_common()
1283 intel_sseu_from_device_info(&engine->gt->info.sseu); in engine_setup_common()
Dintel_gt.c1008 intel_sseu_dump(&info->sseu, p); in intel_gt_info_print()
Dintel_lrc.c1551 intel_sseu_make_rpcs(engine->gt, &ce->sseu); in lrc_update_regs()
Dintel_rps.c1275 switch (gt->info.sseu.eu_total) { in chv_rps_max_freq()
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_query.c32 static int fill_topology_info(const struct sseu_dev_info *sseu, in fill_topology_info() argument
38 int ss_stride = GEN_SSEU_STRIDE(sseu->max_subslices); in fill_topology_info()
39 int eu_stride = GEN_SSEU_STRIDE(sseu->max_eus_per_subslice); in fill_topology_info()
42 BUILD_BUG_ON(sizeof(u8) != sizeof(sseu->slice_mask)); in fill_topology_info()
44 if (sseu->max_slices == 0) in fill_topology_info()
47 slice_length = sizeof(sseu->slice_mask); in fill_topology_info()
48 subslice_length = sseu->max_slices * ss_stride; in fill_topology_info()
49 eu_length = sseu->max_slices * sseu->max_subslices * eu_stride; in fill_topology_info()
59 topo.max_slices = sseu->max_slices; in fill_topology_info()
60 topo.max_subslices = sseu->max_subslices; in fill_topology_info()
[all …]
Di915_getparam.c20 const struct sseu_dev_info *sseu = &to_gt(i915)->info.sseu; in i915_getparam_ioctl() local
78 value = intel_sseu_subslice_total(sseu); in i915_getparam_ioctl()
83 value = sseu->eu_total; in i915_getparam_ioctl()
100 value = sseu->min_eu_in_pool; in i915_getparam_ioctl()
172 value = sseu->slice_mask; in i915_getparam_ioctl()
182 value = intel_sseu_get_hsw_subslices(sseu, 0); in i915_getparam_ioctl()
Di915_perf_types.h445 struct intel_sseu sseu; member
Di915_perf.c381 struct intel_sseu sseu; member
2594 flex->value = intel_sseu_make_rpcs(ce->engine->gt, &ce->sseu); in gen8_configure_context()
2741 regs[0].value = intel_sseu_make_rpcs(engine->gt, &ce->sseu); in oa_configure_all_contexts()
3156 const struct sseu_dev_info *devinfo_sseu = &engine->gt->info.sseu; in get_default_sseu_config()
3348 stream->engine->gt->perf.sseu = props->sseu; in i915_oa_stream_init()
3857 get_default_sseu_config(&props->sseu, props->engine); in i915_perf_open_ioctl_locked()
4178 ret = get_sseu_config(&props->sseu, props->engine, &user_sseu); in read_properties_unlocked()
Di915_gpu_error.c731 intel_sseu_print_topology(gt->_gt->i915, &gt->info.sseu, &p); in err_print_gt_info()
/linux-6.12.1/drivers/gpu/drm/i915/gem/
Di915_gem_context.c821 struct intel_sseu *sseu; in set_proto_ctx_sseu() local
857 sseu = &pe->sseu; in set_proto_ctx_sseu()
867 sseu = &pc->legacy_rcs_sseu; in set_proto_ctx_sseu()
870 ret = i915_gem_user_to_context_sseu(to_gt(i915), &user_sseu, sseu); in set_proto_ctx_sseu()
972 struct intel_sseu sseu) in intel_context_set_gem() argument
1002 if (sseu.slice_mask && !WARN_ON(ce->engine->class != RENDER_CLASS)) in intel_context_set_gem()
1003 ret = intel_context_reconfigure_sseu(ce, sseu); in intel_context_set_gem()
1129 struct intel_sseu sseu = {}; in default_engines() local
1148 sseu = rcs_sseu; in default_engines()
1150 ret = intel_context_set_gem(ce, ctx, sseu); in default_engines()
[all …]
Di915_gem_context_types.h125 struct intel_sseu sseu; member
/linux-6.12.1/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_context.c1169 unsigned int slices = hweight32(ce->engine->sseu.slice_mask); in __sseu_finish()
1210 struct intel_sseu sseu) in __sseu_test() argument
1221 ret = intel_context_reconfigure_sseu(ce, sseu); in __sseu_test()
1226 hweight32(sseu.slice_mask), spin); in __sseu_test()
1271 if (hweight32(engine->sseu.slice_mask) < 2) in __igt_ctx_sseu()
1274 if (!engine->gt->info.sseu.has_slice_pg) in __igt_ctx_sseu()
1281 pg_sseu = engine->sseu; in __igt_ctx_sseu()
1284 ~(~0 << (hweight32(engine->sseu.subslice_mask) / 2)); in __igt_ctx_sseu()
1288 hweight32(engine->sseu.slice_mask), in __igt_ctx_sseu()
1302 ret = __sseu_test(name, flags, ce, obj, engine->sseu); in __igt_ctx_sseu()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_ads.c900 hweight8(gt->info.sseu.slice_mask)); in __guc_ads_init()