[PATCH i-g-t 3/3] Disable eff freq for all gt
Ashutosh Dixit
ashutosh.dixit at intel.com
Sun Jun 4 06:47:21 UTC 2023
Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
tests/i915/gem_ctx_freq.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/i915/gem_ctx_freq.c b/tests/i915/gem_ctx_freq.c
index 354321937705..22a431bc82f7 100644
--- a/tests/i915/gem_ctx_freq.c
+++ b/tests/i915/gem_ctx_freq.c
@@ -209,15 +209,15 @@ static void disable_boost(void)
static void slpc_ignore_efficient_freq(int i915, const char *val)
{
- int dir;
+ int dir, gt;
if (!(gem_using_guc_submission(i915) && i915_is_slpc_enabled(i915)))
return;
- igt_require((dir = igt_sysfs_gt_open(i915, 0)) >= 0);
- igt_require(igt_sysfs_has_attr(dir, "slpc_ignore_eff_freq"));
-
- igt_assert(igt_sysfs_set(dir, "slpc_ignore_eff_freq", val));
+ i915_for_each_gt(i915, dir, gt) {
+ igt_require(igt_sysfs_has_attr(dir, "slpc_ignore_eff_freq"));
+ igt_assert(igt_sysfs_set(dir, "slpc_ignore_eff_freq", val));
+ }
close(dir);
}
--
2.38.0
More information about the Intel-gfx-trybot
mailing list