Skip to contentSkip to conversation

Add new subtest and test cleanup

PATCH Superseded Nidhi Gupta 3 participants 9 messages Nov 15, 2022

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

cover Add new subtest and test cleanup

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 | 208 ++++++++++++++++++++++++++++-------------
 1 file changed, 145 insertions(+), 63 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 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 | 202 +++++++++++++++++++++++++++++------------
 1 file changed, 142 insertions(+), 60 deletions(-)
tests/i915/i915_pm_backlight.c +142 -60
index cafae7f..a482e2a 100644
@@ -34,29 +34,34 @@
 #include <errno.h>
 #include <unistd.h>
 #include <time.h>
+#include "igt_device.h"
+#include "igt_device_scan.h"
 
 struct context {
 	int max;
+	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 +78,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 +106,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 +130,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 +185,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 old[NUM_EDP_OUTPUTS], 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 +244,96 @@ 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);
+
+			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 (int j = 0; j < (dual_edp ? 2 : 1); j++)
+			backlight_write(old[j], "brightness", &contexts[j]);
 
 		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

Re: [igt-dev] [PATCH 1/3] tests/i915/i915_pm_backlight: Add new subtest to validate dual panel backlight

Hello,

Still couple of comment inline below.

Quoted 337 lines · Nidhi Gupta

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 | 202 +++++++++++++++++++++++++++++--
----------

 1 file changed, 142 insertions(+), 60 deletions(-)
tests/i915/i915_pm_backlight.c +2 -0
index cafae7f..a482e2a 100644
@@ -34,29 +34,34 @@
  #include <errno.h>
  #include <unistd.h>
  #include <time.h>
+#include "igt_device.h"
+#include "igt_device_scan.h"


 struct context {
        int max;
+       igt_output_t *output;
+       char path[PATH_MAX];
 };

-
 #define TOLERANCE 5 /* percent */

tests/i915/i915_pm_backlight.c +1 -1
-#define BACKLIGHT_PATH "/sys/class/backlight/intel_backlight"
+#define BACKLIGHT_PATH "/sys/class/backlight"


 #define FADESTEPS 10
 #define FADESPEED 100 /* milliseconds between steps */

tests/i915/i915_pm_backlight.c +2 -0
+#define NUM_EDP_OUTPUTS 2
+

 IGT_TEST_DESCRIPTION("Basic backlight sysfs test");

tests/i915/i915_pm_backlight.c +1 -1
-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;

tests/i915/i915_pm_backlight.c +0 -0
@@ -73,14 +78,15 @@ static int backlight_read(int *result, const char
 *fname)
         return errno;
  }

tests/i915/i915_pm_backlight.c +1 -1
-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;

tests/i915/i915_pm_backlight.c +0 -0
@@ -100,12 +106,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),

tests/i915/i915_pm_backlight.c +1 -1
@@ -124,16 +130,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);
 }

tests/i915/i915_pm_backlight.c +0 -0
@@ -179,21 +185,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();

tests/i915/i915_pm_backlight.c +23 -0
+}
+
+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();

tests/i915/i915_pm_backlight.c +5 -0
+
+               break;
+       }
+}
+

 igt_main
 {
-       struct context context = {0};
-       int old;
+       int old[NUM_EDP_OUTPUTS], 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,

tests/i915/i915_pm_backlight.c +0 -0
@@ -202,56 +244,96 @@ 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");

tests/i915/i915_pm_backlight.c +5 -0
+
+                       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);

tests/i915/i915_pm_backlight.c +12 -0
+
+                       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")

Quoted 8 lines

-               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 (int j = 0; j < (dual_edp ? 2 : 1); j++)

You could use "i" here.

Quoted 2 lines

+                       backlight_write(old[j], "brightness", &contexts[j]);

You haven't read original backlight values into old[j]. Please add this into loop where you are initializing context array. Maybe old could be also part of context?

Quoted 6 lines


                igt_display_fini(&display);
-               igt_remove_fb(display.drm_fd, &fb); igt_pm_restore_sata_link_power_management(); close(display.drm_fd);
        }

#3 lore raw

PATCH 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 | 78 ++++++++++++++++++++----------------------
 1 file changed, 38 insertions(+), 40 deletions(-)
tests/i915/i915_pm_backlight.c +38 -40
index a482e2a..e94214a 100644
@@ -43,6 +43,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"
 
@@ -160,7 +166,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));
 
@@ -173,16 +179,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)
@@ -231,6 +233,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;
@@ -289,45 +303,29 @@ 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]);
+
+				if (backlight_read(&old[j], "brightness", &contexts[j]))
+					continue;
+
+				if (tests[i].flags == TEST_DPMS)
+					check_dpms(contexts[j].output);
+
+				if (tests[i].flags == TEST_SUSPEND)
+					check_suspend(contexts[j].output);
+
+				igt_assert(backlight_read(&contexts[j].max, "max_brightness", &contexts[j]) > -1);
+				tests[i].test_t(&contexts[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);
 			test_cleanup(&display, output);
 		}
 	}
 
