[igt-dev] [PATCH i-g-t] test/intel/xe_guc_pc: Add debug message for gt freq

Anshuman Gupta anshuman.gupta at intel.com
Mon Nov 20 13:53:44 UTC 2023


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

Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
 tests/intel/xe_guc_pc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/intel/xe_guc_pc.c b/tests/intel/xe_guc_pc.c
index fa2f20cca..37c6fd9e0 100644
--- a/tests/intel/xe_guc_pc.c
+++ b/tests/intel/xe_guc_pc.c
@@ -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;
 }
-- 
2.25.1



More information about the igt-dev mailing list