From: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jouni.hogander@intel.com,
Naladala Ramanaidu <ramanaidu.naladala@intel.com>
Subject: [PATCH v2 2/2] lib/igt_psr: Fix PR state check for DisplayPort connectors
Date: Tue, 10 Sep 2024 13:09:08 +0530 [thread overview]
Message-ID: <20240910073908.1608661-3-ramanaidu.naladala@intel.com> (raw)
In-Reply-To: <20240910073908.1608661-1-ramanaidu.naladala@intel.com>
The PR state check logic has been updated to handle DisplayPort
connectors.
Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
---
lib/igt_psr.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 2677d4822..09107cd5b 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -79,8 +79,9 @@ static bool psr_active_check(int debugfs_fd, enum psr_mode mode, igt_output_t *o
c = output->config.connector;
}
- if ((mode == PR_MODE || mode == PR_MODE_SEL_FETCH) &&
- c && c->connector_type == DRM_MODE_CONNECTOR_eDP)
+ if (c->connector_type == DRM_MODE_CONNECTOR_DisplayPort)
+ state = "SRDENT_ON";
+ else if (mode == PR_MODE || mode == PR_MODE_SEL_FETCH)
state = "SLEEP";
else if (mode == PSR_MODE_1 || mode == PR_MODE || mode == PR_MODE_SEL_FETCH)
state = "SRDENT";
--
2.43.0
next prev parent reply other threads:[~2024-09-10 7:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-10 7:39 [PATCH v2 0/2] tests/intel/kms_psr: DP2.1 PR IGT Fixes Naladala Ramanaidu
2024-09-10 7:39 ` [PATCH v2 1/2] lib/igt_psr: Remove SRD status change check for DP2.1 Panel Replay Naladala Ramanaidu
2024-09-10 7:39 ` Naladala Ramanaidu [this message]
2024-09-10 9:56 ` [PATCH v2 0/2] tests/intel/kms_psr: DP2.1 PR IGT Fixes Hogander, Jouni
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=20240910073908.1608661-3-ramanaidu.naladala@intel.com \
--to=ramanaidu.naladala@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jouni.hogander@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