[i-g-t][PATCH v2 2/2] tests/i915: Add multi-gt support for rc6_accuracy test
Sujaritha Sundaresan
sujaritha.sundaresan at intel.com
Tue Aug 29 11:26:33 UTC 2023
Adding each sysfs gt support for rc6_accuracy
Signed-off-by: Sujaritha Sundaresan <sujaritha.sundaresan at intel.com>
---
tests/i915/i915_pm_rc6_residency.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tests/i915/i915_pm_rc6_residency.c b/tests/i915/i915_pm_rc6_residency.c
index 3c4e1477a..7e5ec6113 100644
--- a/tests/i915/i915_pm_rc6_residency.c
+++ b/tests/i915/i915_pm_rc6_residency.c
@@ -615,10 +615,12 @@ igt_main
}
igt_subtest("rc6-accuracy") {
- struct residencies res;
+ for_each_sysfs_gt_dirfd(i915, dir, gt) {
+ struct residencies res;
- measure_residencies(devid, rc6_enabled, &res);
- residency_accuracy(res.rc6, res.duration, "rc6");
+ measure_residencies(devid, rc6_enabled, &res);
+ residency_accuracy(res.rc6, res.duration, "rc6");
+ }
}
igt_subtest("media-rc6-accuracy") {
--
2.25.1
More information about the Intel-gfx-trybot
mailing list