Skip to contentSkip to conversation

test/intel/xe_guc_pc: Add debug message for gt freq

PATCH Superseded Anshuman Gupta 2 participants 2 messages Nov 20, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/intel/xe_guc_pc: Add debug message for gt freq

Adding a igt_debug() message for gt freq, it will be useful to debug the xe_guc_pc igt test failures.

---
 tests/intel/xe_guc_pc.c | 2 ++
 1 file changed, 2 insertions(+)
tests/intel/xe_guc_pc.c +2 -0
index fa2f20cca..37c6fd9e0 100644
@@ -166,6 +166,8 @@ static uint32_t get_freq(int fd, int gt_id, const char *freq_name)
 	while (err == -EAGAIN)
 		err = igt_sysfs_scanf(gt_fd, freq_attr, "%u", &freq);
 
+	igt_debug("gt%d: %s freq\n", gt_id, freq_name);
+
 	close(gt_fd);
 	return freq;
 }
Signature · 1 line
2.25.1
#1 lore raw

Hi Anshuman

Quoted 13 lines · Anshuman Gupta

Adding a igt_debug() message for gt freq, it will be useful to debug the xe_guc_pc igt test failures.

---
  tests/intel/xe_guc_pc.c | 2 ++
  1 file changed, 2 insertions(+)
tests/intel/xe_guc_pc.c +0 -0
index fa2f20cca..37c6fd9e0 100644

tests/intel/xe_guc_pc.c static uint32_t get_freq(int fd, int gt_id, const char *freq_name) · line 169

Quoted 4 lines
tests/intel/xe_guc_pc.c +1 -0
@@ -166,6 +166,8 @@ static uint32_t get_freq(int fd, int gt_id, const char *freq_name)
  	while (err == -EAGAIN)
  		err = igt_sysfs_scanf(gt_fd, freq_attr, "%u", &freq);
 
+	igt_debug("gt%d: %s freq\n", gt_id, freq_name);

should print freq read as well?
it will be useful for tests that are failing on comparison

Thanks
Riana

Quoted 4 lines
tests/intel/xe_guc_pc.c +1 -0
+
  	close(gt_fd);
  	return freq;
  }