[PATCH] tests/intel/kms_psr2_sf: Add eDP check for Early Transport

Jeevan B jeevan.b at intel.com
Fri Sep 20 04:02:06 UTC 2024


On current platforms early transport is supported on eDP only
so avoiding assert for other connector.

v2: Add checks to handle crashes and fix typo.

Signed-off-by: Jeevan B <jeevan.b at intel.com>
Reviewed-by: Naladala Ramanaidu <ramanaidu.naladala at intel.com>
---
 tests/intel/kms_psr2_sf.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/intel/kms_psr2_sf.c b/tests/intel/kms_psr2_sf.c
index a9be1a1ec..847f181d3 100644
--- a/tests/intel/kms_psr2_sf.c
+++ b/tests/intel/kms_psr2_sf.c
@@ -935,9 +935,11 @@ static void run(data_t *data)
 							  data->pipe),
 							  "FBC still disabled\n");
 
-	if (data->et_flag)
+	/* TODO: Enable this check if other connectors support Early Transport */
+	if (data->et_flag && data->output != NULL &&
+	    data->output->config.connector->connector_type == DRM_MODE_CONNECTOR_eDP)
 		igt_assert_f(early_transport_check(data->debugfs_fd),
-			     "Early Trasport Disbaled\n");
+			     "Early Transport Disabled\n");
 
 	data->screen_changes = 0;
 
-- 
2.25.1



More information about the igt-dev mailing list