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 v1 1/1] lib/igt_psr: Remove SRD status change check for DP2.1 Panel Replay
Date: Thu, 5 Sep 2024 12:25:16 +0000	[thread overview]
Message-ID: <5ee8aa973fdfc87d5d4a1922f0f1a4eff3bb6695.camel@intel.com> (raw)
In-Reply-To: <20240905085315.1566848-2-ramanaidu.naladala@intel.com>

On Thu, 2024-09-05 at 14:23 +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' and 'psr_long_wait_update'
> functions for DP2.1 PR.
> 
> v1: Update change for all users of psr_wait_update and
>     psr_long_wait_update. (Jouni)
> 
> Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com> 
> ---
>  lib/igt_psr.c | 20 ++++++++++++++++++--
>  1 file changed, 18 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/igt_psr.c b/lib/igt_psr.c
> index e3e7577eb..2677d4822 100644
> --- a/lib/igt_psr.c
> +++ b/lib/igt_psr.c
> @@ -113,12 +113,28 @@ 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)
>  {
> -       return igt_wait(!psr_active_check(debugfs_fd, mode, output),
> 40, 1);
> +       /*
> +        * TODO: After enabling Panel Replay on DP2.1, observe that
> the SRD status
> +        * remains in the SRDENT_ON state. Remove the polling
> mechanism for the SRD
> +        * status change for the DP2.1 output.
> +        */
> +       if (output->config.connector->connector_type ==
> DRM_MODE_CONNECTOR_DisplayPort)
> +               return igt_wait(psr_active_check(debugfs_fd, mode,
> output), 40, 1);
> +       else
> +               return igt_wait(!psr_active_check(debugfs_fd, mode,
> output), 40, 1);
>  }
>  
>  bool psr_long_wait_update(int debugfs_fd, enum psr_mode mode,
> igt_output_t *output)
>  {
> -       return igt_wait(!psr_active_check(debugfs_fd, mode, output),
> 500, 1);
> +       /*
> +        * TODO: After enabling Panel Replay on DP2.1, observe that
> the SRD status
> +        * remains in the SRDENT_ON state. Remove the polling
> mechanism for the SRD
> +        * status change for the DP2.1 output.
> +        */
> +       if (output->config.connector->connector_type ==
> DRM_MODE_CONNECTOR_DisplayPort)
> +               return igt_wait(psr_active_check(debugfs_fd, mode,
> output), 500, 1);
> +       else
> +               return igt_wait(!psr_active_check(debugfs_fd, mode,
> output), 500, 1);

This actually shows that we need to add SRDENT_ON into
psr_active_check. Maybe you could do add second patch to this set?

BR,

Jouni Högander

>  }
>  
>  static ssize_t psr_write(int debugfs_fd, const char *buf,
> igt_output_t *output)


  reply	other threads:[~2024-09-05 12:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-05  8:53 [PATCH i-g-t v1 0/1] tests/intel/kms_psr: DP2.1 PR IGT Fixes Naladala Ramanaidu
2024-09-05  8:53 ` [PATCH i-g-t v1 1/1] lib/igt_psr: Remove SRD status change check for DP2.1 Panel Replay Naladala Ramanaidu
2024-09-05 12:25   ` Hogander, Jouni [this message]
2024-09-05 17:41 ` ✓ CI.xeBAT: success for tests/intel/kms_psr: DP2.1 PR IGT Fixes (rev2) Patchwork
2024-09-05 18:07 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-09-07 19:45 ` ✗ 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=5ee8aa973fdfc87d5d4a1922f0f1a4eff3bb6695.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