Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] test/intel/xe_guc_pc: Add debug message for gt freq
@ 2023-11-20 13:53 Anshuman Gupta
  2023-11-20 14:15 ` Riana Tauro
  0 siblings, 1 reply; 2+ messages in thread
From: Anshuman Gupta @ 2023-11-20 13:53 UTC (permalink / raw)
  To: igt-dev

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@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

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

end of thread, other threads:[~2023-11-20 14:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-20 13:53 [igt-dev] [PATCH i-g-t] test/intel/xe_guc_pc: Add debug message for gt freq Anshuman Gupta
2023-11-20 14:15 ` Riana Tauro

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