Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/3] tests/intel/xe: Align change in the name of frequency sysfs attributes
@ 2023-12-08  5:12 Rodrigo Vivi
  2023-12-08  5:12 ` [PATCH i-g-t 2/3] tests/intel/xe: Align with new xe_gt_freq component Rodrigo Vivi
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Rodrigo Vivi @ 2023-12-08  5:12 UTC (permalink / raw)
  To: igt-dev; +Cc: Rodrigo Vivi

Aligns with kernel commit ("drm/xe: Change the name of frequency sysfs attributes")

Cc: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
---
 tests/intel/{xe_guc_pc.c => xe_gt_freq.c} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename tests/intel/{xe_guc_pc.c => xe_gt_freq.c} (98%)

diff --git a/tests/intel/xe_guc_pc.c b/tests/intel/xe_gt_freq.c
similarity index 98%
rename from tests/intel/xe_guc_pc.c
rename to tests/intel/xe_gt_freq.c
index 3376e838f..a92833acb 100644
--- a/tests/intel/xe_guc_pc.c
+++ b/tests/intel/xe_gt_freq.c
@@ -37,7 +37,7 @@ static int set_freq(int fd, int gt_id, const char *freq_name, uint32_t freq)
 	char freq_attr[16];
 	int gt_fd;
 
-	snprintf(freq_attr, sizeof(freq_attr), "freq_%s", freq_name);
+	snprintf(freq_attr, sizeof(freq_attr), "%s_freq", freq_name);
 	gt_fd = xe_sysfs_gt_open(fd, gt_id);
 	igt_assert(gt_fd >= 0);
 
@@ -55,7 +55,7 @@ static uint32_t get_freq(int fd, int gt_id, const char *freq_name)
 	char freq_attr[16];
 	int gt_fd;
 
-	snprintf(freq_attr, sizeof(freq_attr), "freq_%s", freq_name);
+	snprintf(freq_attr, sizeof(freq_attr), "%s_freq", freq_name);
 	gt_fd = xe_sysfs_gt_open(fd, gt_id);
 	igt_assert(gt_fd >= 0);
 
-- 
2.43.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-08 15:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-08  5:12 [PATCH i-g-t 1/3] tests/intel/xe: Align change in the name of frequency sysfs attributes Rodrigo Vivi
2023-12-08  5:12 ` [PATCH i-g-t 2/3] tests/intel/xe: Align with new xe_gt_freq component Rodrigo Vivi
2023-12-08  5:12 ` [PATCH i-g-t 3/3] tests/intel/freq: Test throttle basic API infra Rodrigo Vivi
2023-12-08  6:29 ` ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] tests/intel/xe: Align change in the name of frequency sysfs attributes Patchwork
2023-12-08  7:54 ` ✓ CI.xeBAT: " Patchwork
2023-12-08 15:20 ` ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox