All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm
@ 2023-09-26 11:04 Bhanuprakash Modem
  2023-09-26 12:36 ` [igt-dev] ✓ CI.xeBAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2) Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bhanuprakash Modem @ 2023-09-26 11:04 UTC (permalink / raw)
  To: igt-dev

Separate display specific tests, from i915_pm_rpm and create
a new binary "kms_pm_rpm" for them.

Note: This patch can be split into multiple, but still it is
a good starting point to review.

V2: - Drop unnecessary header files
V3: - Restore old Copyright
    - Fix missing display tests
V4: - Fix/Optimize testplan documentation
    - Split module-reload into with & w/o display
V5: - Fix module-reload test
    - Update BAT list

Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Cc: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/intel-ci/blacklist-pre-merge.txt |    8 +-
 tests/intel-ci/blacklist.txt           |    1 +
 tests/intel-ci/fast-feedback.testlist  |    5 +-
 tests/intel/i915_pm_rpm.c              | 1136 ----------------
 tests/intel/kms_pm_rpm.c               | 1740 ++++++++++++++++++++++++
 tests/meson.build                      |    1 +
 6 files changed, 1749 insertions(+), 1142 deletions(-)
 create mode 100644 tests/intel/kms_pm_rpm.c

diff --git a/tests/intel-ci/blacklist-pre-merge.txt b/tests/intel-ci/blacklist-pre-merge.txt
index d4e5ef66e..0a1315aae 100644
--- a/tests/intel-ci/blacklist-pre-merge.txt
+++ b/tests/intel-ci/blacklist-pre-merge.txt
@@ -13,8 +13,8 @@
 #
 # Data acquired on 2020-02-19 by Martin Peres
 ###############################################################################
-igt@i915_pm_rpm@legacy-planes(-dpms)?
-igt@i915_pm_rpm@universal-planes(-dpms)?
+igt@kms_pm_rpm@legacy-planes(-dpms)?
+igt@kms_pm_rpm@universal-planes(-dpms)?
 
 
 ###############################################################################
@@ -67,7 +67,7 @@ igt@gem_exec_alignment@.*
 #
 # Data acquired on 2020-02-20 by Martin Peres
 ###############################################################################
-igt@i915_pm_rpm@debugfs-read
+igt@kms_pm_rpm@debugfs-read
 
 
 ###############################################################################
@@ -109,4 +109,4 @@ igt@gem_tiled_wc
 #
 # Data acquired on 2020-02-20 by Martin Peres
 ###############################################################################
-igt@i915_pm_rpm@modeset-stress-extra-wait
+igt@kms_pm_rpm@modeset-stress-extra-wait
diff --git a/tests/intel-ci/blacklist.txt b/tests/intel-ci/blacklist.txt
index e13759d3e..13504dac3 100644
--- a/tests/intel-ci/blacklist.txt
+++ b/tests/intel-ci/blacklist.txt
@@ -15,6 +15,7 @@ igt@meta_test(@.*)?
 #igt@i915_module_load(@.*)? # danger, danger; hope for taints!
 igt@i915_pm_rpm@module-reload
 igt@i915_pm_rpm@gem-execbuf-stress-extra-wait
+igt@kms_pm_rpm@module-reload
 ###############################################
 # GEM
 ###############################################
diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist
index 3d8b23073..8b70f139a 100644
--- a/tests/intel-ci/fast-feedback.testlist
+++ b/tests/intel-ci/fast-feedback.testlist
@@ -121,13 +121,13 @@ igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence
 igt@kms_pipe_crc_basic@read-crc
 igt@kms_pipe_crc_basic@read-crc-frame-sequence
 igt@kms_pm_backlight@basic-brightness
+igt@kms_pm_rpm@basic-pci-d3-state
+igt@kms_pm_rpm@basic-rte
 igt@kms_psr@primary_page_flip
 igt@kms_psr@cursor_plane_move
 igt@kms_psr@sprite_plane_onoff
 igt@kms_psr@primary_mmap_gtt
 igt@kms_setmode@basic-clone-single-crtc
-igt@i915_pm_rpm@basic-pci-d3-state
-igt@i915_pm_rpm@basic-rte
 igt@i915_pm_rps@basic-api
 igt@prime_self_import@basic-llseek-bad
 igt@prime_self_import@basic-llseek-size
@@ -164,6 +164,7 @@ igt@gem_lmem_swapping@parallel-random-engines
 igt@gem_lmem_swapping@random-engines
 igt@gem_lmem_swapping@verify-random
 igt@i915_pm_rpm@module-reload
+igt@kms_pm_rpm@module-reload
 
 # Kernel selftests
 igt@i915_selftest@live
diff --git a/tests/intel/i915_pm_rpm.c b/tests/intel/i915_pm_rpm.c
index 17413ffe5..c0365b304 100644
--- a/tests/intel/i915_pm_rpm.c
+++ b/tests/intel/i915_pm_rpm.c
@@ -43,25 +43,6 @@
 /**
  * TEST: i915 pm rpm
  *
- * SUBTEST: basic-pci-d3-state
- * Description: Validate PCI device D3 state enter-exit scenario using runtime PM
- * Feature: pm_rpm
- * Functionality: D3 state entry-exit
- * Run type: BAT
- * Test category: pm_rpm
- *
- * SUBTEST: basic-rte
- * Feature: pm_rpm
- * Run type: BAT
- *
- * SUBTEST: cursor
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: cursor-dpms
- * Feature: pm_rpm
- * Run type: FULL
- *
  * SUBTEST: debugfs-forcewake-user
  * Feature: pm_rpm
  * Run type: FULL
@@ -70,34 +51,6 @@
  * Feature: pm_rpm
  * Run type: FULL
  *
- * SUBTEST: dpms-lpsp
- * Feature: dpms, pm_rpm
- * Run type: FULL
- *
- * SUBTEST: dpms-mode-unset-lpsp
- * Feature: dpms, pm_rpm
- * Run type: FULL
- *
- * SUBTEST: dpms-mode-unset-non-lpsp
- * Feature: dpms, non-lpsp, pm_rpm
- * Run type: FULL
- *
- * SUBTEST: dpms-non-lpsp
- * Feature: dpms, non-lpsp, pm_rpm
- * Run type: FULL
- *
- * SUBTEST: drm-resources-equal
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: fences
- * Feature: gtt, pm_rpm, synchronization
- * Run type: FULL
- *
- * SUBTEST: fences-dpms
- * Feature: gtt, pm_rpm, synchronization
- * Run type: FULL
- *
  * SUBTEST: gem-evict-pwrite
  * Feature: gtt, pm_rpm
  * Run type: FULL
@@ -127,66 +80,10 @@
  * Feature: pm_rpm
  * Run type: FULL
  *
- * SUBTEST: i2c
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: legacy-planes
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: legacy-planes-dpms
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: modeset-lpsp
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: modeset-lpsp-stress
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: modeset-lpsp-stress-no-wait
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: modeset-non-lpsp
- * Feature: non-lpsp, pm_rpm
- * Run type: FULL
- *
- * SUBTEST: modeset-non-lpsp-stress
- * Feature: non-lpsp, pm_rpm
- * Run type: FULL
- *
- * SUBTEST: modeset-non-lpsp-stress-no-wait
- * Feature: non-lpsp, pm_rpm
- * Run type: FULL
- *
- * SUBTEST: modeset-pc8-residency-stress
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: modeset-stress-extra-wait
- * Feature: pm_rpm
- * Run type: FULL
- *
  * SUBTEST: module-reload
  * Feature: pm_rpm
  * Run type: BAT
  *
- * SUBTEST: pc8-residency
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: pm-caching
- * Feature: gtt, pm_rpm
- * Run type: FULL
- *
- * SUBTEST: pm-tiling
- * Feature: gtt, pm_rpm
- * Run type: FULL
- *
  * SUBTEST: reg-read-ioctl
  * Feature: pm_rpm
  * Run type: FULL
@@ -214,18 +111,6 @@
  * SUBTEST: system-suspend-execbuf
  * Feature: pm_rpm
  * Run type: FULL
- *
- * SUBTEST: system-suspend-modeset
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: universal-planes
- * Feature: pm_rpm
- * Run type: FULL
- *
- * SUBTEST: universal-planes-dpms
- * Feature: pm_rpm
- * Run type: FULL
  */
 
 #if defined(__linux__)
@@ -605,17 +490,6 @@ static bool enable_one_screen_with_type(struct mode_set_data *data,
 	return set_mode_for_params(params);
 }
 
-static void enable_one_screen(struct mode_set_data *data)
-{
-	/* SKIP if there are no connected screens. */
-	igt_require(enable_one_screen_with_type(data, SCREEN_TYPE_ANY));
-}
-
-#define enable_one_screen_and_wait(data) do { \
-	enable_one_screen(data); \
-	igt_assert(wait_for_active()); \
-} while (0)
-
 static void
 enable_one_screen_or_forcewake_get_and_wait(struct mode_set_data *data)
 {
@@ -707,343 +581,6 @@ static void fini_mode_set_data(struct mode_set_data *data)
 	}
 }
 
-static void get_drm_info(struct compare_data *data)
-{
-	int i;
-
-	data->res = drmModeGetResources(drm_fd);
-	if (!data->res)
-		return;
-
-	igt_assert(data->res->count_connectors <= MAX_CONNECTORS);
-	igt_assert(data->res->count_encoders <= MAX_ENCODERS);
-	igt_assert(data->res->count_crtcs <= MAX_CRTCS);
-
-	for (i = 0; i < data->res->count_connectors; i++) {
-		/* Don't use GetConnectorCurrent, we want to force a reprobe
-		 * here. */
-		data->connectors[i] = drmModeGetConnector(drm_fd,
-						data->res->connectors[i]);
-		data->edids[i] = get_connector_edid(data->connectors[i], i);
-	}
-	for (i = 0; i < data->res->count_encoders; i++)
-		data->encoders[i] = drmModeGetEncoder(drm_fd,
-						data->res->encoders[i]);
-	for (i = 0; i < data->res->count_crtcs; i++)
-		data->crtcs[i] = drmModeGetCrtc(drm_fd, data->res->crtcs[i]);
-}
-
-static void free_drm_info(struct compare_data *data)
-{
-	int i;
-
-	if (!data->res)
-		return;
-
-	for (i = 0; i < data->res->count_connectors; i++) {
-		drmModeFreeConnector(data->connectors[i]);
-		drmModeFreePropertyBlob(data->edids[i]);
-	}
-	for (i = 0; i < data->res->count_encoders; i++)
-		drmModeFreeEncoder(data->encoders[i]);
-	for (i = 0; i < data->res->count_crtcs; i++)
-		drmModeFreeCrtc(data->crtcs[i]);
-
-	drmModeFreeResources(data->res);
-}
-
-#define COMPARE(d1, d2, data) igt_assert_eq(d1->data, d2->data)
-#define COMPARE_ARRAY(d1, d2, size, data) do { \
-	for (i = 0; i < size; i++) \
-		igt_assert(d1->data[i] == d2->data[i]); \
-} while (0)
-
-static void assert_drm_resources_equal(struct compare_data *d1,
-				       struct compare_data *d2)
-{
-	COMPARE(d1, d2, res->count_connectors);
-	COMPARE(d1, d2, res->count_encoders);
-	COMPARE(d1, d2, res->count_crtcs);
-	COMPARE(d1, d2, res->min_width);
-	COMPARE(d1, d2, res->max_width);
-	COMPARE(d1, d2, res->min_height);
-	COMPARE(d1, d2, res->max_height);
-}
-
-static void assert_modes_equal(drmModeModeInfoPtr m1, drmModeModeInfoPtr m2)
-{
-	COMPARE(m1, m2, clock);
-	COMPARE(m1, m2, hdisplay);
-	COMPARE(m1, m2, hsync_start);
-	COMPARE(m1, m2, hsync_end);
-	COMPARE(m1, m2, htotal);
-	COMPARE(m1, m2, hskew);
-	COMPARE(m1, m2, vdisplay);
-	COMPARE(m1, m2, vsync_start);
-	COMPARE(m1, m2, vsync_end);
-	COMPARE(m1, m2, vtotal);
-	COMPARE(m1, m2, vscan);
-	COMPARE(m1, m2, vrefresh);
-	COMPARE(m1, m2, flags);
-	COMPARE(m1, m2, type);
-	igt_assert(strcmp(m1->name, m2->name) == 0);
-}
-
-static void assert_drm_connectors_equal(drmModeConnectorPtr c1,
-					drmModeConnectorPtr c2)
-{
-	int i;
-
-	COMPARE(c1, c2, connector_id);
-	COMPARE(c1, c2, connector_type);
-	COMPARE(c1, c2, connector_type_id);
-	COMPARE(c1, c2, mmWidth);
-	COMPARE(c1, c2, mmHeight);
-	COMPARE(c1, c2, count_modes);
-	COMPARE(c1, c2, count_props);
-	COMPARE(c1, c2, count_encoders);
-	COMPARE_ARRAY(c1, c2, c1->count_props, props);
-	COMPARE_ARRAY(c1, c2, c1->count_encoders, encoders);
-
-	for (i = 0; i < c1->count_modes; i++)
-		assert_modes_equal(&c1->modes[0], &c2->modes[0]);
-}
-
-static void assert_drm_encoders_equal(drmModeEncoderPtr e1,
-				      drmModeEncoderPtr e2)
-{
-	COMPARE(e1, e2, encoder_id);
-	COMPARE(e1, e2, encoder_type);
-	COMPARE(e1, e2, possible_crtcs);
-	COMPARE(e1, e2, possible_clones);
-}
-
-static void assert_drm_crtcs_equal(drmModeCrtcPtr c1, drmModeCrtcPtr c2)
-{
-	COMPARE(c1, c2, crtc_id);
-}
-
-static void assert_drm_edids_equal(drmModePropertyBlobPtr e1,
-				   drmModePropertyBlobPtr e2)
-{
-	if (!e1 && !e2)
-		return;
-	igt_assert(e1 && e2);
-
-	COMPARE(e1, e2, length);
-
-	igt_assert(memcmp(e1->data, e2->data, e1->length) == 0);
-}
-
-static void assert_drm_infos_equal(struct compare_data *d1,
-				   struct compare_data *d2)
-{
-	int i;
-
-	if (d1->res == d2->res)
-		return;
-
-	igt_assert(d1->res);
-	igt_assert(d2->res);
-
-	assert_drm_resources_equal(d1, d2);
-
-	for (i = 0; i < d1->res->count_connectors; i++) {
-		assert_drm_connectors_equal(d1->connectors[i],
-					    d2->connectors[i]);
-		assert_drm_edids_equal(d1->edids[i], d2->edids[i]);
-	}
-
-	for (i = 0; i < d1->res->count_encoders; i++)
-		assert_drm_encoders_equal(d1->encoders[i], d2->encoders[i]);
-
-	for (i = 0; i < d1->res->count_crtcs; i++)
-		assert_drm_crtcs_equal(d1->crtcs[i], d2->crtcs[i]);
-}
-
-static bool find_i2c_path(const char *connector_name,
-			  char *i2c_path, size_t i2c_path_size)
-{
-	struct dirent *dirent;
-	DIR *dir;
-	int sysfs_card_fd = igt_sysfs_open(drm_fd);
-	int connector_fd = -1;
-	bool found_i2c_file = false;
-	ssize_t r;
-
-	dir = fdopendir(sysfs_card_fd);
-	igt_assert(dir);
-
-	while ((dirent = readdir(dir))) {
-		/* Skip "cardx-" prefix */
-		char *dirname = strchr(dirent->d_name, '-');
-		if (dirname==NULL)
-			continue;
-		++dirname;
-
-		if (strcmp(dirname, connector_name) == 0) {
-			connector_fd = openat(sysfs_card_fd, dirent->d_name, O_RDONLY);
-			break;
-		}
-	}
-	closedir(dir);
-
-	if (connector_fd < 0)
-		return false;
-
-	/* try the standard "ddc" symlink first */
-	r = readlinkat(connector_fd, "ddc", i2c_path, i2c_path_size);
-	if (r > 0 && r != i2c_path_size) {
-		int num;
-
-		i2c_path[r] = '\0';
-
-		if (sscanf(basename(i2c_path), "i2c-%d", &num) == 1) {
-			snprintf(i2c_path, i2c_path_size, "/dev/i2c-%d", num);
-			return true;
-		}
-	}
-
-	dir = fdopendir(connector_fd);
-	igt_assert(dir);
-
-	/* fall back to old "i2c-?" symlink */
-	/* FIXME nuke this at some point */
-	while ((dirent = readdir(dir))) {
-		if (strncmp(dirent->d_name, "i2c-", 4) == 0) {
-			sprintf(i2c_path, "/dev/%s", dirent->d_name);
-			found_i2c_file = true;
-		}
-	}
-	closedir(dir);
-	return found_i2c_file;
-}
-
-
-static bool i2c_read_edid(const char *connector_name, unsigned char *edid)
-{
-	char i2c_path[PATH_MAX];
-	bool result;
-	int rc, fd;
-	struct i2c_msg msgs[] = {
-		{ /* Start at 0. */
-			.addr = 0x50,
-			.flags = 0,
-			.len = 1,
-			.buf = edid,
-		}, { /* Now read the EDID. */
-			.addr = 0x50,
-			.flags = I2C_M_RD,
-			.len = 128,
-			.buf = edid,
-		}
-	};
-	struct i2c_rdwr_ioctl_data msgset = {
-		.msgs = msgs,
-		.nmsgs = 2,
-	};
-
-	result = find_i2c_path(connector_name, i2c_path, sizeof(i2c_path));
-	if (!result)
-		return false;
-
-	igt_info("Testing %s %s\n", connector_name, i2c_path);
-
-	fd = open(i2c_path, O_RDWR);
-	igt_assert_neq(fd, -1);
-
-	rc = ioctl(fd, I2C_RDWR, &msgset);
-	if (rc==-1) {
-		igt_debug("I2C access failed with errno %d, %s\n",
-				errno, strerror(errno));
-		errno = 0;
-	}
-
-	close(fd);
-	return rc >= 0;
-}
-
-static void format_hex_string(const unsigned char edid[static EDID_BLOCK_SIZE],
-			      char buf[static EDID_BLOCK_SIZE * 5 + 1])
-{
-	for (int i = 0; i < EDID_BLOCK_SIZE; ++i)
-		sprintf(buf+i*5, "0x%02x ", edid[i]);
-}
-
-static bool is_mst_connector(int fd, uint32_t connector_id)
-{
-	return kmstest_get_property(fd, connector_id,
-				    DRM_MODE_OBJECT_CONNECTOR,
-				    "PATH", NULL, NULL, NULL);
-}
-
-static void test_i2c(struct mode_set_data *data)
-{
-	bool edid_mistmach_i2c_vs_drm = false;
-	igt_display_t display;
-	igt_display_require(&display, drm_fd);
-
-	for (int i = 0; i < data->res->count_connectors; i++) {
-		unsigned char *drm_edid = data->edids[i] ? data->edids[i]->data : NULL;
-		unsigned char i2c_edid[EDID_BLOCK_SIZE] = {};
-
-		igt_output_t *output = igt_output_from_connector(&display,
-								 data->connectors[i]);
-		char *connector_name = (char *) igt_output_name(output);
-
-		bool got_i2c_edid = i2c_read_edid(connector_name, i2c_edid);
-		bool got_drm_edid = drm_edid != NULL;
-		bool is_vga = data->connectors[i]->connector_type == DRM_MODE_CONNECTOR_VGA;
-
-		bool edids_equal;
-
-		if (data->connectors[i]->connection != DRM_MODE_CONNECTED ||
-		    is_mst_connector(drm_fd, data->connectors[i]->connector_id))
-			continue;
-
-		/* We fail to detect some VGA monitors using our i2c method. If you look
-		 * at the dmesg of these cases, you'll see the Kernel complaining about
-		 * the EDID reading mostly FFs and then disabling bit-banging. Since we
-		 * don't want to reimplement everything the Kernel does, let's just
-		 * accept the fact that some VGA outputs won't be properly detected. */
-		if (is_vga)
-			continue;
-
-		if (!got_i2c_edid && !got_drm_edid)
-			continue;
-
-		if (got_i2c_edid && got_drm_edid)
-			edids_equal = (0 == memcmp(drm_edid, i2c_edid, EDID_BLOCK_SIZE));
-		else
-			edids_equal = false;
-
-
-		if (!edids_equal) {
-			char buf[5 * EDID_BLOCK_SIZE + 1];
-			igt_critical("Detected EDID mismatch on connector %s\n",
-				     connector_name);
-
-			if(got_i2c_edid)
-				format_hex_string(i2c_edid, buf);
-			else
-				sprintf(buf, "NULL");
-
-			igt_critical("i2c: %s\n", buf);
-
-			if(got_drm_edid)
-				format_hex_string(drm_edid, buf);
-			else
-				sprintf(buf, "NULL");
-
-			igt_critical("drm: %s\n", buf);
-
-			edid_mistmach_i2c_vs_drm = true;
-		}
-	}
-	igt_fail_on_f(edid_mistmach_i2c_vs_drm,
-			"There is an EDID mismatch between i2c and DRM!\n");
-}
-
 static void setup_pc8(void)
 {
 	has_pc8 = false;
@@ -1139,128 +676,6 @@ static void teardown_environment(bool display_enabled)
 	has_runtime_pm = false;
 }
 
-static void basic_subtest(void)
-{
-	disable_all_screens_and_wait(&ms_data);
-
-	enable_one_screen_or_forcewake_get_and_wait(&ms_data);
-	forcewake_put(&ms_data);
-
-	/* XXX Also we can test wake up via exec nop */
-}
-
-static void pc8_residency_subtest(void)
-{
-	igt_require(has_pc8);
-
-	/* Make sure PC8+ residencies move! */
-	disable_all_screens(&ms_data);
-	igt_assert_f(pc8_plus_residency_changed(30),
-		     "Machine is not reaching PC8+ states, please check its "
-		     "configuration.\n");
-
-	/* Make sure PC8+ residencies stop! */
-	enable_one_screen(&ms_data);
-	igt_assert_f(!pc8_plus_residency_changed(10),
-		     "PC8+ residency didn't stop with screen enabled.\n");
-}
-
-static void modeset_subtest(enum screen_type type, int rounds, int wait_flags)
-{
-	int i;
-
-	if (wait_flags & WAIT_PC8_RES)
-		igt_require(has_pc8);
-
-	if (wait_flags & WAIT_EXTRA)
-		rounds /= 2;
-
-	for (i = 0; i < rounds; i++) {
-		if (wait_flags & USE_DPMS)
-			disable_all_screens_dpms(&ms_data);
-		else
-			disable_all_screens(&ms_data);
-
-		if (wait_flags & WAIT_STATUS)
-			igt_assert(wait_for_suspended());
-		if (wait_flags & WAIT_PC8_RES)
-			igt_assert(pc8_plus_residency_changed(30));
-		if (wait_flags & WAIT_EXTRA)
-			sleep(5);
-
-		/* If we skip this line it's because the type of screen we want
-		 * is not connected. */
-		igt_require(enable_one_screen_with_type(&ms_data, type));
-		if (wait_flags & WAIT_STATUS)
-			igt_assert(wait_for_active());
-		if (wait_flags & WAIT_PC8_RES)
-			igt_assert(!pc8_plus_residency_changed(5));
-		if (wait_flags & WAIT_EXTRA)
-			sleep(5);
-	}
-}
-
-/* Test of the DRM resources reported by the IOCTLs are still the same. This
- * ensures we still see the monitors with the same eyes. We get the EDIDs and
- * compare them, which ensures we use DP AUX or GMBUS depending on what's
- * connected. */
-static void drm_resources_equal_subtest(void)
-{
-	struct compare_data pre_suspend, during_suspend, post_suspend;
-
-	enable_one_screen_and_wait(&ms_data);
-	get_drm_info(&pre_suspend);
-	igt_assert(wait_for_active());
-
-	disable_all_screens_and_wait(&ms_data);
-	get_drm_info(&during_suspend);
-	igt_assert(wait_for_suspended());
-
-	enable_one_screen_and_wait(&ms_data);
-	get_drm_info(&post_suspend);
-	igt_assert(wait_for_active());
-
-	assert_drm_infos_equal(&pre_suspend, &during_suspend);
-	assert_drm_infos_equal(&pre_suspend, &post_suspend);
-
-	free_drm_info(&pre_suspend);
-	free_drm_info(&during_suspend);
-	free_drm_info(&post_suspend);
-}
-
-static void i2c_subtest_check_environment(void)
-{
-	int i2c_dev_files = 0;
-	DIR *dev_dir;
-	struct dirent *dirent;
-
-	/* Make sure the /dev/i2c-* files exist. */
-	igt_require(modprobe("i2c-dev") == 0);
-
-	dev_dir = opendir("/dev");
-	igt_assert(dev_dir);
-	while ((dirent = readdir(dev_dir))) {
-		if (strncmp(dirent->d_name, "i2c-", 4) == 0)
-			i2c_dev_files++;
-	}
-	closedir(dev_dir);
-	igt_require(i2c_dev_files);
-}
-
-/* Try to use raw I2C, which also needs interrupts. */
-static void i2c_subtest(void)
-{
-	i2c_subtest_check_environment();
-
-	enable_one_screen_and_wait(&ms_data);
-
-	disable_all_screens_and_wait(&ms_data);
-	test_i2c(&ms_data);
-	igt_assert(wait_for_suspended());
-
-	enable_one_screen(&ms_data);
-}
-
 struct read_entry_elapsed {
 	uint64_t elapsed;
 	char *path;
@@ -1875,27 +1290,6 @@ static bool device_in_pci_d3(struct pci_device *pci_dev)
 	return (val & 0x3) == 0x3;
 }
 
-static void pci_d3_state_subtest(void)
-{
-	struct pci_device *pci_dev, *bridge_pci_dev;
-
-	igt_require(has_runtime_pm);
-
-	pci_dev = igt_device_get_pci_device(drm_fd);
-	bridge_pci_dev = pci_device_get_parent_bridge(pci_dev);
-
-	disable_all_screens_and_wait(&ms_data);
-	igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
-
-	if (gem_has_lmem(drm_fd))
-		igt_require_f(pci_device_has_kernel_driver(bridge_pci_dev),
-			      "pci bridge device does not bind with pcieport driver\n");
-
-	enable_one_screen_or_forcewake_get_and_wait(&ms_data);
-	igt_assert(!device_in_pci_d3(pci_dev));
-	forcewake_put(&ms_data);
-}
-
 __noreturn static void stay_subtest(void)
 {
 	disable_all_screens_and_wait(&ms_data);
@@ -1951,445 +1345,6 @@ static void system_suspend_execbuf_subtest(void)
 	gem_close(drm_fd, handle);
 }
 
-static void system_suspend_modeset_subtest(void)
-{
-	disable_all_screens_and_wait(&ms_data);
-	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
-	igt_assert(wait_for_suspended());
-
-	enable_one_screen_and_wait(&ms_data);
-	disable_all_screens_and_wait(&ms_data);
-}
-
-/* Enable a screen, activate DPMS, then do a modeset. At some point our driver
- * produced WARNs on this case. */
-static void dpms_mode_unset_subtest(enum screen_type type)
-{
-	disable_all_screens_and_wait(&ms_data);
-
-	igt_require(enable_one_screen_with_type(&ms_data, type));
-	igt_assert(wait_for_active());
-
-	disable_all_screens_dpms(&ms_data);
-	igt_assert(wait_for_suspended());
-
-	disable_all_screens_and_wait(&ms_data);
-}
-
-static void fill_igt_fb(struct igt_fb *fb, uint32_t color)
-{
-	int i;
-	uint32_t *ptr;
-
-	ptr = gem_mmap__device_coherent(drm_fd, fb->gem_handle, 0, fb->size, PROT_WRITE);
-	for (i = 0; i < fb->size/sizeof(uint32_t); i++)
-		ptr[i] = color;
-	igt_assert(munmap(ptr, fb->size) == 0);
-}
-
-/* At some point, this test triggered WARNs in the Kernel. */
-static void cursor_subtest(bool dpms)
-{
-	int rc;
-	struct igt_fb cursor_fb1, cursor_fb2, cursor_fb3;
-	uint32_t crtc_id;
-
-	disable_all_screens_and_wait(&ms_data);
-
-	igt_require(default_mode_params);
-	crtc_id = default_mode_params->crtc_id;
-
-	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
-		      DRM_FORMAT_MOD_LINEAR, &cursor_fb1);
-	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
-		      DRM_FORMAT_MOD_LINEAR, &cursor_fb2);
-	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
-		      I915_FORMAT_MOD_X_TILED, &cursor_fb3);
-
-	fill_igt_fb(&cursor_fb1, 0xFF00FFFF);
-	fill_igt_fb(&cursor_fb2, 0xFF00FF00);
-	fill_igt_fb(&cursor_fb3, 0xFFFF0000);
-
-	set_mode_for_params_and_wait(default_mode_params);
-
-	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb1.gem_handle,
-			      cursor_fb1.width, cursor_fb1.height);
-	igt_assert_eq(rc, 0);
-	rc = drmModeMoveCursor(drm_fd, crtc_id, 0, 0);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_active());
-
-	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
-
-	/* First, just move the cursor. */
-	rc = drmModeMoveCursor(drm_fd, crtc_id, 1, 1);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	/* Then unset it, and set a new one. */
-	rc = drmModeSetCursor(drm_fd, crtc_id, 0, 0, 0);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb2.gem_handle,
-			      cursor_fb1.width, cursor_fb2.height);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	/* Move the new cursor. */
-	rc = drmModeMoveCursor(drm_fd, crtc_id, 2, 2);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	/* Now set a new one without unsetting the previous one. */
-	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb1.gem_handle,
-			      cursor_fb1.width, cursor_fb1.height);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	/* Cursor 3 was created with tiling and painted with a GTT mmap, so
-	 * hopefully it has some fences around it. */
-	rc = drmModeRmFB(drm_fd, cursor_fb3.fb_id);
-	igt_assert_eq(rc, 0);
-	__gem_set_tiling(drm_fd, cursor_fb3.gem_handle, false, cursor_fb3.strides[0]);
-	igt_assert(wait_for_suspended());
-
-	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb3.gem_handle,
-			      cursor_fb3.width, cursor_fb3.height);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	/* Make sure nothing remains for the other tests. */
-	rc = drmModeSetCursor(drm_fd, crtc_id, 0, 0, 0);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-}
-
-static enum plane_type get_plane_type(uint32_t plane_id)
-{
-	int i;
-	bool found;
-	uint64_t prop_value;
-	drmModePropertyPtr prop;
-	const char *enum_name = NULL;
-	enum plane_type type;
-
-	found = kmstest_get_property(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE,
-				     "type", NULL, &prop_value, &prop);
-	igt_assert(found);
-
-	igt_assert(prop->flags & DRM_MODE_PROP_ENUM);
-	igt_assert(prop_value < prop->count_enums);
-
-	for (i = 0; i < prop->count_enums; i++) {
-		if (prop->enums[i].value == prop_value) {
-			enum_name = prop->enums[i].name;
-			break;
-		}
-	}
-	igt_assert(enum_name);
-
-	if (strcmp(enum_name, "Overlay") == 0)
-		type = PLANE_OVERLAY;
-	else if (strcmp(enum_name, "Primary") == 0)
-		type = PLANE_PRIMARY;
-	else if (strcmp(enum_name, "Cursor") == 0)
-		type = PLANE_CURSOR;
-	else
-		igt_assert(0);
-
-	drmModeFreeProperty(prop);
-
-	return type;
-}
-
-static void test_one_plane(bool dpms, uint32_t plane_id,
-			   enum plane_type plane_type)
-{
-	int rc;
-	uint32_t plane_format, plane_w, plane_h;
-	uint32_t crtc_id;
-	struct igt_fb plane_fb1, plane_fb2;
-	int32_t crtc_x = 0, crtc_y = 0;
-	uint64_t modifier;
-
-	disable_all_screens_and_wait(&ms_data);
-
-	crtc_id = default_mode_params->crtc_id;
-
-	switch (plane_type) {
-	case PLANE_OVERLAY:
-		plane_format = DRM_FORMAT_XRGB8888;
-		plane_w = 64;
-		plane_h = 64;
-		modifier = I915_FORMAT_MOD_X_TILED;
-		break;
-	case PLANE_PRIMARY:
-		plane_format = DRM_FORMAT_XRGB8888;
-		plane_w = default_mode_params->mode->hdisplay;
-		plane_h = default_mode_params->mode->vdisplay;
-		modifier = I915_FORMAT_MOD_X_TILED;
-		break;
-	case PLANE_CURSOR:
-		plane_format = DRM_FORMAT_ARGB8888;
-		plane_w = 64;
-		plane_h = 64;
-		modifier = DRM_FORMAT_MOD_LINEAR;
-		break;
-	default:
-		igt_assert(0);
-		break;
-	}
-
-	igt_create_fb(drm_fd, plane_w, plane_h, plane_format, modifier,
-		      &plane_fb1);
-	igt_create_fb(drm_fd, plane_w, plane_h, plane_format, modifier,
-		      &plane_fb2);
-	fill_igt_fb(&plane_fb1, 0xFF00FFFF);
-	fill_igt_fb(&plane_fb2, 0xFF00FF00);
-
-	set_mode_for_params_and_wait(default_mode_params);
-
-	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
-			     0, 0, plane_fb1.width, plane_fb1.height,
-			     0 << 16, 0 << 16, plane_fb1.width << 16,
-			     plane_fb1.height << 16);
-	igt_assert_eq(rc, 0);
-
-	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
-
-	/* Just move the plane around. */
-	if (plane_type != PLANE_PRIMARY) {
-		crtc_x++;
-		crtc_y++;
-	}
-	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
-			     crtc_x, crtc_y, plane_fb1.width, plane_fb1.height,
-			     0 << 16, 0 << 16, plane_fb1.width << 16,
-			     plane_fb1.height << 16);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	/* Unset, then change the plane. */
-	rc = drmModeSetPlane(drm_fd, plane_id, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb2.fb_id, 0,
-			     crtc_x, crtc_y, plane_fb2.width, plane_fb2.height,
-			     0 << 16, 0 << 16, plane_fb2.width << 16,
-			     plane_fb2.height << 16);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	/* Now change the plane without unsetting first. */
-	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
-			     crtc_x, crtc_y, plane_fb1.width, plane_fb1.height,
-			     0 << 16, 0 << 16, plane_fb1.width << 16,
-			     plane_fb1.height << 16);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-
-	/* Make sure nothing remains for the other tests. */
-	rc = drmModeSetPlane(drm_fd, plane_id, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
-	igt_assert_eq(rc, 0);
-	igt_assert(wait_for_suspended());
-}
-
-/* This one also triggered WARNs on our driver at some point in time. */
-static void planes_subtest(bool universal, bool dpms)
-{
-	int i, crtc_idx;
-	drmModePlaneResPtr planes;
-
-	igt_require(default_mode_params);
-	crtc_idx = kmstest_get_crtc_idx(ms_data.res,
-					default_mode_params->crtc_id);
-
-	igt_assert_eq(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES,
-				      universal), 0);
-
-	planes = drmModeGetPlaneResources(drm_fd);
-	for (i = 0; i < planes->count_planes; i++) {
-		drmModePlanePtr plane;
-
-		plane = drmModeGetPlane(drm_fd, planes->planes[i]);
-		igt_assert(plane);
-
-		if (plane->possible_crtcs & (1 << crtc_idx)) {
-			enum plane_type type;
-
-			type = universal ? get_plane_type(plane->plane_id) :
-					   PLANE_OVERLAY;
-			igt_dynamic_f("plane-%d", plane->plane_id)
-				test_one_plane(dpms, plane->plane_id, type);
-		}
-		drmModeFreePlane(plane);
-	}
-	drmModeFreePlaneResources(planes);
-
-	igt_assert_eq(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES,
-				      1), 0);
-}
-
-static void pm_test_tiling(void)
-{
-	uint32_t *handles;
-	uint8_t **gem_bufs;
-
-	int max_gem_objs = 0;
-	uint8_t off_bit = 14;
-	uint32_t gtt_obj_max_size = (256 * 1024);
-
-	uint32_t i, j, k, tiling_modes[3] = {
-		I915_TILING_NONE,
-		I915_TILING_X,
-		I915_TILING_Y,
-	};
-	uint32_t ti, sw;
-
-	/* default stride value */
-	uint32_t stride = 512;
-
-	/* calculate how many objects we can map */
-	for (i = 1 << off_bit; i <= gtt_obj_max_size; i <<= 1, max_gem_objs++)
-		;
-
-	gem_bufs = calloc(max_gem_objs, sizeof(*gem_bufs));
-	handles = calloc(max_gem_objs, sizeof(*handles));
-
-	/* try to set different tiling for each handle */
-	for (i = 0; i < ARRAY_SIZE(tiling_modes); i++) {
-
-		for (j = 0, k = 1 << off_bit;
-		     k <= gtt_obj_max_size; k <<= 1, j++) {
-			handles[j] = gem_create(drm_fd, k);
-			gem_bufs[j] = gem_mmap__gtt(drm_fd, handles[j],
-						    k, PROT_WRITE);
-			memset(gem_bufs[j], 0x0, k);
-		}
-
-		disable_all_screens_and_wait(&ms_data);
-
-		for (j = 0; j < max_gem_objs; j++) {
-			gem_set_tiling(drm_fd, handles[j],
-					tiling_modes[i], stride);
-			gem_get_tiling(drm_fd, handles[j], &ti, &sw);
-			igt_assert(tiling_modes[i] == ti);
-		}
-
-		enable_one_screen_and_wait(&ms_data);
-
-		for (j = 0, k = 1 << off_bit;
-		     k <= gtt_obj_max_size; k <<= 1, j++) {
-			igt_assert(munmap(gem_bufs[j], k) == 0);
-			gem_close(drm_fd, handles[j]);
-		}
-	}
-
-	free(gem_bufs);
-	free(handles);
-}
-
-static void pm_test_caching(void)
-{
-	uint32_t handle;
-	uint8_t *gem_buf;
-
-	uint32_t i;
-	uint32_t default_cache_level;
-	uint32_t gtt_obj_max_size = (16 * 1024);
-	uint32_t cache_levels[3] = {
-		I915_CACHING_NONE,
-		I915_CACHING_CACHED,            /* LLC caching */
-		I915_CACHING_DISPLAY,           /* eDRAM caching */
-	};
-
-	disable_all_screens(&ms_data);
-
-	handle = gem_create(drm_fd, gtt_obj_max_size);
-	default_cache_level = gem_get_caching(drm_fd, handle);
-	gem_buf = gem_mmap__gtt(drm_fd, handle, gtt_obj_max_size, PROT_WRITE);
-
-	for (i = 0; i < ARRAY_SIZE(cache_levels); i++) {
-		igt_assert(wait_for_suspended());
-		if (igt_has_set_caching(intel_get_drm_devid(drm_fd)))
-			gem_set_caching(drm_fd, handle, default_cache_level);
-		/* Ensure we bind the vma into the GGTT */
-		memset(gem_buf, 16 << i, gtt_obj_max_size);
-
-		/* Now try changing the cache-level on the bound object.
-		 * This will either unlikely unbind the object from the GGTT,
-		 * or more likely just change the PTEs inside the GGTT. Either
-		 * way the driver must take the rpm wakelock around the GSM
-		 * access.
-		 */
-		igt_debug("Setting cache level %u\n", cache_levels[i]);
-		igt_assert(wait_for_suspended());
-		if (igt_has_set_caching(intel_get_drm_devid(drm_fd)))
-			gem_set_caching(drm_fd, handle, cache_levels[i]);
-	}
-
-	igt_assert(munmap(gem_buf, gtt_obj_max_size) == 0);
-	gem_close(drm_fd, handle);
-}
-
-static void fences_subtest(bool dpms)
-{
-	int i;
-	uint32_t *buf_ptr;
-	uint32_t tiling = false, swizzle;
-	struct modeset_params params;
-
-	disable_all_screens_and_wait(&ms_data);
-
-	igt_require(default_mode_params);
-	params.crtc_id = default_mode_params->crtc_id;
-	params.connector_id = default_mode_params->connector_id;
-	params.mode = default_mode_params->mode;
-	igt_create_fb(drm_fd, params.mode->hdisplay, params.mode->vdisplay,
-		      DRM_FORMAT_XRGB8888, I915_FORMAT_MOD_X_TILED,
-		      &params.fb);
-
-	/* Even though we passed "true" as the tiling argument, double-check
-	 * that the fb is really tiled. */
-	gem_get_tiling(drm_fd, params.fb.gem_handle, &tiling, &swizzle);
-	igt_assert(tiling);
-
-	buf_ptr = gem_mmap__gtt(drm_fd, params.fb.gem_handle, params.fb.size,
-				PROT_WRITE | PROT_READ);
-	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
-		buf_ptr[i] = i;
-
-	set_mode_for_params_and_wait(&params);
-
-	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
-
-	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
-		igt_assert_eq(buf_ptr[i], i);
-	igt_assert(wait_for_suspended());
-
-	if (dpms) {
-		drmModeConnectorPtr c = NULL;
-
-		for (i = 0; i < ms_data.res->count_connectors; i++)
-			if (ms_data.connectors[i]->connector_id ==
-			    params.connector_id)
-				c = ms_data.connectors[i];
-		igt_assert(c);
-
-		kmstest_set_connector_dpms(drm_fd, c, DRM_MODE_DPMS_ON);
-	} else {
-		set_mode_for_params(&params);
-	}
-	igt_assert(wait_for_active());
-
-	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
-		igt_assert_eq(buf_ptr[i], i);
-
-	igt_assert(munmap(buf_ptr, params.fb.size) == 0);
-}
-
 int rounds = 10;
 bool stay = false;
 
@@ -2420,11 +1375,6 @@ static struct option long_options[] = {
 
 igt_main_args("", long_options, help_str, opt_handler, NULL)
 {
-	igt_subtest("basic-rte") {
-		igt_assert(setup_environment(true));
-		basic_subtest();
-	}
-
 	/* Skip instead of failing in case the machine is not prepared to reach
 	 * PC8+. We don't want bug reports from cases where the machine is just
 	 * not properly configured. */
@@ -2436,22 +1386,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 		igt_subtest("stay")
 			stay_subtest();
 
-	/* Essential things */
-	igt_subtest("drm-resources-equal")
-		drm_resources_equal_subtest();
-	igt_subtest("basic-pci-d3-state")
-		pci_d3_state_subtest();
-
-	/* Basic modeset */
-	igt_subtest("modeset-lpsp")
-		modeset_subtest(SCREEN_TYPE_LPSP, 1, WAIT_STATUS);
-	igt_subtest("modeset-non-lpsp")
-		modeset_subtest(SCREEN_TYPE_NON_LPSP, 1, WAIT_STATUS);
-	igt_subtest("dpms-lpsp")
-		modeset_subtest(SCREEN_TYPE_LPSP, 1, WAIT_STATUS | USE_DPMS);
-	igt_subtest("dpms-non-lpsp")
-		modeset_subtest(SCREEN_TYPE_NON_LPSP, 1, WAIT_STATUS | USE_DPMS);
-
 	/* GEM */
 	igt_subtest_with_dynamic("gem-mmap-type") {
 		for_each_mmap_offset_type(drm_fd, t) {
@@ -2477,60 +1411,15 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 		gem_evict_pwrite_subtest();
 	}
 
-	/* Planes and cursors */
-	igt_subtest("cursor")
-		cursor_subtest(false);
-	igt_subtest("cursor-dpms")
-		cursor_subtest(true);
-	igt_subtest_with_dynamic("legacy-planes")
-		planes_subtest(false, false);
-	igt_subtest_with_dynamic("legacy-planes-dpms")
-		planes_subtest(false, true);
-	igt_subtest_with_dynamic("universal-planes")
-		planes_subtest(true, false);
-	igt_subtest_with_dynamic("universal-planes-dpms")
-		planes_subtest(true, true);
-
 	/* Misc */
 	igt_subtest("reg-read-ioctl")
 		reg_read_ioctl_subtest();
-	igt_subtest("i2c")
-		i2c_subtest();
-	igt_subtest("pc8-residency")
-		pc8_residency_subtest();
 	igt_subtest("debugfs-read")
 		debugfs_read_subtest();
 	igt_subtest("debugfs-forcewake-user")
 		debugfs_forcewake_user_subtest();
 	igt_subtest("sysfs-read")
 		sysfs_read_subtest();
-	igt_subtest("dpms-mode-unset-lpsp")
-		dpms_mode_unset_subtest(SCREEN_TYPE_LPSP);
-	igt_subtest("dpms-mode-unset-non-lpsp")
-		dpms_mode_unset_subtest(SCREEN_TYPE_NON_LPSP);
-	igt_subtest("fences") {
-		gem_require_mappable_ggtt(drm_fd);
-		fences_subtest(false);
-	}
-	igt_subtest("fences-dpms") {
-		gem_require_mappable_ggtt(drm_fd);
-		fences_subtest(true);
-	}
-
-	/* Modeset stress */
-	igt_subtest("modeset-lpsp-stress")
-		modeset_subtest(SCREEN_TYPE_LPSP, rounds, WAIT_STATUS);
-	igt_subtest("modeset-non-lpsp-stress")
-		modeset_subtest(SCREEN_TYPE_NON_LPSP, rounds, WAIT_STATUS);
-	igt_subtest("modeset-lpsp-stress-no-wait")
-		modeset_subtest(SCREEN_TYPE_LPSP, rounds, DONT_WAIT);
-	igt_subtest("modeset-non-lpsp-stress-no-wait")
-		modeset_subtest(SCREEN_TYPE_NON_LPSP, rounds, DONT_WAIT);
-	igt_subtest("modeset-pc8-residency-stress")
-		modeset_subtest(SCREEN_TYPE_ANY, rounds, WAIT_PC8_RES);
-	igt_subtest("modeset-stress-extra-wait")
-		modeset_subtest(SCREEN_TYPE_ANY, rounds,
-				WAIT_STATUS | WAIT_EXTRA);
 
 	/* System suspend */
 	igt_subtest("system-suspend-devices")
@@ -2539,8 +1428,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 		system_suspend_subtest(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
 	igt_subtest("system-suspend-execbuf")
 		system_suspend_execbuf_subtest();
-	igt_subtest("system-suspend-modeset")
-		system_suspend_modeset_subtest();
 	igt_subtest("system-hibernate-devices")
 		system_suspend_subtest(SUSPEND_STATE_DISK,
 				       SUSPEND_TEST_DEVICES);
@@ -2562,16 +1449,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 	igt_subtest("gem-execbuf-stress-pc8")
 		gem_execbuf_stress_subtest(rounds, WAIT_PC8_RES, 0);
 
-	/* power-wake reference tests */
-	igt_subtest("pm-tiling") {
-		gem_require_mappable_ggtt(drm_fd);
-		pm_test_tiling();
-	}
-	igt_subtest("pm-caching") {
-		gem_require_mappable_ggtt(drm_fd);
-		pm_test_caching();
-	}
-
 	igt_fixture {
 		teardown_environment(true);
 		forcewake_put(&ms_data);
@@ -2591,19 +1468,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 		igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
 		teardown_environment(false);
 
-		igt_debug("Reload as normal\n");
-		igt_i915_driver_unload();
-
-		igt_kmsg(KMSG_INFO "Reloading i915 as normal\n");
-		igt_assert_eq(igt_i915_driver_load("mmio_debug=-1"), 0);
-
-		igt_assert(setup_environment(true));
-		pci_dev = igt_device_get_pci_device(drm_fd);
-		igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
-		if (enable_one_screen_with_type(&ms_data, SCREEN_TYPE_ANY))
-			drm_resources_equal_subtest();
-		teardown_environment(true);
-
 		/* Remove our mmio_debugging module */
 		igt_i915_driver_unload();
 	}
diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c
new file mode 100644
index 000000000..8f1987864
--- /dev/null
+++ b/tests/intel/kms_pm_rpm.c
@@ -0,0 +1,1740 @@
+/*
+ * Copyright © 2013, 2015 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ *    Paulo Zanoni <paulo.r.zanoni@intel.com>
+ *
+ */
+
+/**
+ * TEST: kms pm rpm
+ * Category: Display
+ * Description: Test to validate Runtime PM
+ * Driver requirement: i915
+ * Functionality: pm_rpm
+ * Mega feature: Display Power Management
+ * Test category: functionality test
+ */
+#if defined(__linux__)
+#include <linux/i2c.h>
+#include <linux/i2c-dev.h>
+#elif defined(__FreeBSD__)
+#include <dev/iicbus/iic.h>
+#define	addr	slave
+#endif
+
+#include <dirent.h>
+
+#include "config.h"
+#include "i915/gem.h"
+#include "i915/gem_create.h"
+#include "igt.h"
+#include "igt_debugfs.h"
+#include "igt_device.h"
+#include "igt_edid.h"
+#include "igt_kmod.h"
+#include "igt_sysfs.h"
+#include "intel_blt.h"
+
+/**
+ * SUBTEST: basic-pci-d3-state
+ * Description: Validate PCI device D3 state enter-exit scenario using runtime PM
+ *
+ * SUBTEST: basic-rte
+ * Description: Basic display enablement test
+ *
+ * SUBTEST: cursor
+ * Description: Validate cursor movements along with suspends using runtime PM
+ * Functionality: cursor, pm_rpm, suspend
+ *
+ * SUBTEST: cursor-dpms
+ * Description: Validate cursor movements along with dpms using runtime PM
+ * Functionality: cursor, dpms, pm_rpm
+ *
+ * SUBTEST: dpms-lpsp
+ * Description: Validate basic modeset with dpms on lpsp screen using runtime PM
+ * Functionality: dpms, pm_rpm
+ *
+ * SUBTEST: dpms-mode-unset-lpsp
+ * Description: Validate basic modeset (negative) with dpms on lpsp screen using runtime PM
+ * Functionality: dpms, pm_rpm
+ *
+ * SUBTEST: dpms-mode-unset-non-lpsp
+ * Description: Validate basic modeset (negative) with dpms on non-lpsp screen using runtime PM
+ * Functionality: dpms, pm_rpm
+ *
+ * SUBTEST: dpms-non-lpsp
+ * Description: Validate basic modeset with dpms on non-lpsp screen using runtime PM
+ * Functionality: dpms, pm_rpm
+ *
+ * SUBTEST: drm-resources-equal
+ * Description: Validate the DRM resources reported by the IOCTLs are still the same.
+ *
+ * SUBTEST: fences
+ * Description: Sanity test for drm fences.
+ *
+ * SUBTEST: fences-dpms
+ * Description: Sanity test for drm fences with dpms.
+ * Functionality: dpms, pm_rpm
+ *
+ * SUBTEST: i2c
+ * Description: Validate exposed edids using raw I2C read method.
+ *
+ * SUBTEST: legacy-planes
+ * Description: Validate legacy plane (set/unset/change).
+ * Functionality: pm_rpm, plane
+ *
+ * SUBTEST: legacy-planes-dpms
+ * Description: Validate legacy plane (set/unset/change) with dpms.
+ * Functionality: pm_rpm, plane
+ *
+ * SUBTEST: modeset-lpsp
+ * Description: Validate basic modeset on lpsp screen using runtime PM
+ *
+ * SUBTEST: modeset-lpsp-stress
+ * Description: Stress test with modeset on lpsp screen using runtime PM
+ *
+ * SUBTEST: modeset-lpsp-stress-no-wait
+ * Description: Stress test with modeset (no wait)on lpsp screen using runtime PM
+ *
+ * SUBTEST: modeset-non-lpsp
+ * Description: Validate basic modeset on non-lpsp screen using runtime PM
+ *
+ * SUBTEST: modeset-non-lpsp-stress
+ * Description: Stress test with modeset on non-lpsp screen using runtime PM
+ *
+ * SUBTEST: modeset-non-lpsp-stress-no-wait
+ * Description: Stress test with modeset (no wait) on non-lpsp screen using runtime PM
+ *
+ * SUBTEST: modeset-pc8-residency-stress
+ * Description: Stress test with modeset (pc8 residency) using runtime PM
+ *
+ * SUBTEST: modeset-stress-extra-wait
+ * Description: Stress test with modeset (extra wait) using runtime PM
+ *
+ * SUBTEST: module-reload
+ * Description: Test to check D3 state after module reload
+ *
+ * SUBTEST: pc8-residency
+ * Description: Basic sanity test for PC8+ states
+ *
+ * SUBTEST: pm-caching
+ * Description: Test to change different cache levels & check for rpm
+ *
+ * SUBTEST: pm-tiling
+ * Description: Test to change different tiling methods & check for rpm
+ * Functionality: pm_rpm, tiling
+ *
+ * SUBTEST: system-suspend-modeset
+ * Description: Validate basic modeset with suspend
+ * Functionality: pm_rpm, suspend
+ *
+ * SUBTEST: universal-planes
+ * Description: Validate universal plane (set/unset/change).
+ * Functionality: pm_rpm, plane
+ *
+ * SUBTEST: universal-planes-dpms
+ * Description: Validate universal plane (set/unset/change) with dpms.
+ * Functionality: pm_rpm, plane
+ */
+
+#define MSR_PC8_RES	0x630
+#define MSR_PC9_RES	0x631
+#define MSR_PC10_RES	0x632
+
+#define MAX_CONNECTORS	32
+#define MAX_ENCODERS	32
+#define MAX_CRTCS	16
+
+#define WIDTH 64
+#define HEIGHT 64
+#define STRIDE (WIDTH)
+#define SIZE (HEIGHT * STRIDE)
+
+enum pc8_status {
+	PC8_ENABLED,
+	PC8_DISABLED
+};
+
+enum screen_type {
+	SCREEN_TYPE_LPSP,
+	SCREEN_TYPE_NON_LPSP,
+	SCREEN_TYPE_ANY,
+};
+
+enum plane_type {
+	PLANE_OVERLAY,
+	PLANE_PRIMARY,
+	PLANE_CURSOR,
+};
+
+/* Wait flags */
+#define DONT_WAIT	0
+#define WAIT_STATUS	1
+#define WAIT_PC8_RES	2
+#define WAIT_EXTRA	4
+#define USE_DPMS	8
+
+int drm_fd, msr_fd, pc8_status_fd;
+int debugfs;
+bool has_runtime_pm, has_pc8;
+struct mode_set_data ms_data;
+
+/* Stuff used when creating FBs and mode setting. */
+struct mode_set_data {
+	drmModeResPtr res;
+	drmModeConnectorPtr connectors[MAX_CONNECTORS];
+	drmModePropertyBlobPtr edids[MAX_CONNECTORS];
+	igt_display_t display;
+
+	uint32_t devid;
+	int fw_fd;
+};
+
+/* Stuff we query at different times so we can compare. */
+struct compare_data {
+	drmModeResPtr res;
+	drmModeEncoderPtr encoders[MAX_ENCODERS];
+	drmModeConnectorPtr connectors[MAX_CONNECTORS];
+	drmModeCrtcPtr crtcs[MAX_CRTCS];
+	drmModePropertyBlobPtr edids[MAX_CONNECTORS];
+};
+
+struct modeset_params {
+	uint32_t crtc_id;
+	uint32_t connector_id;
+	struct igt_fb fb;
+	drmModeModeInfoPtr mode;
+};
+
+struct data_t {
+	int width;
+	int height;
+	uint32_t region;
+};
+
+struct modeset_params lpsp_mode_params;
+struct modeset_params non_lpsp_mode_params;
+struct modeset_params *default_mode_params;
+
+static int modprobe(const char *driver)
+{
+	return igt_kmod_load(driver, NULL);
+}
+
+/* If the read fails, then the machine doesn't support PC8+ residencies. */
+static bool supports_pc8_plus_residencies(void)
+{
+	int rc;
+	uint64_t val;
+
+	rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC8_RES);
+	if (rc != sizeof(val))
+		return false;
+	rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC9_RES);
+	if (rc != sizeof(val))
+		return false;
+	rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC10_RES);
+	if (rc != sizeof(val))
+		return false;
+
+	return igt_pm_pc8_plus_residencies_enabled(msr_fd);
+}
+
+static uint64_t get_residency(uint32_t type)
+{
+	int rc;
+	uint64_t ret;
+
+	rc = pread(msr_fd, &ret, sizeof(uint64_t), type);
+	igt_assert(rc == sizeof(ret));
+
+	return ret;
+}
+
+static bool pc8_plus_residency_changed(unsigned int timeout_sec)
+{
+	uint64_t res_pc8, res_pc9, res_pc10;
+
+	res_pc8 = get_residency(MSR_PC8_RES);
+	res_pc9 = get_residency(MSR_PC9_RES);
+	res_pc10 = get_residency(MSR_PC10_RES);
+
+	return igt_wait(res_pc8 != get_residency(MSR_PC8_RES) ||
+			res_pc9 != get_residency(MSR_PC9_RES) ||
+			res_pc10 != get_residency(MSR_PC10_RES),
+			timeout_sec * 1000, 100);
+}
+
+static enum pc8_status get_pc8_status(void)
+{
+	ssize_t n_read;
+	char buf[150]; /* The whole file has less than 100 chars. */
+
+	lseek(pc8_status_fd, 0, SEEK_SET);
+	n_read = read(pc8_status_fd, buf, ARRAY_SIZE(buf));
+	igt_assert(n_read >= 0);
+	buf[n_read] = '\0';
+
+	if (strstr(buf, "\nEnabled: yes\n"))
+		return PC8_ENABLED;
+	else
+		return PC8_DISABLED;
+}
+
+static bool wait_for_pc8_status(enum pc8_status status)
+{
+	return igt_wait(get_pc8_status() == status, 10000, 100);
+}
+
+static bool wait_for_suspended(void)
+{
+	if (has_pc8 && !has_runtime_pm) {
+		return wait_for_pc8_status(PC8_ENABLED);
+	} else {
+		bool suspended = igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED);
+
+		if (!suspended) {
+			/* Dump runtime pm status even if test skips */
+			__igt_debugfs_dump(drm_fd, "i915_runtime_pm_status", IGT_LOG_INFO);
+		}
+
+		return suspended;
+	}
+}
+
+static bool wait_for_active(void)
+{
+	if (has_pc8 && !has_runtime_pm)
+		return wait_for_pc8_status(PC8_DISABLED);
+	else
+		return igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_ACTIVE);
+}
+
+static void disable_all_screens_dpms(struct mode_set_data *data)
+{
+	if (!data->res)
+		return;
+
+	for (int i = 0; i < data->res->count_connectors; i++) {
+		drmModeConnectorPtr c = data->connectors[i];
+
+		kmstest_set_connector_dpms(drm_fd, c, DRM_MODE_DPMS_OFF);
+	}
+}
+
+static void disable_all_screens(struct mode_set_data *data)
+{
+	if (data->res)
+		kmstest_unset_all_crtcs(drm_fd, data->res);
+}
+
+#define disable_all_screens_and_wait(data) do { \
+	disable_all_screens(data); \
+	igt_assert(wait_for_suspended()); \
+} while (0)
+
+static void disable_or_dpms_all_screens(struct mode_set_data *data, bool dpms)
+{
+	if (dpms)
+		disable_all_screens_dpms(&ms_data);
+	else
+		disable_all_screens(&ms_data);
+}
+
+#define disable_or_dpms_all_screens_and_wait(data, dpms) do { \
+	disable_or_dpms_all_screens((data), (dpms)); \
+	igt_assert(wait_for_suspended()); \
+} while (0)
+
+static bool init_modeset_params_for_type(struct mode_set_data *data,
+					 struct modeset_params *params,
+					 enum screen_type type)
+{
+	drmModeConnectorPtr connector = NULL;
+	drmModeModeInfoPtr mode = NULL;
+	igt_output_t *output = NULL;
+	igt_display_t *display = &data->display;
+
+	if (!data->res || !display)
+		return false;
+
+	for_each_connected_output(display, output) {
+		drmModeConnectorPtr c = output->config.connector;
+
+		if (type == SCREEN_TYPE_LPSP &&
+		     !i915_output_is_lpsp_capable(drm_fd, output))
+			continue;
+
+		if (type == SCREEN_TYPE_NON_LPSP &&
+		    i915_output_is_lpsp_capable(drm_fd, output))
+			continue;
+
+		connector = c;
+		mode = igt_output_get_mode(output);
+		break;
+	}
+
+	if (!connector || !mode)
+		return false;
+
+	igt_create_pattern_fb(drm_fd, mode->hdisplay, mode->vdisplay,
+			      DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_LINEAR,
+			      &params->fb);
+
+	params->crtc_id = kmstest_find_crtc_for_connector(drm_fd, data->res,
+							  connector, 0);
+	params->connector_id = connector->connector_id;
+	params->mode = mode;
+
+	return true;
+}
+
+static void init_modeset_cached_params(struct mode_set_data *data)
+{
+	bool lpsp, non_lpsp;
+
+	lpsp = init_modeset_params_for_type(data, &lpsp_mode_params,
+					    SCREEN_TYPE_LPSP);
+	non_lpsp = init_modeset_params_for_type(data, &non_lpsp_mode_params,
+						SCREEN_TYPE_NON_LPSP);
+
+	if (lpsp)
+		default_mode_params = &lpsp_mode_params;
+	else if (non_lpsp)
+		default_mode_params = &non_lpsp_mode_params;
+	else
+		default_mode_params = NULL;
+}
+
+static bool set_mode_for_params(struct modeset_params *params)
+{
+	int rc;
+
+	rc = drmModeSetCrtc(drm_fd, params->crtc_id, params->fb.fb_id, 0, 0,
+			    &params->connector_id, 1, params->mode);
+	return (rc == 0);
+}
+
+#define set_mode_for_params_and_wait(params) do { \
+	igt_assert(set_mode_for_params(params)); \
+	igt_assert(wait_for_active()); \
+} while (0)
+
+static bool enable_one_screen_with_type(struct mode_set_data *data,
+					enum screen_type type)
+{
+	struct modeset_params *params = NULL;
+
+	switch (type) {
+	case SCREEN_TYPE_ANY:
+		params = default_mode_params;
+		break;
+	case SCREEN_TYPE_LPSP:
+		params = &lpsp_mode_params;
+		break;
+	case SCREEN_TYPE_NON_LPSP:
+		params = &non_lpsp_mode_params;
+		break;
+	default:
+		igt_assert(0);
+	}
+
+	if (!params)
+		return false;
+
+	return set_mode_for_params(params);
+}
+
+static void enable_one_screen(struct mode_set_data *data)
+{
+	/* SKIP if there are no connected screens. */
+	igt_require(enable_one_screen_with_type(data, SCREEN_TYPE_ANY));
+}
+
+#define enable_one_screen_and_wait(data) do { \
+	enable_one_screen(data); \
+	igt_assert(wait_for_active()); \
+} while (0)
+
+static void
+enable_one_screen_or_forcewake_get_and_wait(struct mode_set_data *data)
+{
+	bool headless;
+
+	/* Try to resume by enabling any type of display */
+	headless = !enable_one_screen_with_type(data, SCREEN_TYPE_ANY);
+
+	/*
+	 * Get User Forcewake to trigger rpm resume in case of headless
+	 * as well as no display being connected.
+	 */
+	if (headless) {
+		data->fw_fd = igt_open_forcewake_handle(drm_fd);
+		igt_require(data->fw_fd > 0);
+	}
+	igt_assert(wait_for_active());
+}
+
+static void forcewake_put(struct mode_set_data *data)
+{
+	if (data->fw_fd <= 0)
+		return;
+
+	data->fw_fd = close(data->fw_fd);
+	igt_assert_eq(data->fw_fd, 0);
+}
+
+static drmModePropertyBlobPtr get_connector_edid(drmModeConnectorPtr connector,
+						 int index)
+{
+	bool found;
+	uint64_t prop_value;
+	drmModePropertyPtr prop;
+	drmModePropertyBlobPtr blob = NULL;
+
+	found = kmstest_get_property(drm_fd, connector->connector_id,
+				     DRM_MODE_OBJECT_CONNECTOR, "EDID",
+				     NULL, &prop_value, &prop);
+
+	if (found) {
+		igt_assert(prop->flags & DRM_MODE_PROP_BLOB);
+		igt_assert(prop->count_blobs == 0);
+
+		blob = drmModeGetPropertyBlob(drm_fd, prop_value);
+
+		drmModeFreeProperty(prop);
+	}
+
+	return blob;
+}
+
+static void init_mode_set_data(struct mode_set_data *data)
+{
+	data->res = drmModeGetResources(drm_fd);
+	if (data->res) {
+		igt_assert(data->res->count_connectors <= MAX_CONNECTORS);
+		for (int i = 0; i < data->res->count_connectors; i++) {
+			data->connectors[i] =
+				drmModeGetConnector(drm_fd,
+						    data->res->connectors[i]);
+			data->edids[i] = get_connector_edid(data->connectors[i], i);
+		}
+
+		kmstest_set_vt_graphics_mode();
+		igt_display_require(&data->display, drm_fd);
+	}
+
+	init_modeset_cached_params(&ms_data);
+}
+
+static void fini_mode_set_data(struct mode_set_data *data)
+{
+	if (data->res) {
+		for (int i = 0; i < data->res->count_connectors; i++) {
+			drmModeFreeConnector(data->connectors[i]);
+			drmModeFreePropertyBlob(data->edids[i]);
+		}
+		drmModeFreeResources(data->res);
+		igt_display_fini(&data->display);
+	}
+}
+
+static void get_drm_info(struct compare_data *data)
+{
+	int i;
+
+	data->res = drmModeGetResources(drm_fd);
+	if (!data->res)
+		return;
+
+	igt_assert(data->res->count_connectors <= MAX_CONNECTORS);
+	igt_assert(data->res->count_encoders <= MAX_ENCODERS);
+	igt_assert(data->res->count_crtcs <= MAX_CRTCS);
+
+	for (i = 0; i < data->res->count_connectors; i++) {
+		/* Don't use GetConnectorCurrent, we want to force a reprobe
+		 * here. */
+		data->connectors[i] = drmModeGetConnector(drm_fd,
+						data->res->connectors[i]);
+		data->edids[i] = get_connector_edid(data->connectors[i], i);
+	}
+	for (i = 0; i < data->res->count_encoders; i++)
+		data->encoders[i] = drmModeGetEncoder(drm_fd,
+						data->res->encoders[i]);
+	for (i = 0; i < data->res->count_crtcs; i++)
+		data->crtcs[i] = drmModeGetCrtc(drm_fd, data->res->crtcs[i]);
+}
+
+static void free_drm_info(struct compare_data *data)
+{
+	int i;
+
+	if (!data->res)
+		return;
+
+	for (i = 0; i < data->res->count_connectors; i++) {
+		drmModeFreeConnector(data->connectors[i]);
+		drmModeFreePropertyBlob(data->edids[i]);
+	}
+	for (i = 0; i < data->res->count_encoders; i++)
+		drmModeFreeEncoder(data->encoders[i]);
+	for (i = 0; i < data->res->count_crtcs; i++)
+		drmModeFreeCrtc(data->crtcs[i]);
+
+	drmModeFreeResources(data->res);
+}
+
+#define COMPARE(d1, d2, data) igt_assert_eq(d1->data, d2->data)
+#define COMPARE_ARRAY(d1, d2, size, data) do { \
+	for (i = 0; i < size; i++) \
+		igt_assert(d1->data[i] == d2->data[i]); \
+} while (0)
+
+static void assert_drm_resources_equal(struct compare_data *d1,
+				       struct compare_data *d2)
+{
+	COMPARE(d1, d2, res->count_connectors);
+	COMPARE(d1, d2, res->count_encoders);
+	COMPARE(d1, d2, res->count_crtcs);
+	COMPARE(d1, d2, res->min_width);
+	COMPARE(d1, d2, res->max_width);
+	COMPARE(d1, d2, res->min_height);
+	COMPARE(d1, d2, res->max_height);
+}
+
+static void assert_modes_equal(drmModeModeInfoPtr m1, drmModeModeInfoPtr m2)
+{
+	COMPARE(m1, m2, clock);
+	COMPARE(m1, m2, hdisplay);
+	COMPARE(m1, m2, hsync_start);
+	COMPARE(m1, m2, hsync_end);
+	COMPARE(m1, m2, htotal);
+	COMPARE(m1, m2, hskew);
+	COMPARE(m1, m2, vdisplay);
+	COMPARE(m1, m2, vsync_start);
+	COMPARE(m1, m2, vsync_end);
+	COMPARE(m1, m2, vtotal);
+	COMPARE(m1, m2, vscan);
+	COMPARE(m1, m2, vrefresh);
+	COMPARE(m1, m2, flags);
+	COMPARE(m1, m2, type);
+	igt_assert(strcmp(m1->name, m2->name) == 0);
+}
+
+static void assert_drm_connectors_equal(drmModeConnectorPtr c1,
+					drmModeConnectorPtr c2)
+{
+	int i;
+
+	COMPARE(c1, c2, connector_id);
+	COMPARE(c1, c2, connector_type);
+	COMPARE(c1, c2, connector_type_id);
+	COMPARE(c1, c2, mmWidth);
+	COMPARE(c1, c2, mmHeight);
+	COMPARE(c1, c2, count_modes);
+	COMPARE(c1, c2, count_props);
+	COMPARE(c1, c2, count_encoders);
+	COMPARE_ARRAY(c1, c2, c1->count_props, props);
+	COMPARE_ARRAY(c1, c2, c1->count_encoders, encoders);
+
+	for (i = 0; i < c1->count_modes; i++)
+		assert_modes_equal(&c1->modes[0], &c2->modes[0]);
+}
+
+static void assert_drm_encoders_equal(drmModeEncoderPtr e1,
+				      drmModeEncoderPtr e2)
+{
+	COMPARE(e1, e2, encoder_id);
+	COMPARE(e1, e2, encoder_type);
+	COMPARE(e1, e2, possible_crtcs);
+	COMPARE(e1, e2, possible_clones);
+}
+
+static void assert_drm_crtcs_equal(drmModeCrtcPtr c1, drmModeCrtcPtr c2)
+{
+	COMPARE(c1, c2, crtc_id);
+}
+
+static void assert_drm_edids_equal(drmModePropertyBlobPtr e1,
+				   drmModePropertyBlobPtr e2)
+{
+	if (!e1 && !e2)
+		return;
+	igt_assert(e1 && e2);
+
+	COMPARE(e1, e2, length);
+
+	igt_assert(memcmp(e1->data, e2->data, e1->length) == 0);
+}
+
+static void assert_drm_infos_equal(struct compare_data *d1,
+				   struct compare_data *d2)
+{
+	int i;
+
+	if (d1->res == d2->res)
+		return;
+
+	igt_assert(d1->res);
+	igt_assert(d2->res);
+
+	assert_drm_resources_equal(d1, d2);
+
+	for (i = 0; i < d1->res->count_connectors; i++) {
+		assert_drm_connectors_equal(d1->connectors[i],
+					    d2->connectors[i]);
+		assert_drm_edids_equal(d1->edids[i], d2->edids[i]);
+	}
+
+	for (i = 0; i < d1->res->count_encoders; i++)
+		assert_drm_encoders_equal(d1->encoders[i], d2->encoders[i]);
+
+	for (i = 0; i < d1->res->count_crtcs; i++)
+		assert_drm_crtcs_equal(d1->crtcs[i], d2->crtcs[i]);
+}
+
+static void setup_pc8(void)
+{
+	has_pc8 = false;
+
+	/* Only Haswell supports the PC8 feature. */
+	if (!IS_HASWELL(ms_data.devid) && !IS_BROADWELL(ms_data.devid))
+		return;
+
+	/* Make sure our Kernel supports MSR and the module is loaded. */
+	igt_require(modprobe("msr") == 0);
+
+	msr_fd = open("/dev/cpu/0/msr", O_RDONLY);
+	igt_assert_f(msr_fd >= 0,
+		     "Can't open /dev/cpu/0/msr.\n");
+
+	/* Non-ULT machines don't support PC8+. */
+	if (!supports_pc8_plus_residencies())
+		return;
+
+	pc8_status_fd = openat(debugfs, "i915_pc8_status", O_RDONLY);
+	if (pc8_status_fd == -1)
+		pc8_status_fd = openat(debugfs,
+				       "i915_runtime_pm_status", O_RDONLY);
+	igt_assert_f(pc8_status_fd >= 0,
+		     "Can't open /sys/kernel/debug/dri/0/i915_runtime_pm_status");
+
+	has_pc8 = true;
+}
+
+static void dump_file(int dir, const char *filename)
+{
+	char *contents;
+
+	contents = igt_sysfs_get(dir, filename);
+	if (!contents)
+		return;
+
+	igt_info("%s:\n%s\n", filename, contents);
+	free(contents);
+}
+
+static bool setup_environment(void)
+{
+	if (has_runtime_pm)
+		goto out;
+
+	drm_fd = __drm_open_driver(DRIVER_INTEL);
+	igt_require(drm_fd != -1);
+	igt_device_set_master(drm_fd);
+
+	debugfs = igt_debugfs_dir(drm_fd);
+	igt_require(debugfs != -1);
+
+	ms_data.devid = intel_get_drm_devid(drm_fd);
+
+	init_mode_set_data(&ms_data);
+
+	igt_pm_enable_sata_link_power_management();
+
+	has_runtime_pm = igt_setup_runtime_pm(drm_fd);
+	setup_pc8();
+
+	igt_info("Runtime PM support: %d\n", has_runtime_pm);
+	igt_info("PC8 residency support: %d\n", has_pc8);
+	igt_require(has_runtime_pm);
+	igt_require(igt_pm_dmc_loaded(debugfs));
+
+out:
+	disable_all_screens(&ms_data);
+	dump_file(debugfs, "i915_runtime_pm_status");
+
+	return wait_for_suspended();
+}
+
+static void teardown_environment(void)
+{
+	close(msr_fd);
+	if (has_pc8)
+		close(pc8_status_fd);
+
+	igt_restore_runtime_pm();
+
+	igt_pm_restore_sata_link_power_management();
+
+	fini_mode_set_data(&ms_data);
+
+	close(debugfs);
+	drm_close_driver(drm_fd);
+
+	has_runtime_pm = false;
+}
+
+static void pc8_residency_subtest(void)
+{
+	igt_require(has_pc8);
+
+	/* Make sure PC8+ residencies move! */
+	disable_all_screens(&ms_data);
+	igt_assert_f(pc8_plus_residency_changed(30),
+		     "Machine is not reaching PC8+ states, please check its "
+		     "configuration.\n");
+
+	/* Make sure PC8+ residencies stop! */
+	enable_one_screen(&ms_data);
+	igt_assert_f(!pc8_plus_residency_changed(10),
+		     "PC8+ residency didn't stop with screen enabled.\n");
+}
+
+static void basic_subtest(void)
+{
+	disable_all_screens_and_wait(&ms_data);
+
+	enable_one_screen_or_forcewake_get_and_wait(&ms_data);
+	forcewake_put(&ms_data);
+
+	/* XXX Also we can test wake up via exec nop */
+}
+
+static void modeset_subtest(enum screen_type type, int rounds, int wait_flags)
+{
+	int i;
+
+	if (wait_flags & WAIT_PC8_RES)
+		igt_require(has_pc8);
+
+	if (wait_flags & WAIT_EXTRA)
+		rounds /= 2;
+
+	for (i = 0; i < rounds; i++) {
+		if (wait_flags & USE_DPMS)
+			disable_all_screens_dpms(&ms_data);
+		else
+			disable_all_screens(&ms_data);
+
+		if (wait_flags & WAIT_STATUS)
+			igt_assert(wait_for_suspended());
+		if (wait_flags & WAIT_PC8_RES)
+			igt_assert(pc8_plus_residency_changed(30));
+		if (wait_flags & WAIT_EXTRA)
+			sleep(5);
+
+		/* If we skip this line it's because the type of screen we want
+		 * is not connected. */
+		igt_require(enable_one_screen_with_type(&ms_data, type));
+		if (wait_flags & WAIT_STATUS)
+			igt_assert(wait_for_active());
+		if (wait_flags & WAIT_PC8_RES)
+			igt_assert(!pc8_plus_residency_changed(5));
+		if (wait_flags & WAIT_EXTRA)
+			sleep(5);
+	}
+}
+
+/* Test of the DRM resources reported by the IOCTLs are still the same. This
+ * ensures we still see the monitors with the same eyes. We get the EDIDs and
+ * compare them, which ensures we use DP AUX or GMBUS depending on what's
+ * connected. */
+static void drm_resources_equal_subtest(void)
+{
+	struct compare_data pre_suspend, during_suspend, post_suspend;
+
+	enable_one_screen_and_wait(&ms_data);
+	get_drm_info(&pre_suspend);
+	igt_assert(wait_for_active());
+
+	disable_all_screens_and_wait(&ms_data);
+	get_drm_info(&during_suspend);
+	igt_assert(wait_for_suspended());
+
+	enable_one_screen_and_wait(&ms_data);
+	get_drm_info(&post_suspend);
+	igt_assert(wait_for_active());
+
+	assert_drm_infos_equal(&pre_suspend, &during_suspend);
+	assert_drm_infos_equal(&pre_suspend, &post_suspend);
+
+	free_drm_info(&pre_suspend);
+	free_drm_info(&during_suspend);
+	free_drm_info(&post_suspend);
+}
+
+static bool find_i2c_path(const char *connector_name,
+			  char *i2c_path, size_t i2c_path_size)
+{
+	struct dirent *dirent;
+	DIR *dir;
+	int sysfs_card_fd = igt_sysfs_open(drm_fd);
+	int connector_fd = -1;
+	bool found_i2c_file = false;
+	ssize_t r;
+
+	dir = fdopendir(sysfs_card_fd);
+	igt_assert(dir);
+
+	while ((dirent = readdir(dir))) {
+		/* Skip "cardx-" prefix */
+		char *dirname = strchr(dirent->d_name, '-');
+		if (dirname==NULL)
+			continue;
+		++dirname;
+
+		if (strcmp(dirname, connector_name) == 0) {
+			connector_fd = openat(sysfs_card_fd, dirent->d_name, O_RDONLY);
+			break;
+		}
+	}
+	closedir(dir);
+
+	if (connector_fd < 0)
+		return false;
+
+	/* try the standard "ddc" symlink first */
+	r = readlinkat(connector_fd, "ddc", i2c_path, i2c_path_size);
+	if (r > 0 && r != i2c_path_size) {
+		int num;
+
+		i2c_path[r] = '\0';
+
+		if (sscanf(basename(i2c_path), "i2c-%d", &num) == 1) {
+			snprintf(i2c_path, i2c_path_size, "/dev/i2c-%d", num);
+			return true;
+		}
+	}
+
+	dir = fdopendir(connector_fd);
+	igt_assert(dir);
+
+	/* fall back to old "i2c-?" symlink */
+	/* FIXME nuke this at some point */
+	while ((dirent = readdir(dir))) {
+		if (strncmp(dirent->d_name, "i2c-", 4) == 0) {
+			sprintf(i2c_path, "/dev/%s", dirent->d_name);
+			found_i2c_file = true;
+		}
+	}
+	closedir(dir);
+	return found_i2c_file;
+}
+
+static bool i2c_read_edid(const char *connector_name, unsigned char *edid)
+{
+	char i2c_path[PATH_MAX];
+	bool result;
+	int rc, fd;
+	struct i2c_msg msgs[] = {
+		{ /* Start at 0. */
+			.addr = 0x50,
+			.flags = 0,
+			.len = 1,
+			.buf = edid,
+		}, { /* Now read the EDID. */
+			.addr = 0x50,
+			.flags = I2C_M_RD,
+			.len = 128,
+			.buf = edid,
+		}
+	};
+	struct i2c_rdwr_ioctl_data msgset = {
+		.msgs = msgs,
+		.nmsgs = 2,
+	};
+
+	result = find_i2c_path(connector_name, i2c_path, sizeof(i2c_path));
+	if (!result)
+		return false;
+
+	igt_info("Testing %s %s\n", connector_name, i2c_path);
+
+	fd = open(i2c_path, O_RDWR);
+	igt_assert_neq(fd, -1);
+
+	rc = ioctl(fd, I2C_RDWR, &msgset);
+	if (rc==-1) {
+		igt_debug("I2C access failed with errno %d, %s\n",
+				errno, strerror(errno));
+		errno = 0;
+	}
+
+	close(fd);
+	return rc >= 0;
+}
+
+static void format_hex_string(const unsigned char edid[static EDID_BLOCK_SIZE],
+			      char buf[static EDID_BLOCK_SIZE * 5 + 1])
+{
+	for (int i = 0; i < EDID_BLOCK_SIZE; ++i)
+		sprintf(buf+i*5, "0x%02x ", edid[i]);
+}
+
+static bool is_mst_connector(int fd, uint32_t connector_id)
+{
+	return kmstest_get_property(fd, connector_id,
+				    DRM_MODE_OBJECT_CONNECTOR,
+				    "PATH", NULL, NULL, NULL);
+}
+
+static void test_i2c(struct mode_set_data *data)
+{
+	bool edid_mistmach_i2c_vs_drm = false;
+	igt_display_t display;
+	igt_display_require(&display, drm_fd);
+
+	for (int i = 0; i < data->res->count_connectors; i++) {
+		unsigned char *drm_edid = data->edids[i] ? data->edids[i]->data : NULL;
+		unsigned char i2c_edid[EDID_BLOCK_SIZE] = {};
+
+		igt_output_t *output = igt_output_from_connector(&display,
+								 data->connectors[i]);
+		char *connector_name = (char *) igt_output_name(output);
+
+		bool got_i2c_edid = i2c_read_edid(connector_name, i2c_edid);
+		bool got_drm_edid = drm_edid != NULL;
+		bool is_vga = data->connectors[i]->connector_type == DRM_MODE_CONNECTOR_VGA;
+
+		bool edids_equal;
+
+		if (data->connectors[i]->connection != DRM_MODE_CONNECTED ||
+		    is_mst_connector(drm_fd, data->connectors[i]->connector_id))
+			continue;
+
+		/* We fail to detect some VGA monitors using our i2c method. If you look
+		 * at the dmesg of these cases, you'll see the Kernel complaining about
+		 * the EDID reading mostly FFs and then disabling bit-banging. Since we
+		 * don't want to reimplement everything the Kernel does, let's just
+		 * accept the fact that some VGA outputs won't be properly detected. */
+		if (is_vga)
+			continue;
+
+		if (!got_i2c_edid && !got_drm_edid)
+			continue;
+
+		if (got_i2c_edid && got_drm_edid)
+			edids_equal = (0 == memcmp(drm_edid, i2c_edid, EDID_BLOCK_SIZE));
+		else
+			edids_equal = false;
+
+
+		if (!edids_equal) {
+			char buf[5 * EDID_BLOCK_SIZE + 1];
+			igt_critical("Detected EDID mismatch on connector %s\n",
+				     connector_name);
+
+			if(got_i2c_edid)
+				format_hex_string(i2c_edid, buf);
+			else
+				sprintf(buf, "NULL");
+
+			igt_critical("i2c: %s\n", buf);
+
+			if(got_drm_edid)
+				format_hex_string(drm_edid, buf);
+			else
+				sprintf(buf, "NULL");
+
+			igt_critical("drm: %s\n", buf);
+
+			edid_mistmach_i2c_vs_drm = true;
+		}
+	}
+	igt_fail_on_f(edid_mistmach_i2c_vs_drm,
+			"There is an EDID mismatch between i2c and DRM!\n");
+}
+
+static void i2c_subtest_check_environment(void)
+{
+	int i2c_dev_files = 0;
+	DIR *dev_dir;
+	struct dirent *dirent;
+
+	/* Make sure the /dev/i2c-* files exist. */
+	igt_require(modprobe("i2c-dev") == 0);
+
+	dev_dir = opendir("/dev");
+	igt_assert(dev_dir);
+	while ((dirent = readdir(dev_dir))) {
+		if (strncmp(dirent->d_name, "i2c-", 4) == 0)
+			i2c_dev_files++;
+	}
+	closedir(dev_dir);
+	igt_require(i2c_dev_files);
+}
+
+/* Try to use raw I2C, which also needs interrupts. */
+static void i2c_subtest(void)
+{
+	i2c_subtest_check_environment();
+
+	enable_one_screen_and_wait(&ms_data);
+
+	disable_all_screens_and_wait(&ms_data);
+	test_i2c(&ms_data);
+	igt_assert(wait_for_suspended());
+
+	enable_one_screen(&ms_data);
+}
+
+struct read_entry_elapsed {
+	uint64_t elapsed;
+	char *path;
+} max_read_entry;
+
+static bool device_in_pci_d3(struct pci_device *pci_dev)
+{
+	uint16_t val;
+	int rc;
+
+	rc = pci_device_cfg_read_u16(pci_dev, &val, 0xd4);
+	igt_assert_eq(rc, 0);
+
+	igt_debug("%s: PCI D3 state=%d\n", __func__, val & 0x3);
+	return (val & 0x3) == 0x3;
+}
+
+static void pci_d3_state_subtest(void)
+{
+	struct pci_device *pci_dev, *bridge_pci_dev;
+
+	igt_require(has_runtime_pm);
+
+	pci_dev = igt_device_get_pci_device(drm_fd);
+	bridge_pci_dev = pci_device_get_parent_bridge(pci_dev);
+
+	disable_all_screens_and_wait(&ms_data);
+	igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
+
+	if (gem_has_lmem(drm_fd))
+		igt_require_f(pci_device_has_kernel_driver(bridge_pci_dev),
+			      "pci bridge device does not bind with pcieport driver\n");
+
+	enable_one_screen_or_forcewake_get_and_wait(&ms_data);
+	igt_assert(!device_in_pci_d3(pci_dev));
+	forcewake_put(&ms_data);
+}
+
+__noreturn static void stay_subtest(void)
+{
+	disable_all_screens_and_wait(&ms_data);
+
+	while (1)
+		sleep(600);
+}
+
+static void system_suspend_modeset_subtest(void)
+{
+	disable_all_screens_and_wait(&ms_data);
+	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
+	igt_assert(wait_for_suspended());
+
+	enable_one_screen_and_wait(&ms_data);
+	disable_all_screens_and_wait(&ms_data);
+}
+
+/* Enable a screen, activate DPMS, then do a modeset. At some point our driver
+ * produced WARNs on this case. */
+static void dpms_mode_unset_subtest(enum screen_type type)
+{
+	disable_all_screens_and_wait(&ms_data);
+
+	igt_require(enable_one_screen_with_type(&ms_data, type));
+	igt_assert(wait_for_active());
+
+	disable_all_screens_dpms(&ms_data);
+	igt_assert(wait_for_suspended());
+
+	disable_all_screens_and_wait(&ms_data);
+}
+
+static void fill_igt_fb(struct igt_fb *fb, uint32_t color)
+{
+	int i;
+	uint32_t *ptr;
+
+	ptr = gem_mmap__device_coherent(drm_fd, fb->gem_handle, 0, fb->size, PROT_WRITE);
+	for (i = 0; i < fb->size/sizeof(uint32_t); i++)
+		ptr[i] = color;
+	igt_assert(munmap(ptr, fb->size) == 0);
+}
+
+/* At some point, this test triggered WARNs in the Kernel. */
+static void cursor_subtest(bool dpms)
+{
+	int rc;
+	struct igt_fb cursor_fb1, cursor_fb2, cursor_fb3;
+	uint32_t crtc_id;
+
+	disable_all_screens_and_wait(&ms_data);
+
+	igt_require(default_mode_params);
+	crtc_id = default_mode_params->crtc_id;
+
+	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
+		      DRM_FORMAT_MOD_LINEAR, &cursor_fb1);
+	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
+		      DRM_FORMAT_MOD_LINEAR, &cursor_fb2);
+	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
+		      I915_FORMAT_MOD_X_TILED, &cursor_fb3);
+
+	fill_igt_fb(&cursor_fb1, 0xFF00FFFF);
+	fill_igt_fb(&cursor_fb2, 0xFF00FF00);
+	fill_igt_fb(&cursor_fb3, 0xFFFF0000);
+
+	set_mode_for_params_and_wait(default_mode_params);
+
+	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb1.gem_handle,
+			      cursor_fb1.width, cursor_fb1.height);
+	igt_assert_eq(rc, 0);
+	rc = drmModeMoveCursor(drm_fd, crtc_id, 0, 0);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_active());
+
+	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
+
+	/* First, just move the cursor. */
+	rc = drmModeMoveCursor(drm_fd, crtc_id, 1, 1);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	/* Then unset it, and set a new one. */
+	rc = drmModeSetCursor(drm_fd, crtc_id, 0, 0, 0);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb2.gem_handle,
+			      cursor_fb1.width, cursor_fb2.height);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	/* Move the new cursor. */
+	rc = drmModeMoveCursor(drm_fd, crtc_id, 2, 2);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	/* Now set a new one without unsetting the previous one. */
+	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb1.gem_handle,
+			      cursor_fb1.width, cursor_fb1.height);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	/* Cursor 3 was created with tiling and painted with a GTT mmap, so
+	 * hopefully it has some fences around it. */
+	rc = drmModeRmFB(drm_fd, cursor_fb3.fb_id);
+	igt_assert_eq(rc, 0);
+	__gem_set_tiling(drm_fd, cursor_fb3.gem_handle, false, cursor_fb3.strides[0]);
+	igt_assert(wait_for_suspended());
+
+	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb3.gem_handle,
+			      cursor_fb3.width, cursor_fb3.height);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	/* Make sure nothing remains for the other tests. */
+	rc = drmModeSetCursor(drm_fd, crtc_id, 0, 0, 0);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+}
+
+static enum plane_type get_plane_type(uint32_t plane_id)
+{
+	int i;
+	bool found;
+	uint64_t prop_value;
+	drmModePropertyPtr prop;
+	const char *enum_name = NULL;
+	enum plane_type type;
+
+	found = kmstest_get_property(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE,
+				     "type", NULL, &prop_value, &prop);
+	igt_assert(found);
+
+	igt_assert(prop->flags & DRM_MODE_PROP_ENUM);
+	igt_assert(prop_value < prop->count_enums);
+
+	for (i = 0; i < prop->count_enums; i++) {
+		if (prop->enums[i].value == prop_value) {
+			enum_name = prop->enums[i].name;
+			break;
+		}
+	}
+	igt_assert(enum_name);
+
+	if (strcmp(enum_name, "Overlay") == 0)
+		type = PLANE_OVERLAY;
+	else if (strcmp(enum_name, "Primary") == 0)
+		type = PLANE_PRIMARY;
+	else if (strcmp(enum_name, "Cursor") == 0)
+		type = PLANE_CURSOR;
+	else
+		igt_assert(0);
+
+	drmModeFreeProperty(prop);
+
+	return type;
+}
+
+static void test_one_plane(bool dpms, uint32_t plane_id,
+			   enum plane_type plane_type)
+{
+	int rc;
+	uint32_t plane_format, plane_w, plane_h;
+	uint32_t crtc_id;
+	struct igt_fb plane_fb1, plane_fb2;
+	int32_t crtc_x = 0, crtc_y = 0;
+	uint64_t modifier;
+
+	disable_all_screens_and_wait(&ms_data);
+
+	crtc_id = default_mode_params->crtc_id;
+
+	switch (plane_type) {
+	case PLANE_OVERLAY:
+		plane_format = DRM_FORMAT_XRGB8888;
+		plane_w = 64;
+		plane_h = 64;
+		modifier = I915_FORMAT_MOD_X_TILED;
+		break;
+	case PLANE_PRIMARY:
+		plane_format = DRM_FORMAT_XRGB8888;
+		plane_w = default_mode_params->mode->hdisplay;
+		plane_h = default_mode_params->mode->vdisplay;
+		modifier = I915_FORMAT_MOD_X_TILED;
+		break;
+	case PLANE_CURSOR:
+		plane_format = DRM_FORMAT_ARGB8888;
+		plane_w = 64;
+		plane_h = 64;
+		modifier = DRM_FORMAT_MOD_LINEAR;
+		break;
+	default:
+		igt_assert(0);
+		break;
+	}
+
+	igt_create_fb(drm_fd, plane_w, plane_h, plane_format, modifier,
+		      &plane_fb1);
+	igt_create_fb(drm_fd, plane_w, plane_h, plane_format, modifier,
+		      &plane_fb2);
+	fill_igt_fb(&plane_fb1, 0xFF00FFFF);
+	fill_igt_fb(&plane_fb2, 0xFF00FF00);
+
+	set_mode_for_params_and_wait(default_mode_params);
+
+	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
+			     0, 0, plane_fb1.width, plane_fb1.height,
+			     0 << 16, 0 << 16, plane_fb1.width << 16,
+			     plane_fb1.height << 16);
+	igt_assert_eq(rc, 0);
+
+	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
+
+	/* Just move the plane around. */
+	if (plane_type != PLANE_PRIMARY) {
+		crtc_x++;
+		crtc_y++;
+	}
+	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
+			     crtc_x, crtc_y, plane_fb1.width, plane_fb1.height,
+			     0 << 16, 0 << 16, plane_fb1.width << 16,
+			     plane_fb1.height << 16);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	/* Unset, then change the plane. */
+	rc = drmModeSetPlane(drm_fd, plane_id, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb2.fb_id, 0,
+			     crtc_x, crtc_y, plane_fb2.width, plane_fb2.height,
+			     0 << 16, 0 << 16, plane_fb2.width << 16,
+			     plane_fb2.height << 16);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	/* Now change the plane without unsetting first. */
+	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
+			     crtc_x, crtc_y, plane_fb1.width, plane_fb1.height,
+			     0 << 16, 0 << 16, plane_fb1.width << 16,
+			     plane_fb1.height << 16);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+
+	/* Make sure nothing remains for the other tests. */
+	rc = drmModeSetPlane(drm_fd, plane_id, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+	igt_assert_eq(rc, 0);
+	igt_assert(wait_for_suspended());
+}
+
+/* This one also triggered WARNs on our driver at some point in time. */
+static void planes_subtest(bool universal, bool dpms)
+{
+	int i, crtc_idx;
+	drmModePlaneResPtr planes;
+
+	igt_require(default_mode_params);
+	crtc_idx = kmstest_get_crtc_idx(ms_data.res,
+					default_mode_params->crtc_id);
+
+	igt_assert_eq(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES,
+				      universal), 0);
+
+	planes = drmModeGetPlaneResources(drm_fd);
+	for (i = 0; i < planes->count_planes; i++) {
+		drmModePlanePtr plane;
+
+		plane = drmModeGetPlane(drm_fd, planes->planes[i]);
+		igt_assert(plane);
+
+		if (plane->possible_crtcs & (1 << crtc_idx)) {
+			enum plane_type type;
+
+			type = universal ? get_plane_type(plane->plane_id) :
+					   PLANE_OVERLAY;
+			igt_dynamic_f("plane-%d", plane->plane_id)
+				test_one_plane(dpms, plane->plane_id, type);
+		}
+		drmModeFreePlane(plane);
+	}
+	drmModeFreePlaneResources(planes);
+
+	igt_assert_eq(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES,
+				      1), 0);
+}
+
+static void fences_subtest(bool dpms)
+{
+	int i;
+	uint32_t *buf_ptr;
+	uint32_t tiling = false, swizzle;
+	struct modeset_params params;
+
+	disable_all_screens_and_wait(&ms_data);
+
+	igt_require(default_mode_params);
+	params.crtc_id = default_mode_params->crtc_id;
+	params.connector_id = default_mode_params->connector_id;
+	params.mode = default_mode_params->mode;
+	igt_create_fb(drm_fd, params.mode->hdisplay, params.mode->vdisplay,
+		      DRM_FORMAT_XRGB8888, I915_FORMAT_MOD_X_TILED,
+		      &params.fb);
+
+	/* Even though we passed "true" as the tiling argument, double-check
+	 * that the fb is really tiled. */
+	gem_get_tiling(drm_fd, params.fb.gem_handle, &tiling, &swizzle);
+	igt_assert(tiling);
+
+	buf_ptr = gem_mmap__gtt(drm_fd, params.fb.gem_handle, params.fb.size,
+				PROT_WRITE | PROT_READ);
+	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
+		buf_ptr[i] = i;
+
+	set_mode_for_params_and_wait(&params);
+
+	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
+
+	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
+		igt_assert_eq(buf_ptr[i], i);
+	igt_assert(wait_for_suspended());
+
+	if (dpms) {
+		drmModeConnectorPtr c = NULL;
+
+		for (i = 0; i < ms_data.res->count_connectors; i++)
+			if (ms_data.connectors[i]->connector_id ==
+			    params.connector_id)
+				c = ms_data.connectors[i];
+		igt_assert(c);
+
+		kmstest_set_connector_dpms(drm_fd, c, DRM_MODE_DPMS_ON);
+	} else {
+		set_mode_for_params(&params);
+	}
+	igt_assert(wait_for_active());
+
+	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
+		igt_assert_eq(buf_ptr[i], i);
+
+	igt_assert(munmap(buf_ptr, params.fb.size) == 0);
+}
+
+static void pm_test_tiling(void)
+{
+	uint32_t *handles;
+	uint8_t **gem_bufs;
+
+	int max_gem_objs = 0;
+	uint8_t off_bit = 14;
+	uint32_t gtt_obj_max_size = (256 * 1024);
+
+	uint32_t i, j, k, tiling_modes[3] = {
+		I915_TILING_NONE,
+		I915_TILING_X,
+		I915_TILING_Y,
+	};
+	uint32_t ti, sw;
+
+	/* default stride value */
+	uint32_t stride = 512;
+
+	/* calculate how many objects we can map */
+	for (i = 1 << off_bit; i <= gtt_obj_max_size; i <<= 1, max_gem_objs++)
+		;
+
+	gem_bufs = calloc(max_gem_objs, sizeof(*gem_bufs));
+	handles = calloc(max_gem_objs, sizeof(*handles));
+
+	/* try to set different tiling for each handle */
+	for (i = 0; i < ARRAY_SIZE(tiling_modes); i++) {
+
+		for (j = 0, k = 1 << off_bit;
+		     k <= gtt_obj_max_size; k <<= 1, j++) {
+			handles[j] = gem_create(drm_fd, k);
+			gem_bufs[j] = gem_mmap__gtt(drm_fd, handles[j],
+						    k, PROT_WRITE);
+			memset(gem_bufs[j], 0x0, k);
+		}
+
+		disable_all_screens_and_wait(&ms_data);
+
+		for (j = 0; j < max_gem_objs; j++) {
+			gem_set_tiling(drm_fd, handles[j],
+					tiling_modes[i], stride);
+			gem_get_tiling(drm_fd, handles[j], &ti, &sw);
+			igt_assert(tiling_modes[i] == ti);
+		}
+
+		enable_one_screen_and_wait(&ms_data);
+
+		for (j = 0, k = 1 << off_bit;
+		     k <= gtt_obj_max_size; k <<= 1, j++) {
+			igt_assert(munmap(gem_bufs[j], k) == 0);
+			gem_close(drm_fd, handles[j]);
+		}
+	}
+
+	free(gem_bufs);
+	free(handles);
+}
+
+static void pm_test_caching(void)
+{
+	uint32_t handle;
+	uint8_t *gem_buf;
+
+	uint32_t i;
+	uint32_t default_cache_level;
+	uint32_t gtt_obj_max_size = (16 * 1024);
+	uint32_t cache_levels[3] = {
+		I915_CACHING_NONE,
+		I915_CACHING_CACHED,            /* LLC caching */
+		I915_CACHING_DISPLAY,           /* eDRAM caching */
+	};
+
+	disable_all_screens(&ms_data);
+
+	handle = gem_create(drm_fd, gtt_obj_max_size);
+	default_cache_level = gem_get_caching(drm_fd, handle);
+	gem_buf = gem_mmap__gtt(drm_fd, handle, gtt_obj_max_size, PROT_WRITE);
+
+	for (i = 0; i < ARRAY_SIZE(cache_levels); i++) {
+		igt_assert(wait_for_suspended());
+		if (igt_has_set_caching(intel_get_drm_devid(drm_fd)))
+			gem_set_caching(drm_fd, handle, default_cache_level);
+		/* Ensure we bind the vma into the GGTT */
+		memset(gem_buf, 16 << i, gtt_obj_max_size);
+
+		/* Now try changing the cache-level on the bound object.
+		 * This will either unlikely unbind the object from the GGTT,
+		 * or more likely just change the PTEs inside the GGTT. Either
+		 * way the driver must take the rpm wakelock around the GSM
+		 * access.
+		 */
+		igt_debug("Setting cache level %u\n", cache_levels[i]);
+		igt_assert(wait_for_suspended());
+		if (igt_has_set_caching(intel_get_drm_devid(drm_fd)))
+			gem_set_caching(drm_fd, handle, cache_levels[i]);
+	}
+
+	igt_assert(munmap(gem_buf, gtt_obj_max_size) == 0);
+	gem_close(drm_fd, handle);
+}
+
+int rounds = 10;
+bool stay = false;
+
+static int opt_handler(int opt, int opt_index, void *data)
+{
+	switch (opt) {
+	case 'l':
+		rounds = 50;
+		break;
+	case 's':
+		stay = true;
+		break;
+	default:
+		return IGT_OPT_HANDLER_ERROR;
+	}
+
+	return IGT_OPT_HANDLER_SUCCESS;
+}
+
+const char *help_str =
+	"  --stress\t\tMake the stress-tests more stressful.\n"
+	"  --stay\t\tDisable all screen and try to go into runtime pm. Useful for debugging.";
+static struct option long_options[] = {
+	{"stress", 0, 0, 'l'},
+	{"stay", 0, 0, 's'},
+	{ 0, 0, 0, 0 }
+};
+
+igt_main_args("", long_options, help_str, opt_handler, NULL)
+{
+	igt_subtest("basic-rte") {
+		igt_assert(setup_environment());
+		basic_subtest();
+	}
+
+	igt_fixture {
+		igt_require(setup_environment());
+	}
+
+	if (stay)
+		igt_subtest("stay")
+			stay_subtest();
+
+	/* Essential things */
+	igt_subtest("drm-resources-equal")
+		drm_resources_equal_subtest();
+	igt_subtest("basic-pci-d3-state")
+		pci_d3_state_subtest();
+
+	/* Basic modeset */
+	igt_subtest("modeset-lpsp")
+		modeset_subtest(SCREEN_TYPE_LPSP, 1, WAIT_STATUS);
+	igt_subtest("modeset-non-lpsp")
+		modeset_subtest(SCREEN_TYPE_NON_LPSP, 1, WAIT_STATUS);
+	igt_subtest("dpms-lpsp")
+		modeset_subtest(SCREEN_TYPE_LPSP, 1, WAIT_STATUS | USE_DPMS);
+	igt_subtest("dpms-non-lpsp")
+		modeset_subtest(SCREEN_TYPE_NON_LPSP, 1, WAIT_STATUS | USE_DPMS);
+
+	/* Planes and cursors */
+	igt_subtest("cursor")
+		cursor_subtest(false);
+	igt_subtest("cursor-dpms")
+		cursor_subtest(true);
+	igt_subtest_with_dynamic("legacy-planes")
+		planes_subtest(false, false);
+	igt_subtest_with_dynamic("legacy-planes-dpms")
+		planes_subtest(false, true);
+	igt_subtest_with_dynamic("universal-planes")
+		planes_subtest(true, false);
+	igt_subtest_with_dynamic("universal-planes-dpms")
+		planes_subtest(true, true);
+
+	/* Misc */
+	igt_subtest("i2c")
+		i2c_subtest();
+	igt_subtest("dpms-mode-unset-lpsp")
+		dpms_mode_unset_subtest(SCREEN_TYPE_LPSP);
+	igt_subtest("dpms-mode-unset-non-lpsp")
+		dpms_mode_unset_subtest(SCREEN_TYPE_NON_LPSP);
+	igt_subtest("fences") {
+		gem_require_mappable_ggtt(drm_fd);
+		fences_subtest(false);
+	}
+	igt_subtest("fences-dpms") {
+		gem_require_mappable_ggtt(drm_fd);
+		fences_subtest(true);
+	}
+	igt_subtest("pc8-residency")
+		pc8_residency_subtest();
+
+	/* Modeset stress */
+	igt_subtest("modeset-lpsp-stress")
+		modeset_subtest(SCREEN_TYPE_LPSP, rounds, WAIT_STATUS);
+	igt_subtest("modeset-non-lpsp-stress")
+		modeset_subtest(SCREEN_TYPE_NON_LPSP, rounds, WAIT_STATUS);
+	igt_subtest("modeset-lpsp-stress-no-wait")
+		modeset_subtest(SCREEN_TYPE_LPSP, rounds, DONT_WAIT);
+	igt_subtest("modeset-non-lpsp-stress-no-wait")
+		modeset_subtest(SCREEN_TYPE_NON_LPSP, rounds, DONT_WAIT);
+	igt_subtest("modeset-pc8-residency-stress")
+		modeset_subtest(SCREEN_TYPE_ANY, rounds, WAIT_PC8_RES);
+	igt_subtest("modeset-stress-extra-wait")
+		modeset_subtest(SCREEN_TYPE_ANY, rounds,
+				WAIT_STATUS | WAIT_EXTRA);
+
+	/* System suspend */
+	igt_subtest("system-suspend-modeset")
+		system_suspend_modeset_subtest();
+
+	/* power-wake reference tests */
+	igt_subtest("pm-tiling") {
+		gem_require_mappable_ggtt(drm_fd);
+		pm_test_tiling();
+	}
+	igt_subtest("pm-caching") {
+		gem_require_mappable_ggtt(drm_fd);
+		pm_test_caching();
+	}
+
+	igt_fixture {
+		teardown_environment();
+		forcewake_put(&ms_data);
+	}
+
+	igt_subtest("module-reload") {
+		struct pci_device *pci_dev;
+
+		igt_i915_driver_unload();
+
+		igt_kmsg(KMSG_INFO "Reloading i915 as normal\n");
+		igt_assert_eq(igt_i915_driver_load("mmio_debug=-1"), 0);
+
+		igt_assert(setup_environment());
+		pci_dev = igt_device_get_pci_device(drm_fd);
+		igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
+		if (enable_one_screen_with_type(&ms_data, SCREEN_TYPE_ANY))
+			drm_resources_equal_subtest();
+		teardown_environment();
+
+		/* Remove our mmio_debugging module */
+		igt_i915_driver_unload();
+	}
+}
diff --git a/tests/meson.build b/tests/meson.build
index 974cb433b..732f4bda4 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -263,6 +263,7 @@ intel_kms_progs = [
 	'kms_pm_backlight',
 	'kms_pm_dc',
 	'kms_pm_lpsp',
+	'kms_pm_rpm',
 	'kms_psr',
 	'kms_psr2_sf',
 	'kms_psr2_su',
-- 
2.40.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [igt-dev] ✓ CI.xeBAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2)
  2023-09-26 11:04 [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem
@ 2023-09-26 12:36 ` Patchwork
  2023-09-26 12:42 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-09-26 12:36 UTC (permalink / raw)
  To: Bhanuprakash Modem; +Cc: igt-dev

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

== Series Details ==

Series: tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2)
URL   : https://patchwork.freedesktop.org/series/123750/
State : success

== Summary ==

CI Bug Log - changes from XEIGT_7503_BAT -> XEIGTPW_9877_BAT
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  

Participating hosts (4 -> 3)
------------------------------

  Missing    (1): bat-pvc-2 


Changes
-------

  No changes found


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

  * IGT: IGT_7503 -> IGTPW_9877

  IGTPW_9877: 9877
  IGT_7503: 7503
  xe-396-fc8ec3c56efa5c15b630ddc17c89100440fe03ef: fc8ec3c56efa5c15b630ddc17c89100440fe03ef

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9877/index.html

[-- Attachment #2: Type: text/html, Size: 1330 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [igt-dev] ✓ Fi.CI.BAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2)
  2023-09-26 11:04 [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem
  2023-09-26 12:36 ` [igt-dev] ✓ CI.xeBAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2) Patchwork
@ 2023-09-26 12:42 ` Patchwork
  2023-09-26 23:42 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
  2023-09-29 12:15 ` [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm Kamil Konieczny
  3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-09-26 12:42 UTC (permalink / raw)
  To: Bhanuprakash Modem; +Cc: igt-dev

[-- Attachment #1: Type: text/plain, Size: 11332 bytes --]

== Series Details ==

Series: tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2)
URL   : https://patchwork.freedesktop.org/series/123750/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_13681 -> IGTPW_9877
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

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

Participating hosts (41 -> 38)
------------------------------

  Additional (1): bat-dg2-14 
  Missing    (4): fi-kbl-soraka fi-hsw-4770 bat-dg2-9 fi-snb-2520m 

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

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

### IGT changes ###

#### Possible regressions ####

  * {igt@kms_pm_rpm@basic-pci-d3-state} (NEW):
    - {bat-dg2-14}:       NOTRUN -> [INCOMPLETE][1]
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-dg2-14/igt@kms_pm_rpm@basic-pci-d3-state.html

  * {igt@kms_pm_rpm@module-reload} (NEW):
    - bat-adls-5:         NOTRUN -> [WARN][2]
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-adls-5/igt@kms_pm_rpm@module-reload.html
    - fi-apl-guc:         NOTRUN -> [WARN][3]
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-apl-guc/igt@kms_pm_rpm@module-reload.html
    - bat-dg1-5:          NOTRUN -> [WARN][4]
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-dg1-5/igt@kms_pm_rpm@module-reload.html
    - bat-atsm-1:         NOTRUN -> [WARN][5]
   [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-atsm-1/igt@kms_pm_rpm@module-reload.html
    - bat-jsl-3:          NOTRUN -> [WARN][6]
   [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-jsl-3/igt@kms_pm_rpm@module-reload.html
    - fi-glk-j4005:       NOTRUN -> [WARN][7]
   [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-glk-j4005/igt@kms_pm_rpm@module-reload.html
    - bat-adlp-9:         NOTRUN -> [WARN][8]
   [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-adlp-9/igt@kms_pm_rpm@module-reload.html
    - fi-skl-guc:         NOTRUN -> [WARN][9]
   [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-skl-guc/igt@kms_pm_rpm@module-reload.html
    - bat-dg2-11:         NOTRUN -> [WARN][10]
   [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-dg2-11/igt@kms_pm_rpm@module-reload.html
    - fi-cfl-8109u:       NOTRUN -> [WARN][11]
   [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-cfl-8109u/igt@kms_pm_rpm@module-reload.html
    - fi-kbl-8809g:       NOTRUN -> [WARN][12]
   [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-kbl-8809g/igt@kms_pm_rpm@module-reload.html
    - fi-bsw-nick:        NOTRUN -> [WARN][13]
   [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-bsw-nick/igt@kms_pm_rpm@module-reload.html
    - fi-kbl-guc:         NOTRUN -> [WARN][14]
   [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-kbl-guc/igt@kms_pm_rpm@module-reload.html
    - bat-adlm-1:         NOTRUN -> [WARN][15]
   [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-adlm-1/igt@kms_pm_rpm@module-reload.html
    - fi-tgl-1115g4:      NOTRUN -> [WARN][16]
   [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-tgl-1115g4/igt@kms_pm_rpm@module-reload.html
    - fi-bsw-n3050:       NOTRUN -> [WARN][17]
   [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-bsw-n3050/igt@kms_pm_rpm@module-reload.html
    - fi-cfl-guc:         NOTRUN -> [WARN][18]
   [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-cfl-guc/igt@kms_pm_rpm@module-reload.html
    - bat-mtlp-6:         NOTRUN -> [WARN][19]
   [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-mtlp-6/igt@kms_pm_rpm@module-reload.html
    - fi-kbl-x1275:       NOTRUN -> [WARN][20]
   [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-kbl-x1275/igt@kms_pm_rpm@module-reload.html
    - bat-mtlp-8:         NOTRUN -> [WARN][21]
   [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-mtlp-8/igt@kms_pm_rpm@module-reload.html
    - bat-jsl-1:          NOTRUN -> [WARN][22]
   [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-jsl-1/igt@kms_pm_rpm@module-reload.html
    - fi-cfl-8700k:       NOTRUN -> [WARN][23]
   [23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-cfl-8700k/igt@kms_pm_rpm@module-reload.html
    - bat-rpls-1:         NOTRUN -> [WARN][24]
   [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-rpls-1/igt@kms_pm_rpm@module-reload.html
    - bat-kbl-2:          NOTRUN -> [WARN][25]
   [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-kbl-2/igt@kms_pm_rpm@module-reload.html
    - fi-rkl-11600:       NOTRUN -> [WARN][26]
   [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-rkl-11600/igt@kms_pm_rpm@module-reload.html
    - fi-skl-6600u:       NOTRUN -> [WARN][27]
   [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-skl-6600u/igt@kms_pm_rpm@module-reload.html

  
New tests
---------

  New tests have been introduced between CI_DRM_13681 and IGTPW_9877:

### New IGT tests (3) ###

  * igt@kms_pm_rpm@basic-pci-d3-state:
    - Statuses : 1 abort(s) 1 incomplete(s) 26 pass(s) 5 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@basic-rte:
    - Statuses : 26 pass(s) 5 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@module-reload:
    - Statuses : 5 skip(s) 26 warn(s)
    - Exec time: [0.0] s

  

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

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

### IGT changes ###

#### Issues hit ####

  * igt@kms_frontbuffer_tracking@basic:
    - fi-bsw-nick:        [PASS][28] -> [FAIL][29] ([i915#9276])
   [28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/fi-bsw-nick/igt@kms_frontbuffer_tracking@basic.html
   [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-bsw-nick/igt@kms_frontbuffer_tracking@basic.html

  * {igt@kms_pm_rpm@basic-pci-d3-state} (NEW):
    - bat-adln-1:         NOTRUN -> [ABORT][30] ([i915#8668])
   [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-adln-1/igt@kms_pm_rpm@basic-pci-d3-state.html
    - fi-ivb-3770:        NOTRUN -> [SKIP][31] ([fdo#109271]) +2 other tests skip
   [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-ivb-3770/igt@kms_pm_rpm@basic-pci-d3-state.html
    - fi-elk-e7500:       NOTRUN -> [SKIP][32] ([fdo#109271]) +2 other tests skip
   [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-elk-e7500/igt@kms_pm_rpm@basic-pci-d3-state.html
    - fi-ilk-650:         NOTRUN -> [SKIP][33] ([fdo#109271]) +2 other tests skip
   [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-ilk-650/igt@kms_pm_rpm@basic-pci-d3-state.html
    - fi-blb-e6850:       NOTRUN -> [SKIP][34] ([fdo#109271]) +2 other tests skip
   [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-blb-e6850/igt@kms_pm_rpm@basic-pci-d3-state.html

  * {igt@kms_pm_rpm@module-reload} (NEW):
    - fi-pnv-d510:        NOTRUN -> [SKIP][35] ([fdo#109271]) +2 other tests skip
   [35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/fi-pnv-d510/igt@kms_pm_rpm@module-reload.html

  
#### Warnings ####

  * igt@i915_selftest@live@requests:
    - bat-mtlp-8:         [ABORT][36] ([i915#9262]) -> [ABORT][37] ([i915#9414])
   [36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/bat-mtlp-8/igt@i915_selftest@live@requests.html
   [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/bat-mtlp-8/igt@i915_selftest@live@requests.html

  
  {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
  [i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
  [i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
  [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#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#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
  [i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
  [i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
  [i915#5608]: https://gitlab.freedesktop.org/drm/intel/issues/5608
  [i915#7952]: https://gitlab.freedesktop.org/drm/intel/issues/7952
  [i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
  [i915#9262]: https://gitlab.freedesktop.org/drm/intel/issues/9262
  [i915#9276]: https://gitlab.freedesktop.org/drm/intel/issues/9276
  [i915#9414]: https://gitlab.freedesktop.org/drm/intel/issues/9414


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

  * CI: CI-20190529 -> None
  * IGT: IGT_7503 -> IGTPW_9877

  CI-20190529: 20190529
  CI_DRM_13681: b57407d0de043fc22b000a941a404ab103849e06 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_9877: 9877
  IGT_7503: 7503


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

+igt@kms_pm_rpm@basic-pci-d3-state
+igt@kms_pm_rpm@basic-rte
+igt@kms_pm_rpm@cursor
+igt@kms_pm_rpm@cursor-dpms
+igt@kms_pm_rpm@dpms-lpsp
+igt@kms_pm_rpm@dpms-mode-unset-lpsp
+igt@kms_pm_rpm@dpms-mode-unset-non-lpsp
+igt@kms_pm_rpm@dpms-non-lpsp
+igt@kms_pm_rpm@drm-resources-equal
+igt@kms_pm_rpm@fences
+igt@kms_pm_rpm@fences-dpms
+igt@kms_pm_rpm@i2c
+igt@kms_pm_rpm@legacy-planes
+igt@kms_pm_rpm@legacy-planes-dpms
+igt@kms_pm_rpm@modeset-lpsp
+igt@kms_pm_rpm@modeset-lpsp-stress
+igt@kms_pm_rpm@modeset-lpsp-stress-no-wait
+igt@kms_pm_rpm@modeset-non-lpsp
+igt@kms_pm_rpm@modeset-non-lpsp-stress
+igt@kms_pm_rpm@modeset-non-lpsp-stress-no-wait
+igt@kms_pm_rpm@modeset-pc8-residency-stress
+igt@kms_pm_rpm@modeset-stress-extra-wait
+igt@kms_pm_rpm@module-reload
+igt@kms_pm_rpm@pc8-residency
+igt@kms_pm_rpm@pm-caching
+igt@kms_pm_rpm@pm-tiling
+igt@kms_pm_rpm@system-suspend-modeset
+igt@kms_pm_rpm@universal-planes
+igt@kms_pm_rpm@universal-planes-dpms
-igt@i915_pm_rpm@basic-pci-d3-state
-igt@i915_pm_rpm@basic-rte
-igt@i915_pm_rpm@cursor
-igt@i915_pm_rpm@cursor-dpms
-igt@i915_pm_rpm@dpms-lpsp
-igt@i915_pm_rpm@dpms-mode-unset-lpsp
-igt@i915_pm_rpm@dpms-mode-unset-non-lpsp
-igt@i915_pm_rpm@dpms-non-lpsp
-igt@i915_pm_rpm@drm-resources-equal
-igt@i915_pm_rpm@fences
-igt@i915_pm_rpm@fences-dpms
-igt@i915_pm_rpm@i2c
-igt@i915_pm_rpm@legacy-planes
-igt@i915_pm_rpm@legacy-planes-dpms
-igt@i915_pm_rpm@modeset-lpsp
-igt@i915_pm_rpm@modeset-lpsp-stress
-igt@i915_pm_rpm@modeset-lpsp-stress-no-wait
-igt@i915_pm_rpm@modeset-non-lpsp
-igt@i915_pm_rpm@modeset-non-lpsp-stress
-igt@i915_pm_rpm@modeset-non-lpsp-stress-no-wait
-igt@i915_pm_rpm@modeset-pc8-residency-stress
-igt@i915_pm_rpm@modeset-stress-extra-wait
-igt@i915_pm_rpm@pc8-residency
-igt@i915_pm_rpm@pm-caching
-igt@i915_pm_rpm@pm-tiling
-igt@i915_pm_rpm@system-suspend-modeset
-igt@i915_pm_rpm@universal-planes
-igt@i915_pm_rpm@universal-planes-dpms

== Logs ==

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

[-- Attachment #2: Type: text/html, Size: 12174 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [igt-dev] ✗ Fi.CI.IGT: failure for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2)
  2023-09-26 11:04 [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem
  2023-09-26 12:36 ` [igt-dev] ✓ CI.xeBAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2) Patchwork
  2023-09-26 12:42 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
@ 2023-09-26 23:42 ` Patchwork
  2023-09-29 12:15 ` [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm Kamil Konieczny
  3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-09-26 23:42 UTC (permalink / raw)
  To: Modem, Bhanuprakash; +Cc: igt-dev

[-- Attachment #1: Type: text/plain, Size: 99364 bytes --]

== Series Details ==

Series: tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2)
URL   : https://patchwork.freedesktop.org/series/123750/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_13681_full -> IGTPW_9877_full
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with IGTPW_9877_full absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in IGTPW_9877_full, please notify your bug team (lgci.bug.filing@intel.com) 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_9877/index.html

Participating hosts (9 -> 9)
------------------------------

  No changes in participating hosts

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

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

### IGT changes ###

#### Possible regressions ####

  * igt@kms_cursor_crc@cursor-alpha-transparent@pipe-d-edp-1:
    - shard-mtlp:         NOTRUN -> [FAIL][1] +1 other test fail
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@kms_cursor_crc@cursor-alpha-transparent@pipe-d-edp-1.html

  * {igt@kms_pm_rpm@dpms-lpsp} (NEW):
    - shard-dg2:          NOTRUN -> [SKIP][2] +3 other tests skip
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@kms_pm_rpm@dpms-lpsp.html
    - shard-dg1:          NOTRUN -> [SKIP][3] +8 other tests skip
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-14/igt@kms_pm_rpm@dpms-lpsp.html

  * {igt@kms_pm_rpm@dpms-non-lpsp} (NEW):
    - shard-tglu:         NOTRUN -> [SKIP][4] +6 other tests skip
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-8/igt@kms_pm_rpm@dpms-non-lpsp.html
    - shard-mtlp:         NOTRUN -> [SKIP][5] +5 other tests skip
   [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@kms_pm_rpm@dpms-non-lpsp.html

  * {igt@kms_pm_rpm@i2c} (NEW):
    - shard-dg2:          NOTRUN -> [FAIL][6]
   [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@kms_pm_rpm@i2c.html

  * {igt@kms_pm_rpm@modeset-lpsp-stress} (NEW):
    - shard-rkl:          NOTRUN -> [SKIP][7] +7 other tests skip
   [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_pm_rpm@modeset-lpsp-stress.html

  
#### Warnings ####

  * igt@kms_rotation_crc@primary-y-tiled-reflect-x-0:
    - shard-rkl:          [INCOMPLETE][8] ([i915#8875]) -> [INCOMPLETE][9]
   [8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-rkl-6/igt@kms_rotation_crc@primary-y-tiled-reflect-x-0.html
   [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_rotation_crc@primary-y-tiled-reflect-x-0.html

  
New tests
---------

  New tests have been introduced between CI_DRM_13681_full and IGTPW_9877_full:

### New IGT tests (28) ###

  * igt@kms_pm_rpm@basic-pci-d3-state:
    - Statuses : 7 pass(s) 1 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@basic-rte:
    - Statuses : 6 pass(s) 1 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@cursor:
    - Statuses : 6 pass(s) 1 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@cursor-dpms:
    - Statuses : 7 pass(s) 1 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@dpms-lpsp:
    - Statuses : 1 pass(s) 5 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@dpms-mode-unset-lpsp:
    - Statuses : 1 pass(s) 6 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@dpms-mode-unset-non-lpsp:
    - Statuses : 4 pass(s) 4 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@dpms-non-lpsp:
    - Statuses : 3 pass(s) 4 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@drm-resources-equal:
    - Statuses : 5 pass(s) 1 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@fences:
    - Statuses : 4 pass(s) 4 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@fences-dpms:
    - Statuses : 4 pass(s) 4 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@i2c:
    - Statuses : 1 fail(s) 5 pass(s) 1 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@legacy-planes:
    - Statuses :
    - Exec time: [None] s

  * igt@kms_pm_rpm@legacy-planes-dpms:
    - Statuses :
    - Exec time: [None] s

  * igt@kms_pm_rpm@modeset-lpsp:
    - Statuses : 1 pass(s) 5 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@modeset-lpsp-stress:
    - Statuses : 1 pass(s) 5 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@modeset-lpsp-stress-no-wait:
    - Statuses : 2 pass(s) 4 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@modeset-non-lpsp:
    - Statuses : 3 pass(s) 5 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@modeset-non-lpsp-stress:
    - Statuses : 4 pass(s) 4 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@modeset-non-lpsp-stress-no-wait:
    - Statuses : 5 pass(s) 3 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@modeset-pc8-residency-stress:
    - Statuses : 7 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@modeset-stress-extra-wait:
    - Statuses :
    - Exec time: [None] s

  * igt@kms_pm_rpm@pc8-residency:
    - Statuses : 7 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@pm-caching:
    - Statuses : 4 pass(s) 4 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@pm-tiling:
    - Statuses : 4 pass(s) 4 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@system-suspend-modeset:
    - Statuses : 1 abort(s) 5 pass(s) 1 skip(s)
    - Exec time: [0.0] s

  * igt@kms_pm_rpm@universal-planes:
    - Statuses :
    - Exec time: [None] s

  * igt@kms_pm_rpm@universal-planes-dpms:
    - Statuses :
    - Exec time: [None] s

  

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

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

### IGT changes ###

#### Issues hit ####

  * igt@api_intel_bb@blit-reloc-keep-cache:
    - shard-rkl:          NOTRUN -> [SKIP][10] ([i915#8411])
   [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@api_intel_bb@blit-reloc-keep-cache.html

  * igt@api_intel_bb@blit-reloc-purge-cache:
    - shard-mtlp:         NOTRUN -> [SKIP][11] ([i915#8411]) +1 other test skip
   [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@api_intel_bb@blit-reloc-purge-cache.html

  * igt@debugfs_test@basic-hwmon:
    - shard-mtlp:         NOTRUN -> [SKIP][12] ([i915#9318])
   [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@debugfs_test@basic-hwmon.html
    - shard-rkl:          NOTRUN -> [SKIP][13] ([i915#9318])
   [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@debugfs_test@basic-hwmon.html

  * igt@device_reset@unbind-cold-reset-rebind:
    - shard-mtlp:         NOTRUN -> [SKIP][14] ([i915#7701])
   [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@device_reset@unbind-cold-reset-rebind.html
    - shard-dg2:          NOTRUN -> [SKIP][15] ([i915#7701])
   [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@device_reset@unbind-cold-reset-rebind.html

  * igt@drm_fdinfo@most-busy-check-all@vcs0:
    - shard-mtlp:         NOTRUN -> [SKIP][16] ([i915#8414]) +6 other tests skip
   [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@drm_fdinfo@most-busy-check-all@vcs0.html

  * igt@drm_fdinfo@most-busy-idle-check-all@vecs1:
    - shard-dg2:          NOTRUN -> [SKIP][17] ([i915#8414]) +9 other tests skip
   [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@drm_fdinfo@most-busy-idle-check-all@vecs1.html

  * igt@gem_caching@reads:
    - shard-mtlp:         NOTRUN -> [SKIP][18] ([i915#4873])
   [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@gem_caching@reads.html

  * igt@gem_ccs@suspend-resume:
    - shard-rkl:          NOTRUN -> [SKIP][19] ([i915#9323]) +1 other test skip
   [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-6/igt@gem_ccs@suspend-resume.html
    - shard-mtlp:         NOTRUN -> [SKIP][20] ([i915#9323]) +1 other test skip
   [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@gem_ccs@suspend-resume.html

  * igt@gem_ccs@suspend-resume@linear-compressed-compfmt0-smem-lmem0:
    - shard-dg2:          [PASS][21] -> [INCOMPLETE][22] ([i915#7297])
   [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-11/igt@gem_ccs@suspend-resume@linear-compressed-compfmt0-smem-lmem0.html
   [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@gem_ccs@suspend-resume@linear-compressed-compfmt0-smem-lmem0.html

  * igt@gem_create@create-ext-cpu-access-big:
    - shard-mtlp:         NOTRUN -> [SKIP][23] ([i915#6335])
   [23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-4/igt@gem_create@create-ext-cpu-access-big.html

  * igt@gem_ctx_exec@basic-nohangcheck:
    - shard-tglu:         [PASS][24] -> [FAIL][25] ([i915#6268])
   [24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-tglu-5/igt@gem_ctx_exec@basic-nohangcheck.html
   [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-10/igt@gem_ctx_exec@basic-nohangcheck.html

  * igt@gem_ctx_param@set-priority-not-supported:
    - shard-mtlp:         NOTRUN -> [SKIP][26] ([fdo#109314])
   [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@gem_ctx_param@set-priority-not-supported.html

  * igt@gem_ctx_persistence@heartbeat-hostile:
    - shard-mtlp:         NOTRUN -> [SKIP][27] ([i915#8555])
   [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@gem_ctx_persistence@heartbeat-hostile.html

  * igt@gem_ctx_persistence@heartbeat-many:
    - shard-dg2:          NOTRUN -> [SKIP][28] ([i915#8555])
   [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@gem_ctx_persistence@heartbeat-many.html

  * igt@gem_ctx_persistence@smoketest:
    - shard-snb:          NOTRUN -> [SKIP][29] ([fdo#109271] / [i915#1099]) +1 other test skip
   [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-snb5/igt@gem_ctx_persistence@smoketest.html

  * igt@gem_ctx_sseu@engines:
    - shard-rkl:          NOTRUN -> [SKIP][30] ([i915#280])
   [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-4/igt@gem_ctx_sseu@engines.html

  * igt@gem_ctx_sseu@mmap-args:
    - shard-mtlp:         NOTRUN -> [SKIP][31] ([i915#280])
   [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@gem_ctx_sseu@mmap-args.html

  * igt@gem_eio@hibernate:
    - shard-dg2:          [PASS][32] -> [ABORT][33] ([i915#7975] / [i915#8213])
   [32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-11/igt@gem_eio@hibernate.html
   [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@gem_eio@hibernate.html

  * igt@gem_eio@reset-stress:
    - shard-dg1:          [PASS][34] -> [FAIL][35] ([i915#5784])
   [34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg1-15/igt@gem_eio@reset-stress.html
   [35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-15/igt@gem_eio@reset-stress.html

  * igt@gem_exec_balancer@bonded-dual:
    - shard-mtlp:         NOTRUN -> [SKIP][36] ([i915#4771]) +1 other test skip
   [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@gem_exec_balancer@bonded-dual.html

  * igt@gem_exec_balancer@bonded-sync:
    - shard-dg2:          NOTRUN -> [SKIP][37] ([i915#4771]) +1 other test skip
   [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@gem_exec_balancer@bonded-sync.html

  * igt@gem_exec_balancer@hog:
    - shard-mtlp:         NOTRUN -> [SKIP][38] ([i915#4812])
   [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@gem_exec_balancer@hog.html

  * igt@gem_exec_balancer@parallel-balancer:
    - shard-rkl:          NOTRUN -> [SKIP][39] ([i915#4525])
   [39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-4/igt@gem_exec_balancer@parallel-balancer.html

  * igt@gem_exec_capture@capture-invisible@lmem0:
    - shard-dg2:          NOTRUN -> [SKIP][40] ([i915#6334]) +1 other test skip
   [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@gem_exec_capture@capture-invisible@lmem0.html

  * igt@gem_exec_capture@pi@vcs0:
    - shard-mtlp:         NOTRUN -> [FAIL][41] ([i915#4475])
   [41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@gem_exec_capture@pi@vcs0.html

  * igt@gem_exec_fair@basic-none-rrul:
    - shard-dg2:          NOTRUN -> [SKIP][42] ([i915#3539] / [i915#4852]) +2 other tests skip
   [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@gem_exec_fair@basic-none-rrul.html
    - shard-dg1:          NOTRUN -> [SKIP][43] ([i915#3539] / [i915#4852])
   [43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-14/igt@gem_exec_fair@basic-none-rrul.html

  * igt@gem_exec_fair@basic-none-solo@rcs0:
    - shard-rkl:          NOTRUN -> [FAIL][44] ([i915#2842])
   [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-4/igt@gem_exec_fair@basic-none-solo@rcs0.html

  * igt@gem_exec_fair@basic-pace:
    - shard-mtlp:         NOTRUN -> [SKIP][45] ([i915#4473] / [i915#4771]) +3 other tests skip
   [45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@gem_exec_fair@basic-pace.html

  * igt@gem_exec_fair@basic-pace-solo:
    - shard-mtlp:         NOTRUN -> [SKIP][46] ([i915#4473])
   [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@gem_exec_fair@basic-pace-solo.html

  * igt@gem_exec_fair@basic-pace@rcs0:
    - shard-rkl:          [PASS][47] -> [FAIL][48] ([i915#2842])
   [47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-rkl-2/igt@gem_exec_fair@basic-pace@rcs0.html
   [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-6/igt@gem_exec_fair@basic-pace@rcs0.html

  * igt@gem_exec_fair@basic-throttle:
    - shard-dg2:          NOTRUN -> [SKIP][49] ([i915#3539]) +1 other test skip
   [49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-10/igt@gem_exec_fair@basic-throttle.html

  * igt@gem_exec_gttfill@all-engines:
    - shard-snb:          [PASS][50] -> [ABORT][51] ([i915#8865])
   [50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-snb2/igt@gem_exec_gttfill@all-engines.html
   [51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-snb7/igt@gem_exec_gttfill@all-engines.html

  * igt@gem_exec_gttfill@multigpu-basic:
    - shard-mtlp:         NOTRUN -> [SKIP][52] ([i915#7697]) +1 other test skip
   [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@gem_exec_gttfill@multigpu-basic.html

  * igt@gem_exec_params@rsvd2-dirt:
    - shard-dg2:          NOTRUN -> [SKIP][53] ([fdo#109283] / [i915#5107])
   [53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@gem_exec_params@rsvd2-dirt.html

  * igt@gem_exec_params@secure-non-master:
    - shard-mtlp:         NOTRUN -> [SKIP][54] ([fdo#112283])
   [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@gem_exec_params@secure-non-master.html

  * igt@gem_exec_reloc@basic-cpu-read-noreloc:
    - shard-dg1:          NOTRUN -> [SKIP][55] ([i915#3281]) +1 other test skip
   [55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-19/igt@gem_exec_reloc@basic-cpu-read-noreloc.html

  * igt@gem_exec_reloc@basic-gtt-noreloc:
    - shard-mtlp:         NOTRUN -> [SKIP][56] ([i915#3281]) +15 other tests skip
   [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@gem_exec_reloc@basic-gtt-noreloc.html

  * igt@gem_exec_reloc@basic-write-read:
    - shard-rkl:          NOTRUN -> [SKIP][57] ([i915#3281]) +7 other tests skip
   [57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-6/igt@gem_exec_reloc@basic-write-read.html

  * igt@gem_exec_reloc@basic-write-wc-noreloc:
    - shard-dg2:          NOTRUN -> [SKIP][58] ([i915#3281]) +7 other tests skip
   [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@gem_exec_reloc@basic-write-wc-noreloc.html

  * igt@gem_exec_suspend@basic-s4-devices@smem:
    - shard-tglu:         [PASS][59] -> [ABORT][60] ([i915#7975] / [i915#8213])
   [59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-tglu-2/igt@gem_exec_suspend@basic-s4-devices@smem.html
   [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-10/igt@gem_exec_suspend@basic-s4-devices@smem.html

  * igt@gem_fenced_exec_thrash@too-many-fences:
    - shard-mtlp:         NOTRUN -> [SKIP][61] ([i915#4860]) +3 other tests skip
   [61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-4/igt@gem_fenced_exec_thrash@too-many-fences.html
    - shard-dg2:          NOTRUN -> [SKIP][62] ([i915#4860]) +3 other tests skip
   [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@gem_fenced_exec_thrash@too-many-fences.html
    - shard-dg1:          NOTRUN -> [SKIP][63] ([i915#4860])
   [63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-16/igt@gem_fenced_exec_thrash@too-many-fences.html

  * igt@gem_huc_copy@huc-copy:
    - shard-apl:          NOTRUN -> [SKIP][64] ([fdo#109271] / [i915#2190])
   [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-apl2/igt@gem_huc_copy@huc-copy.html

  * igt@gem_lmem_swapping@heavy-verify-multi:
    - shard-mtlp:         NOTRUN -> [SKIP][65] ([i915#4613]) +8 other tests skip
   [65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-8/igt@gem_lmem_swapping@heavy-verify-multi.html

  * igt@gem_lmem_swapping@parallel-random-verify:
    - shard-rkl:          NOTRUN -> [SKIP][66] ([i915#4613]) +1 other test skip
   [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-6/igt@gem_lmem_swapping@parallel-random-verify.html

  * igt@gem_lmem_swapping@smem-oom@lmem0:
    - shard-dg1:          [PASS][67] -> [TIMEOUT][68] ([i915#5493])
   [67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg1-16/igt@gem_lmem_swapping@smem-oom@lmem0.html
   [68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-19/igt@gem_lmem_swapping@smem-oom@lmem0.html

  * igt@gem_media_fill@media-fill:
    - shard-dg2:          NOTRUN -> [SKIP][69] ([i915#8289])
   [69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@gem_media_fill@media-fill.html

  * igt@gem_mmap_gtt@basic-write-read:
    - shard-mtlp:         NOTRUN -> [SKIP][70] ([i915#4077]) +27 other tests skip
   [70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-1/igt@gem_mmap_gtt@basic-write-read.html

  * igt@gem_mmap_gtt@coherency:
    - shard-rkl:          NOTRUN -> [SKIP][71] ([fdo#111656])
   [71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-4/igt@gem_mmap_gtt@coherency.html

  * igt@gem_mmap_wc@read-write:
    - shard-mtlp:         NOTRUN -> [SKIP][72] ([i915#4083]) +6 other tests skip
   [72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@gem_mmap_wc@read-write.html
    - shard-dg2:          NOTRUN -> [SKIP][73] ([i915#4083]) +2 other tests skip
   [73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@gem_mmap_wc@read-write.html

  * igt@gem_partial_pwrite_pread@writes-after-reads-snoop:
    - shard-dg1:          NOTRUN -> [SKIP][74] ([i915#3282])
   [74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-17/igt@gem_partial_pwrite_pread@writes-after-reads-snoop.html

  * igt@gem_pread@snoop:
    - shard-dg2:          NOTRUN -> [SKIP][75] ([i915#3282]) +5 other tests skip
   [75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@gem_pread@snoop.html

  * igt@gem_pxp@create-regular-context-2:
    - shard-dg2:          NOTRUN -> [SKIP][76] ([i915#4270]) +1 other test skip
   [76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@gem_pxp@create-regular-context-2.html

  * igt@gem_pxp@reject-modify-context-protection-off-1:
    - shard-tglu:         NOTRUN -> [SKIP][77] ([i915#4270])
   [77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-3/igt@gem_pxp@reject-modify-context-protection-off-1.html

  * igt@gem_pxp@reject-modify-context-protection-off-2:
    - shard-dg1:          NOTRUN -> [SKIP][78] ([i915#4270])
   [78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-17/igt@gem_pxp@reject-modify-context-protection-off-2.html

  * igt@gem_pxp@verify-pxp-key-change-after-suspend-resume:
    - shard-rkl:          NOTRUN -> [SKIP][79] ([i915#4270]) +2 other tests skip
   [79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@gem_pxp@verify-pxp-key-change-after-suspend-resume.html

  * igt@gem_pxp@verify-pxp-stale-buf-optout-execution:
    - shard-mtlp:         NOTRUN -> [SKIP][80] ([i915#4270]) +4 other tests skip
   [80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-4/igt@gem_pxp@verify-pxp-stale-buf-optout-execution.html

  * igt@gem_readwrite@new-obj:
    - shard-mtlp:         NOTRUN -> [SKIP][81] ([i915#3282]) +6 other tests skip
   [81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@gem_readwrite@new-obj.html

  * igt@gem_render_copy@y-tiled-ccs-to-yf-tiled:
    - shard-mtlp:         NOTRUN -> [SKIP][82] ([i915#8428]) +6 other tests skip
   [82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@gem_render_copy@y-tiled-ccs-to-yf-tiled.html

  * igt@gem_render_tiled_blits@basic:
    - shard-dg1:          NOTRUN -> [SKIP][83] ([i915#4079])
   [83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-15/igt@gem_render_tiled_blits@basic.html

  * igt@gem_set_tiling_vs_blt@tiled-to-untiled:
    - shard-mtlp:         NOTRUN -> [SKIP][84] ([i915#4079]) +2 other tests skip
   [84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-1/igt@gem_set_tiling_vs_blt@tiled-to-untiled.html

  * igt@gem_set_tiling_vs_pwrite:
    - shard-rkl:          NOTRUN -> [SKIP][85] ([i915#3282]) +3 other tests skip
   [85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-6/igt@gem_set_tiling_vs_pwrite.html

  * igt@gem_softpin@evict-snoop-interruptible:
    - shard-dg2:          NOTRUN -> [SKIP][86] ([i915#4885])
   [86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@gem_softpin@evict-snoop-interruptible.html
    - shard-rkl:          NOTRUN -> [SKIP][87] ([fdo#109312])
   [87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@gem_softpin@evict-snoop-interruptible.html

  * igt@gem_unfence_active_buffers:
    - shard-mtlp:         NOTRUN -> [SKIP][88] ([i915#4879])
   [88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-4/igt@gem_unfence_active_buffers.html

  * igt@gem_userptr_blits@dmabuf-sync:
    - shard-dg1:          NOTRUN -> [SKIP][89] ([i915#3297])
   [89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-14/igt@gem_userptr_blits@dmabuf-sync.html

  * igt@gem_userptr_blits@dmabuf-unsync:
    - shard-dg2:          NOTRUN -> [SKIP][90] ([i915#3297]) +3 other tests skip
   [90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@gem_userptr_blits@dmabuf-unsync.html

  * igt@gem_userptr_blits@mmap-offset-banned@gtt:
    - shard-mtlp:         NOTRUN -> [SKIP][91] ([i915#3297]) +5 other tests skip
   [91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@gem_userptr_blits@mmap-offset-banned@gtt.html

  * igt@gem_userptr_blits@unsync-overlap:
    - shard-rkl:          NOTRUN -> [SKIP][92] ([i915#3297])
   [92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-4/igt@gem_userptr_blits@unsync-overlap.html

  * igt@gem_workarounds@suspend-resume:
    - shard-dg2:          [PASS][93] -> [FAIL][94] ([fdo#103375])
   [93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-6/igt@gem_workarounds@suspend-resume.html
   [94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@gem_workarounds@suspend-resume.html

  * igt@gen9_exec_parse@bb-start-out:
    - shard-rkl:          NOTRUN -> [SKIP][95] ([i915#2527]) +1 other test skip
   [95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@gen9_exec_parse@bb-start-out.html

  * igt@gen9_exec_parse@secure-batches:
    - shard-dg2:          NOTRUN -> [SKIP][96] ([i915#2856])
   [96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@gen9_exec_parse@secure-batches.html

  * igt@gen9_exec_parse@unaligned-jump:
    - shard-mtlp:         NOTRUN -> [SKIP][97] ([i915#2856]) +4 other tests skip
   [97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@gen9_exec_parse@unaligned-jump.html

  * igt@i915_hangman@gt-engine-hang@vcs0:
    - shard-mtlp:         [PASS][98] -> [FAIL][99] ([i915#7069])
   [98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-mtlp-1/igt@i915_hangman@gt-engine-hang@vcs0.html
   [99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@i915_hangman@gt-engine-hang@vcs0.html

  * igt@i915_hwmon@hwmon-read:
    - shard-rkl:          NOTRUN -> [SKIP][100] ([i915#7707])
   [100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@i915_hwmon@hwmon-read.html

  * igt@i915_hwmon@hwmon-write:
    - shard-mtlp:         NOTRUN -> [SKIP][101] ([i915#7707])
   [101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@i915_hwmon@hwmon-write.html

  * igt@i915_module_load@load:
    - shard-mtlp:         NOTRUN -> [SKIP][102] ([i915#6227])
   [102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@i915_module_load@load.html

  * igt@i915_pm_freq_api@freq-reset-multiple:
    - shard-rkl:          NOTRUN -> [SKIP][103] ([i915#8399])
   [103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@i915_pm_freq_api@freq-reset-multiple.html

  * igt@i915_pm_freq_mult@media-freq@gt1:
    - shard-mtlp:         NOTRUN -> [SKIP][104] ([i915#6590]) +1 other test skip
   [104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@i915_pm_freq_mult@media-freq@gt1.html

  * igt@i915_pm_rc6_residency@rc6-idle@rcs0:
    - shard-dg1:          [PASS][105] -> [FAIL][106] ([i915#3591])
   [105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg1-16/igt@i915_pm_rc6_residency@rc6-idle@rcs0.html
   [106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-12/igt@i915_pm_rc6_residency@rc6-idle@rcs0.html

  * igt@i915_pm_rps@basic-api:
    - shard-mtlp:         NOTRUN -> [SKIP][107] ([i915#6621])
   [107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@i915_pm_rps@basic-api.html

  * igt@i915_pm_rps@engine-order:
    - shard-apl:          [PASS][108] -> [FAIL][109] ([i915#6537])
   [108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-apl4/igt@i915_pm_rps@engine-order.html
   [109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-apl7/igt@i915_pm_rps@engine-order.html

  * igt@i915_pm_rps@thresholds-park@gt0:
    - shard-dg2:          NOTRUN -> [SKIP][110] ([i915#8925])
   [110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@i915_pm_rps@thresholds-park@gt0.html

  * igt@i915_pm_rps@thresholds@gt1:
    - shard-mtlp:         NOTRUN -> [SKIP][111] ([i915#8925]) +1 other test skip
   [111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@i915_pm_rps@thresholds@gt1.html

  * igt@i915_pm_sseu@full-enable:
    - shard-mtlp:         NOTRUN -> [SKIP][112] ([i915#8437])
   [112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@i915_pm_sseu@full-enable.html

  * igt@i915_query@query-topology-coherent-slice-mask:
    - shard-dg2:          NOTRUN -> [SKIP][113] ([i915#6188])
   [113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@i915_query@query-topology-coherent-slice-mask.html

  * igt@i915_query@query-topology-known-pci-ids:
    - shard-dg1:          NOTRUN -> [SKIP][114] ([fdo#109303])
   [114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-14/igt@i915_query@query-topology-known-pci-ids.html
    - shard-mtlp:         NOTRUN -> [SKIP][115] ([fdo#109303])
   [115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@i915_query@query-topology-known-pci-ids.html
    - shard-dg2:          NOTRUN -> [SKIP][116] ([fdo#109303])
   [116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@i915_query@query-topology-known-pci-ids.html

  * igt@i915_query@query-topology-unsupported:
    - shard-dg1:          NOTRUN -> [SKIP][117] ([fdo#109302])
   [117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-19/igt@i915_query@query-topology-unsupported.html
    - shard-mtlp:         NOTRUN -> [SKIP][118] ([fdo#109302])
   [118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@i915_query@query-topology-unsupported.html

  * igt@i915_selftest@live@requests:
    - shard-mtlp:         NOTRUN -> [ABORT][119] ([i915#9414])
   [119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-4/igt@i915_selftest@live@requests.html

  * igt@i915_suspend@basic-s3-without-i915:
    - shard-mtlp:         NOTRUN -> [SKIP][120] ([i915#6645])
   [120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@i915_suspend@basic-s3-without-i915.html

  * igt@i915_suspend@sysfs-reader:
    - shard-snb:          NOTRUN -> [DMESG-WARN][121] ([i915#8841]) +4 other tests dmesg-warn
   [121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-snb2/igt@i915_suspend@sysfs-reader.html

  * igt@kms_addfb_basic@addfb25-x-tiled-legacy:
    - shard-mtlp:         NOTRUN -> [SKIP][122] ([i915#4212]) +2 other tests skip
   [122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@kms_addfb_basic@addfb25-x-tiled-legacy.html
    - shard-dg2:          NOTRUN -> [SKIP][123] ([i915#4212])
   [123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_addfb_basic@addfb25-x-tiled-legacy.html

  * igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
    - shard-mtlp:         NOTRUN -> [SKIP][124] ([i915#5190])
   [124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_addfb_basic@addfb25-y-tiled-small-legacy.html

  * igt@kms_async_flips@async-flip-with-page-flip-events@pipe-b-hdmi-a-1-y-rc_ccs:
    - shard-rkl:          NOTRUN -> [SKIP][125] ([i915#8502]) +3 other tests skip
   [125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_async_flips@async-flip-with-page-flip-events@pipe-b-hdmi-a-1-y-rc_ccs.html

  * igt@kms_async_flips@async-flip-with-page-flip-events@pipe-b-hdmi-a-2-4-rc_ccs-cc:
    - shard-dg2:          NOTRUN -> [SKIP][126] ([i915#8709]) +11 other tests skip
   [126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@kms_async_flips@async-flip-with-page-flip-events@pipe-b-hdmi-a-2-4-rc_ccs-cc.html

  * igt@kms_async_flips@crc@pipe-d-edp-1:
    - shard-mtlp:         NOTRUN -> [FAIL][127] ([i915#8247]) +3 other tests fail
   [127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_async_flips@crc@pipe-d-edp-1.html

  * igt@kms_async_flips@test-cursor:
    - shard-mtlp:         NOTRUN -> [SKIP][128] ([i915#6229])
   [128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@kms_async_flips@test-cursor.html

  * igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels:
    - shard-dg1:          NOTRUN -> [SKIP][129] ([i915#1769] / [i915#3555])
   [129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-16/igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels.html

  * igt@kms_big_fb@4-tiled-32bpp-rotate-270:
    - shard-dg1:          NOTRUN -> [SKIP][130] ([i915#4538] / [i915#5286])
   [130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-12/igt@kms_big_fb@4-tiled-32bpp-rotate-270.html

  * igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
    - shard-rkl:          NOTRUN -> [SKIP][131] ([i915#5286]) +1 other test skip
   [131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html

  * igt@kms_big_fb@linear-32bpp-rotate-270:
    - shard-dg2:          NOTRUN -> [SKIP][132] ([fdo#111614]) +3 other tests skip
   [132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-10/igt@kms_big_fb@linear-32bpp-rotate-270.html
    - shard-dg1:          NOTRUN -> [SKIP][133] ([i915#3638])
   [133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-18/igt@kms_big_fb@linear-32bpp-rotate-270.html

  * igt@kms_big_fb@linear-64bpp-rotate-270:
    - shard-mtlp:         NOTRUN -> [SKIP][134] ([fdo#111614]) +6 other tests skip
   [134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-1/igt@kms_big_fb@linear-64bpp-rotate-270.html

  * igt@kms_big_fb@linear-64bpp-rotate-90:
    - shard-rkl:          NOTRUN -> [SKIP][135] ([fdo#111614] / [i915#3638]) +3 other tests skip
   [135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_big_fb@linear-64bpp-rotate-90.html

  * igt@kms_big_fb@y-tiled-addfb-size-offset-overflow:
    - shard-dg2:          NOTRUN -> [SKIP][136] ([i915#5190]) +10 other tests skip
   [136]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_big_fb@y-tiled-addfb-size-offset-overflow.html
    - shard-mtlp:         NOTRUN -> [SKIP][137] ([i915#6187])
   [137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@kms_big_fb@y-tiled-addfb-size-offset-overflow.html

  * igt@kms_big_fb@yf-tiled-32bpp-rotate-90:
    - shard-dg2:          NOTRUN -> [SKIP][138] ([i915#4538] / [i915#5190]) +5 other tests skip
   [138]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_big_fb@yf-tiled-32bpp-rotate-90.html

  * igt@kms_big_fb@yf-tiled-8bpp-rotate-270:
    - shard-mtlp:         NOTRUN -> [SKIP][139] ([fdo#111615]) +15 other tests skip
   [139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-4/igt@kms_big_fb@yf-tiled-8bpp-rotate-270.html

  * igt@kms_big_fb@yf-tiled-addfb-size-offset-overflow:
    - shard-rkl:          NOTRUN -> [SKIP][140] ([fdo#111615])
   [140]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_big_fb@yf-tiled-addfb-size-offset-overflow.html

  * igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180:
    - shard-rkl:          NOTRUN -> [SKIP][141] ([fdo#110723])
   [141]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180.html

  * igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-hflip:
    - shard-dg1:          NOTRUN -> [SKIP][142] ([i915#4538])
   [142]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-15/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-hflip.html

  * igt@kms_big_joiner@2x-modeset:
    - shard-rkl:          NOTRUN -> [SKIP][143] ([i915#2705])
   [143]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-4/igt@kms_big_joiner@2x-modeset.html

  * igt@kms_big_joiner@basic:
    - shard-dg1:          NOTRUN -> [SKIP][144] ([i915#2705])
   [144]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-17/igt@kms_big_joiner@basic.html

  * igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_ccs:
    - shard-dg2:          NOTRUN -> [SKIP][145] ([i915#3689] / [i915#5354]) +10 other tests skip
   [145]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-10/igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_ccs.html

  * igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_ccs:
    - shard-rkl:          NOTRUN -> [SKIP][146] ([i915#3734] / [i915#5354] / [i915#6095]) +3 other tests skip
   [146]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_ccs.html

  * igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
    - shard-dg2:          NOTRUN -> [SKIP][147] ([i915#3689] / [i915#3886] / [i915#5354]) +8 other tests skip
   [147]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html

  * igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_mc_ccs:
    - shard-rkl:          NOTRUN -> [SKIP][148] ([i915#3886] / [i915#5354] / [i915#6095]) +1 other test skip
   [148]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_mc_ccs.html

  * igt@kms_ccs@pipe-b-bad-pixel-format-4_tiled_mtl_rc_ccs_cc:
    - shard-rkl:          NOTRUN -> [SKIP][149] ([i915#5354] / [i915#6095]) +8 other tests skip
   [149]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@kms_ccs@pipe-b-bad-pixel-format-4_tiled_mtl_rc_ccs_cc.html

  * igt@kms_ccs@pipe-c-bad-rotation-90-4_tiled_mtl_mc_ccs:
    - shard-dg2:          NOTRUN -> [SKIP][150] ([i915#5354]) +38 other tests skip
   [150]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_ccs@pipe-c-bad-rotation-90-4_tiled_mtl_mc_ccs.html

  * igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs:
    - shard-mtlp:         NOTRUN -> [SKIP][151] ([i915#3886] / [i915#5354] / [i915#6095]) +20 other tests skip
   [151]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs.html

  * igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_ccs:
    - shard-tglu:         NOTRUN -> [SKIP][152] ([i915#3689] / [i915#5354] / [i915#6095])
   [152]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-9/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_ccs.html

  * igt@kms_ccs@pipe-c-missing-ccs-buffer-4_tiled_mtl_mc_ccs:
    - shard-dg1:          NOTRUN -> [SKIP][153] ([i915#5354] / [i915#6095]) +1 other test skip
   [153]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-17/igt@kms_ccs@pipe-c-missing-ccs-buffer-4_tiled_mtl_mc_ccs.html

  * igt@kms_ccs@pipe-c-missing-ccs-buffer-4_tiled_mtl_rc_ccs_cc:
    - shard-rkl:          NOTRUN -> [SKIP][154] ([i915#5354]) +17 other tests skip
   [154]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_ccs@pipe-c-missing-ccs-buffer-4_tiled_mtl_rc_ccs_cc.html

  * igt@kms_ccs@pipe-d-bad-rotation-90-4_tiled_dg2_mc_ccs:
    - shard-dg1:          NOTRUN -> [SKIP][155] ([i915#3689] / [i915#5354] / [i915#6095]) +4 other tests skip
   [155]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-19/igt@kms_ccs@pipe-d-bad-rotation-90-4_tiled_dg2_mc_ccs.html

  * igt@kms_ccs@pipe-d-random-ccs-data-y_tiled_ccs:
    - shard-mtlp:         NOTRUN -> [SKIP][156] ([i915#5354] / [i915#6095]) +54 other tests skip
   [156]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_ccs@pipe-d-random-ccs-data-y_tiled_ccs.html

  * igt@kms_cdclk@mode-transition-all-outputs:
    - shard-rkl:          NOTRUN -> [SKIP][157] ([i915#3742]) +1 other test skip
   [157]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-4/igt@kms_cdclk@mode-transition-all-outputs.html
    - shard-mtlp:         NOTRUN -> [SKIP][158] ([i915#7213] / [i915#9010])
   [158]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_cdclk@mode-transition-all-outputs.html

  * igt@kms_cdclk@mode-transition@pipe-b-hdmi-a-2:
    - shard-dg2:          NOTRUN -> [SKIP][159] ([i915#7213]) +3 other tests skip
   [159]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@kms_cdclk@mode-transition@pipe-b-hdmi-a-2.html

  * igt@kms_cdclk@plane-scaling@pipe-c-edp-1:
    - shard-mtlp:         NOTRUN -> [SKIP][160] ([i915#4087]) +3 other tests skip
   [160]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@kms_cdclk@plane-scaling@pipe-c-edp-1.html

  * igt@kms_cdclk@plane-scaling@pipe-d-hdmi-a-1:
    - shard-dg2:          NOTRUN -> [SKIP][161] ([i915#4087]) +3 other tests skip
   [161]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-10/igt@kms_cdclk@plane-scaling@pipe-d-hdmi-a-1.html

  * igt@kms_chamelium_color@ctm-blue-to-red:
    - shard-mtlp:         NOTRUN -> [SKIP][162] ([fdo#111827]) +2 other tests skip
   [162]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@kms_chamelium_color@ctm-blue-to-red.html
    - shard-tglu:         NOTRUN -> [SKIP][163] ([fdo#111827])
   [163]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-8/igt@kms_chamelium_color@ctm-blue-to-red.html

  * igt@kms_chamelium_color@ctm-limited-range:
    - shard-dg2:          NOTRUN -> [SKIP][164] ([fdo#111827])
   [164]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@kms_chamelium_color@ctm-limited-range.html

  * igt@kms_chamelium_edid@hdmi-edid-read:
    - shard-rkl:          NOTRUN -> [SKIP][165] ([i915#7828]) +4 other tests skip
   [165]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@kms_chamelium_edid@hdmi-edid-read.html

  * igt@kms_chamelium_frames@hdmi-crc-multiple:
    - shard-dg2:          NOTRUN -> [SKIP][166] ([i915#7828]) +5 other tests skip
   [166]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_chamelium_frames@hdmi-crc-multiple.html

  * igt@kms_chamelium_frames@hdmi-frame-dump:
    - shard-dg1:          NOTRUN -> [SKIP][167] ([i915#7828])
   [167]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-15/igt@kms_chamelium_frames@hdmi-frame-dump.html

  * igt@kms_chamelium_hpd@hdmi-hpd:
    - shard-mtlp:         NOTRUN -> [SKIP][168] ([i915#7828]) +12 other tests skip
   [168]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-1/igt@kms_chamelium_hpd@hdmi-hpd.html

  * igt@kms_content_protection@atomic-dpms:
    - shard-dg2:          NOTRUN -> [SKIP][169] ([i915#7118])
   [169]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_content_protection@atomic-dpms.html

  * igt@kms_content_protection@dp-mst-lic-type-0:
    - shard-dg2:          NOTRUN -> [SKIP][170] ([i915#3299])
   [170]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_content_protection@dp-mst-lic-type-0.html

  * igt@kms_content_protection@dp-mst-type-1:
    - shard-mtlp:         NOTRUN -> [SKIP][171] ([i915#3299])
   [171]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@kms_content_protection@dp-mst-type-1.html

  * igt@kms_content_protection@lic:
    - shard-mtlp:         NOTRUN -> [SKIP][172] ([i915#6944]) +1 other test skip
   [172]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_content_protection@lic.html

  * igt@kms_content_protection@lic@pipe-a-dp-4:
    - shard-dg2:          NOTRUN -> [TIMEOUT][173] ([i915#7173]) +1 other test timeout
   [173]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_content_protection@lic@pipe-a-dp-4.html

  * igt@kms_cursor_crc@cursor-offscreen-512x170:
    - shard-dg1:          NOTRUN -> [SKIP][174] ([i915#3359])
   [174]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-17/igt@kms_cursor_crc@cursor-offscreen-512x170.html

  * igt@kms_cursor_crc@cursor-onscreen-512x170:
    - shard-dg2:          NOTRUN -> [SKIP][175] ([i915#3359])
   [175]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_cursor_crc@cursor-onscreen-512x170.html
    - shard-rkl:          NOTRUN -> [SKIP][176] ([fdo#109279] / [i915#3359])
   [176]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_cursor_crc@cursor-onscreen-512x170.html

  * igt@kms_cursor_crc@cursor-random-512x170:
    - shard-mtlp:         NOTRUN -> [SKIP][177] ([i915#3359])
   [177]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_cursor_crc@cursor-random-512x170.html

  * igt@kms_cursor_crc@cursor-random-max-size:
    - shard-dg1:          NOTRUN -> [SKIP][178] ([i915#3555])
   [178]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-16/igt@kms_cursor_crc@cursor-random-max-size.html

  * igt@kms_cursor_crc@cursor-rapid-movement-32x10:
    - shard-mtlp:         NOTRUN -> [SKIP][179] ([i915#3555] / [i915#8814]) +2 other tests skip
   [179]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_cursor_crc@cursor-rapid-movement-32x10.html

  * igt@kms_cursor_crc@cursor-sliding-512x170:
    - shard-rkl:          NOTRUN -> [SKIP][180] ([i915#3359])
   [180]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_cursor_crc@cursor-sliding-512x170.html

  * igt@kms_cursor_legacy@2x-flip-vs-cursor-legacy:
    - shard-rkl:          NOTRUN -> [SKIP][181] ([fdo#111825]) +5 other tests skip
   [181]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_cursor_legacy@2x-flip-vs-cursor-legacy.html

  * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size:
    - shard-rkl:          NOTRUN -> [SKIP][182] ([i915#4103]) +1 other test skip
   [182]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size.html
    - shard-mtlp:         NOTRUN -> [SKIP][183] ([i915#4213]) +2 other tests skip
   [183]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size.html

  * igt@kms_cursor_legacy@cursorb-vs-flipa-toggle:
    - shard-dg2:          NOTRUN -> [SKIP][184] ([fdo#109274] / [i915#5354]) +1 other test skip
   [184]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@kms_cursor_legacy@cursorb-vs-flipa-toggle.html

  * igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions:
    - shard-mtlp:         NOTRUN -> [SKIP][185] ([fdo#111767] / [i915#3546]) +1 other test skip
   [185]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions.html

  * igt@kms_cursor_legacy@cursorb-vs-flipb-toggle:
    - shard-dg2:          NOTRUN -> [SKIP][186] ([fdo#109274] / [fdo#111767] / [i915#5354])
   [186]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@kms_cursor_legacy@cursorb-vs-flipb-toggle.html

  * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
    - shard-glk:          [PASS][187] -> [FAIL][188] ([i915#2346])
   [187]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-glk1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
   [188]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-glk4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html

  * igt@kms_cursor_legacy@short-busy-flip-before-cursor-toggle:
    - shard-dg2:          NOTRUN -> [SKIP][189] ([i915#4103] / [i915#4213])
   [189]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-10/igt@kms_cursor_legacy@short-busy-flip-before-cursor-toggle.html

  * igt@kms_dirtyfb@dirtyfb-ioctl@fbc-hdmi-a-1:
    - shard-dg1:          NOTRUN -> [SKIP][190] ([i915#9227])
   [190]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-19/igt@kms_dirtyfb@dirtyfb-ioctl@fbc-hdmi-a-1.html

  * igt@kms_dirtyfb@dirtyfb-ioctl@psr-hdmi-a-1:
    - shard-dg1:          NOTRUN -> [SKIP][191] ([i915#9226] / [i915#9261]) +1 other test skip
   [191]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-19/igt@kms_dirtyfb@dirtyfb-ioctl@psr-hdmi-a-1.html

  * igt@kms_display_modes@extended-mode-basic:
    - shard-rkl:          NOTRUN -> [SKIP][192] ([i915#3555]) +3 other tests skip
   [192]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-4/igt@kms_display_modes@extended-mode-basic.html
    - shard-mtlp:         NOTRUN -> [SKIP][193] ([i915#3555] / [i915#8827])
   [193]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@kms_display_modes@extended-mode-basic.html

  * igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-1:
    - shard-rkl:          NOTRUN -> [SKIP][194] ([i915#3804])
   [194]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-1.html

  * igt@kms_dither@fb-8bpc-vs-panel-8bpc:
    - shard-dg2:          NOTRUN -> [SKIP][195] ([i915#3555]) +1 other test skip
   [195]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_dither@fb-8bpc-vs-panel-8bpc.html

  * igt@kms_dsc@dsc-with-bpc:
    - shard-rkl:          NOTRUN -> [SKIP][196] ([i915#3555] / [i915#3840])
   [196]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-6/igt@kms_dsc@dsc-with-bpc.html

  * igt@kms_dsc@dsc-with-output-formats:
    - shard-dg2:          NOTRUN -> [SKIP][197] ([i915#3555] / [i915#3840])
   [197]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@kms_dsc@dsc-with-output-formats.html

  * igt@kms_fbcon_fbt@fbc-suspend:
    - shard-mtlp:         [PASS][198] -> [ABORT][199] ([i915#9262])
   [198]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-mtlp-5/igt@kms_fbcon_fbt@fbc-suspend.html
   [199]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-1/igt@kms_fbcon_fbt@fbc-suspend.html

  * igt@kms_fbcon_fbt@psr-suspend:
    - shard-dg2:          NOTRUN -> [SKIP][200] ([i915#3469])
   [200]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@kms_fbcon_fbt@psr-suspend.html

  * igt@kms_flip@2x-flip-vs-blocking-wf-vblank:
    - shard-rkl:          NOTRUN -> [SKIP][201] ([fdo#111767] / [fdo#111825])
   [201]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@kms_flip@2x-flip-vs-blocking-wf-vblank.html

  * igt@kms_flip@2x-flip-vs-expired-vblank-interruptible:
    - shard-mtlp:         NOTRUN -> [SKIP][202] ([fdo#111767] / [i915#3637]) +1 other test skip
   [202]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_flip@2x-flip-vs-expired-vblank-interruptible.html

  * igt@kms_flip@2x-flip-vs-panning:
    - shard-dg2:          NOTRUN -> [SKIP][203] ([fdo#109274]) +8 other tests skip
   [203]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@kms_flip@2x-flip-vs-panning.html

  * igt@kms_flip@2x-flip-vs-suspend:
    - shard-mtlp:         NOTRUN -> [SKIP][204] ([i915#3637]) +11 other tests skip
   [204]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_flip@2x-flip-vs-suspend.html

  * igt@kms_flip@flip-vs-fences:
    - shard-mtlp:         NOTRUN -> [SKIP][205] ([i915#8381])
   [205]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_flip@flip-vs-fences.html

  * igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-64bpp-4tile-downscaling@pipe-a-valid-mode:
    - shard-rkl:          NOTRUN -> [SKIP][206] ([i915#2672]) +1 other test skip
   [206]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-6/igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-64bpp-4tile-downscaling@pipe-a-valid-mode.html

  * igt@kms_flip_scaled_crc@flip-32bpp-xtile-to-64bpp-xtile-downscaling@pipe-a-default-mode:
    - shard-mtlp:         NOTRUN -> [SKIP][207] ([i915#3555] / [i915#8810]) +1 other test skip
   [207]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@kms_flip_scaled_crc@flip-32bpp-xtile-to-64bpp-xtile-downscaling@pipe-a-default-mode.html

  * igt@kms_flip_scaled_crc@flip-32bpp-yftileccs-to-64bpp-yftile-downscaling@pipe-a-default-mode:
    - shard-mtlp:         NOTRUN -> [SKIP][208] ([i915#2672]) +5 other tests skip
   [208]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_flip_scaled_crc@flip-32bpp-yftileccs-to-64bpp-yftile-downscaling@pipe-a-default-mode.html

  * igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-downscaling@pipe-a-default-mode:
    - shard-mtlp:         NOTRUN -> [SKIP][209] ([i915#2672] / [i915#3555]) +3 other tests skip
   [209]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-downscaling@pipe-a-default-mode.html

  * igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-downscaling@pipe-a-default-mode:
    - shard-mtlp:         NOTRUN -> [SKIP][210] ([i915#8810])
   [210]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-downscaling@pipe-a-default-mode.html

  * igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-downscaling@pipe-a-valid-mode:
    - shard-dg2:          NOTRUN -> [SKIP][211] ([i915#2672]) +2 other tests skip
   [211]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-downscaling@pipe-a-valid-mode.html

  * igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc:
    - shard-dg1:          NOTRUN -> [SKIP][212] ([i915#8708]) +1 other test skip
   [212]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-17/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc.html

  * igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-render:
    - shard-dg2:          [PASS][213] -> [FAIL][214] ([i915#6880]) +1 other test fail
   [213]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-1/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-render.html
   [214]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-render.html

  * igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-blt:
    - shard-mtlp:         NOTRUN -> [SKIP][215] ([i915#1825]) +45 other tests skip
   [215]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-blt.html

  * igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-msflip-blt:
    - shard-tglu:         NOTRUN -> [SKIP][216] ([fdo#109280])
   [216]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-2/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-msflip-blt.html

  * igt@kms_frontbuffer_tracking@fbc-tiling-y:
    - shard-mtlp:         NOTRUN -> [SKIP][217] ([i915#5460])
   [217]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_frontbuffer_tracking@fbc-tiling-y.html
    - shard-dg2:          NOTRUN -> [SKIP][218] ([i915#5460])
   [218]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@kms_frontbuffer_tracking@fbc-tiling-y.html

  * igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-onoff:
    - shard-dg1:          NOTRUN -> [SKIP][219] ([fdo#111825]) +5 other tests skip
   [219]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-18/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-onoff.html

  * igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt:
    - shard-rkl:          NOTRUN -> [SKIP][220] ([fdo#111825] / [i915#1825]) +24 other tests skip
   [220]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt.html

  * igt@kms_frontbuffer_tracking@fbcpsr-farfromfence-mmap-gtt:
    - shard-dg2:          NOTRUN -> [SKIP][221] ([i915#8708]) +5 other tests skip
   [221]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@kms_frontbuffer_tracking@fbcpsr-farfromfence-mmap-gtt.html

  * igt@kms_frontbuffer_tracking@fbcpsr-rgb565-draw-mmap-cpu:
    - shard-dg2:          NOTRUN -> [SKIP][222] ([i915#3458]) +11 other tests skip
   [222]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_frontbuffer_tracking@fbcpsr-rgb565-draw-mmap-cpu.html

  * igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-blt:
    - shard-tglu:         NOTRUN -> [SKIP][223] ([fdo#110189])
   [223]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-7/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-blt.html

  * igt@kms_frontbuffer_tracking@psr-1p-rte:
    - shard-rkl:          NOTRUN -> [SKIP][224] ([i915#3023]) +14 other tests skip
   [224]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@kms_frontbuffer_tracking@psr-1p-rte.html

  * igt@kms_frontbuffer_tracking@psr-indfb-scaledprimary:
    - shard-dg1:          NOTRUN -> [SKIP][225] ([i915#3458]) +4 other tests skip
   [225]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-15/igt@kms_frontbuffer_tracking@psr-indfb-scaledprimary.html

  * igt@kms_frontbuffer_tracking@psr-rgb565-draw-mmap-gtt:
    - shard-mtlp:         NOTRUN -> [SKIP][226] ([i915#8708]) +15 other tests skip
   [226]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@kms_frontbuffer_tracking@psr-rgb565-draw-mmap-gtt.html

  * igt@kms_hdr@static-toggle:
    - shard-dg2:          NOTRUN -> [SKIP][227] ([i915#3555] / [i915#8228])
   [227]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@kms_hdr@static-toggle.html

  * igt@kms_pipe_b_c_ivb@disable-pipe-b-enable-pipe-c:
    - shard-dg2:          NOTRUN -> [SKIP][228] ([fdo#109289]) +3 other tests skip
   [228]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_pipe_b_c_ivb@disable-pipe-b-enable-pipe-c.html

  * igt@kms_pipe_b_c_ivb@from-pipe-c-to-b-with-3-lanes:
    - shard-rkl:          NOTRUN -> [SKIP][229] ([fdo#109289]) +4 other tests skip
   [229]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_pipe_b_c_ivb@from-pipe-c-to-b-with-3-lanes.html

  * igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes:
    - shard-mtlp:         NOTRUN -> [ABORT][230] ([i915#9262]) +6 other tests abort
   [230]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes.html

  * igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes:
    - shard-mtlp:         NOTRUN -> [DMESG-WARN][231] ([i915#9262])
   [231]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes.html

  * igt@kms_plane_lowres@tiling-y:
    - shard-mtlp:         NOTRUN -> [SKIP][232] ([i915#8821])
   [232]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_plane_lowres@tiling-y.html

  * igt@kms_plane_multiple@tiling-y:
    - shard-mtlp:         NOTRUN -> [SKIP][233] ([i915#8806])
   [233]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_plane_multiple@tiling-y.html

  * igt@kms_plane_scaling@2x-scaler-multi-pipe:
    - shard-mtlp:         NOTRUN -> [SKIP][234] ([i915#3546]) +6 other tests skip
   [234]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@kms_plane_scaling@2x-scaler-multi-pipe.html

  * igt@kms_plane_scaling@intel-max-src-size:
    - shard-mtlp:         NOTRUN -> [SKIP][235] ([i915#6953])
   [235]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-8/igt@kms_plane_scaling@intel-max-src-size.html

  * igt@kms_plane_scaling@intel-max-src-size@pipe-a-hdmi-a-1:
    - shard-tglu:         [PASS][236] -> [FAIL][237] ([i915#8292])
   [236]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-tglu-9/igt@kms_plane_scaling@intel-max-src-size@pipe-a-hdmi-a-1.html
   [237]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-2/igt@kms_plane_scaling@intel-max-src-size@pipe-a-hdmi-a-1.html

  * igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-25@pipe-b-hdmi-a-1:
    - shard-rkl:          NOTRUN -> [SKIP][238] ([i915#5176]) +9 other tests skip
   [238]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-25@pipe-b-hdmi-a-1.html

  * igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-5@pipe-c-edp-1:
    - shard-mtlp:         NOTRUN -> [SKIP][239] ([i915#5176]) +7 other tests skip
   [239]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-5@pipe-c-edp-1.html

  * igt@kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-25@pipe-c-hdmi-a-2:
    - shard-dg2:          NOTRUN -> [SKIP][240] ([i915#5176]) +7 other tests skip
   [240]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-25@pipe-c-hdmi-a-2.html

  * igt@kms_plane_scaling@plane-downscale-with-rotation-factor-0-75@pipe-b-hdmi-a-3:
    - shard-dg1:          NOTRUN -> [SKIP][241] ([i915#5176]) +15 other tests skip
   [241]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-12/igt@kms_plane_scaling@plane-downscale-with-rotation-factor-0-75@pipe-b-hdmi-a-3.html

  * igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-d-dp-4:
    - shard-dg2:          NOTRUN -> [SKIP][242] ([i915#5235]) +15 other tests skip
   [242]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-d-dp-4.html

  * igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-a-hdmi-a-2:
    - shard-rkl:          NOTRUN -> [SKIP][243] ([i915#5235]) +1 other test skip
   [243]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-a-hdmi-a-2.html

  * igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-b-edp-1:
    - shard-mtlp:         NOTRUN -> [SKIP][244] ([i915#5235]) +31 other tests skip
   [244]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-b-edp-1.html

  * igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-d-hdmi-a-4:
    - shard-dg1:          NOTRUN -> [SKIP][245] ([i915#5235]) +15 other tests skip
   [245]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-16/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-d-hdmi-a-4.html

  * {igt@kms_pm_rpm@fences} (NEW):
    - shard-dg1:          NOTRUN -> [SKIP][246] ([i915#4077]) +6 other tests skip
   [246]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-14/igt@kms_pm_rpm@fences.html

  * {igt@kms_pm_rpm@fences-dpms} (NEW):
    - shard-dg2:          NOTRUN -> [SKIP][247] ([i915#4077]) +14 other tests skip
   [247]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_pm_rpm@fences-dpms.html

  * {igt@kms_pm_rpm@pc8-residency} (NEW):
    - shard-glk:          NOTRUN -> [SKIP][248] ([fdo#109271]) +6 other tests skip
   [248]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-glk9/igt@kms_pm_rpm@pc8-residency.html

  * igt@kms_prime@basic-crc-hybrid:
    - shard-mtlp:         NOTRUN -> [SKIP][249] ([i915#6524])
   [249]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@kms_prime@basic-crc-hybrid.html

  * igt@kms_prime@basic-modeset-hybrid:
    - shard-tglu:         NOTRUN -> [SKIP][250] ([i915#6524])
   [250]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-7/igt@kms_prime@basic-modeset-hybrid.html

  * igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-fully-sf:
    - shard-rkl:          NOTRUN -> [SKIP][251] ([i915#658]) +1 other test skip
   [251]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-fully-sf.html

  * igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-sf:
    - shard-dg2:          NOTRUN -> [SKIP][252] ([i915#658]) +1 other test skip
   [252]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-sf.html

  * igt@kms_psr2_su@page_flip-p010:
    - shard-rkl:          NOTRUN -> [SKIP][253] ([fdo#111068] / [i915#658])
   [253]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_psr2_su@page_flip-p010.html

  * igt@kms_psr@no_drrs:
    - shard-dg2:          NOTRUN -> [SKIP][254] ([i915#1072]) +4 other tests skip
   [254]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_psr@no_drrs.html
    - shard-dg1:          NOTRUN -> [SKIP][255] ([i915#1072])
   [255]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-17/igt@kms_psr@no_drrs.html

  * igt@kms_psr@primary_render:
    - shard-rkl:          NOTRUN -> [SKIP][256] ([i915#1072]) +6 other tests skip
   [256]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_psr@primary_render.html

  * igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
    - shard-dg2:          NOTRUN -> [SKIP][257] ([i915#5461] / [i915#658])
   [257]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-10/igt@kms_psr_stress_test@flip-primary-invalidate-overlay.html

  * igt@kms_rotation_crc@bad-pixel-format:
    - shard-snb:          NOTRUN -> [SKIP][258] ([fdo#109271]) +141 other tests skip
   [258]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-snb1/igt@kms_rotation_crc@bad-pixel-format.html

  * igt@kms_rotation_crc@primary-4-tiled-reflect-x-180:
    - shard-dg1:          NOTRUN -> [SKIP][259] ([i915#5289])
   [259]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-12/igt@kms_rotation_crc@primary-4-tiled-reflect-x-180.html

  * igt@kms_rotation_crc@primary-rotation-270:
    - shard-mtlp:         NOTRUN -> [SKIP][260] ([i915#4235]) +3 other tests skip
   [260]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_rotation_crc@primary-rotation-270.html

  * igt@kms_rotation_crc@primary-y-tiled-reflect-x-180:
    - shard-mtlp:         NOTRUN -> [SKIP][261] ([i915#5289])
   [261]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_rotation_crc@primary-y-tiled-reflect-x-180.html

  * igt@kms_rotation_crc@primary-y-tiled-reflect-x-270:
    - shard-dg2:          NOTRUN -> [SKIP][262] ([i915#4235] / [i915#5190])
   [262]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@kms_rotation_crc@primary-y-tiled-reflect-x-270.html

  * igt@kms_rotation_crc@sprite-rotation-90-pos-100-0:
    - shard-dg2:          NOTRUN -> [SKIP][263] ([i915#4235])
   [263]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@kms_rotation_crc@sprite-rotation-90-pos-100-0.html

  * igt@kms_scaling_modes@scaling-mode-none@edp-1-pipe-d:
    - shard-mtlp:         NOTRUN -> [SKIP][264] ([i915#5030]) +3 other tests skip
   [264]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_scaling_modes@scaling-mode-none@edp-1-pipe-d.html

  * igt@kms_setmode@basic@pipe-a-hdmi-a-1:
    - shard-snb:          NOTRUN -> [FAIL][265] ([i915#5465]) +1 other test fail
   [265]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-snb1/igt@kms_setmode@basic@pipe-a-hdmi-a-1.html

  * igt@kms_setmode@invalid-clone-single-crtc-stealing:
    - shard-rkl:          NOTRUN -> [SKIP][266] ([i915#3555] / [i915#4098])
   [266]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@kms_setmode@invalid-clone-single-crtc-stealing.html
    - shard-mtlp:         NOTRUN -> [SKIP][267] ([i915#3555] / [i915#8809])
   [267]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-5/igt@kms_setmode@invalid-clone-single-crtc-stealing.html

  * igt@kms_tiled_display@basic-test-pattern:
    - shard-rkl:          NOTRUN -> [SKIP][268] ([i915#8623])
   [268]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_tiled_display@basic-test-pattern.html

  * igt@kms_universal_plane@cursor-fb-leak-pipe-b:
    - shard-apl:          [PASS][269] -> [FAIL][270] ([i915#9196])
   [269]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-apl3/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html
   [270]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-apl1/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html

  * igt@kms_universal_plane@cursor-fb-leak-pipe-d:
    - shard-tglu:         [PASS][271] -> [FAIL][272] ([i915#9196]) +1 other test fail
   [271]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-tglu-10/igt@kms_universal_plane@cursor-fb-leak-pipe-d.html
   [272]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-7/igt@kms_universal_plane@cursor-fb-leak-pipe-d.html

  * igt@kms_universal_plane@universal-plane-pipe-d-functional:
    - shard-rkl:          NOTRUN -> [SKIP][273] ([i915#4070] / [i915#533] / [i915#6768]) +2 other tests skip
   [273]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_universal_plane@universal-plane-pipe-d-functional.html

  * igt@kms_vblank@pipe-c-ts-continuation-modeset-rpm:
    - shard-rkl:          NOTRUN -> [SKIP][274] ([i915#4070] / [i915#6768]) +3 other tests skip
   [274]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_vblank@pipe-c-ts-continuation-modeset-rpm.html

  * igt@kms_writeback@writeback-invalid-parameters:
    - shard-mtlp:         NOTRUN -> [SKIP][275] ([i915#2437]) +1 other test skip
   [275]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_writeback@writeback-invalid-parameters.html

  * igt@perf@enable-disable@0-rcs0:
    - shard-dg2:          [PASS][276] -> [FAIL][277] ([i915#8724])
   [276]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-1/igt@perf@enable-disable@0-rcs0.html
   [277]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@perf@enable-disable@0-rcs0.html

  * igt@perf@gen8-unprivileged-single-ctx-counters:
    - shard-mtlp:         NOTRUN -> [SKIP][278] ([fdo#109289]) +4 other tests skip
   [278]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-6/igt@perf@gen8-unprivileged-single-ctx-counters.html

  * igt@perf@non-zero-reason@0-rcs0:
    - shard-dg2:          [PASS][279] -> [FAIL][280] ([i915#7484])
   [279]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-1/igt@perf@non-zero-reason@0-rcs0.html
   [280]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@perf@non-zero-reason@0-rcs0.html

  * igt@perf@unprivileged-single-ctx-counters:
    - shard-tglu:         NOTRUN -> [SKIP][281] ([fdo#109289])
   [281]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-5/igt@perf@unprivileged-single-ctx-counters.html

  * igt@perf_pmu@cpu-hotplug:
    - shard-mtlp:         NOTRUN -> [SKIP][282] ([i915#8850])
   [282]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@perf_pmu@cpu-hotplug.html

  * igt@perf_pmu@event-wait@rcs0:
    - shard-rkl:          NOTRUN -> [SKIP][283] ([fdo#112283]) +1 other test skip
   [283]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@perf_pmu@event-wait@rcs0.html
    - shard-mtlp:         NOTRUN -> [SKIP][284] ([i915#8807])
   [284]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-3/igt@perf_pmu@event-wait@rcs0.html

  * igt@perf_pmu@frequency@gt0:
    - shard-dg1:          [PASS][285] -> [FAIL][286] ([i915#6806])
   [285]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg1-17/igt@perf_pmu@frequency@gt0.html
   [286]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-15/igt@perf_pmu@frequency@gt0.html

  * igt@prime_vgem@basic-write:
    - shard-rkl:          NOTRUN -> [SKIP][287] ([fdo#109295] / [i915#3291] / [i915#3708])
   [287]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@prime_vgem@basic-write.html

  * igt@prime_vgem@fence-write-hang:
    - shard-mtlp:         NOTRUN -> [SKIP][288] ([i915#3708]) +2 other tests skip
   [288]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@prime_vgem@fence-write-hang.html

  * igt@syncobj_timeline@invalid-single-wait-available-unsubmitted:
    - shard-mtlp:         NOTRUN -> [DMESG-WARN][289] ([i915#2017])
   [289]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@syncobj_timeline@invalid-single-wait-available-unsubmitted.html

  * igt@tools_test@sysfs_l3_parity:
    - shard-mtlp:         NOTRUN -> [SKIP][290] ([i915#4818])
   [290]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-7/igt@tools_test@sysfs_l3_parity.html

  * igt@v3d/v3d_perfmon@create-perfmon-exceed:
    - shard-dg1:          NOTRUN -> [SKIP][291] ([i915#2575]) +1 other test skip
   [291]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-18/igt@v3d/v3d_perfmon@create-perfmon-exceed.html

  * igt@v3d/v3d_submit_cl@bad-multisync-extension:
    - shard-apl:          NOTRUN -> [SKIP][292] ([fdo#109271]) +59 other tests skip
   [292]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-apl3/igt@v3d/v3d_submit_cl@bad-multisync-extension.html

  * igt@v3d/v3d_submit_cl@bad-multisync-in-sync:
    - shard-rkl:          NOTRUN -> [SKIP][293] ([fdo#109315]) +10 other tests skip
   [293]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@v3d/v3d_submit_cl@bad-multisync-in-sync.html

  * igt@v3d/v3d_submit_cl@bad-multisync-out-sync:
    - shard-dg2:          NOTRUN -> [SKIP][294] ([i915#2575]) +12 other tests skip
   [294]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-2/igt@v3d/v3d_submit_cl@bad-multisync-out-sync.html

  * igt@v3d/v3d_submit_csd@bad-flag:
    - shard-tglu:         NOTRUN -> [SKIP][295] ([fdo#109315] / [i915#2575]) +1 other test skip
   [295]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-2/igt@v3d/v3d_submit_csd@bad-flag.html

  * igt@v3d/v3d_submit_csd@bad-perfmon:
    - shard-mtlp:         NOTRUN -> [SKIP][296] ([i915#2575]) +18 other tests skip
   [296]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@v3d/v3d_submit_csd@bad-perfmon.html

  * igt@vc4/vc4_create_bo@create-bo-4096:
    - shard-dg2:          NOTRUN -> [SKIP][297] ([i915#7711]) +7 other tests skip
   [297]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-10/igt@vc4/vc4_create_bo@create-bo-4096.html

  * igt@vc4/vc4_perfmon@create-perfmon-exceed:
    - shard-mtlp:         NOTRUN -> [SKIP][298] ([i915#7711]) +15 other tests skip
   [298]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@vc4/vc4_perfmon@create-perfmon-exceed.html

  * igt@vc4/vc4_tiling@get-bad-modifier:
    - shard-rkl:          NOTRUN -> [SKIP][299] ([i915#7711]) +6 other tests skip
   [299]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@vc4/vc4_tiling@get-bad-modifier.html

  * igt@vc4/vc4_wait_bo@used-bo-1ns:
    - shard-dg1:          NOTRUN -> [SKIP][300] ([i915#7711]) +1 other test skip
   [300]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-17/igt@vc4/vc4_wait_bo@used-bo-1ns.html

  
#### Possible fixes ####

  * igt@gem_ctx_exec@basic-nohangcheck:
    - shard-rkl:          [FAIL][301] ([i915#6268]) -> [PASS][302]
   [301]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-rkl-1/igt@gem_ctx_exec@basic-nohangcheck.html
   [302]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@gem_ctx_exec@basic-nohangcheck.html

  * igt@gem_eio@reset-stress:
    - shard-dg2:          [FAIL][303] ([i915#5784]) -> [PASS][304]
   [303]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-3/igt@gem_eio@reset-stress.html
   [304]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-6/igt@gem_eio@reset-stress.html

  * igt@gem_exec_endless@dispatch@vcs1:
    - shard-tglu:         [TIMEOUT][305] ([i915#3778]) -> [PASS][306]
   [305]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-tglu-2/igt@gem_exec_endless@dispatch@vcs1.html
   [306]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-2/igt@gem_exec_endless@dispatch@vcs1.html

  * igt@gem_exec_fair@basic-flow@rcs0:
    - shard-tglu:         [FAIL][307] ([i915#2842]) -> [PASS][308]
   [307]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-tglu-6/igt@gem_exec_fair@basic-flow@rcs0.html
   [308]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-8/igt@gem_exec_fair@basic-flow@rcs0.html

  * igt@gem_exec_fair@basic-pace-share@rcs0:
    - shard-rkl:          [FAIL][309] ([i915#2842]) -> [PASS][310]
   [309]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-rkl-6/igt@gem_exec_fair@basic-pace-share@rcs0.html
   [310]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-2/igt@gem_exec_fair@basic-pace-share@rcs0.html

  * igt@gem_mmap_gtt@fault-concurrent-y:
    - shard-snb:          [INCOMPLETE][311] ([i915#5161]) -> [PASS][312]
   [311]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-snb1/igt@gem_mmap_gtt@fault-concurrent-y.html
   [312]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-snb7/igt@gem_mmap_gtt@fault-concurrent-y.html

  * igt@gem_workarounds@suspend-resume:
    - shard-mtlp:         [ABORT][313] ([i915#9262]) -> [PASS][314]
   [313]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-mtlp-2/igt@gem_workarounds@suspend-resume.html
   [314]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-4/igt@gem_workarounds@suspend-resume.html

  * igt@gen9_exec_parse@allowed-single:
    - shard-apl:          [INCOMPLETE][315] ([i915#5566]) -> [PASS][316]
   [315]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-apl1/igt@gen9_exec_parse@allowed-single.html
   [316]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-apl6/igt@gen9_exec_parse@allowed-single.html

  * igt@i915_hangman@detector@vcs0:
    - shard-mtlp:         [FAIL][317] ([i915#8456]) -> [PASS][318] +2 other tests pass
   [317]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-mtlp-6/igt@i915_hangman@detector@vcs0.html
   [318]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-1/igt@i915_hangman@detector@vcs0.html

  * igt@i915_module_load@reload-with-fault-injection:
    - shard-dg2:          [DMESG-WARN][319] ([i915#8617]) -> [PASS][320]
   [319]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-11/igt@i915_module_load@reload-with-fault-injection.html
   [320]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@i915_module_load@reload-with-fault-injection.html

  * igt@i915_pm_rc6_residency@rc6-idle@vcs0:
    - shard-dg1:          [FAIL][321] ([i915#3591]) -> [PASS][322]
   [321]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg1-16/igt@i915_pm_rc6_residency@rc6-idle@vcs0.html
   [322]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-12/igt@i915_pm_rc6_residency@rc6-idle@vcs0.html

  * igt@i915_pm_rps@reset:
    - shard-dg1:          [FAIL][323] -> [PASS][324]
   [323]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg1-12/igt@i915_pm_rps@reset.html
   [324]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-12/igt@i915_pm_rps@reset.html
    - shard-tglu:         [FAIL][325] -> [PASS][326]
   [325]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-tglu-2/igt@i915_pm_rps@reset.html
   [326]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-8/igt@i915_pm_rps@reset.html

  * igt@i915_suspend@basic-s2idle-without-i915:
    - shard-dg1:          [DMESG-WARN][327] ([i915#4391] / [i915#4423]) -> [PASS][328]
   [327]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg1-17/igt@i915_suspend@basic-s2idle-without-i915.html
   [328]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-17/igt@i915_suspend@basic-s2idle-without-i915.html

  * igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0:
    - shard-mtlp:         [FAIL][329] ([i915#5138]) -> [PASS][330]
   [329]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-mtlp-6/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0.html
   [330]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-mtlp-2/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0.html

  * igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
    - shard-tglu:         [FAIL][331] ([i915#3743]) -> [PASS][332] +1 other test pass
   [331]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-tglu-3/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
   [332]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-2/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html

  * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
    - shard-glk:          [FAIL][333] ([i915#2346]) -> [PASS][334]
   [333]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-glk5/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html
   [334]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-glk1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html

  * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
    - shard-apl:          [FAIL][335] ([i915#2346]) -> [PASS][336] +1 other test pass
   [335]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-apl7/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
   [336]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-apl3/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html

  * igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-cpu:
    - shard-dg2:          [FAIL][337] ([i915#6880]) -> [PASS][338]
   [337]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-1/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-cpu.html
   [338]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-11/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-cpu.html

  * igt@kms_pipe_crc_basic@suspend-read-crc@pipe-b-dp-1:
    - shard-apl:          [INCOMPLETE][339] ([i915#180] / [i915#9392]) -> [PASS][340] +1 other test pass
   [339]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-apl2/igt@kms_pipe_crc_basic@suspend-read-crc@pipe-b-dp-1.html
   [340]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-apl3/igt@kms_pipe_crc_basic@suspend-read-crc@pipe-b-dp-1.html

  * {igt@kms_pm_dc@dc9-dpms}:
    - shard-tglu:         [SKIP][341] ([i915#4281]) -> [PASS][342]
   [341]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-tglu-2/igt@kms_pm_dc@dc9-dpms.html
   [342]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-tglu-2/igt@kms_pm_dc@dc9-dpms.html

  * igt@kms_rotation_crc@primary-y-tiled-reflect-x-90:
    - shard-rkl:          [INCOMPLETE][343] ([i915#8875]) -> [PASS][344]
   [343]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-rkl-1/igt@kms_rotation_crc@primary-y-tiled-reflect-x-90.html
   [344]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-6/igt@kms_rotation_crc@primary-y-tiled-reflect-x-90.html

  * igt@perf_pmu@frequency@gt0:
    - shard-apl:          [SKIP][345] ([fdo#109271]) -> [PASS][346]
   [345]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-apl7/igt@perf_pmu@frequency@gt0.html
   [346]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-apl1/igt@perf_pmu@frequency@gt0.html
    - shard-glk:          [SKIP][347] ([fdo#109271]) -> [PASS][348]
   [347]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-glk9/igt@perf_pmu@frequency@gt0.html
   [348]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-glk4/igt@perf_pmu@frequency@gt0.html
    - shard-snb:          [SKIP][349] ([fdo#109271]) -> [PASS][350]
   [349]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-snb6/igt@perf_pmu@frequency@gt0.html
   [350]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-snb5/igt@perf_pmu@frequency@gt0.html

  
#### Warnings ####

  * igt@kms_content_protection@mei_interface:
    - shard-dg1:          [SKIP][351] ([i915#7116]) -> [SKIP][352] ([fdo#109300])
   [351]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg1-18/igt@kms_content_protection@mei_interface.html
   [352]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-12/igt@kms_content_protection@mei_interface.html

  * igt@kms_fbcon_fbt@psr:
    - shard-rkl:          [SKIP][353] ([i915#3955]) -> [SKIP][354] ([fdo#110189] / [i915#3955])
   [353]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-rkl-7/igt@kms_fbcon_fbt@psr.html
   [354]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-1/igt@kms_fbcon_fbt@psr.html

  * igt@kms_fbcon_fbt@psr-suspend:
    - shard-rkl:          [SKIP][355] ([fdo#110189] / [i915#3955]) -> [SKIP][356] ([i915#3955])
   [355]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-rkl-2/igt@kms_fbcon_fbt@psr-suspend.html
   [356]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-7/igt@kms_fbcon_fbt@psr-suspend.html

  * igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-mmap-gtt:
    - shard-dg1:          [SKIP][357] ([i915#4423] / [i915#8708]) -> [SKIP][358] ([i915#8708])
   [357]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg1-17/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-mmap-gtt.html
   [358]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg1-16/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-mmap-gtt.html

  * igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
    - shard-rkl:          [SKIP][359] ([i915#4816]) -> [SKIP][360] ([i915#4070] / [i915#4816])
   [359]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-rkl-7/igt@kms_multipipe_modeset@basic-max-pipe-crc-check.html
   [360]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-rkl-6/igt@kms_multipipe_modeset@basic-max-pipe-crc-check.html

  * igt@prime_mmap@test_aperture_limit@test_aperture_limit-smem:
    - shard-dg2:          [INCOMPLETE][361] ([i915#5493]) -> [CRASH][362] ([i915#9351])
   [361]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13681/shard-dg2-10/igt@prime_mmap@test_aperture_limit@test_aperture_limit-smem.html
   [362]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9877/shard-dg2-1/igt@prime_mmap@test_aperture_limit@test_aperture_limit-smem.html

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

  [fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
  [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
  [fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
  [fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
  [fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
  [fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
  [fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
  [fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
  [fdo#109300]: https://bugs.freedesktop.org/show_bug.cgi?id=109300
  [fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
  [fdo#109303]: https://bugs.freedesktop.org/show_bug.cgi?id=109303
  [fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
  [fdo#109314]: https://bugs.freedesktop.org/show_bug.cgi?id=109314
  [fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
  [fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
  [fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
  [fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
  [fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
  [fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
  [fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
  [fdo#111767]: https://bugs.freedesktop.org/show_bug.cgi?id=111767
  [fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
  [fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
  [fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
  [i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
  [i915#1099]: https://gitlab.freedesktop.org/drm/intel/issues/1099
  [i915#1769]: https://gitlab.freedesktop.org/drm/intel/issues/1769
  [i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
  [i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
  [i915#2017]: https://gitlab.freedesktop.org/drm/intel/issues/2017
  [i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
  [i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
  [i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
  [i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
  [i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
  [i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
  [i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
  [i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
  [i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
  [i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
  [i915#3023]: https://gitlab.freedesktop.org/drm/intel/issues/3023
  [i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
  [i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
  [i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
  [i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
  [i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
  [i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
  [i915#3361]: https://gitlab.freedesktop.org/drm/intel/issues/3361
  [i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
  [i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
  [i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
  [i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
  [i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
  [i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
  [i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
  [i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
  [i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
  [i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
  [i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
  [i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
  [i915#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743
  [i915#3778]: https://gitlab.freedesktop.org/drm/intel/issues/3778
  [i915#3804]: https://gitlab.freedesktop.org/drm/intel/issues/3804
  [i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
  [i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
  [i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
  [i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
  [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#4087]: https://gitlab.freedesktop.org/drm/intel/issues/4087
  [i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
  [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#4235]: https://gitlab.freedesktop.org/drm/intel/issues/4235
  [i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
  [i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281
  [i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
  [i915#4423]: https://gitlab.freedesktop.org/drm/intel/issues/4423
  [i915#4473]: https://gitlab.freedesktop.org/drm/intel/issues/4473
  [i915#4475]: https://gitlab.freedesktop.org/drm/intel/issues/4475
  [i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525
  [i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
  [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
  [i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
  [i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
  [i915#4816]: https://gitlab.freedesktop.org/drm/intel/issues/4816
  [i915#4818]: https://gitlab.freedesktop.org/drm/intel/issues/4818
  [i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
  [i915#4854]: https://gitlab.freedesktop.org/drm/intel/issues/4854
  [i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
  [i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
  [i915#4879]: https://gitlab.freedesktop.org/drm/intel/issues/4879
  [i915#4885]: https://gitlab.freedesktop.org/drm/intel/issues/4885
  [i915#5030]: https://gitlab.freedesktop.org/drm/intel/issues/5030
  [i915#5107]: https://gitlab.freedesktop.org/drm/intel/issues/5107
  [i915#5138]: https://gitlab.freedesktop.org/drm/intel/issues/5138
  [i915#5161]: https://gitlab.freedesktop.org/drm/intel/issues/5161
  [i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
  [i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
  [i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
  [i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
  [i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
  [i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
  [i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
  [i915#5460]: https://gitlab.freedesktop.org/drm/intel/issues/5460
  [i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
  [i915#5465]: https://gitlab.freedesktop.org/drm/intel/issues/5465
  [i915#5493]: https://gitlab.freedesktop.org/drm/intel/issues/5493
  [i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
  [i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
  [i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
  [i915#6187]: https://gitlab.freedesktop.org/drm/intel/issues/6187
  [i915#6188]: https://gitlab.freedesktop.org/drm/intel/issues/6188
  [i915#6227]: https://gitlab.freedesktop.org/drm/intel/issues/6227
  [i915#6229]: https://gitlab.freedesktop.org/drm/intel/issues/6229
  [i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
  [i915#6334]: https://gitlab.freedesktop.org/drm/intel/issues/6334
  [i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
  [i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
  [i915#6537]: https://gitlab.freedesktop.org/drm/intel/issues/6537
  [i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
  [i915#6590]: https://gitlab.freedesktop.org/drm/intel/issues/6590
  [i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
  [i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
  [i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
  [i915#6806]: https://gitlab.freedesktop.org/drm/intel/issues/6806
  [i915#6880]: https://gitlab.freedesktop.org/drm/intel/issues/6880
  [i915#6944]: https://gitlab.freedesktop.org/drm/intel/issues/6944
  [i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
  [i915#7069]: https://gitlab.freedesktop.org/drm/intel/issues/7069
  [i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
  [i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
  [i915#7173]: https://gitlab.freedesktop.org/drm/intel/issues/7173
  [i915#7213]: https://gitlab.freedesktop.org/drm/intel/issues/7213
  [i915#7297]: https://gitlab.freedesktop.org/drm/intel/issues/7297
  [i915#7484]: https://gitlab.freedesktop.org/drm/intel/issues/7484
  [i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
  [i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
  [i915#7707]: https://gitlab.freedesktop.org/drm/intel/issues/7707
  [i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
  [i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
  [i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
  [i915#8213]: https://gitlab.freedesktop.org/drm/intel/issues/8213
  [i915#8228]: https://gitlab.freedesktop.org/drm/intel/issues/8228
  [i915#8247]: https://gitlab.freedesktop.org/drm/intel/issues/8247
  [i915#8289]: https://gitlab.freedesktop.org/drm/intel/issues/8289
  [i915#8292]: https://gitlab.freedesktop.org/drm/intel/issues/8292
  [i915#8381]: https://gitlab.freedesktop.org/drm/intel/issues/8381
  [i915#8399]: https://gitlab.freedesktop.org/drm/intel/issues/8399
  [i915#8411]: https://gitlab.freedesktop.org/drm/intel/issues/8411
  [i915#8414]: https://gitlab.freedesktop.org/drm/intel/issues/8414
  [i915#8428]: https://gitlab.freedesktop.org/drm/intel/issues/8428
  [i915#8437]: https://gitlab.freedesktop.org/drm/intel/issues/8437
  [i915#8456]: https://gitlab.freedesktop.org/drm/intel/issues/8456
  [i915#8502]: https://gitlab.freedesktop.org/drm/intel/issues/8502
  [i915#8555]: https://gitlab.freedesktop.org/drm/intel/issues/8555
  [i915#8617]: https://gitlab.freedesktop.org/drm/intel/issues/8617
  [i915#8623]: https://gitlab.freedesktop.org/drm/intel/issues/8623
  [i915#8708]: https://gitlab.freedesktop.org/drm/intel/issues/8708
  [i915#8709]: https://gitlab.freedesktop.org/drm/intel/issues/8709
  [i915#8724]: https://gitlab.freedesktop.org/drm/intel/issues/8724
  [i915#8806]: https://gitlab.freedesktop.org/drm/intel/issues/8806
  [i915#8807]: https://gitlab.freedesktop.org/drm/intel/issues/8807
  [i915#8809]: https://gitlab.freedesktop.org/drm/intel/issues/8809
  [i915#8810]: https://gitlab.freedesktop.org/drm/intel/issues/8810
  [i915#8814]: https://gitlab.freedesktop.org/drm/intel/issues/8814
  [i915#8821]: https://gitlab.freedesktop.org/drm/intel/issues/8821
  [i915#8827]: https://gitlab.freedesktop.org/drm/intel/issues/8827
  [i915#8841]: https://gitlab.freedesktop.org/drm/intel/issues/8841
  [i915#8850]: https://gitlab.freedesktop.org/drm/intel/issues/8850
  [i915#8865]: https://gitlab.freedesktop.org/drm/intel/issues/8865
  [i915#8875]: https://gitlab.freedesktop.org/drm/intel/issues/8875
  [i915#8925]: https://gitlab.freedesktop.org/drm/intel/issues/8925
  [i915#9010]: https://gitlab.freedesktop.org/drm/intel/issues/9010
  [i915#9067]: https://gitlab.freedesktop.org/drm/intel/issues/9067
  [i915#9196]: https://gitlab.freedesktop.org/drm/intel/issues/9196
  [i915#9226]: https://gitlab.freedesktop.org/drm/intel/issues/9226
  [i915#9227]: https://gitlab.freedesktop.org/drm/intel/issues/9227
  [i915#9261]: https://gitlab.freedesktop.org/drm/intel/issues/9261
  [i915#9262]: https://gitlab.freedesktop.org/drm/intel/issues/9262
  [i915#9292]: https://gitlab.freedesktop.org/drm/intel/issues/9292
  [i915#9293]: https://gitlab.freedesktop.org/drm/intel/issues/9293
  [i915#9318]: https://gitlab.freedesktop.org/drm/intel/issues/9318
  [i915#9323]: https://gitlab.freedesktop.org/drm/intel/issues/9323
  [i915#9337]: https://gitlab.freedesktop.org/drm/intel/issues/9337
  [i915#9351]: https://gitlab.freedesktop.org/drm/intel/issues/9351
  [i915#9392]: https://gitlab.freedesktop.org/drm/intel/issues/9392
  [i915#9412]: https://gitlab.freedesktop.org/drm/intel/issues/9412
  [i915#9414]: https://gitlab.freedesktop.org/drm/intel/issues/9414


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

  * CI: CI-20190529 -> None
  * IGT: IGT_7503 -> IGTPW_9877
  * Piglit: piglit_4509 -> None

  CI-20190529: 20190529
  CI_DRM_13681: b57407d0de043fc22b000a941a404ab103849e06 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_9877: 9877
  IGT_7503: 7503
  piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

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

[-- Attachment #2: Type: text/html, Size: 119978 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm
  2023-09-26 11:04 [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem
                   ` (2 preceding siblings ...)
  2023-09-26 23:42 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
@ 2023-09-29 12:15 ` Kamil Konieczny
  3 siblings, 0 replies; 5+ messages in thread
From: Kamil Konieczny @ 2023-09-29 12:15 UTC (permalink / raw)
  To: igt-dev

Hi Bhanuprakash,

On 2023-09-26 at 16:34:53 +0530, Bhanuprakash Modem wrote:
> Separate display specific tests, from i915_pm_rpm and create
> a new binary "kms_pm_rpm" for them.
> 
> Note: This patch can be split into multiple, but still it is
> a good starting point to review.
> 
> V2: - Drop unnecessary header files
> V3: - Restore old Copyright
>     - Fix missing display tests
> V4: - Fix/Optimize testplan documentation
>     - Split module-reload into with & w/o display
> V5: - Fix module-reload test
>     - Update BAT list
> 
> Cc: Anshuman Gupta <anshuman.gupta@intel.com>
> Cc: Swati Sharma <swati2.sharma@intel.com>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
> ---
>  tests/intel-ci/blacklist-pre-merge.txt |    8 +-
>  tests/intel-ci/blacklist.txt           |    1 +
>  tests/intel-ci/fast-feedback.testlist  |    5 +-

All ci changes should be in separate patch.

>  tests/intel/i915_pm_rpm.c              | 1136 ----------------
>  tests/intel/kms_pm_rpm.c               | 1740 ++++++++++++++++++++++++
>  tests/meson.build                      |    1 +
>  6 files changed, 1749 insertions(+), 1142 deletions(-)
>  create mode 100644 tests/intel/kms_pm_rpm.c
> 
> diff --git a/tests/intel-ci/blacklist-pre-merge.txt b/tests/intel-ci/blacklist-pre-merge.txt
> index d4e5ef66e..0a1315aae 100644
> --- a/tests/intel-ci/blacklist-pre-merge.txt
> +++ b/tests/intel-ci/blacklist-pre-merge.txt
> @@ -13,8 +13,8 @@
>  #
>  # Data acquired on 2020-02-19 by Martin Peres
>  ###############################################################################
> -igt@i915_pm_rpm@legacy-planes(-dpms)?
> -igt@i915_pm_rpm@universal-planes(-dpms)?
> +igt@kms_pm_rpm@legacy-planes(-dpms)?
> +igt@kms_pm_rpm@universal-planes(-dpms)?
>  
>  
>  ###############################################################################
> @@ -67,7 +67,7 @@ igt@gem_exec_alignment@.*
>  #
>  # Data acquired on 2020-02-20 by Martin Peres
>  ###############################################################################
> -igt@i915_pm_rpm@debugfs-read
> +igt@kms_pm_rpm@debugfs-read
>  
>  
>  ###############################################################################
> @@ -109,4 +109,4 @@ igt@gem_tiled_wc
>  #
>  # Data acquired on 2020-02-20 by Martin Peres
>  ###############################################################################
> -igt@i915_pm_rpm@modeset-stress-extra-wait
> +igt@kms_pm_rpm@modeset-stress-extra-wait
> diff --git a/tests/intel-ci/blacklist.txt b/tests/intel-ci/blacklist.txt
> index e13759d3e..13504dac3 100644
> --- a/tests/intel-ci/blacklist.txt
> +++ b/tests/intel-ci/blacklist.txt
> @@ -15,6 +15,7 @@ igt@meta_test(@.*)?
>  #igt@i915_module_load(@.*)? # danger, danger; hope for taints!
>  igt@i915_pm_rpm@module-reload
>  igt@i915_pm_rpm@gem-execbuf-stress-extra-wait
> +igt@kms_pm_rpm@module-reload
>  ###############################################
>  # GEM
>  ###############################################
> diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist
> index 3d8b23073..8b70f139a 100644
> --- a/tests/intel-ci/fast-feedback.testlist
> +++ b/tests/intel-ci/fast-feedback.testlist
> @@ -121,13 +121,13 @@ igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence
>  igt@kms_pipe_crc_basic@read-crc
>  igt@kms_pipe_crc_basic@read-crc-frame-sequence
>  igt@kms_pm_backlight@basic-brightness
> +igt@kms_pm_rpm@basic-pci-d3-state
> +igt@kms_pm_rpm@basic-rte
>  igt@kms_psr@primary_page_flip
>  igt@kms_psr@cursor_plane_move
>  igt@kms_psr@sprite_plane_onoff
>  igt@kms_psr@primary_mmap_gtt
>  igt@kms_setmode@basic-clone-single-crtc
> -igt@i915_pm_rpm@basic-pci-d3-state
> -igt@i915_pm_rpm@basic-rte
>  igt@i915_pm_rps@basic-api
>  igt@prime_self_import@basic-llseek-bad
>  igt@prime_self_import@basic-llseek-size
> @@ -164,6 +164,7 @@ igt@gem_lmem_swapping@parallel-random-engines
>  igt@gem_lmem_swapping@random-engines
>  igt@gem_lmem_swapping@verify-random
>  igt@i915_pm_rpm@module-reload
> +igt@kms_pm_rpm@module-reload
>  
>  # Kernel selftests
>  igt@i915_selftest@live
> diff --git a/tests/intel/i915_pm_rpm.c b/tests/intel/i915_pm_rpm.c
> index 17413ffe5..c0365b304 100644
> --- a/tests/intel/i915_pm_rpm.c
> +++ b/tests/intel/i915_pm_rpm.c
> @@ -43,25 +43,6 @@
>  /**
>   * TEST: i915 pm rpm
>   *
> - * SUBTEST: basic-pci-d3-state
> - * Description: Validate PCI device D3 state enter-exit scenario using runtime PM
> - * Feature: pm_rpm
> - * Functionality: D3 state entry-exit
> - * Run type: BAT
> - * Test category: pm_rpm
> - *
> - * SUBTEST: basic-rte
> - * Feature: pm_rpm
> - * Run type: BAT
> - *
> - * SUBTEST: cursor
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: cursor-dpms
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
>   * SUBTEST: debugfs-forcewake-user
>   * Feature: pm_rpm
>   * Run type: FULL
> @@ -70,34 +51,6 @@
>   * Feature: pm_rpm
>   * Run type: FULL
>   *
> - * SUBTEST: dpms-lpsp
> - * Feature: dpms, pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: dpms-mode-unset-lpsp
> - * Feature: dpms, pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: dpms-mode-unset-non-lpsp
> - * Feature: dpms, non-lpsp, pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: dpms-non-lpsp
> - * Feature: dpms, non-lpsp, pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: drm-resources-equal
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: fences
> - * Feature: gtt, pm_rpm, synchronization
> - * Run type: FULL
> - *
> - * SUBTEST: fences-dpms
> - * Feature: gtt, pm_rpm, synchronization
> - * Run type: FULL
> - *
>   * SUBTEST: gem-evict-pwrite
>   * Feature: gtt, pm_rpm
>   * Run type: FULL
> @@ -127,66 +80,10 @@
>   * Feature: pm_rpm
>   * Run type: FULL
>   *
> - * SUBTEST: i2c
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: legacy-planes
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: legacy-planes-dpms
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: modeset-lpsp
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: modeset-lpsp-stress
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: modeset-lpsp-stress-no-wait
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: modeset-non-lpsp
> - * Feature: non-lpsp, pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: modeset-non-lpsp-stress
> - * Feature: non-lpsp, pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: modeset-non-lpsp-stress-no-wait
> - * Feature: non-lpsp, pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: modeset-pc8-residency-stress
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: modeset-stress-extra-wait
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
>   * SUBTEST: module-reload
>   * Feature: pm_rpm
>   * Run type: BAT
>   *
> - * SUBTEST: pc8-residency
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: pm-caching
> - * Feature: gtt, pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: pm-tiling
> - * Feature: gtt, pm_rpm
> - * Run type: FULL
> - *
>   * SUBTEST: reg-read-ioctl
>   * Feature: pm_rpm
>   * Run type: FULL
> @@ -214,18 +111,6 @@
>   * SUBTEST: system-suspend-execbuf
>   * Feature: pm_rpm
>   * Run type: FULL
> - *
> - * SUBTEST: system-suspend-modeset
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: universal-planes
> - * Feature: pm_rpm
> - * Run type: FULL
> - *
> - * SUBTEST: universal-planes-dpms
> - * Feature: pm_rpm
> - * Run type: FULL
>   */
>  
>  #if defined(__linux__)
> @@ -605,17 +490,6 @@ static bool enable_one_screen_with_type(struct mode_set_data *data,
>  	return set_mode_for_params(params);
>  }
>  
> -static void enable_one_screen(struct mode_set_data *data)
> -{
> -	/* SKIP if there are no connected screens. */
> -	igt_require(enable_one_screen_with_type(data, SCREEN_TYPE_ANY));
> -}
> -
> -#define enable_one_screen_and_wait(data) do { \
> -	enable_one_screen(data); \
> -	igt_assert(wait_for_active()); \
> -} while (0)
> -
>  static void
>  enable_one_screen_or_forcewake_get_and_wait(struct mode_set_data *data)
>  {
> @@ -707,343 +581,6 @@ static void fini_mode_set_data(struct mode_set_data *data)
>  	}
>  }
>  
> -static void get_drm_info(struct compare_data *data)
> -{
> -	int i;
> -
> -	data->res = drmModeGetResources(drm_fd);
> -	if (!data->res)
> -		return;
> -
> -	igt_assert(data->res->count_connectors <= MAX_CONNECTORS);
> -	igt_assert(data->res->count_encoders <= MAX_ENCODERS);
> -	igt_assert(data->res->count_crtcs <= MAX_CRTCS);
> -
> -	for (i = 0; i < data->res->count_connectors; i++) {
> -		/* Don't use GetConnectorCurrent, we want to force a reprobe
> -		 * here. */
> -		data->connectors[i] = drmModeGetConnector(drm_fd,
> -						data->res->connectors[i]);
> -		data->edids[i] = get_connector_edid(data->connectors[i], i);
> -	}
> -	for (i = 0; i < data->res->count_encoders; i++)
> -		data->encoders[i] = drmModeGetEncoder(drm_fd,
> -						data->res->encoders[i]);
> -	for (i = 0; i < data->res->count_crtcs; i++)
> -		data->crtcs[i] = drmModeGetCrtc(drm_fd, data->res->crtcs[i]);
> -}
> -
> -static void free_drm_info(struct compare_data *data)
> -{
> -	int i;
> -
> -	if (!data->res)
> -		return;
> -
> -	for (i = 0; i < data->res->count_connectors; i++) {
> -		drmModeFreeConnector(data->connectors[i]);
> -		drmModeFreePropertyBlob(data->edids[i]);
> -	}
> -	for (i = 0; i < data->res->count_encoders; i++)
> -		drmModeFreeEncoder(data->encoders[i]);
> -	for (i = 0; i < data->res->count_crtcs; i++)
> -		drmModeFreeCrtc(data->crtcs[i]);
> -
> -	drmModeFreeResources(data->res);
> -}
> -
> -#define COMPARE(d1, d2, data) igt_assert_eq(d1->data, d2->data)
> -#define COMPARE_ARRAY(d1, d2, size, data) do { \
> -	for (i = 0; i < size; i++) \
> -		igt_assert(d1->data[i] == d2->data[i]); \
> -} while (0)
> -
> -static void assert_drm_resources_equal(struct compare_data *d1,
> -				       struct compare_data *d2)
> -{
> -	COMPARE(d1, d2, res->count_connectors);
> -	COMPARE(d1, d2, res->count_encoders);
> -	COMPARE(d1, d2, res->count_crtcs);
> -	COMPARE(d1, d2, res->min_width);
> -	COMPARE(d1, d2, res->max_width);
> -	COMPARE(d1, d2, res->min_height);
> -	COMPARE(d1, d2, res->max_height);
> -}
> -
> -static void assert_modes_equal(drmModeModeInfoPtr m1, drmModeModeInfoPtr m2)
> -{
> -	COMPARE(m1, m2, clock);
> -	COMPARE(m1, m2, hdisplay);
> -	COMPARE(m1, m2, hsync_start);
> -	COMPARE(m1, m2, hsync_end);
> -	COMPARE(m1, m2, htotal);
> -	COMPARE(m1, m2, hskew);
> -	COMPARE(m1, m2, vdisplay);
> -	COMPARE(m1, m2, vsync_start);
> -	COMPARE(m1, m2, vsync_end);
> -	COMPARE(m1, m2, vtotal);
> -	COMPARE(m1, m2, vscan);
> -	COMPARE(m1, m2, vrefresh);
> -	COMPARE(m1, m2, flags);
> -	COMPARE(m1, m2, type);
> -	igt_assert(strcmp(m1->name, m2->name) == 0);
> -}
> -
> -static void assert_drm_connectors_equal(drmModeConnectorPtr c1,
> -					drmModeConnectorPtr c2)
> -{
> -	int i;
> -
> -	COMPARE(c1, c2, connector_id);
> -	COMPARE(c1, c2, connector_type);
> -	COMPARE(c1, c2, connector_type_id);
> -	COMPARE(c1, c2, mmWidth);
> -	COMPARE(c1, c2, mmHeight);
> -	COMPARE(c1, c2, count_modes);
> -	COMPARE(c1, c2, count_props);
> -	COMPARE(c1, c2, count_encoders);
> -	COMPARE_ARRAY(c1, c2, c1->count_props, props);
> -	COMPARE_ARRAY(c1, c2, c1->count_encoders, encoders);
> -
> -	for (i = 0; i < c1->count_modes; i++)
> -		assert_modes_equal(&c1->modes[0], &c2->modes[0]);
> -}
> -
> -static void assert_drm_encoders_equal(drmModeEncoderPtr e1,
> -				      drmModeEncoderPtr e2)
> -{
> -	COMPARE(e1, e2, encoder_id);
> -	COMPARE(e1, e2, encoder_type);
> -	COMPARE(e1, e2, possible_crtcs);
> -	COMPARE(e1, e2, possible_clones);
> -}
> -
> -static void assert_drm_crtcs_equal(drmModeCrtcPtr c1, drmModeCrtcPtr c2)
> -{
> -	COMPARE(c1, c2, crtc_id);
> -}
> -
> -static void assert_drm_edids_equal(drmModePropertyBlobPtr e1,
> -				   drmModePropertyBlobPtr e2)
> -{
> -	if (!e1 && !e2)
> -		return;
> -	igt_assert(e1 && e2);
> -
> -	COMPARE(e1, e2, length);
> -
> -	igt_assert(memcmp(e1->data, e2->data, e1->length) == 0);
> -}
> -
> -static void assert_drm_infos_equal(struct compare_data *d1,
> -				   struct compare_data *d2)
> -{
> -	int i;
> -
> -	if (d1->res == d2->res)
> -		return;
> -
> -	igt_assert(d1->res);
> -	igt_assert(d2->res);
> -
> -	assert_drm_resources_equal(d1, d2);
> -
> -	for (i = 0; i < d1->res->count_connectors; i++) {
> -		assert_drm_connectors_equal(d1->connectors[i],
> -					    d2->connectors[i]);
> -		assert_drm_edids_equal(d1->edids[i], d2->edids[i]);
> -	}
> -
> -	for (i = 0; i < d1->res->count_encoders; i++)
> -		assert_drm_encoders_equal(d1->encoders[i], d2->encoders[i]);
> -
> -	for (i = 0; i < d1->res->count_crtcs; i++)
> -		assert_drm_crtcs_equal(d1->crtcs[i], d2->crtcs[i]);
> -}
> -
> -static bool find_i2c_path(const char *connector_name,
> -			  char *i2c_path, size_t i2c_path_size)
> -{
> -	struct dirent *dirent;
> -	DIR *dir;
> -	int sysfs_card_fd = igt_sysfs_open(drm_fd);
> -	int connector_fd = -1;
> -	bool found_i2c_file = false;
> -	ssize_t r;
> -
> -	dir = fdopendir(sysfs_card_fd);
> -	igt_assert(dir);
> -
> -	while ((dirent = readdir(dir))) {
> -		/* Skip "cardx-" prefix */
> -		char *dirname = strchr(dirent->d_name, '-');
> -		if (dirname==NULL)
> -			continue;
> -		++dirname;
> -
> -		if (strcmp(dirname, connector_name) == 0) {
> -			connector_fd = openat(sysfs_card_fd, dirent->d_name, O_RDONLY);
> -			break;
> -		}
> -	}
> -	closedir(dir);
> -
> -	if (connector_fd < 0)
> -		return false;
> -
> -	/* try the standard "ddc" symlink first */
> -	r = readlinkat(connector_fd, "ddc", i2c_path, i2c_path_size);
> -	if (r > 0 && r != i2c_path_size) {
> -		int num;
> -
> -		i2c_path[r] = '\0';
> -
> -		if (sscanf(basename(i2c_path), "i2c-%d", &num) == 1) {
> -			snprintf(i2c_path, i2c_path_size, "/dev/i2c-%d", num);
> -			return true;
> -		}
> -	}
> -
> -	dir = fdopendir(connector_fd);
> -	igt_assert(dir);
> -
> -	/* fall back to old "i2c-?" symlink */
> -	/* FIXME nuke this at some point */
> -	while ((dirent = readdir(dir))) {
> -		if (strncmp(dirent->d_name, "i2c-", 4) == 0) {
> -			sprintf(i2c_path, "/dev/%s", dirent->d_name);
> -			found_i2c_file = true;
> -		}
> -	}
> -	closedir(dir);
> -	return found_i2c_file;
> -}
> -
> -
> -static bool i2c_read_edid(const char *connector_name, unsigned char *edid)
> -{
> -	char i2c_path[PATH_MAX];
> -	bool result;
> -	int rc, fd;
> -	struct i2c_msg msgs[] = {
> -		{ /* Start at 0. */
> -			.addr = 0x50,
> -			.flags = 0,
> -			.len = 1,
> -			.buf = edid,
> -		}, { /* Now read the EDID. */
> -			.addr = 0x50,
> -			.flags = I2C_M_RD,
> -			.len = 128,
> -			.buf = edid,
> -		}
> -	};
> -	struct i2c_rdwr_ioctl_data msgset = {
> -		.msgs = msgs,
> -		.nmsgs = 2,
> -	};
> -
> -	result = find_i2c_path(connector_name, i2c_path, sizeof(i2c_path));
> -	if (!result)
> -		return false;
> -
> -	igt_info("Testing %s %s\n", connector_name, i2c_path);
> -
> -	fd = open(i2c_path, O_RDWR);
> -	igt_assert_neq(fd, -1);
> -
> -	rc = ioctl(fd, I2C_RDWR, &msgset);
> -	if (rc==-1) {
> -		igt_debug("I2C access failed with errno %d, %s\n",
> -				errno, strerror(errno));
> -		errno = 0;
> -	}
> -
> -	close(fd);
> -	return rc >= 0;
> -}
> -
> -static void format_hex_string(const unsigned char edid[static EDID_BLOCK_SIZE],
> -			      char buf[static EDID_BLOCK_SIZE * 5 + 1])
> -{
> -	for (int i = 0; i < EDID_BLOCK_SIZE; ++i)
> -		sprintf(buf+i*5, "0x%02x ", edid[i]);
> -}
> -
> -static bool is_mst_connector(int fd, uint32_t connector_id)
> -{
> -	return kmstest_get_property(fd, connector_id,
> -				    DRM_MODE_OBJECT_CONNECTOR,
> -				    "PATH", NULL, NULL, NULL);
> -}
> -
> -static void test_i2c(struct mode_set_data *data)
> -{
> -	bool edid_mistmach_i2c_vs_drm = false;
> -	igt_display_t display;
> -	igt_display_require(&display, drm_fd);
> -
> -	for (int i = 0; i < data->res->count_connectors; i++) {
> -		unsigned char *drm_edid = data->edids[i] ? data->edids[i]->data : NULL;
> -		unsigned char i2c_edid[EDID_BLOCK_SIZE] = {};
> -
> -		igt_output_t *output = igt_output_from_connector(&display,
> -								 data->connectors[i]);
> -		char *connector_name = (char *) igt_output_name(output);
> -
> -		bool got_i2c_edid = i2c_read_edid(connector_name, i2c_edid);
> -		bool got_drm_edid = drm_edid != NULL;
> -		bool is_vga = data->connectors[i]->connector_type == DRM_MODE_CONNECTOR_VGA;
> -
> -		bool edids_equal;
> -
> -		if (data->connectors[i]->connection != DRM_MODE_CONNECTED ||
> -		    is_mst_connector(drm_fd, data->connectors[i]->connector_id))
> -			continue;
> -
> -		/* We fail to detect some VGA monitors using our i2c method. If you look
> -		 * at the dmesg of these cases, you'll see the Kernel complaining about
> -		 * the EDID reading mostly FFs and then disabling bit-banging. Since we
> -		 * don't want to reimplement everything the Kernel does, let's just
> -		 * accept the fact that some VGA outputs won't be properly detected. */
> -		if (is_vga)
> -			continue;
> -
> -		if (!got_i2c_edid && !got_drm_edid)
> -			continue;
> -
> -		if (got_i2c_edid && got_drm_edid)
> -			edids_equal = (0 == memcmp(drm_edid, i2c_edid, EDID_BLOCK_SIZE));
> -		else
> -			edids_equal = false;
> -
> -
> -		if (!edids_equal) {
> -			char buf[5 * EDID_BLOCK_SIZE + 1];
> -			igt_critical("Detected EDID mismatch on connector %s\n",
> -				     connector_name);
> -
> -			if(got_i2c_edid)
> -				format_hex_string(i2c_edid, buf);
> -			else
> -				sprintf(buf, "NULL");
> -
> -			igt_critical("i2c: %s\n", buf);
> -
> -			if(got_drm_edid)
> -				format_hex_string(drm_edid, buf);
> -			else
> -				sprintf(buf, "NULL");
> -
> -			igt_critical("drm: %s\n", buf);
> -
> -			edid_mistmach_i2c_vs_drm = true;
> -		}
> -	}
> -	igt_fail_on_f(edid_mistmach_i2c_vs_drm,
> -			"There is an EDID mismatch between i2c and DRM!\n");
> -}
> -
>  static void setup_pc8(void)
>  {
>  	has_pc8 = false;
> @@ -1139,128 +676,6 @@ static void teardown_environment(bool display_enabled)
>  	has_runtime_pm = false;
>  }
>  
> -static void basic_subtest(void)
> -{
> -	disable_all_screens_and_wait(&ms_data);
> -
> -	enable_one_screen_or_forcewake_get_and_wait(&ms_data);
> -	forcewake_put(&ms_data);
> -
> -	/* XXX Also we can test wake up via exec nop */
> -}
> -
> -static void pc8_residency_subtest(void)
> -{
> -	igt_require(has_pc8);
> -
> -	/* Make sure PC8+ residencies move! */
> -	disable_all_screens(&ms_data);
> -	igt_assert_f(pc8_plus_residency_changed(30),
> -		     "Machine is not reaching PC8+ states, please check its "
> -		     "configuration.\n");
> -
> -	/* Make sure PC8+ residencies stop! */
> -	enable_one_screen(&ms_data);
> -	igt_assert_f(!pc8_plus_residency_changed(10),
> -		     "PC8+ residency didn't stop with screen enabled.\n");
> -}
> -
> -static void modeset_subtest(enum screen_type type, int rounds, int wait_flags)
> -{
> -	int i;
> -
> -	if (wait_flags & WAIT_PC8_RES)
> -		igt_require(has_pc8);
> -
> -	if (wait_flags & WAIT_EXTRA)
> -		rounds /= 2;
> -
> -	for (i = 0; i < rounds; i++) {
> -		if (wait_flags & USE_DPMS)
> -			disable_all_screens_dpms(&ms_data);
> -		else
> -			disable_all_screens(&ms_data);
> -
> -		if (wait_flags & WAIT_STATUS)
> -			igt_assert(wait_for_suspended());
> -		if (wait_flags & WAIT_PC8_RES)
> -			igt_assert(pc8_plus_residency_changed(30));
> -		if (wait_flags & WAIT_EXTRA)
> -			sleep(5);
> -
> -		/* If we skip this line it's because the type of screen we want
> -		 * is not connected. */
> -		igt_require(enable_one_screen_with_type(&ms_data, type));
> -		if (wait_flags & WAIT_STATUS)
> -			igt_assert(wait_for_active());
> -		if (wait_flags & WAIT_PC8_RES)
> -			igt_assert(!pc8_plus_residency_changed(5));
> -		if (wait_flags & WAIT_EXTRA)
> -			sleep(5);
> -	}
> -}
> -
> -/* Test of the DRM resources reported by the IOCTLs are still the same. This
> - * ensures we still see the monitors with the same eyes. We get the EDIDs and
> - * compare them, which ensures we use DP AUX or GMBUS depending on what's
> - * connected. */
> -static void drm_resources_equal_subtest(void)
> -{
> -	struct compare_data pre_suspend, during_suspend, post_suspend;
> -
> -	enable_one_screen_and_wait(&ms_data);
> -	get_drm_info(&pre_suspend);
> -	igt_assert(wait_for_active());
> -
> -	disable_all_screens_and_wait(&ms_data);
> -	get_drm_info(&during_suspend);
> -	igt_assert(wait_for_suspended());
> -
> -	enable_one_screen_and_wait(&ms_data);
> -	get_drm_info(&post_suspend);
> -	igt_assert(wait_for_active());
> -
> -	assert_drm_infos_equal(&pre_suspend, &during_suspend);
> -	assert_drm_infos_equal(&pre_suspend, &post_suspend);
> -
> -	free_drm_info(&pre_suspend);
> -	free_drm_info(&during_suspend);
> -	free_drm_info(&post_suspend);
> -}
> -
> -static void i2c_subtest_check_environment(void)
> -{
> -	int i2c_dev_files = 0;
> -	DIR *dev_dir;
> -	struct dirent *dirent;
> -
> -	/* Make sure the /dev/i2c-* files exist. */
> -	igt_require(modprobe("i2c-dev") == 0);
> -
> -	dev_dir = opendir("/dev");
> -	igt_assert(dev_dir);
> -	while ((dirent = readdir(dev_dir))) {
> -		if (strncmp(dirent->d_name, "i2c-", 4) == 0)
> -			i2c_dev_files++;
> -	}
> -	closedir(dev_dir);
> -	igt_require(i2c_dev_files);
> -}
> -
> -/* Try to use raw I2C, which also needs interrupts. */
> -static void i2c_subtest(void)
> -{
> -	i2c_subtest_check_environment();
> -
> -	enable_one_screen_and_wait(&ms_data);
> -
> -	disable_all_screens_and_wait(&ms_data);
> -	test_i2c(&ms_data);
> -	igt_assert(wait_for_suspended());
> -
> -	enable_one_screen(&ms_data);
> -}
> -
>  struct read_entry_elapsed {
>  	uint64_t elapsed;
>  	char *path;
> @@ -1875,27 +1290,6 @@ static bool device_in_pci_d3(struct pci_device *pci_dev)
>  	return (val & 0x3) == 0x3;
>  }
>  
> -static void pci_d3_state_subtest(void)
> -{
> -	struct pci_device *pci_dev, *bridge_pci_dev;
> -
> -	igt_require(has_runtime_pm);
> -
> -	pci_dev = igt_device_get_pci_device(drm_fd);
> -	bridge_pci_dev = pci_device_get_parent_bridge(pci_dev);
> -
> -	disable_all_screens_and_wait(&ms_data);
> -	igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
> -
> -	if (gem_has_lmem(drm_fd))
> -		igt_require_f(pci_device_has_kernel_driver(bridge_pci_dev),
> -			      "pci bridge device does not bind with pcieport driver\n");
> -
> -	enable_one_screen_or_forcewake_get_and_wait(&ms_data);
> -	igt_assert(!device_in_pci_d3(pci_dev));
> -	forcewake_put(&ms_data);
> -}
> -
>  __noreturn static void stay_subtest(void)
>  {
>  	disable_all_screens_and_wait(&ms_data);
> @@ -1951,445 +1345,6 @@ static void system_suspend_execbuf_subtest(void)
>  	gem_close(drm_fd, handle);
>  }
>  
> -static void system_suspend_modeset_subtest(void)
> -{
> -	disable_all_screens_and_wait(&ms_data);
> -	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
> -	igt_assert(wait_for_suspended());
> -
> -	enable_one_screen_and_wait(&ms_data);
> -	disable_all_screens_and_wait(&ms_data);
> -}
> -
> -/* Enable a screen, activate DPMS, then do a modeset. At some point our driver
> - * produced WARNs on this case. */
> -static void dpms_mode_unset_subtest(enum screen_type type)
> -{
> -	disable_all_screens_and_wait(&ms_data);
> -
> -	igt_require(enable_one_screen_with_type(&ms_data, type));
> -	igt_assert(wait_for_active());
> -
> -	disable_all_screens_dpms(&ms_data);
> -	igt_assert(wait_for_suspended());
> -
> -	disable_all_screens_and_wait(&ms_data);
> -}
> -
> -static void fill_igt_fb(struct igt_fb *fb, uint32_t color)
> -{
> -	int i;
> -	uint32_t *ptr;
> -
> -	ptr = gem_mmap__device_coherent(drm_fd, fb->gem_handle, 0, fb->size, PROT_WRITE);
> -	for (i = 0; i < fb->size/sizeof(uint32_t); i++)
> -		ptr[i] = color;
> -	igt_assert(munmap(ptr, fb->size) == 0);
> -}
> -
> -/* At some point, this test triggered WARNs in the Kernel. */
> -static void cursor_subtest(bool dpms)
> -{
> -	int rc;
> -	struct igt_fb cursor_fb1, cursor_fb2, cursor_fb3;
> -	uint32_t crtc_id;
> -
> -	disable_all_screens_and_wait(&ms_data);
> -
> -	igt_require(default_mode_params);
> -	crtc_id = default_mode_params->crtc_id;
> -
> -	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
> -		      DRM_FORMAT_MOD_LINEAR, &cursor_fb1);
> -	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
> -		      DRM_FORMAT_MOD_LINEAR, &cursor_fb2);
> -	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
> -		      I915_FORMAT_MOD_X_TILED, &cursor_fb3);
> -
> -	fill_igt_fb(&cursor_fb1, 0xFF00FFFF);
> -	fill_igt_fb(&cursor_fb2, 0xFF00FF00);
> -	fill_igt_fb(&cursor_fb3, 0xFFFF0000);
> -
> -	set_mode_for_params_and_wait(default_mode_params);
> -
> -	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb1.gem_handle,
> -			      cursor_fb1.width, cursor_fb1.height);
> -	igt_assert_eq(rc, 0);
> -	rc = drmModeMoveCursor(drm_fd, crtc_id, 0, 0);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_active());
> -
> -	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
> -
> -	/* First, just move the cursor. */
> -	rc = drmModeMoveCursor(drm_fd, crtc_id, 1, 1);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	/* Then unset it, and set a new one. */
> -	rc = drmModeSetCursor(drm_fd, crtc_id, 0, 0, 0);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb2.gem_handle,
> -			      cursor_fb1.width, cursor_fb2.height);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	/* Move the new cursor. */
> -	rc = drmModeMoveCursor(drm_fd, crtc_id, 2, 2);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	/* Now set a new one without unsetting the previous one. */
> -	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb1.gem_handle,
> -			      cursor_fb1.width, cursor_fb1.height);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	/* Cursor 3 was created with tiling and painted with a GTT mmap, so
> -	 * hopefully it has some fences around it. */
> -	rc = drmModeRmFB(drm_fd, cursor_fb3.fb_id);
> -	igt_assert_eq(rc, 0);
> -	__gem_set_tiling(drm_fd, cursor_fb3.gem_handle, false, cursor_fb3.strides[0]);
> -	igt_assert(wait_for_suspended());
> -
> -	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb3.gem_handle,
> -			      cursor_fb3.width, cursor_fb3.height);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	/* Make sure nothing remains for the other tests. */
> -	rc = drmModeSetCursor(drm_fd, crtc_id, 0, 0, 0);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -}
> -
> -static enum plane_type get_plane_type(uint32_t plane_id)
> -{
> -	int i;
> -	bool found;
> -	uint64_t prop_value;
> -	drmModePropertyPtr prop;
> -	const char *enum_name = NULL;
> -	enum plane_type type;
> -
> -	found = kmstest_get_property(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE,
> -				     "type", NULL, &prop_value, &prop);
> -	igt_assert(found);
> -
> -	igt_assert(prop->flags & DRM_MODE_PROP_ENUM);
> -	igt_assert(prop_value < prop->count_enums);
> -
> -	for (i = 0; i < prop->count_enums; i++) {
> -		if (prop->enums[i].value == prop_value) {
> -			enum_name = prop->enums[i].name;
> -			break;
> -		}
> -	}
> -	igt_assert(enum_name);
> -
> -	if (strcmp(enum_name, "Overlay") == 0)
> -		type = PLANE_OVERLAY;
> -	else if (strcmp(enum_name, "Primary") == 0)
> -		type = PLANE_PRIMARY;
> -	else if (strcmp(enum_name, "Cursor") == 0)
> -		type = PLANE_CURSOR;
> -	else
> -		igt_assert(0);
> -
> -	drmModeFreeProperty(prop);
> -
> -	return type;
> -}
> -
> -static void test_one_plane(bool dpms, uint32_t plane_id,
> -			   enum plane_type plane_type)
> -{
> -	int rc;
> -	uint32_t plane_format, plane_w, plane_h;
> -	uint32_t crtc_id;
> -	struct igt_fb plane_fb1, plane_fb2;
> -	int32_t crtc_x = 0, crtc_y = 0;
> -	uint64_t modifier;
> -
> -	disable_all_screens_and_wait(&ms_data);
> -
> -	crtc_id = default_mode_params->crtc_id;
> -
> -	switch (plane_type) {
> -	case PLANE_OVERLAY:
> -		plane_format = DRM_FORMAT_XRGB8888;
> -		plane_w = 64;
> -		plane_h = 64;
> -		modifier = I915_FORMAT_MOD_X_TILED;
> -		break;
> -	case PLANE_PRIMARY:
> -		plane_format = DRM_FORMAT_XRGB8888;
> -		plane_w = default_mode_params->mode->hdisplay;
> -		plane_h = default_mode_params->mode->vdisplay;
> -		modifier = I915_FORMAT_MOD_X_TILED;
> -		break;
> -	case PLANE_CURSOR:
> -		plane_format = DRM_FORMAT_ARGB8888;
> -		plane_w = 64;
> -		plane_h = 64;
> -		modifier = DRM_FORMAT_MOD_LINEAR;
> -		break;
> -	default:
> -		igt_assert(0);
> -		break;
> -	}
> -
> -	igt_create_fb(drm_fd, plane_w, plane_h, plane_format, modifier,
> -		      &plane_fb1);
> -	igt_create_fb(drm_fd, plane_w, plane_h, plane_format, modifier,
> -		      &plane_fb2);
> -	fill_igt_fb(&plane_fb1, 0xFF00FFFF);
> -	fill_igt_fb(&plane_fb2, 0xFF00FF00);
> -
> -	set_mode_for_params_and_wait(default_mode_params);
> -
> -	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
> -			     0, 0, plane_fb1.width, plane_fb1.height,
> -			     0 << 16, 0 << 16, plane_fb1.width << 16,
> -			     plane_fb1.height << 16);
> -	igt_assert_eq(rc, 0);
> -
> -	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
> -
> -	/* Just move the plane around. */
> -	if (plane_type != PLANE_PRIMARY) {
> -		crtc_x++;
> -		crtc_y++;
> -	}
> -	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
> -			     crtc_x, crtc_y, plane_fb1.width, plane_fb1.height,
> -			     0 << 16, 0 << 16, plane_fb1.width << 16,
> -			     plane_fb1.height << 16);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	/* Unset, then change the plane. */
> -	rc = drmModeSetPlane(drm_fd, plane_id, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb2.fb_id, 0,
> -			     crtc_x, crtc_y, plane_fb2.width, plane_fb2.height,
> -			     0 << 16, 0 << 16, plane_fb2.width << 16,
> -			     plane_fb2.height << 16);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	/* Now change the plane without unsetting first. */
> -	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
> -			     crtc_x, crtc_y, plane_fb1.width, plane_fb1.height,
> -			     0 << 16, 0 << 16, plane_fb1.width << 16,
> -			     plane_fb1.height << 16);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -
> -	/* Make sure nothing remains for the other tests. */
> -	rc = drmModeSetPlane(drm_fd, plane_id, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
> -	igt_assert_eq(rc, 0);
> -	igt_assert(wait_for_suspended());
> -}
> -
> -/* This one also triggered WARNs on our driver at some point in time. */
> -static void planes_subtest(bool universal, bool dpms)
> -{
> -	int i, crtc_idx;
> -	drmModePlaneResPtr planes;
> -
> -	igt_require(default_mode_params);
> -	crtc_idx = kmstest_get_crtc_idx(ms_data.res,
> -					default_mode_params->crtc_id);
> -
> -	igt_assert_eq(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES,
> -				      universal), 0);
> -
> -	planes = drmModeGetPlaneResources(drm_fd);
> -	for (i = 0; i < planes->count_planes; i++) {
> -		drmModePlanePtr plane;
> -
> -		plane = drmModeGetPlane(drm_fd, planes->planes[i]);
> -		igt_assert(plane);
> -
> -		if (plane->possible_crtcs & (1 << crtc_idx)) {
> -			enum plane_type type;
> -
> -			type = universal ? get_plane_type(plane->plane_id) :
> -					   PLANE_OVERLAY;
> -			igt_dynamic_f("plane-%d", plane->plane_id)
> -				test_one_plane(dpms, plane->plane_id, type);
> -		}
> -		drmModeFreePlane(plane);
> -	}
> -	drmModeFreePlaneResources(planes);
> -
> -	igt_assert_eq(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES,
> -				      1), 0);
> -}
> -
> -static void pm_test_tiling(void)
> -{
> -	uint32_t *handles;
> -	uint8_t **gem_bufs;
> -
> -	int max_gem_objs = 0;
> -	uint8_t off_bit = 14;
> -	uint32_t gtt_obj_max_size = (256 * 1024);
> -
> -	uint32_t i, j, k, tiling_modes[3] = {
> -		I915_TILING_NONE,
> -		I915_TILING_X,
> -		I915_TILING_Y,
> -	};
> -	uint32_t ti, sw;
> -
> -	/* default stride value */
> -	uint32_t stride = 512;
> -
> -	/* calculate how many objects we can map */
> -	for (i = 1 << off_bit; i <= gtt_obj_max_size; i <<= 1, max_gem_objs++)
> -		;
> -
> -	gem_bufs = calloc(max_gem_objs, sizeof(*gem_bufs));
> -	handles = calloc(max_gem_objs, sizeof(*handles));
> -
> -	/* try to set different tiling for each handle */
> -	for (i = 0; i < ARRAY_SIZE(tiling_modes); i++) {
> -
> -		for (j = 0, k = 1 << off_bit;
> -		     k <= gtt_obj_max_size; k <<= 1, j++) {
> -			handles[j] = gem_create(drm_fd, k);
> -			gem_bufs[j] = gem_mmap__gtt(drm_fd, handles[j],
> -						    k, PROT_WRITE);
> -			memset(gem_bufs[j], 0x0, k);
> -		}
> -
> -		disable_all_screens_and_wait(&ms_data);
> -
> -		for (j = 0; j < max_gem_objs; j++) {
> -			gem_set_tiling(drm_fd, handles[j],
> -					tiling_modes[i], stride);
> -			gem_get_tiling(drm_fd, handles[j], &ti, &sw);
> -			igt_assert(tiling_modes[i] == ti);
> -		}
> -
> -		enable_one_screen_and_wait(&ms_data);
> -
> -		for (j = 0, k = 1 << off_bit;
> -		     k <= gtt_obj_max_size; k <<= 1, j++) {
> -			igt_assert(munmap(gem_bufs[j], k) == 0);
> -			gem_close(drm_fd, handles[j]);
> -		}
> -	}
> -
> -	free(gem_bufs);
> -	free(handles);
> -}
> -
> -static void pm_test_caching(void)
> -{
> -	uint32_t handle;
> -	uint8_t *gem_buf;
> -
> -	uint32_t i;
> -	uint32_t default_cache_level;
> -	uint32_t gtt_obj_max_size = (16 * 1024);
> -	uint32_t cache_levels[3] = {
> -		I915_CACHING_NONE,
> -		I915_CACHING_CACHED,            /* LLC caching */
> -		I915_CACHING_DISPLAY,           /* eDRAM caching */
> -	};
> -
> -	disable_all_screens(&ms_data);
> -
> -	handle = gem_create(drm_fd, gtt_obj_max_size);
> -	default_cache_level = gem_get_caching(drm_fd, handle);
> -	gem_buf = gem_mmap__gtt(drm_fd, handle, gtt_obj_max_size, PROT_WRITE);
> -
> -	for (i = 0; i < ARRAY_SIZE(cache_levels); i++) {
> -		igt_assert(wait_for_suspended());
> -		if (igt_has_set_caching(intel_get_drm_devid(drm_fd)))
> -			gem_set_caching(drm_fd, handle, default_cache_level);
> -		/* Ensure we bind the vma into the GGTT */
> -		memset(gem_buf, 16 << i, gtt_obj_max_size);
> -
> -		/* Now try changing the cache-level on the bound object.
> -		 * This will either unlikely unbind the object from the GGTT,
> -		 * or more likely just change the PTEs inside the GGTT. Either
> -		 * way the driver must take the rpm wakelock around the GSM
> -		 * access.
> -		 */
> -		igt_debug("Setting cache level %u\n", cache_levels[i]);
> -		igt_assert(wait_for_suspended());
> -		if (igt_has_set_caching(intel_get_drm_devid(drm_fd)))
> -			gem_set_caching(drm_fd, handle, cache_levels[i]);
> -	}
> -
> -	igt_assert(munmap(gem_buf, gtt_obj_max_size) == 0);
> -	gem_close(drm_fd, handle);
> -}
> -
> -static void fences_subtest(bool dpms)
> -{
> -	int i;
> -	uint32_t *buf_ptr;
> -	uint32_t tiling = false, swizzle;
> -	struct modeset_params params;
> -
> -	disable_all_screens_and_wait(&ms_data);
> -
> -	igt_require(default_mode_params);
> -	params.crtc_id = default_mode_params->crtc_id;
> -	params.connector_id = default_mode_params->connector_id;
> -	params.mode = default_mode_params->mode;
> -	igt_create_fb(drm_fd, params.mode->hdisplay, params.mode->vdisplay,
> -		      DRM_FORMAT_XRGB8888, I915_FORMAT_MOD_X_TILED,
> -		      &params.fb);
> -
> -	/* Even though we passed "true" as the tiling argument, double-check
> -	 * that the fb is really tiled. */
> -	gem_get_tiling(drm_fd, params.fb.gem_handle, &tiling, &swizzle);
> -	igt_assert(tiling);
> -
> -	buf_ptr = gem_mmap__gtt(drm_fd, params.fb.gem_handle, params.fb.size,
> -				PROT_WRITE | PROT_READ);
> -	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
> -		buf_ptr[i] = i;
> -
> -	set_mode_for_params_and_wait(&params);
> -
> -	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
> -
> -	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
> -		igt_assert_eq(buf_ptr[i], i);
> -	igt_assert(wait_for_suspended());
> -
> -	if (dpms) {
> -		drmModeConnectorPtr c = NULL;
> -
> -		for (i = 0; i < ms_data.res->count_connectors; i++)
> -			if (ms_data.connectors[i]->connector_id ==
> -			    params.connector_id)
> -				c = ms_data.connectors[i];
> -		igt_assert(c);
> -
> -		kmstest_set_connector_dpms(drm_fd, c, DRM_MODE_DPMS_ON);
> -	} else {
> -		set_mode_for_params(&params);
> -	}
> -	igt_assert(wait_for_active());
> -
> -	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
> -		igt_assert_eq(buf_ptr[i], i);
> -
> -	igt_assert(munmap(buf_ptr, params.fb.size) == 0);
> -}
> -
>  int rounds = 10;
>  bool stay = false;
>  
> @@ -2420,11 +1375,6 @@ static struct option long_options[] = {
>  
>  igt_main_args("", long_options, help_str, opt_handler, NULL)
>  {
> -	igt_subtest("basic-rte") {
> -		igt_assert(setup_environment(true));
> -		basic_subtest();
> -	}
> -
>  	/* Skip instead of failing in case the machine is not prepared to reach
>  	 * PC8+. We don't want bug reports from cases where the machine is just
>  	 * not properly configured. */
> @@ -2436,22 +1386,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
>  		igt_subtest("stay")
>  			stay_subtest();
>  
> -	/* Essential things */
> -	igt_subtest("drm-resources-equal")
> -		drm_resources_equal_subtest();
> -	igt_subtest("basic-pci-d3-state")
> -		pci_d3_state_subtest();
> -
> -	/* Basic modeset */
> -	igt_subtest("modeset-lpsp")
> -		modeset_subtest(SCREEN_TYPE_LPSP, 1, WAIT_STATUS);
> -	igt_subtest("modeset-non-lpsp")
> -		modeset_subtest(SCREEN_TYPE_NON_LPSP, 1, WAIT_STATUS);
> -	igt_subtest("dpms-lpsp")
> -		modeset_subtest(SCREEN_TYPE_LPSP, 1, WAIT_STATUS | USE_DPMS);
> -	igt_subtest("dpms-non-lpsp")
> -		modeset_subtest(SCREEN_TYPE_NON_LPSP, 1, WAIT_STATUS | USE_DPMS);
> -
>  	/* GEM */
>  	igt_subtest_with_dynamic("gem-mmap-type") {
>  		for_each_mmap_offset_type(drm_fd, t) {
> @@ -2477,60 +1411,15 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
>  		gem_evict_pwrite_subtest();
>  	}
>  
> -	/* Planes and cursors */
> -	igt_subtest("cursor")
> -		cursor_subtest(false);
> -	igt_subtest("cursor-dpms")
> -		cursor_subtest(true);
> -	igt_subtest_with_dynamic("legacy-planes")
> -		planes_subtest(false, false);
> -	igt_subtest_with_dynamic("legacy-planes-dpms")
> -		planes_subtest(false, true);
> -	igt_subtest_with_dynamic("universal-planes")
> -		planes_subtest(true, false);
> -	igt_subtest_with_dynamic("universal-planes-dpms")
> -		planes_subtest(true, true);
> -
>  	/* Misc */
>  	igt_subtest("reg-read-ioctl")
>  		reg_read_ioctl_subtest();
> -	igt_subtest("i2c")
> -		i2c_subtest();
> -	igt_subtest("pc8-residency")
> -		pc8_residency_subtest();
>  	igt_subtest("debugfs-read")
>  		debugfs_read_subtest();
>  	igt_subtest("debugfs-forcewake-user")
>  		debugfs_forcewake_user_subtest();
>  	igt_subtest("sysfs-read")
>  		sysfs_read_subtest();
> -	igt_subtest("dpms-mode-unset-lpsp")
> -		dpms_mode_unset_subtest(SCREEN_TYPE_LPSP);
> -	igt_subtest("dpms-mode-unset-non-lpsp")
> -		dpms_mode_unset_subtest(SCREEN_TYPE_NON_LPSP);
> -	igt_subtest("fences") {
> -		gem_require_mappable_ggtt(drm_fd);
> -		fences_subtest(false);
> -	}
> -	igt_subtest("fences-dpms") {
> -		gem_require_mappable_ggtt(drm_fd);
> -		fences_subtest(true);
> -	}
> -
> -	/* Modeset stress */
> -	igt_subtest("modeset-lpsp-stress")
> -		modeset_subtest(SCREEN_TYPE_LPSP, rounds, WAIT_STATUS);
> -	igt_subtest("modeset-non-lpsp-stress")
> -		modeset_subtest(SCREEN_TYPE_NON_LPSP, rounds, WAIT_STATUS);
> -	igt_subtest("modeset-lpsp-stress-no-wait")
> -		modeset_subtest(SCREEN_TYPE_LPSP, rounds, DONT_WAIT);
> -	igt_subtest("modeset-non-lpsp-stress-no-wait")
> -		modeset_subtest(SCREEN_TYPE_NON_LPSP, rounds, DONT_WAIT);
> -	igt_subtest("modeset-pc8-residency-stress")
> -		modeset_subtest(SCREEN_TYPE_ANY, rounds, WAIT_PC8_RES);
> -	igt_subtest("modeset-stress-extra-wait")
> -		modeset_subtest(SCREEN_TYPE_ANY, rounds,
> -				WAIT_STATUS | WAIT_EXTRA);
>  
>  	/* System suspend */
>  	igt_subtest("system-suspend-devices")
> @@ -2539,8 +1428,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
>  		system_suspend_subtest(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
>  	igt_subtest("system-suspend-execbuf")
>  		system_suspend_execbuf_subtest();
> -	igt_subtest("system-suspend-modeset")
> -		system_suspend_modeset_subtest();
>  	igt_subtest("system-hibernate-devices")
>  		system_suspend_subtest(SUSPEND_STATE_DISK,
>  				       SUSPEND_TEST_DEVICES);
> @@ -2562,16 +1449,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
>  	igt_subtest("gem-execbuf-stress-pc8")
>  		gem_execbuf_stress_subtest(rounds, WAIT_PC8_RES, 0);
>  
> -	/* power-wake reference tests */
> -	igt_subtest("pm-tiling") {
> -		gem_require_mappable_ggtt(drm_fd);
> -		pm_test_tiling();
> -	}
> -	igt_subtest("pm-caching") {
> -		gem_require_mappable_ggtt(drm_fd);
> -		pm_test_caching();
> -	}
> -
>  	igt_fixture {
>  		teardown_environment(true);
>  		forcewake_put(&ms_data);
> @@ -2591,19 +1468,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
>  		igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
>  		teardown_environment(false);
>  
> -		igt_debug("Reload as normal\n");
> -		igt_i915_driver_unload();
> -
> -		igt_kmsg(KMSG_INFO "Reloading i915 as normal\n");
> -		igt_assert_eq(igt_i915_driver_load("mmio_debug=-1"), 0);
> -
> -		igt_assert(setup_environment(true));
> -		pci_dev = igt_device_get_pci_device(drm_fd);
> -		igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
> -		if (enable_one_screen_with_type(&ms_data, SCREEN_TYPE_ANY))
> -			drm_resources_equal_subtest();
> -		teardown_environment(true);
> -
>  		/* Remove our mmio_debugging module */
>  		igt_i915_driver_unload();
>  	}
> diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c
> new file mode 100644
> index 000000000..8f1987864
> --- /dev/null
> +++ b/tests/intel/kms_pm_rpm.c
> @@ -0,0 +1,1740 @@
> +/*
> + * Copyright © 2013, 2015 Intel Corporation

You are creating new test from old one, here you can use SPDX
and keep authors. Also update year (add 2023).

> + *
> + * Permission is hereby granted, free of charge, to any person obtaining a
> + * copy of this software and associated documentation files (the "Software"),
> + * to deal in the Software without restriction, including without limitation
> + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
> + * and/or sell copies of the Software, and to permit persons to whom the
> + * Software is furnished to do so, subject to the following conditions:
> + *
> + * The above copyright notice and this permission notice (including the next
> + * paragraph) shall be included in all copies or substantial portions of the
> + * Software.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
> + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
> + * IN THE SOFTWARE.
> + *
> + * Authors:
> + *    Paulo Zanoni <paulo.r.zanoni@intel.com>
> + *
> + */
> +
> +/**
> + * TEST: kms pm rpm
> + * Category: Display
> + * Description: Test to validate Runtime PM
> + * Driver requirement: i915
> + * Functionality: pm_rpm
> + * Mega feature: Display Power Management
> + * Test category: functionality test
> + */

Put newline here.

Regards,
Kamil

> +#if defined(__linux__)
> +#include <linux/i2c.h>
> +#include <linux/i2c-dev.h>
> +#elif defined(__FreeBSD__)
> +#include <dev/iicbus/iic.h>
> +#define	addr	slave
> +#endif
> +
> +#include <dirent.h>
> +
> +#include "config.h"
> +#include "i915/gem.h"
> +#include "i915/gem_create.h"
> +#include "igt.h"
> +#include "igt_debugfs.h"
> +#include "igt_device.h"
> +#include "igt_edid.h"
> +#include "igt_kmod.h"
> +#include "igt_sysfs.h"
> +#include "intel_blt.h"
> +
> +/**
> + * SUBTEST: basic-pci-d3-state
> + * Description: Validate PCI device D3 state enter-exit scenario using runtime PM
> + *
> + * SUBTEST: basic-rte
> + * Description: Basic display enablement test
> + *
> + * SUBTEST: cursor
> + * Description: Validate cursor movements along with suspends using runtime PM
> + * Functionality: cursor, pm_rpm, suspend
> + *
> + * SUBTEST: cursor-dpms
> + * Description: Validate cursor movements along with dpms using runtime PM
> + * Functionality: cursor, dpms, pm_rpm
> + *
> + * SUBTEST: dpms-lpsp
> + * Description: Validate basic modeset with dpms on lpsp screen using runtime PM
> + * Functionality: dpms, pm_rpm
> + *
> + * SUBTEST: dpms-mode-unset-lpsp
> + * Description: Validate basic modeset (negative) with dpms on lpsp screen using runtime PM
> + * Functionality: dpms, pm_rpm
> + *
> + * SUBTEST: dpms-mode-unset-non-lpsp
> + * Description: Validate basic modeset (negative) with dpms on non-lpsp screen using runtime PM
> + * Functionality: dpms, pm_rpm
> + *
> + * SUBTEST: dpms-non-lpsp
> + * Description: Validate basic modeset with dpms on non-lpsp screen using runtime PM
> + * Functionality: dpms, pm_rpm
> + *
> + * SUBTEST: drm-resources-equal
> + * Description: Validate the DRM resources reported by the IOCTLs are still the same.
> + *
> + * SUBTEST: fences
> + * Description: Sanity test for drm fences.
> + *
> + * SUBTEST: fences-dpms
> + * Description: Sanity test for drm fences with dpms.
> + * Functionality: dpms, pm_rpm
> + *
> + * SUBTEST: i2c
> + * Description: Validate exposed edids using raw I2C read method.
> + *
> + * SUBTEST: legacy-planes
> + * Description: Validate legacy plane (set/unset/change).
> + * Functionality: pm_rpm, plane
> + *
> + * SUBTEST: legacy-planes-dpms
> + * Description: Validate legacy plane (set/unset/change) with dpms.
> + * Functionality: pm_rpm, plane
> + *
> + * SUBTEST: modeset-lpsp
> + * Description: Validate basic modeset on lpsp screen using runtime PM
> + *
> + * SUBTEST: modeset-lpsp-stress
> + * Description: Stress test with modeset on lpsp screen using runtime PM
> + *
> + * SUBTEST: modeset-lpsp-stress-no-wait
> + * Description: Stress test with modeset (no wait)on lpsp screen using runtime PM
> + *
> + * SUBTEST: modeset-non-lpsp
> + * Description: Validate basic modeset on non-lpsp screen using runtime PM
> + *
> + * SUBTEST: modeset-non-lpsp-stress
> + * Description: Stress test with modeset on non-lpsp screen using runtime PM
> + *
> + * SUBTEST: modeset-non-lpsp-stress-no-wait
> + * Description: Stress test with modeset (no wait) on non-lpsp screen using runtime PM
> + *
> + * SUBTEST: modeset-pc8-residency-stress
> + * Description: Stress test with modeset (pc8 residency) using runtime PM
> + *
> + * SUBTEST: modeset-stress-extra-wait
> + * Description: Stress test with modeset (extra wait) using runtime PM
> + *
> + * SUBTEST: module-reload
> + * Description: Test to check D3 state after module reload
> + *
> + * SUBTEST: pc8-residency
> + * Description: Basic sanity test for PC8+ states
> + *
> + * SUBTEST: pm-caching
> + * Description: Test to change different cache levels & check for rpm
> + *
> + * SUBTEST: pm-tiling
> + * Description: Test to change different tiling methods & check for rpm
> + * Functionality: pm_rpm, tiling
> + *
> + * SUBTEST: system-suspend-modeset
> + * Description: Validate basic modeset with suspend
> + * Functionality: pm_rpm, suspend
> + *
> + * SUBTEST: universal-planes
> + * Description: Validate universal plane (set/unset/change).
> + * Functionality: pm_rpm, plane
> + *
> + * SUBTEST: universal-planes-dpms
> + * Description: Validate universal plane (set/unset/change) with dpms.
> + * Functionality: pm_rpm, plane
> + */
> +
> +#define MSR_PC8_RES	0x630
> +#define MSR_PC9_RES	0x631
> +#define MSR_PC10_RES	0x632
> +
> +#define MAX_CONNECTORS	32
> +#define MAX_ENCODERS	32
> +#define MAX_CRTCS	16
> +
> +#define WIDTH 64
> +#define HEIGHT 64
> +#define STRIDE (WIDTH)
> +#define SIZE (HEIGHT * STRIDE)
> +
> +enum pc8_status {
> +	PC8_ENABLED,
> +	PC8_DISABLED
> +};
> +
> +enum screen_type {
> +	SCREEN_TYPE_LPSP,
> +	SCREEN_TYPE_NON_LPSP,
> +	SCREEN_TYPE_ANY,
> +};
> +
> +enum plane_type {
> +	PLANE_OVERLAY,
> +	PLANE_PRIMARY,
> +	PLANE_CURSOR,
> +};
> +
> +/* Wait flags */
> +#define DONT_WAIT	0
> +#define WAIT_STATUS	1
> +#define WAIT_PC8_RES	2
> +#define WAIT_EXTRA	4
> +#define USE_DPMS	8
> +
> +int drm_fd, msr_fd, pc8_status_fd;
> +int debugfs;
> +bool has_runtime_pm, has_pc8;
> +struct mode_set_data ms_data;
> +
> +/* Stuff used when creating FBs and mode setting. */
> +struct mode_set_data {
> +	drmModeResPtr res;
> +	drmModeConnectorPtr connectors[MAX_CONNECTORS];
> +	drmModePropertyBlobPtr edids[MAX_CONNECTORS];
> +	igt_display_t display;
> +
> +	uint32_t devid;
> +	int fw_fd;
> +};
> +
> +/* Stuff we query at different times so we can compare. */
> +struct compare_data {
> +	drmModeResPtr res;
> +	drmModeEncoderPtr encoders[MAX_ENCODERS];
> +	drmModeConnectorPtr connectors[MAX_CONNECTORS];
> +	drmModeCrtcPtr crtcs[MAX_CRTCS];
> +	drmModePropertyBlobPtr edids[MAX_CONNECTORS];
> +};
> +
> +struct modeset_params {
> +	uint32_t crtc_id;
> +	uint32_t connector_id;
> +	struct igt_fb fb;
> +	drmModeModeInfoPtr mode;
> +};
> +
> +struct data_t {
> +	int width;
> +	int height;
> +	uint32_t region;
> +};
> +
> +struct modeset_params lpsp_mode_params;
> +struct modeset_params non_lpsp_mode_params;
> +struct modeset_params *default_mode_params;
> +
> +static int modprobe(const char *driver)
> +{
> +	return igt_kmod_load(driver, NULL);
> +}
> +
> +/* If the read fails, then the machine doesn't support PC8+ residencies. */
> +static bool supports_pc8_plus_residencies(void)
> +{
> +	int rc;
> +	uint64_t val;
> +
> +	rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC8_RES);
> +	if (rc != sizeof(val))
> +		return false;
> +	rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC9_RES);
> +	if (rc != sizeof(val))
> +		return false;
> +	rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC10_RES);
> +	if (rc != sizeof(val))
> +		return false;
> +
> +	return igt_pm_pc8_plus_residencies_enabled(msr_fd);
> +}
> +
> +static uint64_t get_residency(uint32_t type)
> +{
> +	int rc;
> +	uint64_t ret;
> +
> +	rc = pread(msr_fd, &ret, sizeof(uint64_t), type);
> +	igt_assert(rc == sizeof(ret));
> +
> +	return ret;
> +}
> +
> +static bool pc8_plus_residency_changed(unsigned int timeout_sec)
> +{
> +	uint64_t res_pc8, res_pc9, res_pc10;
> +
> +	res_pc8 = get_residency(MSR_PC8_RES);
> +	res_pc9 = get_residency(MSR_PC9_RES);
> +	res_pc10 = get_residency(MSR_PC10_RES);
> +
> +	return igt_wait(res_pc8 != get_residency(MSR_PC8_RES) ||
> +			res_pc9 != get_residency(MSR_PC9_RES) ||
> +			res_pc10 != get_residency(MSR_PC10_RES),
> +			timeout_sec * 1000, 100);
> +}
> +
> +static enum pc8_status get_pc8_status(void)
> +{
> +	ssize_t n_read;
> +	char buf[150]; /* The whole file has less than 100 chars. */
> +
> +	lseek(pc8_status_fd, 0, SEEK_SET);
> +	n_read = read(pc8_status_fd, buf, ARRAY_SIZE(buf));
> +	igt_assert(n_read >= 0);
> +	buf[n_read] = '\0';
> +
> +	if (strstr(buf, "\nEnabled: yes\n"))
> +		return PC8_ENABLED;
> +	else
> +		return PC8_DISABLED;
> +}
> +
> +static bool wait_for_pc8_status(enum pc8_status status)
> +{
> +	return igt_wait(get_pc8_status() == status, 10000, 100);
> +}
> +
> +static bool wait_for_suspended(void)
> +{
> +	if (has_pc8 && !has_runtime_pm) {
> +		return wait_for_pc8_status(PC8_ENABLED);
> +	} else {
> +		bool suspended = igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED);
> +
> +		if (!suspended) {
> +			/* Dump runtime pm status even if test skips */
> +			__igt_debugfs_dump(drm_fd, "i915_runtime_pm_status", IGT_LOG_INFO);
> +		}
> +
> +		return suspended;
> +	}
> +}
> +
> +static bool wait_for_active(void)
> +{
> +	if (has_pc8 && !has_runtime_pm)
> +		return wait_for_pc8_status(PC8_DISABLED);
> +	else
> +		return igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_ACTIVE);
> +}
> +
> +static void disable_all_screens_dpms(struct mode_set_data *data)
> +{
> +	if (!data->res)
> +		return;
> +
> +	for (int i = 0; i < data->res->count_connectors; i++) {
> +		drmModeConnectorPtr c = data->connectors[i];
> +
> +		kmstest_set_connector_dpms(drm_fd, c, DRM_MODE_DPMS_OFF);
> +	}
> +}
> +
> +static void disable_all_screens(struct mode_set_data *data)
> +{
> +	if (data->res)
> +		kmstest_unset_all_crtcs(drm_fd, data->res);
> +}
> +
> +#define disable_all_screens_and_wait(data) do { \
> +	disable_all_screens(data); \
> +	igt_assert(wait_for_suspended()); \
> +} while (0)
> +
> +static void disable_or_dpms_all_screens(struct mode_set_data *data, bool dpms)
> +{
> +	if (dpms)
> +		disable_all_screens_dpms(&ms_data);
> +	else
> +		disable_all_screens(&ms_data);
> +}
> +
> +#define disable_or_dpms_all_screens_and_wait(data, dpms) do { \
> +	disable_or_dpms_all_screens((data), (dpms)); \
> +	igt_assert(wait_for_suspended()); \
> +} while (0)
> +
> +static bool init_modeset_params_for_type(struct mode_set_data *data,
> +					 struct modeset_params *params,
> +					 enum screen_type type)
> +{
> +	drmModeConnectorPtr connector = NULL;
> +	drmModeModeInfoPtr mode = NULL;
> +	igt_output_t *output = NULL;
> +	igt_display_t *display = &data->display;
> +
> +	if (!data->res || !display)
> +		return false;
> +
> +	for_each_connected_output(display, output) {
> +		drmModeConnectorPtr c = output->config.connector;
> +
> +		if (type == SCREEN_TYPE_LPSP &&
> +		     !i915_output_is_lpsp_capable(drm_fd, output))
> +			continue;
> +
> +		if (type == SCREEN_TYPE_NON_LPSP &&
> +		    i915_output_is_lpsp_capable(drm_fd, output))
> +			continue;
> +
> +		connector = c;
> +		mode = igt_output_get_mode(output);
> +		break;
> +	}
> +
> +	if (!connector || !mode)
> +		return false;
> +
> +	igt_create_pattern_fb(drm_fd, mode->hdisplay, mode->vdisplay,
> +			      DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_LINEAR,
> +			      &params->fb);
> +
> +	params->crtc_id = kmstest_find_crtc_for_connector(drm_fd, data->res,
> +							  connector, 0);
> +	params->connector_id = connector->connector_id;
> +	params->mode = mode;
> +
> +	return true;
> +}
> +
> +static void init_modeset_cached_params(struct mode_set_data *data)
> +{
> +	bool lpsp, non_lpsp;
> +
> +	lpsp = init_modeset_params_for_type(data, &lpsp_mode_params,
> +					    SCREEN_TYPE_LPSP);
> +	non_lpsp = init_modeset_params_for_type(data, &non_lpsp_mode_params,
> +						SCREEN_TYPE_NON_LPSP);
> +
> +	if (lpsp)
> +		default_mode_params = &lpsp_mode_params;
> +	else if (non_lpsp)
> +		default_mode_params = &non_lpsp_mode_params;
> +	else
> +		default_mode_params = NULL;
> +}
> +
> +static bool set_mode_for_params(struct modeset_params *params)
> +{
> +	int rc;
> +
> +	rc = drmModeSetCrtc(drm_fd, params->crtc_id, params->fb.fb_id, 0, 0,
> +			    &params->connector_id, 1, params->mode);
> +	return (rc == 0);
> +}
> +
> +#define set_mode_for_params_and_wait(params) do { \
> +	igt_assert(set_mode_for_params(params)); \
> +	igt_assert(wait_for_active()); \
> +} while (0)
> +
> +static bool enable_one_screen_with_type(struct mode_set_data *data,
> +					enum screen_type type)
> +{
> +	struct modeset_params *params = NULL;
> +
> +	switch (type) {
> +	case SCREEN_TYPE_ANY:
> +		params = default_mode_params;
> +		break;
> +	case SCREEN_TYPE_LPSP:
> +		params = &lpsp_mode_params;
> +		break;
> +	case SCREEN_TYPE_NON_LPSP:
> +		params = &non_lpsp_mode_params;
> +		break;
> +	default:
> +		igt_assert(0);
> +	}
> +
> +	if (!params)
> +		return false;
> +
> +	return set_mode_for_params(params);
> +}
> +
> +static void enable_one_screen(struct mode_set_data *data)
> +{
> +	/* SKIP if there are no connected screens. */
> +	igt_require(enable_one_screen_with_type(data, SCREEN_TYPE_ANY));
> +}
> +
> +#define enable_one_screen_and_wait(data) do { \
> +	enable_one_screen(data); \
> +	igt_assert(wait_for_active()); \
> +} while (0)
> +
> +static void
> +enable_one_screen_or_forcewake_get_and_wait(struct mode_set_data *data)
> +{
> +	bool headless;
> +
> +	/* Try to resume by enabling any type of display */
> +	headless = !enable_one_screen_with_type(data, SCREEN_TYPE_ANY);
> +
> +	/*
> +	 * Get User Forcewake to trigger rpm resume in case of headless
> +	 * as well as no display being connected.
> +	 */
> +	if (headless) {
> +		data->fw_fd = igt_open_forcewake_handle(drm_fd);
> +		igt_require(data->fw_fd > 0);
> +	}
> +	igt_assert(wait_for_active());
> +}
> +
> +static void forcewake_put(struct mode_set_data *data)
> +{
> +	if (data->fw_fd <= 0)
> +		return;
> +
> +	data->fw_fd = close(data->fw_fd);
> +	igt_assert_eq(data->fw_fd, 0);
> +}
> +
> +static drmModePropertyBlobPtr get_connector_edid(drmModeConnectorPtr connector,
> +						 int index)
> +{
> +	bool found;
> +	uint64_t prop_value;
> +	drmModePropertyPtr prop;
> +	drmModePropertyBlobPtr blob = NULL;
> +
> +	found = kmstest_get_property(drm_fd, connector->connector_id,
> +				     DRM_MODE_OBJECT_CONNECTOR, "EDID",
> +				     NULL, &prop_value, &prop);
> +
> +	if (found) {
> +		igt_assert(prop->flags & DRM_MODE_PROP_BLOB);
> +		igt_assert(prop->count_blobs == 0);
> +
> +		blob = drmModeGetPropertyBlob(drm_fd, prop_value);
> +
> +		drmModeFreeProperty(prop);
> +	}
> +
> +	return blob;
> +}
> +
> +static void init_mode_set_data(struct mode_set_data *data)
> +{
> +	data->res = drmModeGetResources(drm_fd);
> +	if (data->res) {
> +		igt_assert(data->res->count_connectors <= MAX_CONNECTORS);
> +		for (int i = 0; i < data->res->count_connectors; i++) {
> +			data->connectors[i] =
> +				drmModeGetConnector(drm_fd,
> +						    data->res->connectors[i]);
> +			data->edids[i] = get_connector_edid(data->connectors[i], i);
> +		}
> +
> +		kmstest_set_vt_graphics_mode();
> +		igt_display_require(&data->display, drm_fd);
> +	}
> +
> +	init_modeset_cached_params(&ms_data);
> +}
> +
> +static void fini_mode_set_data(struct mode_set_data *data)
> +{
> +	if (data->res) {
> +		for (int i = 0; i < data->res->count_connectors; i++) {
> +			drmModeFreeConnector(data->connectors[i]);
> +			drmModeFreePropertyBlob(data->edids[i]);
> +		}
> +		drmModeFreeResources(data->res);
> +		igt_display_fini(&data->display);
> +	}
> +}
> +
> +static void get_drm_info(struct compare_data *data)
> +{
> +	int i;
> +
> +	data->res = drmModeGetResources(drm_fd);
> +	if (!data->res)
> +		return;
> +
> +	igt_assert(data->res->count_connectors <= MAX_CONNECTORS);
> +	igt_assert(data->res->count_encoders <= MAX_ENCODERS);
> +	igt_assert(data->res->count_crtcs <= MAX_CRTCS);
> +
> +	for (i = 0; i < data->res->count_connectors; i++) {
> +		/* Don't use GetConnectorCurrent, we want to force a reprobe
> +		 * here. */
> +		data->connectors[i] = drmModeGetConnector(drm_fd,
> +						data->res->connectors[i]);
> +		data->edids[i] = get_connector_edid(data->connectors[i], i);
> +	}
> +	for (i = 0; i < data->res->count_encoders; i++)
> +		data->encoders[i] = drmModeGetEncoder(drm_fd,
> +						data->res->encoders[i]);
> +	for (i = 0; i < data->res->count_crtcs; i++)
> +		data->crtcs[i] = drmModeGetCrtc(drm_fd, data->res->crtcs[i]);
> +}
> +
> +static void free_drm_info(struct compare_data *data)
> +{
> +	int i;
> +
> +	if (!data->res)
> +		return;
> +
> +	for (i = 0; i < data->res->count_connectors; i++) {
> +		drmModeFreeConnector(data->connectors[i]);
> +		drmModeFreePropertyBlob(data->edids[i]);
> +	}
> +	for (i = 0; i < data->res->count_encoders; i++)
> +		drmModeFreeEncoder(data->encoders[i]);
> +	for (i = 0; i < data->res->count_crtcs; i++)
> +		drmModeFreeCrtc(data->crtcs[i]);
> +
> +	drmModeFreeResources(data->res);
> +}
> +
> +#define COMPARE(d1, d2, data) igt_assert_eq(d1->data, d2->data)
> +#define COMPARE_ARRAY(d1, d2, size, data) do { \
> +	for (i = 0; i < size; i++) \
> +		igt_assert(d1->data[i] == d2->data[i]); \
> +} while (0)
> +
> +static void assert_drm_resources_equal(struct compare_data *d1,
> +				       struct compare_data *d2)
> +{
> +	COMPARE(d1, d2, res->count_connectors);
> +	COMPARE(d1, d2, res->count_encoders);
> +	COMPARE(d1, d2, res->count_crtcs);
> +	COMPARE(d1, d2, res->min_width);
> +	COMPARE(d1, d2, res->max_width);
> +	COMPARE(d1, d2, res->min_height);
> +	COMPARE(d1, d2, res->max_height);
> +}
> +
> +static void assert_modes_equal(drmModeModeInfoPtr m1, drmModeModeInfoPtr m2)
> +{
> +	COMPARE(m1, m2, clock);
> +	COMPARE(m1, m2, hdisplay);
> +	COMPARE(m1, m2, hsync_start);
> +	COMPARE(m1, m2, hsync_end);
> +	COMPARE(m1, m2, htotal);
> +	COMPARE(m1, m2, hskew);
> +	COMPARE(m1, m2, vdisplay);
> +	COMPARE(m1, m2, vsync_start);
> +	COMPARE(m1, m2, vsync_end);
> +	COMPARE(m1, m2, vtotal);
> +	COMPARE(m1, m2, vscan);
> +	COMPARE(m1, m2, vrefresh);
> +	COMPARE(m1, m2, flags);
> +	COMPARE(m1, m2, type);
> +	igt_assert(strcmp(m1->name, m2->name) == 0);
> +}
> +
> +static void assert_drm_connectors_equal(drmModeConnectorPtr c1,
> +					drmModeConnectorPtr c2)
> +{
> +	int i;
> +
> +	COMPARE(c1, c2, connector_id);
> +	COMPARE(c1, c2, connector_type);
> +	COMPARE(c1, c2, connector_type_id);
> +	COMPARE(c1, c2, mmWidth);
> +	COMPARE(c1, c2, mmHeight);
> +	COMPARE(c1, c2, count_modes);
> +	COMPARE(c1, c2, count_props);
> +	COMPARE(c1, c2, count_encoders);
> +	COMPARE_ARRAY(c1, c2, c1->count_props, props);
> +	COMPARE_ARRAY(c1, c2, c1->count_encoders, encoders);
> +
> +	for (i = 0; i < c1->count_modes; i++)
> +		assert_modes_equal(&c1->modes[0], &c2->modes[0]);
> +}
> +
> +static void assert_drm_encoders_equal(drmModeEncoderPtr e1,
> +				      drmModeEncoderPtr e2)
> +{
> +	COMPARE(e1, e2, encoder_id);
> +	COMPARE(e1, e2, encoder_type);
> +	COMPARE(e1, e2, possible_crtcs);
> +	COMPARE(e1, e2, possible_clones);
> +}
> +
> +static void assert_drm_crtcs_equal(drmModeCrtcPtr c1, drmModeCrtcPtr c2)
> +{
> +	COMPARE(c1, c2, crtc_id);
> +}
> +
> +static void assert_drm_edids_equal(drmModePropertyBlobPtr e1,
> +				   drmModePropertyBlobPtr e2)
> +{
> +	if (!e1 && !e2)
> +		return;
> +	igt_assert(e1 && e2);
> +
> +	COMPARE(e1, e2, length);
> +
> +	igt_assert(memcmp(e1->data, e2->data, e1->length) == 0);
> +}
> +
> +static void assert_drm_infos_equal(struct compare_data *d1,
> +				   struct compare_data *d2)
> +{
> +	int i;
> +
> +	if (d1->res == d2->res)
> +		return;
> +
> +	igt_assert(d1->res);
> +	igt_assert(d2->res);
> +
> +	assert_drm_resources_equal(d1, d2);
> +
> +	for (i = 0; i < d1->res->count_connectors; i++) {
> +		assert_drm_connectors_equal(d1->connectors[i],
> +					    d2->connectors[i]);
> +		assert_drm_edids_equal(d1->edids[i], d2->edids[i]);
> +	}
> +
> +	for (i = 0; i < d1->res->count_encoders; i++)
> +		assert_drm_encoders_equal(d1->encoders[i], d2->encoders[i]);
> +
> +	for (i = 0; i < d1->res->count_crtcs; i++)
> +		assert_drm_crtcs_equal(d1->crtcs[i], d2->crtcs[i]);
> +}
> +
> +static void setup_pc8(void)
> +{
> +	has_pc8 = false;
> +
> +	/* Only Haswell supports the PC8 feature. */
> +	if (!IS_HASWELL(ms_data.devid) && !IS_BROADWELL(ms_data.devid))
> +		return;
> +
> +	/* Make sure our Kernel supports MSR and the module is loaded. */
> +	igt_require(modprobe("msr") == 0);
> +
> +	msr_fd = open("/dev/cpu/0/msr", O_RDONLY);
> +	igt_assert_f(msr_fd >= 0,
> +		     "Can't open /dev/cpu/0/msr.\n");
> +
> +	/* Non-ULT machines don't support PC8+. */
> +	if (!supports_pc8_plus_residencies())
> +		return;
> +
> +	pc8_status_fd = openat(debugfs, "i915_pc8_status", O_RDONLY);
> +	if (pc8_status_fd == -1)
> +		pc8_status_fd = openat(debugfs,
> +				       "i915_runtime_pm_status", O_RDONLY);
> +	igt_assert_f(pc8_status_fd >= 0,
> +		     "Can't open /sys/kernel/debug/dri/0/i915_runtime_pm_status");
> +
> +	has_pc8 = true;
> +}
> +
> +static void dump_file(int dir, const char *filename)
> +{
> +	char *contents;
> +
> +	contents = igt_sysfs_get(dir, filename);
> +	if (!contents)
> +		return;
> +
> +	igt_info("%s:\n%s\n", filename, contents);
> +	free(contents);
> +}
> +
> +static bool setup_environment(void)
> +{
> +	if (has_runtime_pm)
> +		goto out;
> +
> +	drm_fd = __drm_open_driver(DRIVER_INTEL);
> +	igt_require(drm_fd != -1);
> +	igt_device_set_master(drm_fd);
> +
> +	debugfs = igt_debugfs_dir(drm_fd);
> +	igt_require(debugfs != -1);
> +
> +	ms_data.devid = intel_get_drm_devid(drm_fd);
> +
> +	init_mode_set_data(&ms_data);
> +
> +	igt_pm_enable_sata_link_power_management();
> +
> +	has_runtime_pm = igt_setup_runtime_pm(drm_fd);
> +	setup_pc8();
> +
> +	igt_info("Runtime PM support: %d\n", has_runtime_pm);
> +	igt_info("PC8 residency support: %d\n", has_pc8);
> +	igt_require(has_runtime_pm);
> +	igt_require(igt_pm_dmc_loaded(debugfs));
> +
> +out:
> +	disable_all_screens(&ms_data);
> +	dump_file(debugfs, "i915_runtime_pm_status");
> +
> +	return wait_for_suspended();
> +}
> +
> +static void teardown_environment(void)
> +{
> +	close(msr_fd);
> +	if (has_pc8)
> +		close(pc8_status_fd);
> +
> +	igt_restore_runtime_pm();
> +
> +	igt_pm_restore_sata_link_power_management();
> +
> +	fini_mode_set_data(&ms_data);
> +
> +	close(debugfs);
> +	drm_close_driver(drm_fd);
> +
> +	has_runtime_pm = false;
> +}
> +
> +static void pc8_residency_subtest(void)
> +{
> +	igt_require(has_pc8);
> +
> +	/* Make sure PC8+ residencies move! */
> +	disable_all_screens(&ms_data);
> +	igt_assert_f(pc8_plus_residency_changed(30),
> +		     "Machine is not reaching PC8+ states, please check its "
> +		     "configuration.\n");
> +
> +	/* Make sure PC8+ residencies stop! */
> +	enable_one_screen(&ms_data);
> +	igt_assert_f(!pc8_plus_residency_changed(10),
> +		     "PC8+ residency didn't stop with screen enabled.\n");
> +}
> +
> +static void basic_subtest(void)
> +{
> +	disable_all_screens_and_wait(&ms_data);
> +
> +	enable_one_screen_or_forcewake_get_and_wait(&ms_data);
> +	forcewake_put(&ms_data);
> +
> +	/* XXX Also we can test wake up via exec nop */
> +}
> +
> +static void modeset_subtest(enum screen_type type, int rounds, int wait_flags)
> +{
> +	int i;
> +
> +	if (wait_flags & WAIT_PC8_RES)
> +		igt_require(has_pc8);
> +
> +	if (wait_flags & WAIT_EXTRA)
> +		rounds /= 2;
> +
> +	for (i = 0; i < rounds; i++) {
> +		if (wait_flags & USE_DPMS)
> +			disable_all_screens_dpms(&ms_data);
> +		else
> +			disable_all_screens(&ms_data);
> +
> +		if (wait_flags & WAIT_STATUS)
> +			igt_assert(wait_for_suspended());
> +		if (wait_flags & WAIT_PC8_RES)
> +			igt_assert(pc8_plus_residency_changed(30));
> +		if (wait_flags & WAIT_EXTRA)
> +			sleep(5);
> +
> +		/* If we skip this line it's because the type of screen we want
> +		 * is not connected. */
> +		igt_require(enable_one_screen_with_type(&ms_data, type));
> +		if (wait_flags & WAIT_STATUS)
> +			igt_assert(wait_for_active());
> +		if (wait_flags & WAIT_PC8_RES)
> +			igt_assert(!pc8_plus_residency_changed(5));
> +		if (wait_flags & WAIT_EXTRA)
> +			sleep(5);
> +	}
> +}
> +
> +/* Test of the DRM resources reported by the IOCTLs are still the same. This
> + * ensures we still see the monitors with the same eyes. We get the EDIDs and
> + * compare them, which ensures we use DP AUX or GMBUS depending on what's
> + * connected. */
> +static void drm_resources_equal_subtest(void)
> +{
> +	struct compare_data pre_suspend, during_suspend, post_suspend;
> +
> +	enable_one_screen_and_wait(&ms_data);
> +	get_drm_info(&pre_suspend);
> +	igt_assert(wait_for_active());
> +
> +	disable_all_screens_and_wait(&ms_data);
> +	get_drm_info(&during_suspend);
> +	igt_assert(wait_for_suspended());
> +
> +	enable_one_screen_and_wait(&ms_data);
> +	get_drm_info(&post_suspend);
> +	igt_assert(wait_for_active());
> +
> +	assert_drm_infos_equal(&pre_suspend, &during_suspend);
> +	assert_drm_infos_equal(&pre_suspend, &post_suspend);
> +
> +	free_drm_info(&pre_suspend);
> +	free_drm_info(&during_suspend);
> +	free_drm_info(&post_suspend);
> +}
> +
> +static bool find_i2c_path(const char *connector_name,
> +			  char *i2c_path, size_t i2c_path_size)
> +{
> +	struct dirent *dirent;
> +	DIR *dir;
> +	int sysfs_card_fd = igt_sysfs_open(drm_fd);
> +	int connector_fd = -1;
> +	bool found_i2c_file = false;
> +	ssize_t r;
> +
> +	dir = fdopendir(sysfs_card_fd);
> +	igt_assert(dir);
> +
> +	while ((dirent = readdir(dir))) {
> +		/* Skip "cardx-" prefix */
> +		char *dirname = strchr(dirent->d_name, '-');
> +		if (dirname==NULL)
> +			continue;
> +		++dirname;
> +
> +		if (strcmp(dirname, connector_name) == 0) {
> +			connector_fd = openat(sysfs_card_fd, dirent->d_name, O_RDONLY);
> +			break;
> +		}
> +	}
> +	closedir(dir);
> +
> +	if (connector_fd < 0)
> +		return false;
> +
> +	/* try the standard "ddc" symlink first */
> +	r = readlinkat(connector_fd, "ddc", i2c_path, i2c_path_size);
> +	if (r > 0 && r != i2c_path_size) {
> +		int num;
> +
> +		i2c_path[r] = '\0';
> +
> +		if (sscanf(basename(i2c_path), "i2c-%d", &num) == 1) {
> +			snprintf(i2c_path, i2c_path_size, "/dev/i2c-%d", num);
> +			return true;
> +		}
> +	}
> +
> +	dir = fdopendir(connector_fd);
> +	igt_assert(dir);
> +
> +	/* fall back to old "i2c-?" symlink */
> +	/* FIXME nuke this at some point */
> +	while ((dirent = readdir(dir))) {
> +		if (strncmp(dirent->d_name, "i2c-", 4) == 0) {
> +			sprintf(i2c_path, "/dev/%s", dirent->d_name);
> +			found_i2c_file = true;
> +		}
> +	}
> +	closedir(dir);
> +	return found_i2c_file;
> +}
> +
> +static bool i2c_read_edid(const char *connector_name, unsigned char *edid)
> +{
> +	char i2c_path[PATH_MAX];
> +	bool result;
> +	int rc, fd;
> +	struct i2c_msg msgs[] = {
> +		{ /* Start at 0. */
> +			.addr = 0x50,
> +			.flags = 0,
> +			.len = 1,
> +			.buf = edid,
> +		}, { /* Now read the EDID. */
> +			.addr = 0x50,
> +			.flags = I2C_M_RD,
> +			.len = 128,
> +			.buf = edid,
> +		}
> +	};
> +	struct i2c_rdwr_ioctl_data msgset = {
> +		.msgs = msgs,
> +		.nmsgs = 2,
> +	};
> +
> +	result = find_i2c_path(connector_name, i2c_path, sizeof(i2c_path));
> +	if (!result)
> +		return false;
> +
> +	igt_info("Testing %s %s\n", connector_name, i2c_path);
> +
> +	fd = open(i2c_path, O_RDWR);
> +	igt_assert_neq(fd, -1);
> +
> +	rc = ioctl(fd, I2C_RDWR, &msgset);
> +	if (rc==-1) {
> +		igt_debug("I2C access failed with errno %d, %s\n",
> +				errno, strerror(errno));
> +		errno = 0;
> +	}
> +
> +	close(fd);
> +	return rc >= 0;
> +}
> +
> +static void format_hex_string(const unsigned char edid[static EDID_BLOCK_SIZE],
> +			      char buf[static EDID_BLOCK_SIZE * 5 + 1])
> +{
> +	for (int i = 0; i < EDID_BLOCK_SIZE; ++i)
> +		sprintf(buf+i*5, "0x%02x ", edid[i]);
> +}
> +
> +static bool is_mst_connector(int fd, uint32_t connector_id)
> +{
> +	return kmstest_get_property(fd, connector_id,
> +				    DRM_MODE_OBJECT_CONNECTOR,
> +				    "PATH", NULL, NULL, NULL);
> +}
> +
> +static void test_i2c(struct mode_set_data *data)
> +{
> +	bool edid_mistmach_i2c_vs_drm = false;
> +	igt_display_t display;
> +	igt_display_require(&display, drm_fd);
> +
> +	for (int i = 0; i < data->res->count_connectors; i++) {
> +		unsigned char *drm_edid = data->edids[i] ? data->edids[i]->data : NULL;
> +		unsigned char i2c_edid[EDID_BLOCK_SIZE] = {};
> +
> +		igt_output_t *output = igt_output_from_connector(&display,
> +								 data->connectors[i]);
> +		char *connector_name = (char *) igt_output_name(output);
> +
> +		bool got_i2c_edid = i2c_read_edid(connector_name, i2c_edid);
> +		bool got_drm_edid = drm_edid != NULL;
> +		bool is_vga = data->connectors[i]->connector_type == DRM_MODE_CONNECTOR_VGA;
> +
> +		bool edids_equal;
> +
> +		if (data->connectors[i]->connection != DRM_MODE_CONNECTED ||
> +		    is_mst_connector(drm_fd, data->connectors[i]->connector_id))
> +			continue;
> +
> +		/* We fail to detect some VGA monitors using our i2c method. If you look
> +		 * at the dmesg of these cases, you'll see the Kernel complaining about
> +		 * the EDID reading mostly FFs and then disabling bit-banging. Since we
> +		 * don't want to reimplement everything the Kernel does, let's just
> +		 * accept the fact that some VGA outputs won't be properly detected. */
> +		if (is_vga)
> +			continue;
> +
> +		if (!got_i2c_edid && !got_drm_edid)
> +			continue;
> +
> +		if (got_i2c_edid && got_drm_edid)
> +			edids_equal = (0 == memcmp(drm_edid, i2c_edid, EDID_BLOCK_SIZE));
> +		else
> +			edids_equal = false;
> +
> +
> +		if (!edids_equal) {
> +			char buf[5 * EDID_BLOCK_SIZE + 1];
> +			igt_critical("Detected EDID mismatch on connector %s\n",
> +				     connector_name);
> +
> +			if(got_i2c_edid)
> +				format_hex_string(i2c_edid, buf);
> +			else
> +				sprintf(buf, "NULL");
> +
> +			igt_critical("i2c: %s\n", buf);
> +
> +			if(got_drm_edid)
> +				format_hex_string(drm_edid, buf);
> +			else
> +				sprintf(buf, "NULL");
> +
> +			igt_critical("drm: %s\n", buf);
> +
> +			edid_mistmach_i2c_vs_drm = true;
> +		}
> +	}
> +	igt_fail_on_f(edid_mistmach_i2c_vs_drm,
> +			"There is an EDID mismatch between i2c and DRM!\n");
> +}
> +
> +static void i2c_subtest_check_environment(void)
> +{
> +	int i2c_dev_files = 0;
> +	DIR *dev_dir;
> +	struct dirent *dirent;
> +
> +	/* Make sure the /dev/i2c-* files exist. */
> +	igt_require(modprobe("i2c-dev") == 0);
> +
> +	dev_dir = opendir("/dev");
> +	igt_assert(dev_dir);
> +	while ((dirent = readdir(dev_dir))) {
> +		if (strncmp(dirent->d_name, "i2c-", 4) == 0)
> +			i2c_dev_files++;
> +	}
> +	closedir(dev_dir);
> +	igt_require(i2c_dev_files);
> +}
> +
> +/* Try to use raw I2C, which also needs interrupts. */
> +static void i2c_subtest(void)
> +{
> +	i2c_subtest_check_environment();
> +
> +	enable_one_screen_and_wait(&ms_data);
> +
> +	disable_all_screens_and_wait(&ms_data);
> +	test_i2c(&ms_data);
> +	igt_assert(wait_for_suspended());
> +
> +	enable_one_screen(&ms_data);
> +}
> +
> +struct read_entry_elapsed {
> +	uint64_t elapsed;
> +	char *path;
> +} max_read_entry;
> +
> +static bool device_in_pci_d3(struct pci_device *pci_dev)
> +{
> +	uint16_t val;
> +	int rc;
> +
> +	rc = pci_device_cfg_read_u16(pci_dev, &val, 0xd4);
> +	igt_assert_eq(rc, 0);
> +
> +	igt_debug("%s: PCI D3 state=%d\n", __func__, val & 0x3);
> +	return (val & 0x3) == 0x3;
> +}
> +
> +static void pci_d3_state_subtest(void)
> +{
> +	struct pci_device *pci_dev, *bridge_pci_dev;
> +
> +	igt_require(has_runtime_pm);
> +
> +	pci_dev = igt_device_get_pci_device(drm_fd);
> +	bridge_pci_dev = pci_device_get_parent_bridge(pci_dev);
> +
> +	disable_all_screens_and_wait(&ms_data);
> +	igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
> +
> +	if (gem_has_lmem(drm_fd))
> +		igt_require_f(pci_device_has_kernel_driver(bridge_pci_dev),
> +			      "pci bridge device does not bind with pcieport driver\n");
> +
> +	enable_one_screen_or_forcewake_get_and_wait(&ms_data);
> +	igt_assert(!device_in_pci_d3(pci_dev));
> +	forcewake_put(&ms_data);
> +}
> +
> +__noreturn static void stay_subtest(void)
> +{
> +	disable_all_screens_and_wait(&ms_data);
> +
> +	while (1)
> +		sleep(600);
> +}
> +
> +static void system_suspend_modeset_subtest(void)
> +{
> +	disable_all_screens_and_wait(&ms_data);
> +	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
> +	igt_assert(wait_for_suspended());
> +
> +	enable_one_screen_and_wait(&ms_data);
> +	disable_all_screens_and_wait(&ms_data);
> +}
> +
> +/* Enable a screen, activate DPMS, then do a modeset. At some point our driver
> + * produced WARNs on this case. */
> +static void dpms_mode_unset_subtest(enum screen_type type)
> +{
> +	disable_all_screens_and_wait(&ms_data);
> +
> +	igt_require(enable_one_screen_with_type(&ms_data, type));
> +	igt_assert(wait_for_active());
> +
> +	disable_all_screens_dpms(&ms_data);
> +	igt_assert(wait_for_suspended());
> +
> +	disable_all_screens_and_wait(&ms_data);
> +}
> +
> +static void fill_igt_fb(struct igt_fb *fb, uint32_t color)
> +{
> +	int i;
> +	uint32_t *ptr;
> +
> +	ptr = gem_mmap__device_coherent(drm_fd, fb->gem_handle, 0, fb->size, PROT_WRITE);
> +	for (i = 0; i < fb->size/sizeof(uint32_t); i++)
> +		ptr[i] = color;
> +	igt_assert(munmap(ptr, fb->size) == 0);
> +}
> +
> +/* At some point, this test triggered WARNs in the Kernel. */
> +static void cursor_subtest(bool dpms)
> +{
> +	int rc;
> +	struct igt_fb cursor_fb1, cursor_fb2, cursor_fb3;
> +	uint32_t crtc_id;
> +
> +	disable_all_screens_and_wait(&ms_data);
> +
> +	igt_require(default_mode_params);
> +	crtc_id = default_mode_params->crtc_id;
> +
> +	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
> +		      DRM_FORMAT_MOD_LINEAR, &cursor_fb1);
> +	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
> +		      DRM_FORMAT_MOD_LINEAR, &cursor_fb2);
> +	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
> +		      I915_FORMAT_MOD_X_TILED, &cursor_fb3);
> +
> +	fill_igt_fb(&cursor_fb1, 0xFF00FFFF);
> +	fill_igt_fb(&cursor_fb2, 0xFF00FF00);
> +	fill_igt_fb(&cursor_fb3, 0xFFFF0000);
> +
> +	set_mode_for_params_and_wait(default_mode_params);
> +
> +	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb1.gem_handle,
> +			      cursor_fb1.width, cursor_fb1.height);
> +	igt_assert_eq(rc, 0);
> +	rc = drmModeMoveCursor(drm_fd, crtc_id, 0, 0);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_active());
> +
> +	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
> +
> +	/* First, just move the cursor. */
> +	rc = drmModeMoveCursor(drm_fd, crtc_id, 1, 1);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	/* Then unset it, and set a new one. */
> +	rc = drmModeSetCursor(drm_fd, crtc_id, 0, 0, 0);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb2.gem_handle,
> +			      cursor_fb1.width, cursor_fb2.height);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	/* Move the new cursor. */
> +	rc = drmModeMoveCursor(drm_fd, crtc_id, 2, 2);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	/* Now set a new one without unsetting the previous one. */
> +	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb1.gem_handle,
> +			      cursor_fb1.width, cursor_fb1.height);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	/* Cursor 3 was created with tiling and painted with a GTT mmap, so
> +	 * hopefully it has some fences around it. */
> +	rc = drmModeRmFB(drm_fd, cursor_fb3.fb_id);
> +	igt_assert_eq(rc, 0);
> +	__gem_set_tiling(drm_fd, cursor_fb3.gem_handle, false, cursor_fb3.strides[0]);
> +	igt_assert(wait_for_suspended());
> +
> +	rc = drmModeSetCursor(drm_fd, crtc_id, cursor_fb3.gem_handle,
> +			      cursor_fb3.width, cursor_fb3.height);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	/* Make sure nothing remains for the other tests. */
> +	rc = drmModeSetCursor(drm_fd, crtc_id, 0, 0, 0);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +}
> +
> +static enum plane_type get_plane_type(uint32_t plane_id)
> +{
> +	int i;
> +	bool found;
> +	uint64_t prop_value;
> +	drmModePropertyPtr prop;
> +	const char *enum_name = NULL;
> +	enum plane_type type;
> +
> +	found = kmstest_get_property(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE,
> +				     "type", NULL, &prop_value, &prop);
> +	igt_assert(found);
> +
> +	igt_assert(prop->flags & DRM_MODE_PROP_ENUM);
> +	igt_assert(prop_value < prop->count_enums);
> +
> +	for (i = 0; i < prop->count_enums; i++) {
> +		if (prop->enums[i].value == prop_value) {
> +			enum_name = prop->enums[i].name;
> +			break;
> +		}
> +	}
> +	igt_assert(enum_name);
> +
> +	if (strcmp(enum_name, "Overlay") == 0)
> +		type = PLANE_OVERLAY;
> +	else if (strcmp(enum_name, "Primary") == 0)
> +		type = PLANE_PRIMARY;
> +	else if (strcmp(enum_name, "Cursor") == 0)
> +		type = PLANE_CURSOR;
> +	else
> +		igt_assert(0);
> +
> +	drmModeFreeProperty(prop);
> +
> +	return type;
> +}
> +
> +static void test_one_plane(bool dpms, uint32_t plane_id,
> +			   enum plane_type plane_type)
> +{
> +	int rc;
> +	uint32_t plane_format, plane_w, plane_h;
> +	uint32_t crtc_id;
> +	struct igt_fb plane_fb1, plane_fb2;
> +	int32_t crtc_x = 0, crtc_y = 0;
> +	uint64_t modifier;
> +
> +	disable_all_screens_and_wait(&ms_data);
> +
> +	crtc_id = default_mode_params->crtc_id;
> +
> +	switch (plane_type) {
> +	case PLANE_OVERLAY:
> +		plane_format = DRM_FORMAT_XRGB8888;
> +		plane_w = 64;
> +		plane_h = 64;
> +		modifier = I915_FORMAT_MOD_X_TILED;
> +		break;
> +	case PLANE_PRIMARY:
> +		plane_format = DRM_FORMAT_XRGB8888;
> +		plane_w = default_mode_params->mode->hdisplay;
> +		plane_h = default_mode_params->mode->vdisplay;
> +		modifier = I915_FORMAT_MOD_X_TILED;
> +		break;
> +	case PLANE_CURSOR:
> +		plane_format = DRM_FORMAT_ARGB8888;
> +		plane_w = 64;
> +		plane_h = 64;
> +		modifier = DRM_FORMAT_MOD_LINEAR;
> +		break;
> +	default:
> +		igt_assert(0);
> +		break;
> +	}
> +
> +	igt_create_fb(drm_fd, plane_w, plane_h, plane_format, modifier,
> +		      &plane_fb1);
> +	igt_create_fb(drm_fd, plane_w, plane_h, plane_format, modifier,
> +		      &plane_fb2);
> +	fill_igt_fb(&plane_fb1, 0xFF00FFFF);
> +	fill_igt_fb(&plane_fb2, 0xFF00FF00);
> +
> +	set_mode_for_params_and_wait(default_mode_params);
> +
> +	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
> +			     0, 0, plane_fb1.width, plane_fb1.height,
> +			     0 << 16, 0 << 16, plane_fb1.width << 16,
> +			     plane_fb1.height << 16);
> +	igt_assert_eq(rc, 0);
> +
> +	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
> +
> +	/* Just move the plane around. */
> +	if (plane_type != PLANE_PRIMARY) {
> +		crtc_x++;
> +		crtc_y++;
> +	}
> +	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
> +			     crtc_x, crtc_y, plane_fb1.width, plane_fb1.height,
> +			     0 << 16, 0 << 16, plane_fb1.width << 16,
> +			     plane_fb1.height << 16);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	/* Unset, then change the plane. */
> +	rc = drmModeSetPlane(drm_fd, plane_id, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb2.fb_id, 0,
> +			     crtc_x, crtc_y, plane_fb2.width, plane_fb2.height,
> +			     0 << 16, 0 << 16, plane_fb2.width << 16,
> +			     plane_fb2.height << 16);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	/* Now change the plane without unsetting first. */
> +	rc = drmModeSetPlane(drm_fd, plane_id, crtc_id, plane_fb1.fb_id, 0,
> +			     crtc_x, crtc_y, plane_fb1.width, plane_fb1.height,
> +			     0 << 16, 0 << 16, plane_fb1.width << 16,
> +			     plane_fb1.height << 16);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +
> +	/* Make sure nothing remains for the other tests. */
> +	rc = drmModeSetPlane(drm_fd, plane_id, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
> +	igt_assert_eq(rc, 0);
> +	igt_assert(wait_for_suspended());
> +}
> +
> +/* This one also triggered WARNs on our driver at some point in time. */
> +static void planes_subtest(bool universal, bool dpms)
> +{
> +	int i, crtc_idx;
> +	drmModePlaneResPtr planes;
> +
> +	igt_require(default_mode_params);
> +	crtc_idx = kmstest_get_crtc_idx(ms_data.res,
> +					default_mode_params->crtc_id);
> +
> +	igt_assert_eq(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES,
> +				      universal), 0);
> +
> +	planes = drmModeGetPlaneResources(drm_fd);
> +	for (i = 0; i < planes->count_planes; i++) {
> +		drmModePlanePtr plane;
> +
> +		plane = drmModeGetPlane(drm_fd, planes->planes[i]);
> +		igt_assert(plane);
> +
> +		if (plane->possible_crtcs & (1 << crtc_idx)) {
> +			enum plane_type type;
> +
> +			type = universal ? get_plane_type(plane->plane_id) :
> +					   PLANE_OVERLAY;
> +			igt_dynamic_f("plane-%d", plane->plane_id)
> +				test_one_plane(dpms, plane->plane_id, type);
> +		}
> +		drmModeFreePlane(plane);
> +	}
> +	drmModeFreePlaneResources(planes);
> +
> +	igt_assert_eq(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES,
> +				      1), 0);
> +}
> +
> +static void fences_subtest(bool dpms)
> +{
> +	int i;
> +	uint32_t *buf_ptr;
> +	uint32_t tiling = false, swizzle;
> +	struct modeset_params params;
> +
> +	disable_all_screens_and_wait(&ms_data);
> +
> +	igt_require(default_mode_params);
> +	params.crtc_id = default_mode_params->crtc_id;
> +	params.connector_id = default_mode_params->connector_id;
> +	params.mode = default_mode_params->mode;
> +	igt_create_fb(drm_fd, params.mode->hdisplay, params.mode->vdisplay,
> +		      DRM_FORMAT_XRGB8888, I915_FORMAT_MOD_X_TILED,
> +		      &params.fb);
> +
> +	/* Even though we passed "true" as the tiling argument, double-check
> +	 * that the fb is really tiled. */
> +	gem_get_tiling(drm_fd, params.fb.gem_handle, &tiling, &swizzle);
> +	igt_assert(tiling);
> +
> +	buf_ptr = gem_mmap__gtt(drm_fd, params.fb.gem_handle, params.fb.size,
> +				PROT_WRITE | PROT_READ);
> +	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
> +		buf_ptr[i] = i;
> +
> +	set_mode_for_params_and_wait(&params);
> +
> +	disable_or_dpms_all_screens_and_wait(&ms_data, dpms);
> +
> +	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
> +		igt_assert_eq(buf_ptr[i], i);
> +	igt_assert(wait_for_suspended());
> +
> +	if (dpms) {
> +		drmModeConnectorPtr c = NULL;
> +
> +		for (i = 0; i < ms_data.res->count_connectors; i++)
> +			if (ms_data.connectors[i]->connector_id ==
> +			    params.connector_id)
> +				c = ms_data.connectors[i];
> +		igt_assert(c);
> +
> +		kmstest_set_connector_dpms(drm_fd, c, DRM_MODE_DPMS_ON);
> +	} else {
> +		set_mode_for_params(&params);
> +	}
> +	igt_assert(wait_for_active());
> +
> +	for (i = 0; i < params.fb.size/sizeof(uint32_t); i++)
> +		igt_assert_eq(buf_ptr[i], i);
> +
> +	igt_assert(munmap(buf_ptr, params.fb.size) == 0);
> +}
> +
> +static void pm_test_tiling(void)
> +{
> +	uint32_t *handles;
> +	uint8_t **gem_bufs;
> +
> +	int max_gem_objs = 0;
> +	uint8_t off_bit = 14;
> +	uint32_t gtt_obj_max_size = (256 * 1024);
> +
> +	uint32_t i, j, k, tiling_modes[3] = {
> +		I915_TILING_NONE,
> +		I915_TILING_X,
> +		I915_TILING_Y,
> +	};
> +	uint32_t ti, sw;
> +
> +	/* default stride value */
> +	uint32_t stride = 512;
> +
> +	/* calculate how many objects we can map */
> +	for (i = 1 << off_bit; i <= gtt_obj_max_size; i <<= 1, max_gem_objs++)
> +		;
> +
> +	gem_bufs = calloc(max_gem_objs, sizeof(*gem_bufs));
> +	handles = calloc(max_gem_objs, sizeof(*handles));
> +
> +	/* try to set different tiling for each handle */
> +	for (i = 0; i < ARRAY_SIZE(tiling_modes); i++) {
> +
> +		for (j = 0, k = 1 << off_bit;
> +		     k <= gtt_obj_max_size; k <<= 1, j++) {
> +			handles[j] = gem_create(drm_fd, k);
> +			gem_bufs[j] = gem_mmap__gtt(drm_fd, handles[j],
> +						    k, PROT_WRITE);
> +			memset(gem_bufs[j], 0x0, k);
> +		}
> +
> +		disable_all_screens_and_wait(&ms_data);
> +
> +		for (j = 0; j < max_gem_objs; j++) {
> +			gem_set_tiling(drm_fd, handles[j],
> +					tiling_modes[i], stride);
> +			gem_get_tiling(drm_fd, handles[j], &ti, &sw);
> +			igt_assert(tiling_modes[i] == ti);
> +		}
> +
> +		enable_one_screen_and_wait(&ms_data);
> +
> +		for (j = 0, k = 1 << off_bit;
> +		     k <= gtt_obj_max_size; k <<= 1, j++) {
> +			igt_assert(munmap(gem_bufs[j], k) == 0);
> +			gem_close(drm_fd, handles[j]);
> +		}
> +	}
> +
> +	free(gem_bufs);
> +	free(handles);
> +}
> +
> +static void pm_test_caching(void)
> +{
> +	uint32_t handle;
> +	uint8_t *gem_buf;
> +
> +	uint32_t i;
> +	uint32_t default_cache_level;
> +	uint32_t gtt_obj_max_size = (16 * 1024);
> +	uint32_t cache_levels[3] = {
> +		I915_CACHING_NONE,
> +		I915_CACHING_CACHED,            /* LLC caching */
> +		I915_CACHING_DISPLAY,           /* eDRAM caching */
> +	};
> +
> +	disable_all_screens(&ms_data);
> +
> +	handle = gem_create(drm_fd, gtt_obj_max_size);
> +	default_cache_level = gem_get_caching(drm_fd, handle);
> +	gem_buf = gem_mmap__gtt(drm_fd, handle, gtt_obj_max_size, PROT_WRITE);
> +
> +	for (i = 0; i < ARRAY_SIZE(cache_levels); i++) {
> +		igt_assert(wait_for_suspended());
> +		if (igt_has_set_caching(intel_get_drm_devid(drm_fd)))
> +			gem_set_caching(drm_fd, handle, default_cache_level);
> +		/* Ensure we bind the vma into the GGTT */
> +		memset(gem_buf, 16 << i, gtt_obj_max_size);
> +
> +		/* Now try changing the cache-level on the bound object.
> +		 * This will either unlikely unbind the object from the GGTT,
> +		 * or more likely just change the PTEs inside the GGTT. Either
> +		 * way the driver must take the rpm wakelock around the GSM
> +		 * access.
> +		 */
> +		igt_debug("Setting cache level %u\n", cache_levels[i]);
> +		igt_assert(wait_for_suspended());
> +		if (igt_has_set_caching(intel_get_drm_devid(drm_fd)))
> +			gem_set_caching(drm_fd, handle, cache_levels[i]);
> +	}
> +
> +	igt_assert(munmap(gem_buf, gtt_obj_max_size) == 0);
> +	gem_close(drm_fd, handle);
> +}
> +
> +int rounds = 10;
> +bool stay = false;
> +
> +static int opt_handler(int opt, int opt_index, void *data)
> +{
> +	switch (opt) {
> +	case 'l':
> +		rounds = 50;
> +		break;
> +	case 's':
> +		stay = true;
> +		break;
> +	default:
> +		return IGT_OPT_HANDLER_ERROR;
> +	}
> +
> +	return IGT_OPT_HANDLER_SUCCESS;
> +}
> +
> +const char *help_str =
> +	"  --stress\t\tMake the stress-tests more stressful.\n"
> +	"  --stay\t\tDisable all screen and try to go into runtime pm. Useful for debugging.";
> +static struct option long_options[] = {
> +	{"stress", 0, 0, 'l'},
> +	{"stay", 0, 0, 's'},
> +	{ 0, 0, 0, 0 }
> +};
> +
> +igt_main_args("", long_options, help_str, opt_handler, NULL)
> +{
> +	igt_subtest("basic-rte") {
> +		igt_assert(setup_environment());
> +		basic_subtest();
> +	}
> +
> +	igt_fixture {
> +		igt_require(setup_environment());
> +	}
> +
> +	if (stay)
> +		igt_subtest("stay")
> +			stay_subtest();
> +
> +	/* Essential things */
> +	igt_subtest("drm-resources-equal")
> +		drm_resources_equal_subtest();
> +	igt_subtest("basic-pci-d3-state")
> +		pci_d3_state_subtest();
> +
> +	/* Basic modeset */
> +	igt_subtest("modeset-lpsp")
> +		modeset_subtest(SCREEN_TYPE_LPSP, 1, WAIT_STATUS);
> +	igt_subtest("modeset-non-lpsp")
> +		modeset_subtest(SCREEN_TYPE_NON_LPSP, 1, WAIT_STATUS);
> +	igt_subtest("dpms-lpsp")
> +		modeset_subtest(SCREEN_TYPE_LPSP, 1, WAIT_STATUS | USE_DPMS);
> +	igt_subtest("dpms-non-lpsp")
> +		modeset_subtest(SCREEN_TYPE_NON_LPSP, 1, WAIT_STATUS | USE_DPMS);
> +
> +	/* Planes and cursors */
> +	igt_subtest("cursor")
> +		cursor_subtest(false);
> +	igt_subtest("cursor-dpms")
> +		cursor_subtest(true);
> +	igt_subtest_with_dynamic("legacy-planes")
> +		planes_subtest(false, false);
> +	igt_subtest_with_dynamic("legacy-planes-dpms")
> +		planes_subtest(false, true);
> +	igt_subtest_with_dynamic("universal-planes")
> +		planes_subtest(true, false);
> +	igt_subtest_with_dynamic("universal-planes-dpms")
> +		planes_subtest(true, true);
> +
> +	/* Misc */
> +	igt_subtest("i2c")
> +		i2c_subtest();
> +	igt_subtest("dpms-mode-unset-lpsp")
> +		dpms_mode_unset_subtest(SCREEN_TYPE_LPSP);
> +	igt_subtest("dpms-mode-unset-non-lpsp")
> +		dpms_mode_unset_subtest(SCREEN_TYPE_NON_LPSP);
> +	igt_subtest("fences") {
> +		gem_require_mappable_ggtt(drm_fd);
> +		fences_subtest(false);
> +	}
> +	igt_subtest("fences-dpms") {
> +		gem_require_mappable_ggtt(drm_fd);
> +		fences_subtest(true);
> +	}
> +	igt_subtest("pc8-residency")
> +		pc8_residency_subtest();
> +
> +	/* Modeset stress */
> +	igt_subtest("modeset-lpsp-stress")
> +		modeset_subtest(SCREEN_TYPE_LPSP, rounds, WAIT_STATUS);
> +	igt_subtest("modeset-non-lpsp-stress")
> +		modeset_subtest(SCREEN_TYPE_NON_LPSP, rounds, WAIT_STATUS);
> +	igt_subtest("modeset-lpsp-stress-no-wait")
> +		modeset_subtest(SCREEN_TYPE_LPSP, rounds, DONT_WAIT);
> +	igt_subtest("modeset-non-lpsp-stress-no-wait")
> +		modeset_subtest(SCREEN_TYPE_NON_LPSP, rounds, DONT_WAIT);
> +	igt_subtest("modeset-pc8-residency-stress")
> +		modeset_subtest(SCREEN_TYPE_ANY, rounds, WAIT_PC8_RES);
> +	igt_subtest("modeset-stress-extra-wait")
> +		modeset_subtest(SCREEN_TYPE_ANY, rounds,
> +				WAIT_STATUS | WAIT_EXTRA);
> +
> +	/* System suspend */
> +	igt_subtest("system-suspend-modeset")
> +		system_suspend_modeset_subtest();
> +
> +	/* power-wake reference tests */
> +	igt_subtest("pm-tiling") {
> +		gem_require_mappable_ggtt(drm_fd);
> +		pm_test_tiling();
> +	}
> +	igt_subtest("pm-caching") {
> +		gem_require_mappable_ggtt(drm_fd);
> +		pm_test_caching();
> +	}
> +
> +	igt_fixture {
> +		teardown_environment();
> +		forcewake_put(&ms_data);
> +	}
> +
> +	igt_subtest("module-reload") {
> +		struct pci_device *pci_dev;
> +
> +		igt_i915_driver_unload();
> +
> +		igt_kmsg(KMSG_INFO "Reloading i915 as normal\n");
> +		igt_assert_eq(igt_i915_driver_load("mmio_debug=-1"), 0);
> +
> +		igt_assert(setup_environment());
> +		pci_dev = igt_device_get_pci_device(drm_fd);
> +		igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
> +		if (enable_one_screen_with_type(&ms_data, SCREEN_TYPE_ANY))
> +			drm_resources_equal_subtest();
> +		teardown_environment();
> +
> +		/* Remove our mmio_debugging module */
> +		igt_i915_driver_unload();
> +	}
> +}
> diff --git a/tests/meson.build b/tests/meson.build
> index 974cb433b..732f4bda4 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -263,6 +263,7 @@ intel_kms_progs = [
>  	'kms_pm_backlight',
>  	'kms_pm_dc',
>  	'kms_pm_lpsp',
> +	'kms_pm_rpm',
>  	'kms_psr',
>  	'kms_psr2_sf',
>  	'kms_psr2_su',
> -- 
> 2.40.0
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-29 12:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26 11:04 [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem
2023-09-26 12:36 ` [igt-dev] ✓ CI.xeBAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev2) Patchwork
2023-09-26 12:42 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-09-26 23:42 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-09-29 12:15 ` [igt-dev] [i-g-t V5] tests/intel/pm: Separate display specific tests from i915_pm_rpm Kamil Konieczny

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.