[igt-dev] [PATCH i-g-t 0/2] Fix PMU freq verification with SLPC
Ashutosh Dixit
ashutosh.dixit at intel.com
Wed Nov 23 21:18:28 UTC 2022
With SLPC, even when we set the same min and max freq's, the requested and
actual freq's can differ from the min/max freq set. For example "efficient
freq" (when in effect) can override set min/max freq. In general FW is the
final arbiter in determining freq and can override set values.
Therefore compare the requested freq reported by PMU not against the set
freq's but against the requested freq reported in sysfs. Also add a delay
after setting freq's to account for messaging delays in setting freq's in
GuC.
The almost identical fix is applied to the two tests below.
Previous versions of PATCH 1 were posted here:
https://patchwork.freedesktop.org/series/110574/
Now because the same fix has beed added to a second test I am re-posting
this as a series.
Bug: https://gitlab.freedesktop.org/drm/intel/-/issues/6806
Bug: https://gitlab.freedesktop.org/drm/intel/-/issues/6786
Cc: Vinay Belgaumkar <vinay.belgaumkar at intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin at linux.intel.com>
Ashutosh Dixit (2):
tests/perf_pmu: Compare against requested freq in frequency subtest
tests/gem_ctx_freq: Compare against requested freq
tests/i915/gem_ctx_freq.c | 19 ++++++++++++-------
tests/i915/perf_pmu.c | 23 +++++++++++++++--------
2 files changed, 27 insertions(+), 15 deletions(-)
--
2.38.0
More information about the igt-dev
mailing list