Lines Matching full:freq
26 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()
32 pr_err("Could not set min frequency to [%u]\n", 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()
46 freq); in slpc_set_max_freq()
53 static int slpc_set_freq(struct intel_gt *gt, u32 freq) in slpc_set_freq() argument
58 err = slpc_set_max_freq(slpc, freq); in slpc_set_freq()
60 pr_err("Unable to update max freq"); in slpc_set_freq()
64 err = slpc_set_min_freq(slpc, freq); in slpc_set_freq()
66 pr_err("Unable to update min freq"); in slpc_set_freq()
79 pr_err("Unable to restore max freq"); in slpc_restore_freq()
85 pr_err("Unable to restore min freq"); in slpc_restore_freq()
91 pr_err("Unable to restore efficient freq"); in slpc_restore_freq()
98 static u64 measure_power_at_freq(struct intel_gt *gt, int *freq, u64 *power) in measure_power_at_freq() argument
102 err = slpc_set_freq(gt, *freq); in measure_power_at_freq()
105 *freq = intel_rps_read_actual_frequency(>->rps); in measure_power_at_freq()
106 *power = measure_power(>->rps, freq); in measure_power_at_freq()
129 /* GuC requests freq in multiples of 50/3 MHz */ in vary_max_freq()
165 /* GuC requests freq in multiples of 50/3 MHz */ in vary_min_freq()
188 int freq; in slpc_power() member
200 min.freq = slpc->min_freq; in slpc_power()
201 err = measure_power_at_freq(gt, &min.freq, &min.power); in slpc_power()
206 max.freq = slpc->rp0_freq; in slpc_power()
207 err = measure_power_at_freq(gt, &max.freq, &max.power); in slpc_power()
214 min.power, min.freq, in slpc_power()
215 max.power, max.freq); in slpc_power()
217 if (10 * min.freq >= 9 * max.freq) { in slpc_power()
219 min.freq, max.freq); in slpc_power()
253 pr_err("Pcode did not grant max freq\n"); in max_granted_freq()
286 pr_err("Could not get SLPC max freq\n"); in run_test()
291 pr_err("Could not get SLPC min freq\n"); in run_test()
301 pr_err("Unable to update min freq!"); in run_test()
310 pr_err("Unable to turn off efficient freq!"); in run_test()
380 pr_err("Actual freq did not rise above min\n"); in run_test()