Skip to contentSkip to conversation

e2138d48c2c506816868c16cf3ba64f81bdead41

PATCH Superseded Nidhi Gupta 3 participants 6 messages Nov 15, 2022 – Nov 17, 2022

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v4 cover e2138d48c2c506816868c16cf3ba64f81bdead41

Add new subtest to validate dual panel backlight, create structure for subtests and convert exixting subtests to dynamic subtests for better reporting.

Nidhi Gupta (3):
tests/i915/i915_pm_backlight: Add new subtest to validate dual panel
backlight
tests/i915/i915_pm_backlight: Add a common structure for all subtests tests/i915/i915_pm_backlight: Create dynamic subtests

 tests/i915/i915_pm_backlight.c | 207 ++++++++++++++++++++++++++++-------------
 1 file changed, 144 insertions(+), 63 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH v4 1/3 tests/i915/i915_pm_backlight: Add new subtest to validate dual panel backlight

Since driver can now support multiple eDPs and Debugfs structure for backlight changed per connector the test should then iterate through all eDP connectors.

---
 tests/i915/i915_pm_backlight.c | 204 +++++++++++++++++++++++++++++------------
 1 file changed, 144 insertions(+), 60 deletions(-)
tests/i915/i915_pm_backlight.c +144 -60
index cafae7f..a8e7869 100644
@@ -34,29 +34,35 @@
 #include <errno.h>
 #include <unistd.h>
 #include <time.h>
+#include "igt_device.h"
+#include "igt_device_scan.h"
 
 struct context {
 	int max;
+	int old;
+	igt_output_t *output;
+	char path[PATH_MAX];
 };
 
-
 #define TOLERANCE 5 /* percent */
-#define BACKLIGHT_PATH "/sys/class/backlight/intel_backlight"
+#define BACKLIGHT_PATH "/sys/class/backlight"
 
 #define FADESTEPS 10
 #define FADESPEED 100 /* milliseconds between steps */
 
+#define NUM_EDP_OUTPUTS 2
+
 IGT_TEST_DESCRIPTION("Basic backlight sysfs test");
 
-static int backlight_read(int *result, const char *fname)
+static int backlight_read(int *result, const char *fname, struct context *context)
 {
 	int fd;
 	char full[PATH_MAX];
 	char dst[64];
 	int r, e;
 
-	igt_assert(snprintf(full, PATH_MAX, "%s/%s", BACKLIGHT_PATH, fname) < PATH_MAX);
-
+	igt_assert(snprintf(full, PATH_MAX, "%s/%s/%s", BACKLIGHT_PATH, context->path, fname)
+			    < PATH_MAX);
 	fd = open(full, O_RDONLY);
 	if (fd == -1)
 		return -errno;
@@ -73,14 +79,15 @@ static int backlight_read(int *result, const char *fname)
 	return errno;
 }
 
