From: "Jouni Högander" <jouni.hogander@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: ramanaidu.naladala@intel.com,
"Jouni Högander" <jouni.hogander@intel.com>
Subject: [PATCH i-g-t] lib/igt_psr: Allow testing without checking sink status
Date: Mon, 23 Sep 2024 13:21:06 +0300 [thread overview]
Message-ID: <20240923102106.2228688-1-jouni.hogander@intel.com> (raw)
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
next reply other threads:[~2024-09-23 10:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 10:21 Jouni Högander [this message]
2024-09-25 23:14 ` ✓ CI.xeBAT: success for lib/igt_psr: Allow testing without checking sink status Patchwork
2024-09-25 23:19 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-09-26 3:20 ` ✗ CI.xeFULL: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240923102106.2228688-1-jouni.hogander@intel.com \
--to=jouni.hogander@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ramanaidu.naladala@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox