[igt-dev] [PATCH i-g-t 1/5] tests/intel/kms_pm_backlight: Add XE support

Swati Sharma swati2.sharma at intel.com
Fri Sep 8 17:50:35 UTC 2023


Add XE driver support for kms pm tests.

Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 tests/intel/kms_pm_backlight.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/intel/kms_pm_backlight.c b/tests/intel/kms_pm_backlight.c
index 42aa7cb5d..03bafb773 100644
--- a/tests/intel/kms_pm_backlight.c
+++ b/tests/intel/kms_pm_backlight.c
@@ -43,7 +43,7 @@
  *
  * SUBTEST: bad-brightness
  * Description: Test the bad brightness.
- * Driver requirement: i915
+ * Driver requirement: i915, xe
  * Functionality: backlight
  * Mega feature: Display Power
  * Run type: FULL
@@ -51,7 +51,7 @@
  *
  * SUBTEST: basic-brightness
  * Description: Test the basic brightness.
- * Driver requirement: i915
+ * Driver requirement: i915, xe
  * Functionality: backlight
  * Mega feature: Display Power
  * Run type: BAT
@@ -59,7 +59,7 @@
  *
  * SUBTEST: fade
  * Description: Test basic fade.
- * Driver requirement: i915
+ * Driver requirement: i915, xe
  * Functionality: backlight
  * Mega feature: Display Power
  * Run type: FULL
@@ -67,7 +67,7 @@
  *
  * SUBTEST: fade-with-dpms
  * Description: Test the fade with DPMS.
- * Driver requirement: i915
+ * Driver requirement: i915, xe
  * Functionality: dpms, backlight
  * Mega feature: Display Power
  * Run type: FULL
@@ -75,7 +75,7 @@
  *
  * SUBTEST: fade-with-suspend
  * Description: Test the fade with suspend.
- * Driver requirement: i915
+ * Driver requirement: i915, xe
  * Functionality: backlight, suspend
  * Mega feature: Display Power
  * Run type: FULL
@@ -302,7 +302,7 @@ igt_main
 		 * try to enable all.
 		 */
 		kmstest_set_vt_graphics_mode();
-		igt_display_require(&display, drm_open_driver(DRIVER_INTEL));
+		igt_display_require(&display, drm_open_driver(DRIVER_INTEL | DRIVER_XE));
 
 		for_each_connected_output(&display, output) {
 			if (output->config.connector->connector_type != DRM_MODE_CONNECTOR_eDP)
-- 
2.25.1



More information about the igt-dev mailing list