[PATCH i-g-t 51/52] tests/i915_pm_rc6_residency: Adopt to use no-reloc
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Thu Jul 1 12:37:31 UTC 2021
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
tests/i915/i915_pm_rc6_residency.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/i915/i915_pm_rc6_residency.c b/tests/i915/i915_pm_rc6_residency.c
index bfbe4ab01..8eb2b3bc0 100644
--- a/tests/i915/i915_pm_rc6_residency.c
+++ b/tests/i915/i915_pm_rc6_residency.c
@@ -460,6 +460,7 @@ static void rc6_fence(int i915)
uint64_t rc6, ts[2];
struct rapl rapl;
int fd;
+ uint64_t ahnd = get_reloc_ahnd(i915, 0);
igt_require_sw_sync();
@@ -492,6 +493,7 @@ static void rc6_fence(int i915)
timeline = sw_sync_timeline_create();
fence = sw_sync_timeline_create_fence(timeline, 1);
spin = igt_spin_new(i915,
+ .ahnd = ahnd,
.engine = e->flags,
.fence = fence,
.flags = IGT_SPIN_FENCE_IN);
@@ -522,6 +524,7 @@ static void rc6_fence(int i915)
rapl_close(&rapl);
close(fd);
+ put_ahnd(ahnd);
}
igt_main
--
2.26.0
More information about the Intel-gfx-trybot
mailing list