-
-
 	igt_fixture {
 		/* Restore old brightness */
 		for (int j = 0; j < (dual_edp ? 2 : 1); j++)
Signature · 1 line
1.9.1
#4 lore raw

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

Hello,

Still couple of comments inline below.

Quoted 102 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 | 78 ++++++++++++++++++++------------
----------

 1 file changed, 38 insertions(+), 40 deletions(-)
tests/i915/i915_pm_backlight.c +0 -0
index a482e2a..e94214a 100644
@@ -43,6 +43,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
@@ -160,7 +166,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
@@ -173,16 +179,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
@@ -231,6 +233,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
@@ -289,45 +303,29 @@ 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 4 lines
Quoted 1 line

output[j]);

+
+                               if (backlight_read(&old[j], "brightness", &contexts[j]))

It's wrong to read old values here as you are changing brightness on every iteration. Move it to loop where you are setting up that contexts array.

Quoted 4 lines

+                                       continue;
+
+                               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);
+
+                               igt_assert(backlight_read(&contexts[j ].max, "max_brightness", &contexts[j]) > -1);

You are alread reading this in the loop where you are setting up that contexts array.

Quoted 37 lines

+                               tests[i].test_t(&contexts[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); test_cleanup(&display, output);
                }
        }

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

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

#5 lore raw

PATCH 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 | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
tests/i915/i915_pm_backlight.c +7 -5
index e94214a..cb8efcb 100644
@@ -305,7 +305,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]);
 
@@ -318,11 +318,13 @@ igt_main
 				if (tests[i].flags == TEST_SUSPEND)
 					check_suspend(contexts[j].output);
 
-				igt_assert(backlight_read(&contexts[j].max, "max_brightness", &contexts[j]) > -1);
-				tests[i].test_t(&contexts[j]);
+				igt_dynamic_f("%s", igt_output_name(contexts[j].output)) {
+					igt_assert(backlight_read(&contexts[j].max, "max_brightness", &contexts[j]) > -1);
+					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
#6 lore raw

Re: [igt-dev] [PATCH 3/3] tests/i915/i915_pm_backlight: Create dynamic subtests

Hello,

One comment inline below.

Quoted 28 lines · Nidhi Gupta

Modified the test to include dynamic subtests.

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

 1 file changed, 7 insertions(+), 5 deletions(-)
tests/i915/i915_pm_backlight.c +0 -0
index e94214a..cb8efcb 100644
@@ -305,7 +305,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-

Quoted 1 line

output[j]);

tests/i915/i915_pm_backlight.c +0 -0
@@ -318,11 +318,13 @@ igt_main
                                 if (tests[i].flags == TEST_SUSPEND)

                                        check_suspend(contexts[j].out put);

Quoted 8 lines

-
                               igt_assert(backlight_read(&contexts[j]. max, "max_brightness", &contexts[j]) > -1);
-                               tests[i].test_t(&contexts[j]); +                               igt_dynamic_f("%s", igt_output_name(contexts[j].output)) {
+                                       igt_assert(backlight_read(&co ntexts[j].max, "max_brightness", &contexts[j]) > -1);

You are already reading max brightness.

Quoted 11 lines

+                                       tests[i].test_t(&contexts[j]) ;
+                               }
+                               test_cleanup(&display, output); }
-
-                       test_cleanup(&display, output);
+                       /* TODO: Add tests for dual eDP. */ }
        }

#7 lore raw
In reply to Nidhi Gupta

Hello,

Please add some versioning into next resend.

Quoted 16 lines · Nidhi Gupta

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 | 208 ++++++++++++++++++++++++++++---
----------

 1 file changed, 145 insertions(+), 63 deletions(-)
#8 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for Add new subtest and test cleanup (rev3)

In reply to Nidhi Gupta
== Series Details ==

== Series Details ==

Series: Add new subtest and test cleanup (rev3)
URL : https://patchwork.freedesktop.org/series/110845/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_12382 -> IGTPW_8106
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes introduced in IGTPW_8106, 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_8106/index.html

Participating hosts (40 -> 41)
------------------------------