-static int backlight_write(int value, const char *fname)
+static int backlight_write(int value, const char *fname, struct context *context)
 {
 	int fd;
 	char full[PATH_MAX];
 	char src[64];
 	int len;
 
-	igt_assert(snprintf(full, PATH_MAX, "%s/%s", BACKLIGHT_PATH, fname) < PATH_MAX);
+	igt_assert(snprintf(full, PATH_MAX, "%s/%s/%s", BACKLIGHT_PATH, context->path, fname)
+		   < PATH_MAX);
 	fd = open(full, O_WRONLY);
 	if (fd == -1)
 		return -errno;
@@ -100,12 +107,12 @@ static void test_and_verify(struct context *context, int val)
 	const int tolerance = val * TOLERANCE / 100;
 	int result;
 
-	igt_assert_eq(backlight_write(val, "brightness"), 0);
-	igt_assert_eq(backlight_read(&result, "brightness"), 0);
+	igt_assert_eq(backlight_write(val, "brightness", context), 0);
+	igt_assert_eq(backlight_read(&result, "brightness", context), 0);
 	/* Check that the exact value sticks */
 	igt_assert_eq(result, val);
 
-	igt_assert_eq(backlight_read(&result, "actual_brightness"), 0);
+	igt_assert_eq(backlight_read(&result, "actual_brightness", context), 0);
 	/* Some rounding may happen depending on hw */
 	igt_assert_f(result >= max(0, val - tolerance) &&
 		     result <= min(context->max, val + tolerance),
@@ -124,16 +131,16 @@ static void test_bad_brightness(struct context *context)
 {
 	int val;
 	/* First write some sane value */
-	backlight_write(context->max / 2, "brightness");
+	backlight_write(context->max / 2, "brightness", context);
 	/* Writing invalid values should fail and not change the value */
-	igt_assert_lt(backlight_write(-1, "brightness"), 0);
-	backlight_read(&val, "brightness");
+	igt_assert_lt(backlight_write(-1, "brightness", context), 0);
+	backlight_read(&val, "brightness", context);
 	igt_assert_eq(val, context->max / 2);
-	igt_assert_lt(backlight_write(context->max + 1, "brightness"), 0);
-	backlight_read(&val, "brightness");
+	igt_assert_lt(backlight_write(context->max + 1, "brightness", context), 0);
+	backlight_read(&val, "brightness", context);
 	igt_assert_eq(val, context->max / 2);
-	igt_assert_lt(backlight_write(INT_MAX, "brightness"), 0);
-	backlight_read(&val, "brightness");
+	igt_assert_lt(backlight_write(INT_MAX, "brightness", context), 0);
+	backlight_read(&val, "brightness", context);
 	igt_assert_eq(val, context->max / 2);
 }
 
@@ -179,21 +186,57 @@ test_fade_with_suspend(struct context *context, igt_output_t *output)
 	test_fade(context);
 }
 
+static void test_cleanup(igt_display_t *display, igt_output_t *output)
+{
+	igt_output_set_pipe(output, PIPE_NONE);
+	igt_display_commit2(display, display->is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY);
+	igt_pm_restore_sata_link_power_management();
+}
+
+static void test_setup(igt_display_t display, igt_output_t *output)
+{
+	igt_plane_t *primary;
+	drmModeModeInfo *mode;
+	struct igt_fb fb;
+	enum pipe pipe;
+
+	igt_display_reset(&display);
+
+	for_each_pipe(&display, pipe) {
+		if (!igt_pipe_connector_valid(pipe, output))
+			continue;
+
+		igt_output_set_pipe(output, pipe);
+		mode = igt_output_get_mode(output);
+
+		igt_create_pattern_fb(display.drm_fd,
+				      mode->hdisplay, mode->vdisplay,
+				      DRM_FORMAT_XRGB8888,
+				      DRM_FORMAT_MOD_LINEAR, &fb);
+		primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
+		igt_plane_set_fb(primary, &fb);
+
+		igt_display_commit2(&display, display.is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY);
+		igt_pm_enable_sata_link_power_management();
+
+		break;
+	}
+}
+
 igt_main
 {
-	struct context context = {0};
-	int old;
+	int fd;
+	int i = 0;
 	igt_display_t display;
 	igt_output_t *output;
-	struct igt_fb fb;
+	char file_path_n[PATH_MAX] = "";
+	bool dual_edp = false;
+	struct context contexts[NUM_EDP_OUTPUTS];
 
 	igt_fixture {
-		enum pipe pipe;
 		bool found = false;
 		char full_name[32] = {};
 		char *name;
-		drmModeModeInfo *mode;
-		igt_plane_t *primary;
 
 		/*
 		 * Backlight tests requires the output to be enabled,
@@ -202,56 +245,97 @@ igt_main
 		kmstest_set_vt_graphics_mode();
 		igt_display_require(&display, drm_open_driver(DRIVER_INTEL));
 
-		/* Get the max value and skip the whole test if sysfs interface not available */
-		igt_skip_on(backlight_read(&old, "brightness"));
-		igt_assert(backlight_read(&context.max, "max_brightness") > -1);
+		for_each_connected_output(&display, output) {
+			if (output->config.connector->connector_type != DRM_MODE_CONNECTOR_eDP)
+				continue;
 
-		/* should be ../../cardX-$output */
-		igt_assert_lt(12, readlink(BACKLIGHT_PATH "/device", full_name, sizeof(full_name) - 1));
-		name = basename(full_name);
+			if (found)
+				snprintf(file_path_n, PATH_MAX, "%s/card%i-%s-backlight/brightness",
+					 BACKLIGHT_PATH, igt_device_get_card_index(display.drm_fd),
+					 igt_output_name(output));
+			else
+				snprintf(file_path_n, PATH_MAX, "%s/intel_backlight/brightness",
+					 BACKLIGHT_PATH);
 
-		for_each_pipe_with_valid_output(&display, pipe, output) {
-			if (strcmp(name + 6, output->name))
+			fd = open(file_path_n, O_RDONLY);
+			if (fd == -1)
 				continue;
-			found = true;
-			break;
-		}
-
-		igt_require_f(found,
-			      "Could not map backlight for \"%s\" to connected output\n",
-			      name);
 
-		igt_output_set_pipe(output, pipe);
-		mode = igt_output_get_mode(output);
+			if (found)
+				snprintf(contexts[i].path, PATH_MAX, "card%i-%s-backlight",
+					 igt_device_get_card_index(display.drm_fd),
+					 igt_output_name(output));
+			else
+				snprintf(contexts[i].path, PATH_MAX, "intel_backlight");
+
+			close(fd);
+
+			/* should be ../../cardX-$output */
+			snprintf(file_path_n, PATH_MAX, "%s/%s/device", BACKLIGHT_PATH,
+				 contexts[i].path);
+			igt_assert_lt(16, readlink(file_path_n, full_name, sizeof(full_name) - 1));
+			name = basename(full_name);
+			igt_assert(backlight_read(&contexts[i].max,
+						"max_brightness", &contexts[i]) > -1);
+			igt_skip_on(backlight_read(&contexts[i].old, "brightness", &contexts[i]));
+
+			if (!strcmp(name + 6, output->name)) {
+				contexts[i++].output = output;
+
+				if (found)
+					dual_edp = true;
+				else
+					found = true;
+			}
+		}
+		igt_require_f(found, "No valid output found.\n");
+	}
 
-		igt_create_pattern_fb(display.drm_fd,
-				      mode->hdisplay, mode->vdisplay,
-				      DRM_FORMAT_XRGB8888,
-				      DRM_FORMAT_MOD_LINEAR, &fb);
-		primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
-		igt_plane_set_fb(primary, &fb);
+	igt_subtest("basic-brightness") {
+		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
+			test_setup(display, &contexts->output[i]);
+			test_brightness(&contexts[i]);
+			test_cleanup(&display, output);
+		}
+	}
 
-		igt_display_commit2(&display, display.is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY);
-		igt_pm_enable_sata_link_power_management();
+	igt_subtest("bad-brightness") {
+		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
+			test_setup(display, &contexts->output[i]);
+			test_bad_brightness(&contexts[i]);
+			test_cleanup(&display, output);
+		}
 	}
