public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v1] lib/igt_psr: Fix Early Transport status handling
@ 2026-02-26  9:42 Naladala Ramanaidu
  2026-02-26 16:19 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Naladala Ramanaidu @ 2026-02-26  9:42 UTC (permalink / raw)
  To: igt-dev; +Cc: jeevan.b, Naladala Ramanaidu

Make Early Transport check output‑aware and align with updated PSR
status text.

Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
---
 lib/igt_psr.c             | 8 +++++---
 lib/igt_psr.h             | 2 +-
 tests/intel/kms_psr2_sf.c | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 7e50c3dc6..20f3d9b00 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -69,14 +69,16 @@ static bool psr_active_sink_check(int debugfs_fd, igt_output_t *output)
 /*
  * Checks if Early Transport is enabled in PSR status by reading the debugfs.
  */
-bool early_transport_check(int debugfs_fd)
+bool early_transport_check(int debugfs_fd, igt_output_t *output)
 {
 	char buf[PSR_STATUS_MAX_LEN];
+	char debugfs_file[128] = {0};
 
-	igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf,
+	SET_DEBUGFS_PATH(output, debugfs_file);
+	igt_debugfs_simple_read(debugfs_fd, debugfs_file, buf,
 				sizeof(buf));
 
-	return strstr(buf, "enabled (Early Transport)");
+	return strstr(buf, "selective update (Early Transport)");
 }
 
 static bool sink_status_checks(void)
diff --git a/lib/igt_psr.h b/lib/igt_psr.h
index 7639f8d46..53ab04483 100644
--- a/lib/igt_psr.h
+++ b/lib/igt_psr.h
@@ -49,7 +49,7 @@ enum fbc_mode {
 
 bool psr_disabled_check(int debugfs_fd);
 bool selective_fetch_check(int debugfs_fd, igt_output_t *output);
-bool early_transport_check(int debugfs_fd);
+bool early_transport_check(int debugfs_fd, igt_output_t *output);
 bool psr_wait_entry(int debugfs_fd, enum psr_mode mode, igt_output_t *output);
 bool psr_wait_update(int debugfs_fd, enum psr_mode mode, igt_output_t *output);
 bool psr_long_wait_update(int debugfs_fd, enum psr_mode mode, igt_output_t *output);
diff --git a/tests/intel/kms_psr2_sf.c b/tests/intel/kms_psr2_sf.c
index 5bcbc8df4..00283169b 100644
--- a/tests/intel/kms_psr2_sf.c
+++ b/tests/intel/kms_psr2_sf.c
@@ -962,7 +962,7 @@ static void run(data_t *data)
 							  "FBC still disabled\n");
 
 	if (is_et_check_needed(data))
-		igt_assert_f(early_transport_check(data->debugfs_fd),
+		igt_assert_f(early_transport_check(data->debugfs_fd, data->output),
 			     "Early Transport Disabled\n");
 
 	data->screen_changes = 0;
-- 
2.43.0


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

end of thread, other threads:[~2026-03-19 14:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-26  9:42 [PATCH i-g-t v1] lib/igt_psr: Fix Early Transport status handling Naladala Ramanaidu
2026-02-26 16:19 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-02-26 16:39 ` ✓ i915.CI.BAT: " Patchwork
2026-02-26 17:13 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-27  2:58 ` [PATCH i-g-t v1] " B, Jeevan
2026-03-17 19:30 ` [PATCH i-g-t v2] " Naladala Ramanaidu
2026-03-18  4:17   ` B, Jeevan
2026-03-18  8:18   ` Hogander, Jouni
2026-03-18  8:54     ` Naladala, Ramanaidu
2026-03-18  9:28       ` Hogander, Jouni
2026-03-18 10:38         ` Naladala, Ramanaidu
2026-03-18  2:02 ` ✓ Xe.CI.BAT: success for lib/igt_psr: Fix Early Transport status handling (rev2) Patchwork
2026-03-18  2:12 ` ✓ i915.CI.BAT: " Patchwork
2026-03-19 14:57 ` ✗ Xe.CI.FULL: failure " Patchwork

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