Home
last modified time | relevance | path

Searched refs:slpc (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_slpc.c18 static inline struct intel_guc *slpc_to_guc(struct intel_guc_slpc *slpc) in slpc_to_guc() argument
20 return container_of(slpc, struct intel_guc, slpc); in slpc_to_guc()
23 static inline struct intel_gt *slpc_to_gt(struct intel_guc_slpc *slpc) in slpc_to_gt() argument
25 return guc_to_gt(slpc_to_guc(slpc)); in slpc_to_gt()
28 static inline struct drm_i915_private *slpc_to_i915(struct intel_guc_slpc *slpc) in slpc_to_i915() argument
30 return slpc_to_gt(slpc)->i915; in slpc_to_i915()
48 void intel_guc_slpc_init_early(struct intel_guc_slpc *slpc) in intel_guc_slpc_init_early() argument
50 struct intel_guc *guc = slpc_to_guc(slpc); in intel_guc_slpc_init_early()
52 slpc->supported = __detect_slpc_supported(guc); in intel_guc_slpc_init_early()
53 slpc->selected = __guc_slpc_selected(guc); in intel_guc_slpc_init_early()
[all …]
H A Dintel_guc_slpc.h19 return guc->slpc.supported; in intel_guc_slpc_is_supported()
24 return guc->slpc.selected; in intel_guc_slpc_is_wanted()
32 void intel_guc_slpc_init_early(struct intel_guc_slpc *slpc);
34 int intel_guc_slpc_init(struct intel_guc_slpc *slpc);
35 int intel_guc_slpc_enable(struct intel_guc_slpc *slpc);
36 void intel_guc_slpc_fini(struct intel_guc_slpc *slpc);
37 int intel_guc_slpc_set_max_freq(struct intel_guc_slpc *slpc, u32 val);
38 int intel_guc_slpc_set_min_freq(struct intel_guc_slpc *slpc, u32 val);
39 int intel_guc_slpc_set_boost_freq(struct intel_guc_slpc *slpc, u32 val);
40 int intel_guc_slpc_get_max_freq(struct intel_guc_slpc *slpc, u32 *val);
[all …]
H A Dintel_guc_debugfs.c57 struct intel_guc_slpc *slpc = &guc->slpc; in guc_slpc_info_show() local
63 return intel_guc_slpc_print_info(slpc, &p); in guc_slpc_info_show()
H A Dintel_guc.c171 intel_guc_slpc_init_early(&guc->slpc); in intel_guc_init_early()
417 ret = intel_guc_slpc_init(&guc->slpc); in intel_guc_init()
453 intel_guc_slpc_fini(&guc->slpc); in intel_guc_fini()
H A Dintel_guc.h41 struct intel_guc_slpc slpc; member
H A Dintel_uc.c550 ret = intel_guc_slpc_enable(&guc->slpc); in __uc_init_hw()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_slpc.c26 static int slpc_set_min_freq(struct intel_guc_slpc *slpc, u32 freq) in slpc_set_min_freq() argument
30 ret = intel_guc_slpc_set_min_freq(slpc, freq); in slpc_set_min_freq()
39 static int slpc_set_max_freq(struct intel_guc_slpc *slpc, u32 freq) in slpc_set_max_freq() argument
43 ret = intel_guc_slpc_set_max_freq(slpc, freq); in slpc_set_max_freq()
56 struct intel_guc_slpc *slpc = &gt->uc.guc.slpc; in slpc_set_freq() local
58 err = slpc_set_max_freq(slpc, freq); in slpc_set_freq()
64 err = slpc_set_min_freq(slpc, freq); in slpc_set_freq()
73 static int slpc_restore_freq(struct intel_guc_slpc *slpc, u32 min, u32 max) in slpc_restore_freq() argument
77 err = slpc_set_max_freq(slpc, max); in slpc_restore_freq()
83 err = slpc_set_min_freq(slpc, min); in slpc_restore_freq()
[all …]
H A Dintel_gt_sysfs_pm.c459 struct intel_guc_slpc *slpc = &gt->uc.guc.slpc; in slpc_ignore_eff_freq_show() local
461 return sysfs_emit(buff, "%u\n", slpc->ignore_eff_freq); in slpc_ignore_eff_freq_show()
469 struct intel_guc_slpc *slpc = &gt->uc.guc.slpc; in slpc_ignore_eff_freq_store() local
477 err = intel_guc_slpc_set_ignore_eff_freq(slpc, val); in slpc_ignore_eff_freq_store()
590 struct intel_guc_slpc *slpc = &gt->uc.guc.slpc; in media_freq_factor_show() local
599 slpc->media_ratio_mode == SLPC_MEDIA_RATIO_MODE_DYNAMIC_CONTROL) { in media_freq_factor_show()
604 mode = slpc->media_ratio_mode; in media_freq_factor_show()
621 struct intel_guc_slpc *slpc = &gt->uc.guc.slpc; in media_freq_factor_store() local
637 err = intel_guc_slpc_set_media_ratio_mode(slpc, mode); in media_freq_factor_store()
639 slpc->media_ratio_mode = mode; in media_freq_factor_store()
H A Dintel_rps.c55 return &gt->uc.guc.slpc; in rps_to_slpc()
951 struct intel_guc_slpc *slpc; in intel_rps_get_boost_frequency() local
954 slpc = rps_to_slpc(rps); in intel_rps_get_boost_frequency()
956 return slpc->boost_freq; in intel_rps_get_boost_frequency()
985 struct intel_guc_slpc *slpc; in intel_rps_set_boost_frequency() local
988 slpc = rps_to_slpc(rps); in intel_rps_set_boost_frequency()
990 return intel_guc_slpc_set_boost_freq(slpc, freq); in intel_rps_set_boost_frequency()
998 struct intel_guc_slpc *slpc; in intel_rps_dec_waiters() local
1001 slpc = rps_to_slpc(rps); in intel_rps_dec_waiters()
1003 intel_guc_slpc_dec_waiters(slpc); in intel_rps_dec_waiters()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A Di915_live_selftests.h50 selftest(slpc, intel_slpc_live_selftests)
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_perf.c1711 intel_guc_slpc_unset_gucrc_mode(&gt->uc.guc.slpc)); in i915_oa_stream_destroy()
3386 ret = intel_guc_slpc_override_gucrc_mode(&gt->uc.guc.slpc, in i915_oa_stream_init()
3434 intel_guc_slpc_unset_gucrc_mode(&gt->uc.guc.slpc); in i915_oa_stream_init()