+	igt_subtest("fade") {
+		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
+			test_setup(display, &contexts->output[i]);
+			test_fade(&contexts[i]);
+			test_cleanup(&display, output);
+		}
+	}
+	igt_subtest("fade_with_dpms") {
+		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
+			test_setup(display, &contexts->output[i]);
+			test_fade_with_dpms(&contexts[i], output);
+			test_cleanup(&display, output);
+		}
+	}
+	igt_subtest("fade_with_suspend") {
+		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
+			test_setup(display, &contexts->output[i]);
+			test_fade_with_suspend(&contexts[i], output);
+			test_cleanup(&display, output);
+		}
+	}
+
 
-	igt_subtest("basic-brightness")
-		test_brightness(&context);
-	igt_subtest("bad-brightness")
-		test_bad_brightness(&context);
-	igt_subtest("fade")
-		test_fade(&context);
-	igt_subtest("fade_with_dpms")
-		test_fade_with_dpms(&context, output);
-	igt_subtest("fade_with_suspend")
-		test_fade_with_suspend(&context, output);
 
 	igt_fixture {
 		/* Restore old brightness */
-		backlight_write(old, "brightness");
+		for (i = 0; i < (dual_edp ? 2 : 1); i++)
+			backlight_write(contexts[i].old, "brightness", &contexts[i]);
 
 		igt_display_fini(&display);
-		igt_remove_fb(display.drm_fd, &fb);
 		igt_pm_restore_sata_link_power_management();
 		close(display.drm_fd);
 	}
