[igt-dev] [PATCH i-g-t] test/intel/perf_pmu: Dump drpc for correct gt

Anshuman Gupta anshuman.gupta at intel.com
Mon Nov 20 14:30:22 UTC 2023


other-idle-gt rc6 test dumps drpc for wrong gt.
use gt, which has passed as function argument to
test_rc6 to dump drpc.

Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
 tests/intel/perf_pmu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/intel/perf_pmu.c b/tests/intel/perf_pmu.c
index c6e6a8b77..80763af1d 100644
--- a/tests/intel/perf_pmu.c
+++ b/tests/intel/perf_pmu.c
@@ -1981,7 +1981,7 @@ test_rc6(int gem_fd, unsigned int gt, unsigned int num_gt, unsigned int flags)
 		}
 	}
 
-	igt_require_f(wait_for_rc6(fd[0], 1, pmus, test_idx),
+	igt_require_f(wait_for_rc6(fd[0], 1, pmus, gt),
 		      "failed to enter c6 \n%s\n", drpc = get_drpc(gem_fd, test_idx));
 
 	/* While idle check full RC6. */
@@ -2022,7 +2022,7 @@ test_rc6(int gem_fd, unsigned int gt, unsigned int num_gt, unsigned int flags)
 		}
 	}
 
-	igt_require_f(wait_for_rc6(fd[0], 5, pmus, test_idx),
+	igt_require_f(wait_for_rc6(fd[0], 5, pmus, gt),
 		      "failed to enter c6 \n%s\n", drpc = get_drpc(gem_fd, test_idx));
 
 	ts[0] = pmu_read_multi(fd[0], pmus, prev);
-- 
2.25.1



More information about the igt-dev mailing list