[PATCH i-g-t] tests/intel/kms_pm_lpsp: Add display version check on external panel

Mohammed Thasleem mohammed.thasleem at intel.com
Mon Sep 30 18:18:39 UTC 2024


LPSP for external panel support from Gen13+ onwards.
Skip the test if only external panel connected on less
then gen13 platforms.

Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
---
 tests/intel/kms_pm_lpsp.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/intel/kms_pm_lpsp.c b/tests/intel/kms_pm_lpsp.c
index f9ac508fb..889da42de 100644
--- a/tests/intel/kms_pm_lpsp.c
+++ b/tests/intel/kms_pm_lpsp.c
@@ -227,6 +227,8 @@ igt_main
 		enum pipe pipe;
 
 		for_each_connected_output(display, output) {
+			drmModeConnectorPtr connector = output->config.connector;
+
 			if (!i915_output_is_lpsp_capable(data.drm_fd, output))
 				continue;
 
@@ -238,6 +240,10 @@ igt_main
 				if (pipe != PIPE_A)
 					continue;
 
+				if (connector->connector_type != DRM_MODE_CONNECTOR_eDP)
+					igt_require_f(intel_display_ver(data.devid) >= 13,
+						     "LPSP support on external panel from Gen13+ platform\n");
+
 				data.output = output;
 				data.pipe = pipe;
 
-- 
2.25.1



More information about the igt-dev mailing list