Signature · 1 line
1.9.1
#2 lore raw

PATCH v4 2/3 tests/i915/i915_pm_backlight: Add a common structure for all subtests

In reply to Nidhi Gupta

Create a common structure for all the subtests which includes the test name, test description and flag indicating whether the test is suspend test or dpms test. And then create the array of the above structure and iterate over it.

---
 tests/i915/i915_pm_backlight.c | 73 +++++++++++++++++++-----------------------
 1 file changed, 33 insertions(+), 40 deletions(-)
tests/i915/i915_pm_backlight.c +33 -40
index a8e7869..dcec2b6 100644
@@ -44,6 +44,12 @@ struct context {
 	char path[PATH_MAX];
 };
 
+enum {
+	TEST_NONE = 0,
+	TEST_DPMS,
+	TEST_SUSPEND,
+};
+
 #define TOLERANCE 5 /* percent */
 #define BACKLIGHT_PATH "/sys/class/backlight"
 
@@ -161,7 +167,7 @@ static void test_fade(struct context *context)
 }
 
 static void
-test_fade_with_dpms(struct context *context, igt_output_t *output)
+check_dpms(igt_output_t *output)
 {
 	igt_require(igt_setup_runtime_pm(output->display->drm_fd));
 
@@ -174,16 +180,12 @@ test_fade_with_dpms(struct context *context, igt_output_t *output)
 				   output->config.connector,
 				   DRM_MODE_DPMS_ON);
 	igt_assert(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_ACTIVE));
-
-	test_fade(context);
 }
 
 static void
-test_fade_with_suspend(struct context *context, igt_output_t *output)
+check_suspend(igt_output_t *output)
 {
 	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
-
-	test_fade(context);
 }
 
 static void test_cleanup(igt_display_t *display, igt_output_t *output)
@@ -232,6 +234,18 @@ igt_main
 	char file_path_n[PATH_MAX] = "";
 	bool dual_edp = false;
 	struct context contexts[NUM_EDP_OUTPUTS];
+	struct {
+		const char *name;
+		const char *desc;
+		void (*test_t) (struct context *);
+		int flags;
+	} tests[] = {
+		{ "basic-brightness", "test the basic brightness.", test_brightness, TEST_NONE },
+		{ "bad-brightness", "test the bad brightness.", test_bad_brightness, TEST_NONE },
+		{ "fade", "test basic fade.", test_fade, TEST_NONE },
+		{ "fade-with-dpms", "test the fade with DPMS.", test_fade, TEST_DPMS },
+		{ "fade-with-suspend", "test the fade with suspend.", test_fade, TEST_SUSPEND },
+	};
 
 	igt_fixture {
 		bool found = false;
@@ -291,45 +305,24 @@ igt_main
 		igt_require_f(found, "No valid output found.\n");
 	}
 
