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 69D0210E9DF for ; Fri, 8 Dec 2023 05:12:40 +0000 (UTC) From: Rodrigo Vivi To: Subject: [PATCH i-g-t 2/3] tests/intel/xe: Align with new xe_gt_freq component Date: Fri, 8 Dec 2023 00:12:28 -0500 Message-ID: <20231208051230.664226-2-rodrigo.vivi@intel.com> In-Reply-To: <20231208051230.664226-1-rodrigo.vivi@intel.com> References: <20231208051230.664226-1-rodrigo.vivi@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rodrigo Vivi Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Aligns with kernel commit ("drm/xe: Create a xe_gt_freq component for raw management and sysfs") v2: Fix copyright year (Kamil) Cc: Sujaritha Sundaresan Cc: Vinay Belgaumkar Cc: Riana Tauro Signed-off-by: Rodrigo Vivi Reviewed-by: Kamil Konieczny --- tests/intel-ci/xe-fast-feedback.testlist | 6 +++--- tests/intel/xe_gt_freq.c | 16 ++++++++-------- tests/meson.build | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/intel-ci/xe-fast-feedback.testlist b/tests/intel-ci/xe-fast-feedback.testlist index f48e8fb67..7648ec3f3 100644 --- a/tests/intel-ci/xe-fast-feedback.testlist +++ b/tests/intel-ci/xe-fast-feedback.testlist @@ -83,9 +83,9 @@ igt@xe_exec_threads@threads-mixed-fd-basic igt@xe_exec_threads@threads-mixed-userptr-invalidate igt@xe_exec_threads@threads-mixed-shared-vm-userptr-invalidate-race igt@xe_gpgpu_fill@basic -igt@xe_guc_pc@freq_basic_api -igt@xe_guc_pc@freq_fixed_idle -igt@xe_guc_pc@freq_range_idle +igt@xe_gt_freq@freq_basic_api +igt@xe_gt_freq@freq_fixed_idle +igt@xe_gt_freq@freq_range_idle igt@xe_huc_copy@huc_copy igt@xe_intel_bb@add-remove-objects igt@xe_intel_bb@bb-with-allocator diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c index a92833acb..5bc26aa52 100644 --- a/tests/intel/xe_gt_freq.c +++ b/tests/intel/xe_gt_freq.c @@ -1,12 +1,12 @@ // SPDX-License-Identifier: MIT /* - * Copyright © 2022 Intel Corporation + * Copyright © 2022,2023 Intel Corporation */ /** - * TEST: Test GuC frequency request functionality - * Category: Firmware building block - * Sub-category: GuC + * TEST: Test Xe GT frequency request functionality + * Category: Infrastructure + * Sub-category: frequency * Functionality: frequency request * Test category: functionality test */ @@ -34,10 +34,10 @@ static int set_freq(int fd, int gt_id, const char *freq_name, uint32_t freq) { int ret = -EAGAIN; - char freq_attr[16]; + char freq_attr[22]; int gt_fd; - snprintf(freq_attr, sizeof(freq_attr), "%s_freq", freq_name); + snprintf(freq_attr, sizeof(freq_attr), "freq0/%s_freq", freq_name); gt_fd = xe_sysfs_gt_open(fd, gt_id); igt_assert(gt_fd >= 0); @@ -52,10 +52,10 @@ static uint32_t get_freq(int fd, int gt_id, const char *freq_name) { uint32_t freq; int err = -EAGAIN; - char freq_attr[16]; + char freq_attr[22]; int gt_fd; - snprintf(freq_attr, sizeof(freq_attr), "%s_freq", freq_name); + snprintf(freq_attr, sizeof(freq_attr), "freq0/%s_freq", freq_name); gt_fd = xe_sysfs_gt_open(fd, gt_id); igt_assert(gt_fd >= 0); diff --git a/tests/meson.build b/tests/meson.build index facf60ccf..f6cfbcf5e 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -293,7 +293,7 @@ intel_xe_progs = [ 'xe_exec_threads', 'xe_exercise_blt', 'xe_gpgpu_fill', - 'xe_guc_pc', + 'xe_gt_freq', 'xe_huc_copy', 'xe_intel_bb', 'xe_live_ktest', -- 2.43.0