From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 535BD10E3E3 for ; Mon, 20 Nov 2023 14:30:38 +0000 (UTC) From: Anshuman Gupta To: igt-dev@lists.freedesktop.org Date: Mon, 20 Nov 2023 20:00:22 +0530 Message-Id: <20231120143022.4184274-1-anshuman.gupta@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t] test/intel/perf_pmu: Dump drpc for correct gt List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: 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 --- 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