From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"Grzelak, Michal" <michal.grzelak@intel.com>
Subject: Re: [PATCH i-g-t 1/2] lib/igt_psr: Skip the test when PSR is disabled
Date: Tue, 26 Aug 2025 09:21:18 +0000 [thread overview]
Message-ID: <e73166b7224f538d3773bde6c21f2ddcfd94e17a.camel@intel.com> (raw)
In-Reply-To: <20250715113822.831686-2-michal.grzelak@intel.com>
On Tue, 2025-07-15 at 13:38 +0200, Michał Grzelak wrote:
> If PSR setup timing is not met, then PSR will stay disabled and test
> will fail anyway. Skip the test upon finding that setup timing was
> not
> met.
>
> Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
> ---
> lib/igt_psr.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/lib/igt_psr.c b/lib/igt_psr.c
> index 3d8f1949b..f35051ebc 100644
> --- a/lib/igt_psr.c
> +++ b/lib/igt_psr.c
> @@ -38,7 +38,7 @@ bool psr_disabled_check(int debugfs_fd)
> igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status",
> buf,
> sizeof(buf));
>
> - return strstr(buf, "PSR mode: disabled\n");
> + return strstr(buf, "PSR disabled:");
I think you should not change the format in this debugfs in your kernel
patch -> you could drop this change as well.
> }
>
> bool selective_fetch_check(int debugfs_fd, igt_output_t *output)
> @@ -122,6 +122,8 @@ 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"));
>
> + igt_skip_on(strstr(buf, "PSR setup timing not met"));
> +
This would work if debugfs output is like this:
PSR mode: disabled (PSR setup timing not met)
BR,
Jouni Högander
> active = strstr(buf, state) ||
> (c && (c->connector_type ==
> DRM_MODE_CONNECTOR_DisplayPort) &&
> strstr(buf, "SU_STANDBY"));
next prev parent reply other threads:[~2025-08-26 9:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-15 11:38 [PATCH i-g-t 0/2] Skip PSR when disabled Michał Grzelak
2025-07-15 11:38 ` [PATCH i-g-t 1/2] lib/igt_psr: Skip the test when PSR is disabled Michał Grzelak
2025-08-26 9:21 ` Hogander, Jouni [this message]
2025-07-15 11:38 ` [PATCH i-g-t 2/2] tests/intel/kms_frontbuffer_tracking: pass non-NULL output pointer Michał Grzelak
2025-08-26 9:15 ` Hogander, Jouni
2025-07-15 22:37 ` ✓ i915.CI.BAT: success for Skip PSR when disabled (rev6) Patchwork
2025-07-15 23:39 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-16 11:38 ` ✗ Xe.CI.Full: failure " Patchwork
2025-07-16 15:11 ` ✗ i915.CI.Full: " 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=e73166b7224f538d3773bde6c21f2ddcfd94e17a.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=michal.grzelak@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;
as well as URLs for NNTP newsgroup(s).