Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Naladala, Ramanaidu" <ramanaidu.naladala@intel.com>
Cc: "Joshi, Kunal1" <kunal1.joshi@intel.com>
Subject: Re: [PATCH i-g-t 1/1] tests/intel/kms_psr: Add condition to check for eDP output before asserting PSR update
Date: Wed, 4 Sep 2024 06:43:24 +0000	[thread overview]
Message-ID: <05514e2b77b05de55cb253ef729227a0cfcb22d0.camel@intel.com> (raw)
In-Reply-To: <20240903195917.1527829-2-ramanaidu.naladala@intel.com>

On Wed, 2024-09-04 at 01:29 +0530, Naladala Ramanaidu wrote:
> We do not have ALPM on the DP2.1 Panel Replay. Due to this, the
> SRD_STATUS [SRD State] doesn't change from SRDENT_ON after Panel
> Replay is enabled until it gets disabled. As a result, the igt
> tests fail. To resolve this issue, add a condition to skip the
> check in the 'psr_wait_update_if_enabled' function for DP2.1 PR.
> 
> Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
> ---
>  tests/intel/kms_psr.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/intel/kms_psr.c b/tests/intel/kms_psr.c
> index cf0ce4bb8..8671f33ea 100644
> --- a/tests/intel/kms_psr.c
> +++ b/tests/intel/kms_psr.c
> @@ -642,7 +642,8 @@ static void run_test(data_t *data)
>                 expected = "screen GREEN";
>                 break;
>         }
> -       igt_assert(psr_wait_update_if_enabled(data));
> +       if (strstr(data->output->name, "eDP-") != NULL)
> +               igt_assert(psr_wait_update_if_enabled(data));

I think better solution would be to solve this for all users of
psr_wait_update/psr_long_wait_update. I.e. in igt_psr.c. Please also
add TODO disclaimer there.

Another thing: I think better to use  output->config.connector-
>connector_type rather than output->name.

BR,

Jouni Högander

>         manual(expected);
>  }
>  


  reply	other threads:[~2024-09-04  6:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-03 19:59 [PATCH i-g-t 0/1] tests/intel/kms_psr: DP2.1 PR IGT Fixes Naladala Ramanaidu
2024-09-03 19:59 ` [PATCH i-g-t 1/1] tests/intel/kms_psr: Add condition to check for eDP output before asserting PSR update Naladala Ramanaidu
2024-09-04  6:43   ` Hogander, Jouni [this message]
2024-09-03 21:34 ` ✓ CI.xeBAT: success for tests/intel/kms_psr: DP2.1 PR IGT Fixes Patchwork
2024-09-03 21:49 ` ✓ Fi.CI.BAT: " Patchwork
2024-09-04  0:58 ` ✓ CI.xeFULL: " Patchwork
2024-09-05  6:37 ` ✗ Fi.CI.IGT: failure " 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=05514e2b77b05de55cb253ef729227a0cfcb22d0.camel@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kunal1.joshi@intel.com \
    --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