-	igt_subtest("basic-brightness") {
-		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
-			test_setup(display, &contexts->output[i]);
-			test_brightness(&contexts[i]);
-			test_cleanup(&display, output);
-		}
-	}
+	for (i = 0; i < ARRAY_SIZE(tests); i++) {
+		igt_describe(tests[i].desc);
+		igt_subtest(tests[i].name) {
+			for (int j = 0; j < (dual_edp ? 2 : 1); j++) {
+				test_setup(display, &contexts->output[j]);
 
-	igt_subtest("bad-brightness") {
-		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
-			test_setup(display, &contexts->output[i]);
-			test_bad_brightness(&contexts[i]);
-			test_cleanup(&display, output);
-		}
-	}
-	igt_subtest("fade") {
-		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
-			test_setup(display, &contexts->output[i]);
-			test_fade(&contexts[i]);
-			test_cleanup(&display, output);
-		}
-	}
-	igt_subtest("fade_with_dpms") {
-		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
-			test_setup(display, &contexts->output[i]);
-			test_fade_with_dpms(&contexts[i], output);
-			test_cleanup(&display, output);
-		}
-	}
-	igt_subtest("fade_with_suspend") {
-		for (i = 0; i < (dual_edp ? 2 : 1); i++) {
-			test_setup(display, &contexts->output[i]);
-			test_fade_with_suspend(&contexts[i], output);
+				if (tests[i].flags == TEST_DPMS)
+					check_dpms(contexts[j].output);
+
+				if (tests[i].flags == TEST_SUSPEND)
+					check_suspend(contexts[j].output);
+
+				tests[i].test_t(&contexts[j]);
+			}
 			test_cleanup(&display, output);
 		}
 	}
 
-
-
 	igt_fixture {
 		/* Restore old brightness */
 		for (i = 0; i < (dual_edp ? 2 : 1); i++)
Signature · 1 line
1.9.1
#3 lore raw

Re: [igt-dev] [PATCH v4 2/3] tests/i915/i915_pm_backlight: Add a common structure for all subtests

Hi Nidhi,

Still one issue I found, see below. Sorry for noticing this late...

Quoted 132 lines · Nidhi Gupta

Create a common structure for all the subtests which includes the test name, test description and flag indicating whether the test is suspend test or dpms test. And then create the array of the above structure and iterate over it.

---
 tests/i915/i915_pm_backlight.c | 73 +++++++++++++++++++-------------
----------

 1 file changed, 33 insertions(+), 40 deletions(-)
tests/i915/i915_pm_backlight.c +0 -0
index a8e7869..dcec2b6 100644
@@ -44,6 +44,12 @@ struct context {
         char path[PATH_MAX];
  };

tests/i915/i915_pm_backlight.c +6 -0
+enum {
+       TEST_NONE = 0,
+       TEST_DPMS,
+       TEST_SUSPEND,
+};
+

 #define TOLERANCE 5 /* percent */
 #define BACKLIGHT_PATH "/sys/class/backlight"

tests/i915/i915_pm_backlight.c +0 -0
@@ -161,7 +167,7 @@ static void test_fade(struct context *context)
  }


 static void

tests/i915/i915_pm_backlight.c +1 -1
-test_fade_with_dpms(struct context *context, igt_output_t *output)
+check_dpms(igt_output_t *output)

 { igt_require(igt_setup_runtime_pm(output->display->drm_fd));

tests/i915/i915_pm_backlight.c +0 -0
@@ -174,16 +180,12 @@ test_fade_with_dpms(struct context *context,
 igt_output_t *output)
                                    output->config.connector,
                                    DRM_MODE_DPMS_ON);

        igt_assert(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_ACTIV E));
-
-       test_fade(context);
 }

 static void
-test_fade_with_suspend(struct context *context, igt_output_t *output)
+check_suspend(igt_output_t *output)
 {
        igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
-
-       test_fade(context);
 }

 static void test_cleanup(igt_display_t *display, igt_output_t *output)

tests/i915/i915_pm_backlight.c +11 -0
@@ -232,6 +234,18 @@ igt_main
         char file_path_n[PATH_MAX] = "";
         bool dual_edp = false;
         struct context contexts[NUM_EDP_OUTPUTS];