Additional (3): fi-kbl-soraka fi-hsw-4770 bat-atsm-1
Missing (2): bat-dg2-11 bat-dg1-6

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@perf:
- fi-kbl-soraka: NOTRUN -> [INCOMPLETE][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-kbl-soraka/igt@i915_selftest@[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/CI_DRM_12382/fi-rkl-guc/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-rkl-guc/igt@[email protected]
- fi-rkl-11600: [SKIP][4] ([i915#3012]) -> [SKIP][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/fi-rkl-11600/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-rkl-11600/igt@[email protected]
- bat-dg1-5: [SKIP][6] ([i915#1155]) -> [SKIP][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/bat-dg1-5/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/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-rpls-2}: [SKIP][8] ([i915#1155]) -> [SKIP][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/bat-rpls-2/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/bat-rpls-2/igt@[email protected]
- {bat-dg2-8}: [SKIP][10] ([i915#1155]) -> [SKIP][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/bat-dg2-8/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/bat-dg2-8/igt@[email protected]
- {bat-adlm-1}: [SKIP][12] ([i915#1155]) -> [SKIP][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/bat-adlm-1/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/bat-adlm-1/igt@[email protected]
- {bat-rpls-1}: [SKIP][14] ([i915#1155]) -> [SKIP][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/bat-rpls-1/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/bat-rpls-1/igt@[email protected]
- {bat-dg1-7}: [SKIP][16] ([i915#1155]) -> [SKIP][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/bat-dg1-7/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/bat-dg1-7/igt@[email protected]
- {bat-dg2-9}: [SKIP][18] ([i915#1155]) -> [SKIP][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/bat-dg2-9/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/bat-dg2-9/igt@[email protected]

New tests
---------

New tests have been introduced between CI_DRM_12382 and IGTPW_8106:

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

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

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_gttfill@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][20] ([fdo#109271]) +8 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-kbl-soraka/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][21] ([fdo#109271] / [i915#2190])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-kbl-soraka/igt@[email protected]

* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][22] ([fdo#109271] / [i915#4613]) +3 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-kbl-soraka/igt@[email protected]

* igt@gem_softpin@allocator-basic-reserve:
- fi-hsw-4770: NOTRUN -> [SKIP][23] ([fdo#109271]) +10 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-hsw-4770/igt@[email protected]

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

* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][28] ([i915#1886])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html

* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: NOTRUN -> [INCOMPLETE][29] ([i915#4785])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-hsw-4770/igt@i915_selftest@[email protected]

* igt@kms_chamelium@dp-crc-fast:
- fi-hsw-4770: NOTRUN -> [SKIP][30] ([fdo#109271] / [fdo#111827]) +7 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-hsw-4770/igt@[email protected]

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-soraka: NOTRUN -> [SKIP][31] ([fdo#109271] / [fdo#111827]) +7 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-kbl-soraka/igt@[email protected]

* igt@kms_psr@sprite_plane_onoff:
- fi-hsw-4770: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#1072]) +3 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-hsw-4770/igt@kms_psr@sprite_plane_onoff.html

* igt@runner@aborted:
- fi-hsw-4770: NOTRUN -> [FAIL][33] ([fdo#109271] / [i915#4312] / [i915#5594])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/fi-hsw-4770/igt@[email protected]

#### Possible fixes ####

* igt@gem_huc_copy@huc-copy:
- {bat-dg2-8}: [FAIL][34] ([i915#7029]) -> [PASS][35]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/bat-dg2-8/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/bat-dg2-8/igt@[email protected]

* igt@i915_selftest@live@mman:
- {bat-rpls-1}: [TIMEOUT][36] ([i915#6794]) -> [PASS][37]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12382/bat-rpls-1/igt@i915_selftest@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/bat-rpls-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#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[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#1836]: https://gitlab.freedesktop.org/drm/intel/issues/1836
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5594]: https://gitlab.freedesktop.org/drm/intel/issues/5594
[i915#6077]: https://gitlab.freedesktop.org/drm/intel/issues/6077
[i915#6078]: https://gitlab.freedesktop.org/drm/intel/issues/6078
[i915#6093]: https://gitlab.freedesktop.org/drm/intel/issues/6093
[i915#6094]: https://gitlab.freedesktop.org/drm/intel/issues/6094
[i915#6166]: https://gitlab.freedesktop.org/drm/intel/issues/6166
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6794]: https://gitlab.freedesktop.org/drm/intel/issues/6794
[i915#7029]: https://gitlab.freedesktop.org/drm/intel/issues/7029
[i915#7357]: https://gitlab.freedesktop.org/drm/intel/issues/7357
[i915#7358]: https://gitlab.freedesktop.org/drm/intel/issues/7358
[i915#7535]: https://gitlab.freedesktop.org/drm/intel/issues/7535

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

* CI: CI-20190529 -> None
* IGT: IGT_7057 -> IGTPW_8106

CI-20190529: 20190529
CI_DRM_12382: cb74864693414b221b3601572e75449558126e8b @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8106: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8106/index.html
IGT_7057: e2138d48c2c506816868c16cf3ba64f81bdead41 @ 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

== Logs ==

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