From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 13A3A10ECA2 for ; Thu, 30 Mar 2023 00:37:03 +0000 (UTC) From: Umesh Nerlige Ramappa To: igt-dev@lists.freedesktop.org Date: Wed, 29 Mar 2023 17:36:55 -0700 Message-Id: <20230330003656.1294873-7-umesh.nerlige.ramappa@intel.com> In-Reply-To: <20230330003656.1294873-1-umesh.nerlige.ramappa@intel.com> References: <20230330003656.1294873-1-umesh.nerlige.ramappa@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 6/7] tests/i915/perf_pmu: Use correct pmu config for multi-tile List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: badal.nilawar@intel.com, arjun.melkaveri@intel.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Riana Tauro Use the correct perf_pmu config for actual and requested frequency in multi-tile frequency test. Signed-off-by: Riana Tauro --- tests/i915/perf_pmu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/i915/perf_pmu.c b/tests/i915/perf_pmu.c index 5185cd9a..af6de762 100644 --- a/tests/i915/perf_pmu.c +++ b/tests/i915/perf_pmu.c @@ -1670,8 +1670,8 @@ test_frequency(int gem_fd, unsigned int gt) igt_require(max_freq > min_freq); igt_require(boost_freq > min_freq); - fd[0] = open_group(gem_fd, I915_PMU_REQUESTED_FREQUENCY, -1); - fd[1] = open_group(gem_fd, I915_PMU_ACTUAL_FREQUENCY, fd[0]); + fd[0] = open_group(gem_fd, __I915_PMU_REQUESTED_FREQUENCY(gt), -1); + fd[1] = open_group(gem_fd, __I915_PMU_ACTUAL_FREQUENCY(gt), fd[0]); /* * Set GPU to min frequency and read PMU counters. @@ -1764,8 +1764,8 @@ test_frequency_idle(int gem_fd, unsigned int gt) /* While parked, our convention is to report the GPU at 0Hz */ - fd[0] = open_group(gem_fd, I915_PMU_REQUESTED_FREQUENCY, -1); - fd[1] = open_group(gem_fd, I915_PMU_ACTUAL_FREQUENCY, fd[0]); + fd[0] = open_group(gem_fd, __I915_PMU_REQUESTED_FREQUENCY(gt), -1); + fd[1] = open_group(gem_fd, __I915_PMU_ACTUAL_FREQUENCY(gt), fd[0]); gem_quiescent_gpu(gem_fd); /* Be idle! */ measured_usleep(2000); /* Wait for timers to cease */ -- 2.36.1