+       struct {
+               const char *name;
+               const char *desc;
+               void (*test_t) (struct context *);
+               int flags;
+       } tests[] = {
+               { "basic-brightness", "test the basic brightness.",
 test_brightness, TEST_NONE },
+               { "bad-brightness", "test the bad brightness.",
 test_bad_brightness, TEST_NONE },
+               { "fade", "test basic fade.", test_fade, TEST_NONE },
+               { "fade-with-dpms", "test the fade with DPMS.",
 test_fade, TEST_DPMS },
+               { "fade-with-suspend", "test the fade with suspend.",

test_fade, TEST_SUSPEND },
+       };

        igt_fixture {
                bool found = false;

tests/i915/i915_pm_backlight.c +0 -0
@@ -291,45 +305,24 @@ igt_main
                 igt_require_f(found, "No valid output found.\n");
         }


-       igt_subtest("basic-brightness") {
-               for (i = 0; i < (dual_edp ? 2 : 1); i++) { -                       test_setup(display, &contexts->output[i]); -                       test_brightness(&contexts[i]);
-                       test_cleanup(&display, output);
-               }
-       }
+       for (i = 0; i < ARRAY_SIZE(tests); i++) {
+               igt_describe(tests[i].desc);
+               igt_subtest(tests[i].name) {
+                       for (int j = 0; j < (dual_edp ? 2 : 1); j++) {
+                               test_setup(display, &contexts-

Quoted 1 line

output[j]);


-       igt_subtest("bad-brightness") {
-               for (i = 0; i < (dual_edp ? 2 : 1); i++) { -                       test_setup(display, &contexts->output[i]); -                       test_bad_brightness(&contexts[i]); -                       test_cleanup(&display, output);
-               }
-       }
-       igt_subtest("fade") {
-               for (i = 0; i < (dual_edp ? 2 : 1); i++) { -                       test_setup(display, &contexts->output[i]); -                       test_fade(&contexts[i]);
-                       test_cleanup(&display, output);
-               }
-       }
-       igt_subtest("fade_with_dpms") {
-               for (i = 0; i < (dual_edp ? 2 : 1); i++) { -                       test_setup(display, &contexts->output[i]); -                       test_fade_with_dpms(&contexts[i], output); -                       test_cleanup(&display, output);
-               }
-       }
-       igt_subtest("fade_with_suspend") {
-               for (i = 0; i < (dual_edp ? 2 : 1); i++) { -                       test_setup(display, &contexts->output[i]); -                       test_fade_with_suspend(&contexts[i], output); +                               if (tests[i].flags == TEST_DPMS) +                                       check_dpms(contexts[j].output );

Quoted 8 lines

+
+                               if (tests[i].flags == TEST_SUSPEND) +                                       check_suspend(contexts[j].out put);
+
+                               tests[i].test_t(&contexts[j]); +                       }
                        test_cleanup(&display, output);

This should be moved to the loop.

Quoted 8 lines

                }
        }

tests/i915/i915_pm_backlight.c +0 -2
-
-

        igt_fixture {
                /* Restore old brightness */ for (i = 0; i < (dual_edp ? 2 : 1); i++)

#4 lore raw

PATCH v4 3/3 tests/i915/i915_pm_backlight: Create dynamic subtests

In reply to Nidhi Gupta

Modified the test to include dynamic subtests.

---
 tests/i915/i915_pm_backlight.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
tests/i915/i915_pm_backlight.c +7 -3
index dcec2b6..3301390 100644
@@ -307,7 +307,7 @@ igt_main
 
 	for (i = 0; i < ARRAY_SIZE(tests); i++) {
 		igt_describe(tests[i].desc);
-		igt_subtest(tests[i].name) {
+		igt_subtest_with_dynamic(tests[i].name) {
 			for (int j = 0; j < (dual_edp ? 2 : 1); j++) {
 				test_setup(display, &contexts->output[j]);
 
@@ -317,9 +317,13 @@ igt_main
 				if (tests[i].flags == TEST_SUSPEND)
 					check_suspend(contexts[j].output);
 
-				tests[i].test_t(&contexts[j]);
+				igt_dynamic_f("%s", igt_output_name(contexts[j].output)) {
+					tests[i].test_t(&contexts[j]);
+				}
+
+				test_cleanup(&display, output);
 			}
-			test_cleanup(&display, output);
+			/* TODO: Add tests for dual eDP. */
 		}
 	}
 
Signature · 1 line
1.9.1
#5 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for e2138d48c2c506816868c16cf3ba64f81bdead41

In reply to Nidhi Gupta
== Series Details ==

== Series Details ==

Series: e2138d48c2c506816868c16cf3ba64f81bdead41
URL : https://patchwork.freedesktop.org/series/110942/
State : failure

== Summary ==

CI Bug Log - changes from IGT_7059 -> IGTPW_8110
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_8110 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_8110, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/index.html

Participating hosts (37 -> 37)
------------------------------

Additional (3): bat-kbl-2 bat-dg1-6 fi-pnv-d510
Missing (3): fi-hsw-4770 fi-rkl-11600 bat-atsm-1

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_8110:

### IGT changes ###

#### Possible regressions ####

* igt@i915_pm_backlight@basic-brightness:
- bat-dg1-6: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

#### Warnings ####

* igt@i915_pm_backlight@basic-brightness:
- fi-rkl-guc: [SKIP][2] ([i915#3012]) -> [SKIP][3]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/fi-rkl-guc/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/fi-rkl-guc/igt@[email protected]
- bat-dg1-5: [SKIP][4] ([i915#1155]) -> [SKIP][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-dg1-5/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-5/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_pm_backlight@basic-brightness:
- {bat-dg2-8}: [SKIP][6] ([i915#1155]) -> [SKIP][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-dg2-8/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg2-8/igt@[email protected]
- {bat-adlm-1}: [SKIP][8] ([i915#1155]) -> [SKIP][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-adlm-1/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-adlm-1/igt@[email protected]
- {bat-rpls-2}: [SKIP][10] ([i915#1155]) -> [SKIP][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-rpls-2/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-rpls-2/igt@[email protected]
- {bat-dg1-7}: [SKIP][12] ([i915#1155]) -> [SKIP][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-dg1-7/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-7/igt@[email protected]
- {bat-dg2-9}: [SKIP][14] ([i915#1155]) -> [SKIP][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-dg2-9/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg2-9/igt@[email protected]

New tests
---------

New tests have been introduced between IGT_7059 and IGTPW_8110:

### New IGT tests (1) ###

* igt@i915_pm_backlight@basic-brightness@edp-1:
- Statuses : 10 pass(s)
- Exec time: [0.0] s

Known issues
------------

Here are the changes found in IGTPW_8110 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: NOTRUN -> [FAIL][16] ([i915#7229])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/fi-pnv-d510/igt@[email protected]

* igt@gem_mmap@basic:
- bat-dg1-6: NOTRUN -> [SKIP][17] ([i915#4083])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@gem_render_tiled_blits@basic:
- bat-dg1-6: NOTRUN -> [SKIP][18] ([i915#4079]) +1 similar issue
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]
- fi-apl-guc: [PASS][19] -> [INCOMPLETE][20] ([i915#7056])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/fi-apl-guc/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/fi-apl-guc/igt@[email protected]

* igt@gem_tiled_fence_blits@basic:
- bat-dg1-6: NOTRUN -> [SKIP][21] ([i915#4077]) +2 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@i915_pm_backlight@basic-brightness:
- fi-bxt-dsi: [PASS][22] -> [SKIP][23] ([fdo#109271])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/fi-bxt-dsi/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/fi-bxt-dsi/igt@[email protected]
- fi-snb-2520m: [PASS][24] -> [SKIP][25] ([fdo#109271])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/fi-snb-2520m/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/fi-snb-2520m/igt@[email protected]

* igt@i915_pm_rps@basic-api:
- bat-dg1-6: NOTRUN -> [SKIP][26] ([i915#6621])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@i915_selftest@live@mman:
- fi-rkl-guc: [PASS][27] -> [TIMEOUT][28] ([i915#6794])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/fi-rkl-guc/igt@i915_selftest@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/fi-rkl-guc/igt@i915_selftest@[email protected]

* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-dg1-6: NOTRUN -> [SKIP][29] ([i915#4215])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@kms_addfb_basic@tile-pitch-mismatch:
- bat-dg1-6: NOTRUN -> [SKIP][30] ([i915#4212]) +7 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@kms_chamelium@hdmi-crc-fast:
- bat-dg1-6: NOTRUN -> [SKIP][31] ([fdo#111827]) +8 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor:
- bat-dg1-6: NOTRUN -> [SKIP][32] ([i915#4103] / [i915#4213])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions:
- fi-bsw-kefka: [PASS][33] -> [FAIL][34] ([i915#6298])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/fi-bsw-kefka/igt@kms_cursor_legacy@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/fi-bsw-kefka/igt@kms_cursor_legacy@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- bat-dg1-6: NOTRUN -> [SKIP][35] ([fdo#109285])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@kms_psr@primary_page_flip:
- fi-pnv-d510: NOTRUN -> [SKIP][36] ([fdo#109271]) +43 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/fi-pnv-d510/igt@kms_psr@primary_page_flip.html

* igt@kms_psr@sprite_plane_onoff:
- bat-dg1-6: NOTRUN -> [SKIP][37] ([i915#1072] / [i915#4078]) +3 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@kms_psr@sprite_plane_onoff.html

* igt@kms_setmode@basic-clone-single-crtc:
- bat-dg1-6: NOTRUN -> [SKIP][38] ([i915#3555])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@prime_vgem@basic-gtt:
- bat-dg1-6: NOTRUN -> [SKIP][39] ([i915#3708] / [i915#4077]) +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@prime_vgem@basic-read:
- bat-dg1-6: NOTRUN -> [SKIP][40] ([i915#3708]) +3 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

* igt@prime_vgem@basic-userptr:
- bat-dg1-6: NOTRUN -> [SKIP][41] ([i915#3708] / [i915#4873])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-dg1-6/igt@[email protected]

#### Possible fixes ####

* igt@fbdev@read:
- {bat-rpls-2}: [SKIP][42] ([i915#2582]) -> [PASS][43] +4 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-rpls-2/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-rpls-2/igt@[email protected]

* igt@gem_exec_suspend@basic-s0@smem:
- {bat-rplp-1}: [DMESG-WARN][44] ([i915#2867]) -> [PASS][45]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-rplp-1/igt@gem_exec_suspend@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-rplp-1/igt@gem_exec_suspend@[email protected]

* igt@i915_selftest@live@migrate:
- {bat-adlp-6}: [INCOMPLETE][46] ([i915#7348]) -> [PASS][47]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-adlp-6/igt@i915_selftest@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-adlp-6/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@slpc:
- {bat-adln-1}: [DMESG-FAIL][48] ([i915#6997]) -> [PASS][49]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7059/bat-adln-1/igt@i915_selftest@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/bat-adln-1/igt@i915_selftest@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#6106]: https://gitlab.freedesktop.org/drm/intel/issues/6106
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
[i915#6434]: https://gitlab.freedesktop.org/drm/intel/issues/6434
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6794]: https://gitlab.freedesktop.org/drm/intel/issues/6794
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7056]: https://gitlab.freedesktop.org/drm/intel/issues/7056
[i915#7229]: https://gitlab.freedesktop.org/drm/intel/issues/7229
[i915#7346]: https://gitlab.freedesktop.org/drm/intel/issues/7346
[i915#7348]: https://gitlab.freedesktop.org/drm/intel/issues/7348
[i915#7351]: https://gitlab.freedesktop.org/drm/intel/issues/7351

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_7059 -> IGTPW_8110

CI-20190529: 20190529
CI_DRM_12382: cb74864693414b221b3601572e75449558126e8b @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8110: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/index.html
IGT_7059: 89c5c56dfde602d54eefa301e9887eff8bcda0e8 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

Testlist changes
----------------

+igt@i915_pm_backlight@fade-with-dpms
+igt@i915_pm_backlight@fade-with-suspend
-igt@i915_pm_backlight@fade_with_dpms
-igt@i915_pm_backlight@fade_with_suspend
-igt@kms_chamelium@dp-edid-resolution-list

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8110/index.html