[igt-dev] [PATCH i-g-t 0/3] Fix PMU freq verification with SLPC

Ashutosh Dixit
2023-01-07T01:11:32Z

After the i915 commit 95ccf312a1e4f ("drm/i915/guc/slpc: Allow SLPC to use
efficient frequency"), FW uses the requested freq as the efficient freq
which can exceed the max freq set. Therefore, in the "min freq" part of the
igt@perf_pmu@frequency subtest, compare the requested freq reported by PMU
not against the set freq but against the requested freq reported in sysfs.

v2: Remove v1 patches which need to be redone. In v2 just add failing tests
to BAT testlist to try to repro the failures
v3: Add modified v1 patches with minimal changes which are expected to fix
the two issues
v4: Retest
v5: Increase comparison tolerance and add comments to code explaining
reason for the changes

Ashutosh Dixit (3):
tests/perf_pmu: Compare against requested freq in frequency subtest
tests/gem_ctx_freq: Compare against requested freq
HAX: Add gem_ctx_freq@sysfs and perf_pmu@frequency to
fast-feedback.testlist

tests/i915/gem_ctx_freq.c | 24 ++++++++++++++++--------
tests/i915/perf_pmu.c | 12 ++++++++++--
tests/intel-ci/fast-feedback.testlist | 2 ++
3 files changed, 28 insertions(+), 10 deletions(-)

--
2.38.0