[PATCH v2 2/2] lib/igt_psr: Fix PR state check for DisplayPort connectors

Naladala Ramanaidu ramanaidu.naladala at intel.com
Tue Sep 10 07:39:08 UTC 2024


The PR state check logic has been updated to handle DisplayPort
connectors.

Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala at 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



More information about the igt-dev mailing list