Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/2] lib/igt_psr: Allow testing without checking sink status
@ 2024-09-26  7:05 Jouni Högander
  2024-09-26  7:05 ` [PATCH i-g-t 2/2] lib/igt_psr: Assert on sink/source state mismatch Jouni Högander
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Jouni Högander @ 2024-09-26  7:05 UTC (permalink / raw)
  To: igt-dev; +Cc: ramanaidu.naladala, Jouni Högander

We are currently seeing problems with DP2.1 display emulator devices as
sink Panel Replay status is not updating as expected. For this purpose use
environment variable (IGT_PSR_IGNORE_SINK_STATUS) to disable checking sink
status completely.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 lib/igt_psr.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index d14a93534..963385967 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -85,6 +85,7 @@ static bool psr_active_check(int debugfs_fd, enum psr_mode mode, igt_output_t *o
 	char buf[PSR_STATUS_MAX_LEN];
 	drmModeConnector *c;
 	const char *state;
+	const char *env;
 	bool active;
 	int ret;
 
@@ -114,7 +115,9 @@ static bool psr_active_check(int debugfs_fd, enum psr_mode mode, igt_output_t *o
 	igt_skip_on(strstr(buf, "PSR sink not reliable: yes"));
 
 	active = strstr(buf, state);
-	if (active && output)
+
+	env = getenv("IGT_PANEL_REPLAY_IGNORE_SINK_STATUS");
+	if (active && output && (!env || !atoi(env)))
 		active = psr_active_sink_check(debugfs_fd, output);
 
 	return active;
-- 
2.34.1


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

end of thread, other threads:[~2024-10-02  8:32 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-26  7:05 [PATCH i-g-t 1/2] lib/igt_psr: Allow testing without checking sink status Jouni Högander
2024-09-26  7:05 ` [PATCH i-g-t 2/2] lib/igt_psr: Assert on sink/source state mismatch Jouni Högander
2024-10-01  6:20   ` B, Jeevan
2024-10-02  8:32     ` Hogander, Jouni
2024-09-26 10:50 ` ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] lib/igt_psr: Allow testing without checking sink status Patchwork
2024-09-26 11:01 ` ✓ CI.xeBAT: " Patchwork
2024-09-26 13:34 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-09-27  3:42 ` ✗ CI.xeFULL: " Patchwork
2024-09-27  6:27 ` [PATCH i-g-t 1/2] " B, Jeevan
2024-09-27  6:38   ` B, Jeevan
2024-10-01  6:20     ` B, Jeevan
2024-09-30 19:20 ` ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] lib/igt_psr: Allow testing without checking sink status (rev2) Patchwork
2024-09-30 19:29 ` ✓ CI.xeBAT: " Patchwork
2024-10-01  1:56 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-02  7:16   ` Hogander, Jouni
2024-10-01  5:26 ` ✗ Fi.CI.IGT: " Patchwork
2024-10-02  7:46   ` Hogander, Jouni

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