enum intel_engine_id id;
struct igt_spinner spin;
intel_wakeref_t wakeref;
+ u32 throttle;
int err = 0;
/*
max = rps_set_check(rps, limit);
max_dt = ktime_sub(ktime_get(), max_dt);
+ throttle = intel_uncore_read(gt->uncore, intel_gt_perf_limit_reasons_reg(gt));
+ throttle &= GT0_PERF_LIMIT_REASONS_MASK;
+
min_dt = ktime_get();
min = rps_set_check(rps, rps->min_freq);
min_dt = ktime_sub(ktime_get(), min_dt);
min, max, ktime_to_ns(min_dt), ktime_to_ns(max_dt));
if (limit != rps->max_freq) {
- u32 throttle = intel_uncore_read(gt->uncore,
- intel_gt_perf_limit_reasons_reg(gt));
-
- pr_warn("%s: GPU throttled with reasons 0x%08x\n",
- engine->name, throttle & GT0_PERF_LIMIT_REASONS_MASK);
+ if (throttle)
+ pr_warn("%s: GPU throttled with reasons 0x%08x\n",
+ engine->name, throttle);
show_pstate_limits(rps);
}
struct intel_engine_cs *engine;
enum intel_engine_id id;
struct igt_spinner spin;
+ u32 throttle;
int err = 0;
/*
max.freq = rps->max_freq;
max.power = measure_power_at(rps, &max.freq);
+ throttle = intel_uncore_read(gt->uncore, intel_gt_perf_limit_reasons_reg(gt));
+ throttle &= GT0_PERF_LIMIT_REASONS_MASK;
+
min.freq = rps->min_freq;
min.power = measure_power_at(rps, &min.freq);
pr_notice("Could not control frequency, ran at [%d:%uMHz, %d:%uMhz]\n",
min.freq, intel_gpu_freq(rps, min.freq),
max.freq, intel_gpu_freq(rps, max.freq));
+
+ if (throttle)
+ pr_warn("%s: GPU throttled with reasons 0x%08x\n",
+ engine->name, throttle);
continue;
}
if (11 * min.power > 10 * max.power) {
pr_err("%s: did not conserve power when setting lower frequency!\n",
engine->name);
+
+ if (throttle)
+ pr_warn("%s: GPU throttled with reasons 0x%08x\n",
+ engine->name, throttle);
+
err = -EINVAL;
break;
}
struct intel_engine_cs *engine;
enum intel_engine_id id;
struct igt_spinner spin;
+ u32 throttle;
int err = 0;
/*
max.freq = wait_for_freq(rps, rps->max_freq, 500);
max.dt = ktime_sub(ktime_get(), max.dt);
+ throttle = intel_uncore_read(gt->uncore, intel_gt_perf_limit_reasons_reg(gt));
+ throttle &= GT0_PERF_LIMIT_REASONS_MASK;
+
igt_spinner_end(&spin);
min.dt = ktime_get();
if (min.freq >= max.freq) {
pr_err("%s: dynamic reclocking of spinner failed\n!",
engine->name);
+
+ if (throttle)
+ pr_warn("%s: GPU throttled with reasons 0x%08x\n",
+ engine->name, throttle);
+
err = -EINVAL;
}