Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t v2] tests/intel/xe_guc_pc: Add changes to use new sysfs frequency entries
@ 2023-11-21  9:39 Karthik Poosa
  2023-11-21 10:34 ` Riana Tauro
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Karthik Poosa @ 2023-11-21  9:39 UTC (permalink / raw)
  To: igt-dev

Updated xe set_freq and get_freq definitions to use new sysfs entries.
The new entries will be under sub-directory freq.
Names of the entries have also changed. They will be suffixed with _freq
i.e /device/tile<n>/gt<n>/freq/*_freq instead of prefix.

v2: Updated commit message based on review comments. [Riana]

Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
---
 tests/intel/xe_guc_pc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/intel/xe_guc_pc.c b/tests/intel/xe_guc_pc.c
index fa2f20cca..bb6344449 100644
--- a/tests/intel/xe_guc_pc.c
+++ b/tests/intel/xe_guc_pc.c
@@ -141,7 +141,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), "freq/%s_freq", freq_name);
 	gt_fd = xe_sysfs_gt_open(fd, gt_id);
 	igt_assert(gt_fd >= 0);
 
@@ -159,7 +159,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), "freq/%s_freq", freq_name);
 	gt_fd = xe_sysfs_gt_open(fd, gt_id);
 	igt_assert(gt_fd >= 0);
 
-- 
2.25.1

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

end of thread, other threads:[~2023-11-22  9:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-21  9:39 [igt-dev] [PATCH i-g-t v2] tests/intel/xe_guc_pc: Add changes to use new sysfs frequency entries Karthik Poosa
2023-11-21 10:34 ` Riana Tauro
2023-11-21 13:13 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-11-21 14:11 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-11-22  9:00 ` [igt-dev] ✓ 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