* [igt-dev] [i-g-t V6 0/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm
@ 2023-10-05 11:54 Bhanuprakash Modem
2023-10-05 11:54 ` [igt-dev] [i-g-t V6 1/3] " Bhanuprakash Modem
` (5 more replies)
0 siblings, 6 replies; 10+ messages in thread
From: Bhanuprakash Modem @ 2023-10-05 11:54 UTC (permalink / raw)
To: igt-dev
Separate display specific tests from i915_pm_rpm and maintain
in kms_pm_rpm.
Bhanuprakash Modem (3):
tests/intel/pm: Separate display specific tests from i915_pm_rpm
tests/intel/pm_rpm: Split module-reload test
tests/intel/pm_rpm: Fix CI with renamed tests
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 | 1722 ++++++++++++++++++++++++
tests/meson.build | 1 +
6 files changed, 1731 insertions(+), 1142 deletions(-)
create mode 100644 tests/intel/kms_pm_rpm.c
--
2.40.0
^ permalink raw reply [flat|nested] 10+ messages in thread* [igt-dev] [i-g-t V6 1/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm 2023-10-05 11:54 [igt-dev] [i-g-t V6 0/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem @ 2023-10-05 11:54 ` Bhanuprakash Modem 2023-10-11 4:11 ` Sharma, Swati2 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 2/3] tests/intel/pm_rpm: Split module-reload test Bhanuprakash Modem ` (4 subsequent siblings) 5 siblings, 1 reply; 10+ messages in thread From: Bhanuprakash Modem @ 2023-10-05 11:54 UTC (permalink / raw) To: igt-dev Separate display specific tests, from i915_pm_rpm and create a new binary "kms_pm_rpm" for them. 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 V6: - Fix Copyright - New patch for CI changes - New patch for module-reload test Cc: Swati Sharma <swati2.sharma@intel.com> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> --- tests/intel/i915_pm_rpm.c | 1125 ------------------------ tests/intel/kms_pm_rpm.c | 1700 +++++++++++++++++++++++++++++++++++++ tests/meson.build | 1 + 3 files changed, 1701 insertions(+), 1125 deletions(-) create mode 100644 tests/intel/kms_pm_rpm.c diff --git a/tests/intel/i915_pm_rpm.c b/tests/intel/i915_pm_rpm.c index 17413ffe5..2b0a63bde 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, - ¶ms.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(¶ms); - - 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(¶ms); - } - 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); @@ -2600,8 +1477,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) 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 */ diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c new file mode 100644 index 000000000..2882e265f --- /dev/null +++ b/tests/intel/kms_pm_rpm.c @@ -0,0 +1,1700 @@ +// SPDX-License-Identifier: MIT +/* + * Copyright © 2013, 2015, 2023 Intel Corporation + * + * 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: 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, + ¶ms->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, + ¶ms->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) +{ + kmstest_set_vt_graphics_mode(); + igt_display_require(&data->display, drm_fd); + + data->res = drmModeGetResources(drm_fd); + 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); + } + + 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, + ¶ms.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(¶ms); + + 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(¶ms); + } + 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); + } +} diff --git a/tests/meson.build b/tests/meson.build index 2404b2d4a..5e870c78e 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] 10+ messages in thread
* Re: [igt-dev] [i-g-t V6 1/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 1/3] " Bhanuprakash Modem @ 2023-10-11 4:11 ` Sharma, Swati2 0 siblings, 0 replies; 10+ messages in thread From: Sharma, Swati2 @ 2023-10-11 4:11 UTC (permalink / raw) To: Bhanuprakash Modem, igt-dev LGTM Reviewed-by: Swati Sharma <swati2.sharma@intel.com> On 05-Oct-23 5:24 PM, Bhanuprakash Modem wrote: > Separate display specific tests, from i915_pm_rpm and create > a new binary "kms_pm_rpm" for them. > > 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 > V6: - Fix Copyright > - New patch for CI changes > - New patch for module-reload test > > Cc: Swati Sharma <swati2.sharma@intel.com> > Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> > --- > tests/intel/i915_pm_rpm.c | 1125 ------------------------ > tests/intel/kms_pm_rpm.c | 1700 +++++++++++++++++++++++++++++++++++++ > tests/meson.build | 1 + > 3 files changed, 1701 insertions(+), 1125 deletions(-) > create mode 100644 tests/intel/kms_pm_rpm.c > > diff --git a/tests/intel/i915_pm_rpm.c b/tests/intel/i915_pm_rpm.c > index 17413ffe5..2b0a63bde 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, > - ¶ms.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(¶ms); > - > - 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(¶ms); > - } > - 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); > @@ -2600,8 +1477,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) > 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 */ > diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c > new file mode 100644 > index 000000000..2882e265f > --- /dev/null > +++ b/tests/intel/kms_pm_rpm.c > @@ -0,0 +1,1700 @@ > +// SPDX-License-Identifier: MIT > +/* > + * Copyright © 2013, 2015, 2023 Intel Corporation > + * > + * 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: 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, > + ¶ms->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, > + ¶ms->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) > +{ > + kmstest_set_vt_graphics_mode(); > + igt_display_require(&data->display, drm_fd); > + > + data->res = drmModeGetResources(drm_fd); > + 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); > + } > + > + 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, > + ¶ms.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(¶ms); > + > + 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(¶ms); > + } > + 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); > + } > +} > diff --git a/tests/meson.build b/tests/meson.build > index 2404b2d4a..5e870c78e 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', ^ permalink raw reply [flat|nested] 10+ messages in thread
* [igt-dev] [i-g-t V6 2/3] tests/intel/pm_rpm: Split module-reload test 2023-10-05 11:54 [igt-dev] [i-g-t V6 0/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 1/3] " Bhanuprakash Modem @ 2023-10-05 11:54 ` Bhanuprakash Modem 2023-10-05 19:44 ` Kamil Konieczny 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 3/3] tests/intel/pm_rpm: Fix CI with renamed tests Bhanuprakash Modem ` (3 subsequent siblings) 5 siblings, 1 reply; 10+ messages in thread From: Bhanuprakash Modem @ 2023-10-05 11:54 UTC (permalink / raw) To: igt-dev Split module-reload test as with & w/o display. - i915_pm_rpm@module-reload: Without display - kms_pm_rpm@module-reload: With display Cc: Swati Sharma <swati2.sharma@intel.com> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> --- tests/intel/i915_pm_rpm.c | 11 ----------- tests/intel/kms_pm_rpm.c | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/tests/intel/i915_pm_rpm.c b/tests/intel/i915_pm_rpm.c index 2b0a63bde..c0365b304 100644 --- a/tests/intel/i915_pm_rpm.c +++ b/tests/intel/i915_pm_rpm.c @@ -1468,17 +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)); - 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 index 2882e265f..3e578cbf7 100644 --- a/tests/intel/kms_pm_rpm.c +++ b/tests/intel/kms_pm_rpm.c @@ -114,6 +114,9 @@ * 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 * @@ -1697,4 +1700,23 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) 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(); + } } -- 2.40.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [igt-dev] [i-g-t V6 2/3] tests/intel/pm_rpm: Split module-reload test 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 2/3] tests/intel/pm_rpm: Split module-reload test Bhanuprakash Modem @ 2023-10-05 19:44 ` Kamil Konieczny 0 siblings, 0 replies; 10+ messages in thread From: Kamil Konieczny @ 2023-10-05 19:44 UTC (permalink / raw) To: igt-dev Hi Bhanuprakash, On 2023-10-05 at 17:24:14 +0530, Bhanuprakash Modem wrote: > Split module-reload test as with & w/o display. > > - i915_pm_rpm@module-reload: Without display > - kms_pm_rpm@module-reload: With display > > Cc: Swati Sharma <swati2.sharma@intel.com> > Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> > --- > tests/intel/i915_pm_rpm.c | 11 ----------- > tests/intel/kms_pm_rpm.c | 22 ++++++++++++++++++++++ > 2 files changed, 22 insertions(+), 11 deletions(-) > > diff --git a/tests/intel/i915_pm_rpm.c b/tests/intel/i915_pm_rpm.c > index 2b0a63bde..c0365b304 100644 > --- a/tests/intel/i915_pm_rpm.c > +++ b/tests/intel/i915_pm_rpm.c > @@ -1468,17 +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)); > - teardown_environment(true); > - May this stay in this subtest? +cc Anshuman Gupta <anshuman.gupta@intel.com> Regards, Kamil > /* 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 > index 2882e265f..3e578cbf7 100644 > --- a/tests/intel/kms_pm_rpm.c > +++ b/tests/intel/kms_pm_rpm.c > @@ -114,6 +114,9 @@ > * 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 > * > @@ -1697,4 +1700,23 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) > 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(); > + } > } > -- > 2.40.0 > ^ permalink raw reply [flat|nested] 10+ messages in thread
* [igt-dev] [i-g-t V6 3/3] tests/intel/pm_rpm: Fix CI with renamed tests 2023-10-05 11:54 [igt-dev] [i-g-t V6 0/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 1/3] " Bhanuprakash Modem 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 2/3] tests/intel/pm_rpm: Split module-reload test Bhanuprakash Modem @ 2023-10-05 11:54 ` Bhanuprakash Modem 2023-10-11 4:14 ` Sharma, Swati2 2023-10-05 15:15 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev3) Patchwork ` (2 subsequent siblings) 5 siblings, 1 reply; 10+ messages in thread From: Bhanuprakash Modem @ 2023-10-05 11:54 UTC (permalink / raw) To: igt-dev As Display PM rpm tests are seperated from core, update the CI testlist with the new ones. 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 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) 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 -- 2.40.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [igt-dev] [i-g-t V6 3/3] tests/intel/pm_rpm: Fix CI with renamed tests 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 3/3] tests/intel/pm_rpm: Fix CI with renamed tests Bhanuprakash Modem @ 2023-10-11 4:14 ` Sharma, Swati2 0 siblings, 0 replies; 10+ messages in thread From: Sharma, Swati2 @ 2023-10-11 4:14 UTC (permalink / raw) To: Bhanuprakash Modem, igt-dev Hi Bhanu, We need to split this patch based on 1/3 patch and 2/3 patch then only we can get 1/3 and 3/3 merged together and only module-reload changes will be left. Please split patch accordingly. With that fixed, Reviewed-by: Swati Sharma <swati2.sharma@intel.com> On 05-Oct-23 5:24 PM, Bhanuprakash Modem wrote: > As Display PM rpm tests are seperated from core, update > the CI testlist with the new ones. > > 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 +++-- > 3 files changed, 8 insertions(+), 6 deletions(-) > > 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev3) 2023-10-05 11:54 [igt-dev] [i-g-t V6 0/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem ` (2 preceding siblings ...) 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 3/3] tests/intel/pm_rpm: Fix CI with renamed tests Bhanuprakash Modem @ 2023-10-05 15:15 ` Patchwork 2023-10-05 15:57 ` [igt-dev] ✗ CI.xeBAT: failure " Patchwork 2023-10-06 4:42 ` [igt-dev] ✗ Fi.CI.IGT: " Patchwork 5 siblings, 0 replies; 10+ messages in thread From: Patchwork @ 2023-10-05 15:15 UTC (permalink / raw) To: Bhanuprakash Modem; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 13265 bytes --] == Series Details == Series: tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev3) URL : https://patchwork.freedesktop.org/series/123750/ State : success == Summary == CI Bug Log - changes from CI_DRM_13717 -> IGTPW_9925 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/index.html Participating hosts (41 -> 39) ------------------------------ Missing (2): fi-kbl-soraka fi-snb-2520m Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_9925: ### 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_9925/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_9925/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_9925/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_9925/bat-dg1-5/igt@kms_pm_rpm@module-reload.html - bat-jsl-3: NOTRUN -> [WARN][5] [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-jsl-3/igt@kms_pm_rpm@module-reload.html - fi-glk-j4005: NOTRUN -> [WARN][6] [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-glk-j4005/igt@kms_pm_rpm@module-reload.html - bat-adlp-9: NOTRUN -> [WARN][7] [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-adlp-9/igt@kms_pm_rpm@module-reload.html - fi-skl-guc: NOTRUN -> [WARN][8] [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-skl-guc/igt@kms_pm_rpm@module-reload.html - bat-dg2-11: NOTRUN -> [WARN][9] [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-dg2-11/igt@kms_pm_rpm@module-reload.html - fi-cfl-8109u: NOTRUN -> [WARN][10] [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-cfl-8109u/igt@kms_pm_rpm@module-reload.html - fi-bsw-nick: NOTRUN -> [WARN][11] [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-bsw-nick/igt@kms_pm_rpm@module-reload.html - fi-kbl-guc: NOTRUN -> [WARN][12] [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-kbl-guc/igt@kms_pm_rpm@module-reload.html - bat-adlm-1: NOTRUN -> [WARN][13] [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-adlm-1/igt@kms_pm_rpm@module-reload.html - fi-tgl-1115g4: NOTRUN -> [WARN][14] [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-tgl-1115g4/igt@kms_pm_rpm@module-reload.html - fi-bsw-n3050: NOTRUN -> [WARN][15] [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-bsw-n3050/igt@kms_pm_rpm@module-reload.html - fi-cfl-guc: NOTRUN -> [WARN][16] [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-cfl-guc/igt@kms_pm_rpm@module-reload.html - bat-mtlp-6: NOTRUN -> [WARN][17] [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-mtlp-6/igt@kms_pm_rpm@module-reload.html - bat-dg2-9: NOTRUN -> [WARN][18] [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-dg2-9/igt@kms_pm_rpm@module-reload.html - fi-kbl-x1275: NOTRUN -> [WARN][19] [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-kbl-x1275/igt@kms_pm_rpm@module-reload.html - fi-hsw-4770: NOTRUN -> [WARN][20] [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-hsw-4770/igt@kms_pm_rpm@module-reload.html - bat-mtlp-8: NOTRUN -> [WARN][21] [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/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_9925/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_9925/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_9925/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_9925/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_9925/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_9925/fi-skl-6600u/igt@kms_pm_rpm@module-reload.html New tests --------- New tests have been introduced between CI_DRM_13717 and IGTPW_9925: ### New IGT tests (3) ### * igt@kms_pm_rpm@basic-pci-d3-state: - Statuses : 1 abort(s) 1 incomplete(s) 26 pass(s) 6 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@basic-rte: - Statuses : 26 pass(s) 6 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@module-reload: - Statuses : 6 skip(s) 26 warn(s) - Exec time: [0.0] s Known issues ------------ Here are the changes found in IGTPW_9925 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@kms_flip@basic-flip-vs-modeset@b-dp6: - bat-adlp-11: [PASS][28] -> [DMESG-FAIL][29] ([i915#6868]) [28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/bat-adlp-11/igt@kms_flip@basic-flip-vs-modeset@b-dp6.html [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-adlp-11/igt@kms_flip@basic-flip-vs-modeset@b-dp6.html * igt@kms_flip@basic-flip-vs-modeset@c-dp6: - bat-adlp-11: [PASS][30] -> [FAIL][31] ([i915#6121]) +1 other test fail [30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/bat-adlp-11/igt@kms_flip@basic-flip-vs-modeset@c-dp6.html [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-adlp-11/igt@kms_flip@basic-flip-vs-modeset@c-dp6.html * igt@kms_flip@basic-flip-vs-wf_vblank: - bat-adlp-11: NOTRUN -> [SKIP][32] ([i915#3637]) [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-adlp-11/igt@kms_flip@basic-flip-vs-wf_vblank.html * igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-c-dp-5: - bat-adlp-11: NOTRUN -> [ABORT][33] ([i915#8668] / [i915#9451]) [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-adlp-11/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-c-dp-5.html * {igt@kms_pm_rpm@basic-pci-d3-state} (NEW): - bat-adln-1: NOTRUN -> [ABORT][34] ([i915#8668]) [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-adln-1/igt@kms_pm_rpm@basic-pci-d3-state.html - fi-ivb-3770: NOTRUN -> [SKIP][35] ([fdo#109271]) +2 other tests skip [35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-ivb-3770/igt@kms_pm_rpm@basic-pci-d3-state.html - fi-elk-e7500: NOTRUN -> [SKIP][36] ([fdo#109271]) +2 other tests skip [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-elk-e7500/igt@kms_pm_rpm@basic-pci-d3-state.html - fi-ilk-650: NOTRUN -> [SKIP][37] ([fdo#109271]) +2 other tests skip [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-ilk-650/igt@kms_pm_rpm@basic-pci-d3-state.html - fi-blb-e6850: NOTRUN -> [SKIP][38] ([fdo#109271]) +2 other tests skip [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-blb-e6850/igt@kms_pm_rpm@basic-pci-d3-state.html * {igt@kms_pm_rpm@basic-rte} (NEW): - bat-atsm-1: NOTRUN -> [SKIP][39] ([i915#6078]) +2 other tests skip [39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-atsm-1/igt@kms_pm_rpm@basic-rte.html * {igt@kms_pm_rpm@module-reload} (NEW): - fi-pnv-d510: NOTRUN -> [SKIP][40] ([fdo#109271]) +2 other tests skip [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-pnv-d510/igt@kms_pm_rpm@module-reload.html #### Possible fixes #### * igt@i915_selftest@live@gt_mocs: - bat-dg2-11: [INCOMPLETE][41] ([i915#9253]) -> [PASS][42] [41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/bat-dg2-11/igt@i915_selftest@live@gt_mocs.html [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-dg2-11/igt@i915_selftest@live@gt_mocs.html * igt@i915_selftest@live@workarounds: - bat-dg2-11: [DMESG-FAIL][43] ([i915#7913]) -> [PASS][44] [43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/bat-dg2-11/igt@i915_selftest@live@workarounds.html [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-dg2-11/igt@i915_selftest@live@workarounds.html * igt@kms_hdmi_inject@inject-audio: - fi-kbl-guc: [FAIL][45] ([IGT#3]) -> [PASS][46] [45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/fi-kbl-guc/igt@kms_hdmi_inject@inject-audio.html [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/fi-kbl-guc/igt@kms_hdmi_inject@inject-audio.html * igt@kms_pipe_crc_basic@nonblocking-crc@pipe-d-dp-5: - bat-adlp-11: [DMESG-FAIL][47] ([i915#6868]) -> [PASS][48] [47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/bat-adlp-11/igt@kms_pipe_crc_basic@nonblocking-crc@pipe-d-dp-5.html [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-adlp-11/igt@kms_pipe_crc_basic@nonblocking-crc@pipe-d-dp-5.html * igt@kms_pipe_crc_basic@read-crc@pipe-b-dp-6: - bat-adlp-11: [ABORT][49] ([i915#8668]) -> [PASS][50] [49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/bat-adlp-11/igt@kms_pipe_crc_basic@read-crc@pipe-b-dp-6.html [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/bat-adlp-11/igt@kms_pipe_crc_basic@read-crc@pipe-b-dp-6.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [IGT#3]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/3 [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637 [i915#6078]: https://gitlab.freedesktop.org/drm/intel/issues/6078 [i915#6121]: https://gitlab.freedesktop.org/drm/intel/issues/6121 [i915#6868]: https://gitlab.freedesktop.org/drm/intel/issues/6868 [i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913 [i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668 [i915#9253]: https://gitlab.freedesktop.org/drm/intel/issues/9253 [i915#9451]: https://gitlab.freedesktop.org/drm/intel/issues/9451 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7516 -> IGTPW_9925 CI-20190529: 20190529 CI_DRM_13717: ba043ea3baa7d6cd98262e865f903bf9016a8a5e @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_9925: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/index.html IGT_7516: 40b5a184f6da0a3295ee429947696d254522bb22 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git 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_9925/index.html [-- Attachment #2: Type: text/html, Size: 15541 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* [igt-dev] ✗ CI.xeBAT: failure for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev3) 2023-10-05 11:54 [igt-dev] [i-g-t V6 0/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem ` (3 preceding siblings ...) 2023-10-05 15:15 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev3) Patchwork @ 2023-10-05 15:57 ` Patchwork 2023-10-06 4:42 ` [igt-dev] ✗ Fi.CI.IGT: " Patchwork 5 siblings, 0 replies; 10+ messages in thread From: Patchwork @ 2023-10-05 15:57 UTC (permalink / raw) To: Bhanuprakash Modem; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 3091 bytes --] == Series Details == Series: tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev3) URL : https://patchwork.freedesktop.org/series/123750/ State : failure == Summary == CI Bug Log - changes from XEIGT_7516_BAT -> XEIGTPW_9925_BAT ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with XEIGTPW_9925_BAT absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in XEIGTPW_9925_BAT, 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. Participating hosts (4 -> 4) ------------------------------ No changes in participating hosts Possible new issues ------------------- Here are the unknown changes that may have been introduced in XEIGTPW_9925_BAT: ### IGT changes ### #### Possible regressions #### * igt@xe_exec_store@basic-store: - bat-dg2-oem2: [PASS][1] -> [FAIL][2] [1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7516/bat-dg2-oem2/igt@xe_exec_store@basic-store.html [2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9925/bat-dg2-oem2/igt@xe_exec_store@basic-store.html Known issues ------------ Here are the changes found in XEIGTPW_9925_BAT that come from known issues: ### IGT changes ### #### Issues hit #### * igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1: - bat-adlp-7: [PASS][3] -> [FAIL][4] ([Intel XE#480]) [3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7516/bat-adlp-7/igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1.html [4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9925/bat-adlp-7/igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1.html * igt@xe_exec_store@basic-store: - bat-adlp-7: [PASS][5] -> [FAIL][6] ([Intel XE#761]) [5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7516/bat-adlp-7/igt@xe_exec_store@basic-store.html [6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9925/bat-adlp-7/igt@xe_exec_store@basic-store.html #### Possible fixes #### * igt@kms_flip@basic-flip-vs-wf_vblank@a-edp1: - bat-adlp-7: [FAIL][7] ([Intel XE#480]) -> [PASS][8] +1 other test pass [7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7516/bat-adlp-7/igt@kms_flip@basic-flip-vs-wf_vblank@a-edp1.html [8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9925/bat-adlp-7/igt@kms_flip@basic-flip-vs-wf_vblank@a-edp1.html [Intel XE#480]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/480 [Intel XE#761]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/761 Build changes ------------- * IGT: IGT_7516 -> IGTPW_9925 IGTPW_9925: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/index.html IGT_7516: 40b5a184f6da0a3295ee429947696d254522bb22 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git xe-415-3d2b298aaf52e74d4e90470cd65de047362e4875: 3d2b298aaf52e74d4e90470cd65de047362e4875 == Logs == For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9925/index.html [-- Attachment #2: Type: text/html, Size: 3826 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* [igt-dev] ✗ Fi.CI.IGT: failure for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev3) 2023-10-05 11:54 [igt-dev] [i-g-t V6 0/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem ` (4 preceding siblings ...) 2023-10-05 15:57 ` [igt-dev] ✗ CI.xeBAT: failure " Patchwork @ 2023-10-06 4:42 ` Patchwork 5 siblings, 0 replies; 10+ messages in thread From: Patchwork @ 2023-10-06 4:42 UTC (permalink / raw) To: Bhanuprakash Modem; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 77729 bytes --] == Series Details == Series: tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev3) URL : https://patchwork.freedesktop.org/series/123750/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13717_full -> IGTPW_9925_full ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with IGTPW_9925_full absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in IGTPW_9925_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_9925/index.html Participating hosts (10 -> 9) ------------------------------ Missing (1): shard-rkl0 Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_9925_full: ### IGT changes ### #### Possible regressions #### * igt@gem_exec_schedule@noreorder-priority@vcs0: - shard-mtlp: [PASS][1] -> [FAIL][2] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-2/igt@gem_exec_schedule@noreorder-priority@vcs0.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-4/igt@gem_exec_schedule@noreorder-priority@vcs0.html * igt@gem_exec_suspend@basic-s0@smem: - shard-dg2: [PASS][3] -> [INCOMPLETE][4] [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg2-11/igt@gem_exec_suspend@basic-s0@smem.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-3/igt@gem_exec_suspend@basic-s0@smem.html * igt@i915_selftest@live@gt_pm: - shard-rkl: [PASS][5] -> [DMESG-FAIL][6] [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-rkl-2/igt@i915_selftest@live@gt_pm.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-6/igt@i915_selftest@live@gt_pm.html * {igt@kms_pm_rpm@dpms-lpsp} (NEW): - shard-dg2: NOTRUN -> [SKIP][7] +5 other tests skip [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@kms_pm_rpm@dpms-lpsp.html - shard-rkl: NOTRUN -> [SKIP][8] +7 other tests skip [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-6/igt@kms_pm_rpm@dpms-lpsp.html - shard-dg1: NOTRUN -> [SKIP][9] +7 other tests skip [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-12/igt@kms_pm_rpm@dpms-lpsp.html * {igt@kms_pm_rpm@dpms-non-lpsp} (NEW): - shard-tglu: NOTRUN -> [SKIP][10] +6 other tests skip [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-9/igt@kms_pm_rpm@dpms-non-lpsp.html - shard-mtlp: NOTRUN -> [SKIP][11] +6 other tests skip [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-8/igt@kms_pm_rpm@dpms-non-lpsp.html #### Suppressed #### The following results come from untrusted machines, tests, or statuses. They do not affect the overall result. * {igt@intel_hwmon@hwmon-read}: - shard-rkl: NOTRUN -> [SKIP][12] [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@intel_hwmon@hwmon-read.html New tests --------- New tests have been introduced between CI_DRM_13717_full and IGTPW_9925_full: ### New IGT tests (28) ### * igt@kms_pm_rpm@basic-pci-d3-state: - Statuses : 6 pass(s) 1 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@basic-rte: - Statuses : 7 pass(s) 1 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@cursor: - Statuses : 7 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) 6 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@dpms-mode-unset-lpsp: - Statuses : 4 pass(s) 4 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 : 4 pass(s) 4 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@drm-resources-equal: - Statuses : 7 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 : 7 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 : 2 pass(s) 6 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@modeset-lpsp-stress: - Statuses : 2 pass(s) 6 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@modeset-lpsp-stress-no-wait: - Statuses : 2 pass(s) 6 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@modeset-non-lpsp: - Statuses : 5 pass(s) 3 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 : 4 pass(s) 4 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 : 8 skip(s) - Exec time: [0.0] s * igt@kms_pm_rpm@pm-caching: - Statuses : 3 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 : 7 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_9925_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@drm_fdinfo@busy-check-all@bcs0: - shard-dg1: NOTRUN -> [SKIP][13] ([i915#8414]) +4 other tests skip [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-12/igt@drm_fdinfo@busy-check-all@bcs0.html * igt@drm_fdinfo@isolation@bcs0: - shard-dg2: NOTRUN -> [SKIP][14] ([i915#8414]) +9 other tests skip [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@drm_fdinfo@isolation@bcs0.html * igt@gem_ccs@suspend-resume@xmajor-compressed-compfmt0-lmem0-lmem0: - shard-dg2: NOTRUN -> [INCOMPLETE][15] ([i915#7297]) [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-7/igt@gem_ccs@suspend-resume@xmajor-compressed-compfmt0-lmem0-lmem0.html * igt@gem_close_race@multigpu-basic-threads: - shard-dg2: NOTRUN -> [SKIP][16] ([i915#7697]) +1 other test skip [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@gem_close_race@multigpu-basic-threads.html - shard-rkl: NOTRUN -> [SKIP][17] ([i915#7697]) [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@gem_close_race@multigpu-basic-threads.html - shard-dg1: NOTRUN -> [SKIP][18] ([i915#7697]) [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-16/igt@gem_close_race@multigpu-basic-threads.html * igt@gem_ctx_exec@basic-nohangcheck: - shard-tglu: [PASS][19] -> [FAIL][20] ([i915#6268]) [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-tglu-5/igt@gem_ctx_exec@basic-nohangcheck.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-8/igt@gem_ctx_exec@basic-nohangcheck.html * igt@gem_ctx_persistence@hang: - shard-dg1: NOTRUN -> [SKIP][21] ([i915#8555]) [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-15/igt@gem_ctx_persistence@hang.html * igt@gem_ctx_persistence@heartbeat-hostile: - shard-dg2: NOTRUN -> [SKIP][22] ([i915#8555]) +3 other tests skip [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@gem_ctx_persistence@heartbeat-hostile.html * igt@gem_ctx_persistence@legacy-engines-hostile@vebox: - shard-mtlp: [PASS][23] -> [FAIL][24] ([i915#2410]) +2 other tests fail [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-3/igt@gem_ctx_persistence@legacy-engines-hostile@vebox.html [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-8/igt@gem_ctx_persistence@legacy-engines-hostile@vebox.html * igt@gem_ctx_persistence@saturated-hostile-nopreempt@ccs0: - shard-dg2: NOTRUN -> [SKIP][25] ([i915#5882]) +9 other tests skip [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-3/igt@gem_ctx_persistence@saturated-hostile-nopreempt@ccs0.html * igt@gem_eio@hibernate: - shard-dg1: NOTRUN -> [ABORT][26] ([i915#7975] / [i915#8213]) [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-14/igt@gem_eio@hibernate.html - shard-dg2: NOTRUN -> [ABORT][27] ([i915#7975] / [i915#8213]) [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@gem_eio@hibernate.html - shard-rkl: NOTRUN -> [ABORT][28] ([i915#7975] / [i915#8213]) [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@gem_eio@hibernate.html * igt@gem_exec_balancer@bonded-true-hang: - shard-dg2: NOTRUN -> [SKIP][29] ([i915#4812]) +1 other test skip [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@gem_exec_balancer@bonded-true-hang.html * igt@gem_exec_balancer@parallel-ordering: - shard-rkl: NOTRUN -> [SKIP][30] ([i915#4525]) [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@gem_exec_balancer@parallel-ordering.html * igt@gem_exec_capture@capture@vcs0-smem: - shard-mtlp: [PASS][31] -> [DMESG-WARN][32] ([i915#5591]) +1 other test dmesg-warn [31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-4/igt@gem_exec_capture@capture@vcs0-smem.html [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-8/igt@gem_exec_capture@capture@vcs0-smem.html * igt@gem_exec_capture@pi@vcs0: - shard-mtlp: [PASS][33] -> [FAIL][34] ([i915#4475]) [33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-1/igt@gem_exec_capture@pi@vcs0.html [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-8/igt@gem_exec_capture@pi@vcs0.html * igt@gem_exec_fair@basic-none-solo@rcs0: - shard-apl: [PASS][35] -> [FAIL][36] ([i915#2842]) [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-apl1/igt@gem_exec_fair@basic-none-solo@rcs0.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-apl4/igt@gem_exec_fair@basic-none-solo@rcs0.html * igt@gem_exec_fair@basic-none@bcs0: - shard-rkl: NOTRUN -> [FAIL][37] ([i915#2842]) +3 other tests fail [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@gem_exec_fair@basic-none@bcs0.html * igt@gem_exec_fair@basic-sync: - shard-mtlp: NOTRUN -> [SKIP][38] ([i915#4473] / [i915#4771]) +1 other test skip [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-5/igt@gem_exec_fair@basic-sync.html * igt@gem_exec_fence@parallel@bcs0: - shard-mtlp: [PASS][39] -> [TIMEOUT][40] ([i915#9137]) [39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-3/igt@gem_exec_fence@parallel@bcs0.html [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-4/igt@gem_exec_fence@parallel@bcs0.html * igt@gem_exec_flush@basic-batch-kernel-default-uc: - shard-dg1: NOTRUN -> [SKIP][41] ([i915#3539] / [i915#4852]) [41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-14/igt@gem_exec_flush@basic-batch-kernel-default-uc.html * igt@gem_exec_flush@basic-uc-ro-default: - shard-dg2: NOTRUN -> [SKIP][42] ([i915#3539] / [i915#4852]) +5 other tests skip [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-3/igt@gem_exec_flush@basic-uc-ro-default.html * igt@gem_exec_flush@basic-uc-set-default: - shard-dg2: NOTRUN -> [SKIP][43] ([i915#3539]) [43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@gem_exec_flush@basic-uc-set-default.html * igt@gem_exec_reloc@basic-cpu-read: - shard-dg1: NOTRUN -> [SKIP][44] ([i915#3281]) [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-15/igt@gem_exec_reloc@basic-cpu-read.html * igt@gem_exec_reloc@basic-softpin: - shard-dg2: NOTRUN -> [SKIP][45] ([i915#3281]) +10 other tests skip [45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@gem_exec_reloc@basic-softpin.html * igt@gem_exec_schedule@noreorder-corked@ccs0: - shard-mtlp: [PASS][46] -> [DMESG-WARN][47] ([i915#8962]) +1 other test dmesg-warn [46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-3/igt@gem_exec_schedule@noreorder-corked@ccs0.html [47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-4/igt@gem_exec_schedule@noreorder-corked@ccs0.html * igt@gem_exec_schedule@noreorder-priority@rcs0: - shard-mtlp: [PASS][48] -> [DMESG-FAIL][49] ([i915#8962]) +4 other tests dmesg-fail [48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-2/igt@gem_exec_schedule@noreorder-priority@rcs0.html [49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-4/igt@gem_exec_schedule@noreorder-priority@rcs0.html * igt@gem_exec_schedule@preempt-queue-contexts-chain: - shard-dg2: NOTRUN -> [SKIP][50] ([i915#4537] / [i915#4812]) +2 other tests skip [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@gem_exec_schedule@preempt-queue-contexts-chain.html * igt@gem_fence_thrash@bo-copy: - shard-dg2: NOTRUN -> [SKIP][51] ([i915#4860]) [51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@gem_fence_thrash@bo-copy.html * igt@gem_fence_thrash@bo-write-verify-threaded-none: - shard-mtlp: NOTRUN -> [SKIP][52] ([i915#4860]) [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-6/igt@gem_fence_thrash@bo-write-verify-threaded-none.html * igt@gem_lmem_swapping@massive-random: - shard-tglu: NOTRUN -> [SKIP][53] ([i915#4613]) [53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-6/igt@gem_lmem_swapping@massive-random.html * igt@gem_lmem_swapping@parallel-random-verify: - shard-rkl: NOTRUN -> [SKIP][54] ([i915#4613]) +1 other test skip [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@gem_lmem_swapping@parallel-random-verify.html * igt@gem_lmem_swapping@random: - shard-mtlp: NOTRUN -> [SKIP][55] ([i915#4613]) [55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-2/igt@gem_lmem_swapping@random.html * igt@gem_lmem_swapping@smem-oom@lmem0: - shard-dg1: [PASS][56] -> [DMESG-WARN][57] ([i915#4936] / [i915#5493]) [56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg1-19/igt@gem_lmem_swapping@smem-oom@lmem0.html [57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-16/igt@gem_lmem_swapping@smem-oom@lmem0.html * igt@gem_mmap@big-bo: - shard-dg1: NOTRUN -> [SKIP][58] ([i915#4083]) [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-12/igt@gem_mmap@big-bo.html * igt@gem_mmap_gtt@zero-extend: - shard-dg2: NOTRUN -> [SKIP][59] ([i915#4077]) +13 other tests skip [59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-1/igt@gem_mmap_gtt@zero-extend.html * igt@gem_mmap_wc@coherency: - shard-dg2: NOTRUN -> [SKIP][60] ([i915#4083]) +4 other tests skip [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@gem_mmap_wc@coherency.html * igt@gem_partial_pwrite_pread@reads-snoop: - shard-rkl: NOTRUN -> [SKIP][61] ([i915#3282]) +1 other test skip [61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-7/igt@gem_partial_pwrite_pread@reads-snoop.html * igt@gem_partial_pwrite_pread@reads-uncached: - shard-dg2: NOTRUN -> [SKIP][62] ([i915#3282]) +9 other tests skip [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@gem_partial_pwrite_pread@reads-uncached.html * igt@gem_pxp@create-protected-buffer: - shard-mtlp: NOTRUN -> [SKIP][63] ([i915#4270]) [63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-1/igt@gem_pxp@create-protected-buffer.html * igt@gem_pxp@display-protected-crc: - shard-dg2: NOTRUN -> [SKIP][64] ([i915#4270]) +4 other tests skip [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-6/igt@gem_pxp@display-protected-crc.html - shard-rkl: NOTRUN -> [SKIP][65] ([i915#4270]) +2 other tests skip [65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@gem_pxp@display-protected-crc.html * igt@gem_render_copy@mixed-tiled-to-yf-tiled-ccs: - shard-mtlp: NOTRUN -> [SKIP][66] ([i915#8428]) +1 other test skip [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-4/igt@gem_render_copy@mixed-tiled-to-yf-tiled-ccs.html * igt@gem_set_tiling_vs_blt@untiled-to-tiled: - shard-dg2: NOTRUN -> [SKIP][67] ([i915#4079]) +1 other test skip [67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-1/igt@gem_set_tiling_vs_blt@untiled-to-tiled.html * igt@gem_softpin@evict-snoop: - shard-dg2: NOTRUN -> [SKIP][68] ([i915#4885]) [68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@gem_softpin@evict-snoop.html * igt@gem_unfence_active_buffers: - shard-dg2: NOTRUN -> [SKIP][69] ([i915#4879]) [69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@gem_unfence_active_buffers.html * igt@gem_userptr_blits@readonly-unsync: - shard-dg2: NOTRUN -> [SKIP][70] ([i915#3297]) +1 other test skip [70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@gem_userptr_blits@readonly-unsync.html - shard-rkl: NOTRUN -> [SKIP][71] ([i915#3297]) +1 other test skip [71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@gem_userptr_blits@readonly-unsync.html - shard-dg1: NOTRUN -> [SKIP][72] ([i915#3297]) [72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-18/igt@gem_userptr_blits@readonly-unsync.html * igt@gem_userptr_blits@relocations: - shard-rkl: NOTRUN -> [SKIP][73] ([i915#3281]) +4 other tests skip [73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@gem_userptr_blits@relocations.html * igt@gem_workarounds@suspend-resume: - shard-dg2: [PASS][74] -> [FAIL][75] ([fdo#103375]) [74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg2-1/igt@gem_workarounds@suspend-resume.html [75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@gem_workarounds@suspend-resume.html * igt@gem_workarounds@suspend-resume-fd: - shard-mtlp: [PASS][76] -> [FAIL][77] ([fdo#103375]) +2 other tests fail [76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-8/igt@gem_workarounds@suspend-resume-fd.html [77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-6/igt@gem_workarounds@suspend-resume-fd.html * igt@gen7_exec_parse@basic-offset: - shard-dg2: NOTRUN -> [SKIP][78] ([fdo#109289]) [78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@gen7_exec_parse@basic-offset.html - shard-rkl: NOTRUN -> [SKIP][79] ([fdo#109289]) [79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@gen7_exec_parse@basic-offset.html * igt@gen7_exec_parse@batch-without-end: - shard-mtlp: NOTRUN -> [SKIP][80] ([fdo#109289]) [80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-4/igt@gen7_exec_parse@batch-without-end.html * igt@gen9_exec_parse@bb-start-far: - shard-dg2: NOTRUN -> [SKIP][81] ([i915#2856]) +4 other tests skip [81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@gen9_exec_parse@bb-start-far.html * igt@gen9_exec_parse@bb-start-out: - shard-rkl: NOTRUN -> [SKIP][82] ([i915#2527]) +1 other test skip [82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-7/igt@gen9_exec_parse@bb-start-out.html * igt@gen9_exec_parse@bb-start-param: - shard-mtlp: NOTRUN -> [SKIP][83] ([i915#2856]) [83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-6/igt@gen9_exec_parse@bb-start-param.html * igt@i915_hangman@engine-error-state-capture@vecs0: - shard-mtlp: [PASS][84] -> [ABORT][85] ([i915#9414]) [84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-8/igt@i915_hangman@engine-error-state-capture@vecs0.html [85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-3/igt@i915_hangman@engine-error-state-capture@vecs0.html * igt@i915_hangman@gt-engine-hang@vcs0: - shard-mtlp: [PASS][86] -> [FAIL][87] ([i915#7069]) [86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-7/igt@i915_hangman@gt-engine-hang@vcs0.html [87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-3/igt@i915_hangman@gt-engine-hang@vcs0.html * igt@i915_module_load@reload-with-fault-injection: - shard-dg2: [PASS][88] -> [DMESG-WARN][89] ([i915#8617]) [88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg2-3/igt@i915_module_load@reload-with-fault-injection.html [89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@i915_module_load@reload-with-fault-injection.html - shard-mtlp: [PASS][90] -> [ABORT][91] ([i915#8489] / [i915#8668]) [90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-5/igt@i915_module_load@reload-with-fault-injection.html [91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-3/igt@i915_module_load@reload-with-fault-injection.html * igt@i915_pipe_stress@stress-xrgb8888-ytiled: - shard-apl: [PASS][92] -> [FAIL][93] ([i915#7036]) [92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-apl4/igt@i915_pipe_stress@stress-xrgb8888-ytiled.html [93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-apl1/igt@i915_pipe_stress@stress-xrgb8888-ytiled.html * igt@i915_pm_rps@min-max-config-loaded: - shard-dg2: NOTRUN -> [SKIP][94] ([i915#6621]) +1 other test skip [94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@i915_pm_rps@min-max-config-loaded.html - shard-dg1: NOTRUN -> [SKIP][95] ([i915#6621]) [95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-15/igt@i915_pm_rps@min-max-config-loaded.html * igt@i915_pm_rps@thresholds-idle-park@gt0: - shard-mtlp: NOTRUN -> [SKIP][96] ([i915#8925]) +1 other test skip [96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-6/igt@i915_pm_rps@thresholds-idle-park@gt0.html * igt@i915_power@sanity: - shard-rkl: NOTRUN -> [SKIP][97] ([i915#7984]) [97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-6/igt@i915_power@sanity.html * igt@i915_query@query-topology-known-pci-ids: - shard-rkl: NOTRUN -> [SKIP][98] ([fdo#109303]) [98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@i915_query@query-topology-known-pci-ids.html * igt@kms_addfb_basic@framebuffer-vs-set-tiling: - shard-dg2: NOTRUN -> [SKIP][99] ([i915#4212]) [99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-1/igt@kms_addfb_basic@framebuffer-vs-set-tiling.html * igt@kms_async_flips@async-flip-with-page-flip-events@pipe-a-hdmi-a-3-4-mc_ccs: - shard-dg2: NOTRUN -> [SKIP][100] ([i915#8502] / [i915#8709]) +11 other tests skip [100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-7/igt@kms_async_flips@async-flip-with-page-flip-events@pipe-a-hdmi-a-3-4-mc_ccs.html * igt@kms_async_flips@async-flip-with-page-flip-events@pipe-b-hdmi-a-1-y-rc_ccs: - shard-rkl: NOTRUN -> [SKIP][101] ([i915#8502]) +3 other tests skip [101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/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@invalid-async-flip: - shard-dg2: NOTRUN -> [SKIP][102] ([i915#6228]) [102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-3/igt@kms_async_flips@invalid-async-flip.html * igt@kms_atomic@plane-primary-overlay-mutable-zpos: - shard-tglu: NOTRUN -> [SKIP][103] ([i915#404]) [103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-9/igt@kms_atomic@plane-primary-overlay-mutable-zpos.html * igt@kms_atomic_transition@plane-all-modeset-transition-fencing: - shard-mtlp: NOTRUN -> [SKIP][104] ([i915#1769] / [i915#3555]) [104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-8/igt@kms_atomic_transition@plane-all-modeset-transition-fencing.html * igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels: - shard-dg2: NOTRUN -> [SKIP][105] ([i915#1769] / [i915#3555]) [105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels.html - shard-rkl: NOTRUN -> [SKIP][106] ([i915#1769] / [i915#3555]) [106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels.html * igt@kms_big_fb@4-tiled-64bpp-rotate-180: - shard-mtlp: [PASS][107] -> [FAIL][108] ([i915#5138]) [107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-3/igt@kms_big_fb@4-tiled-64bpp-rotate-180.html [108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-2/igt@kms_big_fb@4-tiled-64bpp-rotate-180.html * igt@kms_big_fb@4-tiled-8bpp-rotate-90: - shard-dg2: NOTRUN -> [SKIP][109] ([fdo#111614]) +4 other tests skip [109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@kms_big_fb@4-tiled-8bpp-rotate-90.html - shard-dg1: NOTRUN -> [SKIP][110] ([i915#4538] / [i915#5286]) [110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-12/igt@kms_big_fb@4-tiled-8bpp-rotate-90.html * igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-hflip: - shard-rkl: NOTRUN -> [SKIP][111] ([i915#5286]) +3 other tests skip [111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-hflip.html * igt@kms_big_fb@linear-32bpp-rotate-90: - shard-rkl: NOTRUN -> [SKIP][112] ([fdo#111614] / [i915#3638]) [112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-6/igt@kms_big_fb@linear-32bpp-rotate-90.html * igt@kms_big_fb@x-tiled-8bpp-rotate-90: - shard-tglu: NOTRUN -> [SKIP][113] ([fdo#111614]) [113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-4/igt@kms_big_fb@x-tiled-8bpp-rotate-90.html * igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-async-flip: - shard-tglu: [PASS][114] -> [FAIL][115] ([i915#3743]) +1 other test fail [114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-tglu-4/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-async-flip.html [115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-8/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-async-flip.html * igt@kms_big_fb@y-tiled-addfb-size-offset-overflow: - shard-dg2: NOTRUN -> [SKIP][116] ([i915#5190]) +16 other tests skip [116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@kms_big_fb@y-tiled-addfb-size-offset-overflow.html * igt@kms_big_fb@yf-tiled-64bpp-rotate-180: - shard-dg2: NOTRUN -> [SKIP][117] ([i915#4538] / [i915#5190]) +7 other tests skip [117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-1/igt@kms_big_fb@yf-tiled-64bpp-rotate-180.html * igt@kms_big_fb@yf-tiled-64bpp-rotate-270: - shard-dg1: NOTRUN -> [SKIP][118] ([i915#4538]) +1 other test skip [118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-17/igt@kms_big_fb@yf-tiled-64bpp-rotate-270.html * igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-hflip: - shard-mtlp: NOTRUN -> [SKIP][119] ([fdo#111615]) +1 other test skip [119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-3/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-hflip.html * igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0-async-flip: - shard-rkl: NOTRUN -> [SKIP][120] ([fdo#110723]) +2 other tests skip [120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0-async-flip.html * igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_ccs: - shard-rkl: NOTRUN -> [SKIP][121] ([i915#3734] / [i915#5354] / [i915#6095]) +2 other tests skip [121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_ccs.html * igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs: - shard-mtlp: NOTRUN -> [SKIP][122] ([i915#5354] / [i915#6095]) +4 other tests skip [122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-1/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs.html * igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_ccs: - shard-dg2: NOTRUN -> [SKIP][123] ([i915#3689] / [i915#5354]) +21 other tests skip [123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_ccs.html * igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_gen12_mc_ccs: - shard-rkl: NOTRUN -> [SKIP][124] ([i915#3886] / [i915#5354] / [i915#6095]) +1 other test skip [124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html - shard-tglu: NOTRUN -> [SKIP][125] ([i915#3689] / [i915#3886] / [i915#5354] / [i915#6095]) +1 other test skip [125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-10/igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html * igt@kms_ccs@pipe-b-crc-sprite-planes-basic-4_tiled_mtl_rc_ccs_cc: - shard-rkl: NOTRUN -> [SKIP][126] ([i915#5354] / [i915#6095]) +5 other tests skip [126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-4_tiled_mtl_rc_ccs_cc.html * igt@kms_ccs@pipe-c-bad-aux-stride-yf_tiled_ccs: - shard-tglu: NOTRUN -> [SKIP][127] ([fdo#111615] / [i915#3689] / [i915#5354] / [i915#6095]) [127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-8/igt@kms_ccs@pipe-c-bad-aux-stride-yf_tiled_ccs.html * igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc: - shard-dg2: NOTRUN -> [SKIP][128] ([i915#3689] / [i915#3886] / [i915#5354]) +7 other tests skip [128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html * igt@kms_ccs@pipe-c-crc-sprite-planes-basic-4_tiled_dg2_rc_ccs: - shard-tglu: NOTRUN -> [SKIP][129] ([i915#3689] / [i915#5354] / [i915#6095]) +3 other tests skip [129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-9/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-4_tiled_dg2_rc_ccs.html * igt@kms_ccs@pipe-c-random-ccs-data-4_tiled_dg2_rc_ccs_cc: - shard-tglu: NOTRUN -> [SKIP][130] ([i915#5354] / [i915#6095]) +1 other test skip [130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-6/igt@kms_ccs@pipe-c-random-ccs-data-4_tiled_dg2_rc_ccs_cc.html * igt@kms_ccs@pipe-d-bad-rotation-90-4_tiled_dg2_mc_ccs: - shard-dg1: NOTRUN -> [SKIP][131] ([i915#3689] / [i915#5354] / [i915#6095]) +2 other tests skip [131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-19/igt@kms_ccs@pipe-d-bad-rotation-90-4_tiled_dg2_mc_ccs.html * igt@kms_ccs@pipe-d-crc-primary-rotation-180-4_tiled_mtl_mc_ccs: - shard-rkl: NOTRUN -> [SKIP][132] ([i915#5354]) +16 other tests skip [132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@kms_ccs@pipe-d-crc-primary-rotation-180-4_tiled_mtl_mc_ccs.html * igt@kms_ccs@pipe-d-crc-primary-rotation-180-4_tiled_mtl_rc_ccs_cc: - shard-dg1: NOTRUN -> [SKIP][133] ([i915#5354] / [i915#6095]) +4 other tests skip [133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-16/igt@kms_ccs@pipe-d-crc-primary-rotation-180-4_tiled_mtl_rc_ccs_cc.html * igt@kms_chamelium_audio@dp-audio: - shard-tglu: NOTRUN -> [SKIP][134] ([i915#7828]) [134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-3/igt@kms_chamelium_audio@dp-audio.html * igt@kms_chamelium_color@ctm-0-25: - shard-dg2: NOTRUN -> [SKIP][135] ([fdo#111827]) +1 other test skip [135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@kms_chamelium_color@ctm-0-25.html - shard-rkl: NOTRUN -> [SKIP][136] ([fdo#111827]) +1 other test skip [136]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@kms_chamelium_color@ctm-0-25.html - shard-dg1: NOTRUN -> [SKIP][137] ([fdo#111827]) [137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-16/igt@kms_chamelium_color@ctm-0-25.html * igt@kms_chamelium_color@ctm-negative: - shard-mtlp: NOTRUN -> [SKIP][138] ([fdo#111827]) [138]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-3/igt@kms_chamelium_color@ctm-negative.html * igt@kms_chamelium_frames@dp-crc-single: - shard-mtlp: NOTRUN -> [SKIP][139] ([i915#7828]) [139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-1/igt@kms_chamelium_frames@dp-crc-single.html * igt@kms_chamelium_frames@hdmi-crc-fast: - shard-dg2: NOTRUN -> [SKIP][140] ([i915#7828]) +11 other tests skip [140]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@kms_chamelium_frames@hdmi-crc-fast.html - shard-rkl: NOTRUN -> [SKIP][141] ([i915#7828]) +4 other tests skip [141]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@kms_chamelium_frames@hdmi-crc-fast.html * igt@kms_chamelium_frames@hdmi-crc-single: - shard-dg1: NOTRUN -> [SKIP][142] ([i915#7828]) +1 other test skip [142]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-15/igt@kms_chamelium_frames@hdmi-crc-single.html * igt@kms_color@deep-color: - shard-rkl: NOTRUN -> [SKIP][143] ([i915#3555]) +3 other tests skip [143]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-6/igt@kms_color@deep-color.html * igt@kms_content_protection@dp-mst-lic-type-0: - shard-tglu: NOTRUN -> [SKIP][144] ([i915#3116] / [i915#3299]) [144]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-5/igt@kms_content_protection@dp-mst-lic-type-0.html * igt@kms_content_protection@srm: - shard-dg2: NOTRUN -> [SKIP][145] ([i915#7118]) [145]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@kms_content_protection@srm.html * igt@kms_content_protection@uevent@pipe-a-dp-4: - shard-dg2: NOTRUN -> [FAIL][146] ([i915#1339]) [146]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@kms_content_protection@uevent@pipe-a-dp-4.html * igt@kms_cursor_crc@cursor-offscreen-32x10: - shard-dg2: NOTRUN -> [SKIP][147] ([i915#3555]) +3 other tests skip [147]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-6/igt@kms_cursor_crc@cursor-offscreen-32x10.html * igt@kms_cursor_legacy@2x-long-cursor-vs-flip-legacy: - shard-mtlp: NOTRUN -> [SKIP][148] ([i915#3546]) [148]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-1/igt@kms_cursor_legacy@2x-long-cursor-vs-flip-legacy.html * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy: - shard-dg2: NOTRUN -> [SKIP][149] ([i915#4103] / [i915#4213] / [i915#5608]) [149]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy.html * igt@kms_cursor_legacy@cursorb-vs-flipa-legacy: - shard-tglu: NOTRUN -> [SKIP][150] ([fdo#109274]) +1 other test skip [150]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-7/igt@kms_cursor_legacy@cursorb-vs-flipa-legacy.html * igt@kms_cursor_legacy@cursorb-vs-flipb-legacy: - shard-dg2: NOTRUN -> [SKIP][151] ([fdo#109274] / [i915#5354]) +2 other tests skip [151]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-7/igt@kms_cursor_legacy@cursorb-vs-flipb-legacy.html * igt@kms_cursor_legacy@forked-move@all-pipes: - shard-mtlp: [PASS][152] -> [DMESG-WARN][153] ([i915#2017]) [152]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-1/igt@kms_cursor_legacy@forked-move@all-pipes.html [153]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-4/igt@kms_cursor_legacy@forked-move@all-pipes.html * igt@kms_dirtyfb@dirtyfb-ioctl@drrs-hdmi-a-2: - shard-rkl: NOTRUN -> [SKIP][154] ([i915#9226] / [i915#9261]) +1 other test skip [154]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@kms_dirtyfb@dirtyfb-ioctl@drrs-hdmi-a-2.html * igt@kms_dirtyfb@dirtyfb-ioctl@fbc-hdmi-a-1: - shard-dg1: NOTRUN -> [SKIP][155] ([i915#9227]) [155]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-19/igt@kms_dirtyfb@dirtyfb-ioctl@fbc-hdmi-a-1.html * igt@kms_dirtyfb@dirtyfb-ioctl@fbc-hdmi-a-2: - shard-rkl: NOTRUN -> [SKIP][156] ([i915#9227]) [156]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@kms_dirtyfb@dirtyfb-ioctl@fbc-hdmi-a-2.html * igt@kms_dirtyfb@dirtyfb-ioctl@psr-hdmi-a-1: - shard-dg1: NOTRUN -> [SKIP][157] ([i915#9226] / [i915#9261]) +1 other test skip [157]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-19/igt@kms_dirtyfb@dirtyfb-ioctl@psr-hdmi-a-1.html * igt@kms_dsc@dsc-basic: - shard-dg2: NOTRUN -> [SKIP][158] ([i915#3555] / [i915#3840]) [158]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@kms_dsc@dsc-basic.html * igt@kms_dsc@dsc-with-bpc-formats: - shard-mtlp: NOTRUN -> [SKIP][159] ([i915#3555] / [i915#3840]) [159]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-4/igt@kms_dsc@dsc-with-bpc-formats.html * igt@kms_flip@2x-flip-vs-panning-vs-hang: - shard-dg2: NOTRUN -> [SKIP][160] ([fdo#109274]) +8 other tests skip [160]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-7/igt@kms_flip@2x-flip-vs-panning-vs-hang.html - shard-rkl: NOTRUN -> [SKIP][161] ([fdo#111825]) +4 other tests skip [161]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-7/igt@kms_flip@2x-flip-vs-panning-vs-hang.html * igt@kms_flip@2x-nonexisting-fb: - shard-snb: NOTRUN -> [SKIP][162] ([fdo#109271]) +51 other tests skip [162]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-snb4/igt@kms_flip@2x-nonexisting-fb.html * igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset: - shard-mtlp: NOTRUN -> [SKIP][163] ([i915#3637]) [163]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-1/igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset.html * igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling@pipe-a-valid-mode: - shard-rkl: NOTRUN -> [SKIP][164] ([i915#2672]) +1 other test skip [164]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-6/igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling@pipe-a-valid-mode.html - shard-dg1: NOTRUN -> [SKIP][165] ([i915#2587] / [i915#2672]) [165]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-15/igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling@pipe-a-valid-mode.html * igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-downscaling@pipe-a-default-mode: - shard-mtlp: NOTRUN -> [SKIP][166] ([i915#2672]) [166]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-2/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-downscaling@pipe-a-default-mode.html * igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling@pipe-a-valid-mode: - shard-dg2: NOTRUN -> [SKIP][167] ([i915#2672]) +4 other tests skip [167]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling@pipe-a-valid-mode.html * igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling@pipe-a-valid-mode: - shard-tglu: NOTRUN -> [SKIP][168] ([i915#2587] / [i915#2672]) [168]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-6/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling@pipe-a-valid-mode.html * igt@kms_force_connector_basic@force-load-detect: - shard-dg2: NOTRUN -> [SKIP][169] ([fdo#109285]) [169]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-1/igt@kms_force_connector_basic@force-load-detect.html * igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-blt: - shard-dg2: [PASS][170] -> [FAIL][171] ([i915#6880]) +1 other test fail [170]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg2-10/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-blt.html [171]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-blt.html * igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-gtt: - shard-dg2: NOTRUN -> [SKIP][172] ([i915#8708]) +20 other tests skip [172]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-gtt.html * igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-plflip-blt: - shard-dg2: NOTRUN -> [SKIP][173] ([i915#5354]) +51 other tests skip [173]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-plflip-blt.html * igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-mmap-cpu: - shard-dg2: NOTRUN -> [SKIP][174] ([i915#3458]) +23 other tests skip [174]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-mmap-cpu.html * igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-pgflip-blt: - shard-dg1: NOTRUN -> [SKIP][175] ([i915#3458]) +3 other tests skip [175]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-18/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-pgflip-blt.html * igt@kms_frontbuffer_tracking@fbcpsr-1p-rte: - shard-rkl: NOTRUN -> [SKIP][176] ([i915#3023]) +11 other tests skip [176]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-6/igt@kms_frontbuffer_tracking@fbcpsr-1p-rte.html * igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-mmap-wc: - shard-dg1: NOTRUN -> [SKIP][177] ([i915#8708]) [177]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-18/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-mmap-wc.html * igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt: - shard-rkl: NOTRUN -> [SKIP][178] ([fdo#111825] / [i915#1825]) +19 other tests skip [178]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt.html - shard-dg1: NOTRUN -> [SKIP][179] ([fdo#111825]) +7 other tests skip [179]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-14/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt.html * igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-render: - shard-tglu: NOTRUN -> [SKIP][180] ([fdo#109280]) +7 other tests skip [180]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-10/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-render.html * igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-gtt: - shard-mtlp: NOTRUN -> [SKIP][181] ([i915#8708]) +1 other test skip [181]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-5/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-gtt.html * igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-render: - shard-mtlp: NOTRUN -> [SKIP][182] ([i915#1825]) +4 other tests skip [182]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-7/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-render.html * igt@kms_getfb@getfb-reject-ccs: - shard-dg2: NOTRUN -> [SKIP][183] ([i915#6118]) [183]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-3/igt@kms_getfb@getfb-reject-ccs.html * igt@kms_hdr@bpc-switch-dpms: - shard-tglu: NOTRUN -> [SKIP][184] ([i915#3555] / [i915#8228]) [184]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-4/igt@kms_hdr@bpc-switch-dpms.html * igt@kms_hdr@static-toggle-dpms: - shard-dg2: NOTRUN -> [SKIP][185] ([i915#3555] / [i915#8228]) +1 other test skip [185]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-1/igt@kms_hdr@static-toggle-dpms.html * igt@kms_invalid_mode@clock-too-high@edp-1-pipe-d: - shard-mtlp: NOTRUN -> [SKIP][186] ([i915#6403]) +3 other tests skip [186]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-6/igt@kms_invalid_mode@clock-too-high@edp-1-pipe-d.html * igt@kms_plane_scaling@intel-max-src-size: - shard-dg2: NOTRUN -> [SKIP][187] ([i915#6953]) [187]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-6/igt@kms_plane_scaling@intel-max-src-size.html * igt@kms_plane_scaling@intel-max-src-size@pipe-a-hdmi-a-3: - shard-dg1: NOTRUN -> [FAIL][188] ([i915#8292]) [188]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-12/igt@kms_plane_scaling@intel-max-src-size@pipe-a-hdmi-a-3.html * igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-b-hdmi-a-2: - shard-rkl: NOTRUN -> [SKIP][189] ([i915#5235]) +1 other test skip [189]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-b-hdmi-a-2.html * igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-d-hdmi-a-2: - shard-dg2: NOTRUN -> [SKIP][190] ([i915#5235]) +19 other tests skip [190]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-d-hdmi-a-2.html * igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-d-hdmi-a-4: - shard-dg1: NOTRUN -> [SKIP][191] ([i915#5235]) +11 other tests skip [191]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-16/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-d-hdmi-a-4.html * {igt@kms_pm_rpm@fences} (NEW): - shard-dg1: NOTRUN -> [SKIP][192] ([i915#4077]) +3 other tests skip [192]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-15/igt@kms_pm_rpm@fences.html - shard-mtlp: NOTRUN -> [SKIP][193] ([i915#4077]) +5 other tests skip [193]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-2/igt@kms_pm_rpm@fences.html * {igt@kms_pm_rpm@modeset-lpsp} (NEW): - shard-apl: NOTRUN -> [SKIP][194] ([fdo#109271]) +6 other tests skip [194]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-apl3/igt@kms_pm_rpm@modeset-lpsp.html * {igt@kms_pm_rpm@pc8-residency} (NEW): - shard-glk: NOTRUN -> [SKIP][195] ([fdo#109271]) +6 other tests skip [195]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-glk8/igt@kms_pm_rpm@pc8-residency.html * igt@kms_prime@d3hot: - shard-dg2: NOTRUN -> [SKIP][196] ([i915#6524] / [i915#6805]) [196]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-3/igt@kms_prime@d3hot.html * igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-sf: - shard-rkl: NOTRUN -> [SKIP][197] ([i915#658]) [197]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-sf.html * igt@kms_psr2_su@page_flip-nv12: - shard-tglu: NOTRUN -> [SKIP][198] ([fdo#109642] / [fdo#111068] / [i915#658]) [198]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-7/igt@kms_psr2_su@page_flip-nv12.html * igt@kms_psr2_su@page_flip-xrgb8888: - shard-dg2: NOTRUN -> [SKIP][199] ([i915#658]) +3 other tests skip [199]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@kms_psr2_su@page_flip-xrgb8888.html - shard-rkl: NOTRUN -> [SKIP][200] ([fdo#111068] / [i915#658]) +2 other tests skip [200]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@kms_psr2_su@page_flip-xrgb8888.html - shard-dg1: NOTRUN -> [SKIP][201] ([fdo#111068] / [i915#658]) [201]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-17/igt@kms_psr2_su@page_flip-xrgb8888.html * igt@kms_psr@cursor_plane_move: - shard-dg1: NOTRUN -> [SKIP][202] ([i915#1072] / [i915#4078]) [202]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-19/igt@kms_psr@cursor_plane_move.html * igt@kms_psr@primary_blt: - shard-rkl: NOTRUN -> [SKIP][203] ([i915#1072]) +2 other tests skip [203]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-7/igt@kms_psr@primary_blt.html * igt@kms_psr@psr2_sprite_mmap_gtt: - shard-dg2: NOTRUN -> [SKIP][204] ([i915#1072]) +8 other tests skip [204]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@kms_psr@psr2_sprite_mmap_gtt.html * igt@kms_psr@psr2_sprite_render: - shard-tglu: NOTRUN -> [SKIP][205] ([fdo#110189]) +3 other tests skip [205]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-2/igt@kms_psr@psr2_sprite_render.html * igt@kms_psr_stress_test@invalidate-primary-flip-overlay: - shard-dg1: NOTRUN -> [SKIP][206] ([i915#5461] / [i915#658]) [206]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-15/igt@kms_psr_stress_test@invalidate-primary-flip-overlay.html - shard-dg2: NOTRUN -> [SKIP][207] ([i915#5461] / [i915#658]) [207]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-1/igt@kms_psr_stress_test@invalidate-primary-flip-overlay.html - shard-rkl: NOTRUN -> [SKIP][208] ([i915#5461] / [i915#658]) [208]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-7/igt@kms_psr_stress_test@invalidate-primary-flip-overlay.html * igt@kms_rotation_crc@primary-rotation-270: - shard-dg2: NOTRUN -> [SKIP][209] ([i915#4235]) +1 other test skip [209]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@kms_rotation_crc@primary-rotation-270.html * igt@kms_rotation_crc@primary-yf-tiled-reflect-x-90: - shard-dg2: NOTRUN -> [SKIP][210] ([i915#4235] / [i915#5190]) [210]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-1/igt@kms_rotation_crc@primary-yf-tiled-reflect-x-90.html - shard-rkl: NOTRUN -> [SKIP][211] ([fdo#111615] / [i915#5289]) [211]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-7/igt@kms_rotation_crc@primary-yf-tiled-reflect-x-90.html * igt@kms_setmode@basic-clone-single-crtc: - shard-rkl: NOTRUN -> [SKIP][212] ([i915#3555] / [i915#4098]) [212]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@kms_setmode@basic-clone-single-crtc.html - shard-dg1: NOTRUN -> [SKIP][213] ([i915#3555]) +2 other tests skip [213]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-12/igt@kms_setmode@basic-clone-single-crtc.html * igt@kms_setmode@invalid-clone-single-crtc: - shard-mtlp: NOTRUN -> [SKIP][214] ([i915#3555] / [i915#8809]) [214]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-4/igt@kms_setmode@invalid-clone-single-crtc.html * igt@kms_universal_plane@cursor-fb-leak-pipe-b: - shard-mtlp: [PASS][215] -> [FAIL][216] ([i915#9196]) [215]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-2/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html [216]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-7/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html * igt@kms_vblank@pipe-c-ts-continuation-dpms-suspend: - shard-rkl: NOTRUN -> [SKIP][217] ([i915#4070] / [i915#6768]) +1 other test skip [217]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@kms_vblank@pipe-c-ts-continuation-dpms-suspend.html - shard-apl: [PASS][218] -> [INCOMPLETE][219] ([i915#180]) [218]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-apl6/igt@kms_vblank@pipe-c-ts-continuation-dpms-suspend.html [219]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-apl4/igt@kms_vblank@pipe-c-ts-continuation-dpms-suspend.html * igt@kms_vblank@pipe-d-query-idle: - shard-rkl: NOTRUN -> [SKIP][220] ([i915#4070] / [i915#533] / [i915#6768]) +3 other tests skip [220]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@kms_vblank@pipe-d-query-idle.html * igt@perf@gen8-unprivileged-single-ctx-counters: - shard-dg2: NOTRUN -> [SKIP][221] ([i915#2436]) [221]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@perf@gen8-unprivileged-single-ctx-counters.html - shard-rkl: NOTRUN -> [SKIP][222] ([i915#2436]) [222]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@perf@gen8-unprivileged-single-ctx-counters.html * igt@perf@global-sseu-config: - shard-dg2: NOTRUN -> [SKIP][223] ([i915#7387]) [223]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@perf@global-sseu-config.html * igt@perf@non-zero-reason@0-rcs0: - shard-dg2: NOTRUN -> [FAIL][224] ([i915#7484]) [224]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-1/igt@perf@non-zero-reason@0-rcs0.html * igt@perf_pmu@busy-double-start@vecs1: - shard-dg2: [PASS][225] -> [FAIL][226] ([i915#4349]) +3 other tests fail [225]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg2-11/igt@perf_pmu@busy-double-start@vecs1.html [226]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-10/igt@perf_pmu@busy-double-start@vecs1.html * igt@prime_vgem@fence-flip-hang: - shard-dg2: NOTRUN -> [SKIP][227] ([i915#3708]) +1 other test skip [227]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-3/igt@prime_vgem@fence-flip-hang.html * igt@v3d/v3d_create_bo@create-bo-zeroed: - shard-rkl: NOTRUN -> [SKIP][228] ([fdo#109315]) +6 other tests skip [228]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@v3d/v3d_create_bo@create-bo-zeroed.html * igt@v3d/v3d_job_submission@array-job-submission: - shard-dg2: NOTRUN -> [SKIP][229] ([i915#2575]) +15 other tests skip [229]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-3/igt@v3d/v3d_job_submission@array-job-submission.html * igt@v3d/v3d_perfmon@create-two-perfmon: - shard-dg1: NOTRUN -> [SKIP][230] ([i915#2575]) +2 other tests skip [230]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-16/igt@v3d/v3d_perfmon@create-two-perfmon.html * igt@v3d/v3d_submit_cl@bad-multisync-out-sync: - shard-tglu: NOTRUN -> [SKIP][231] ([fdo#109315] / [i915#2575]) +2 other tests skip [231]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-7/igt@v3d/v3d_submit_cl@bad-multisync-out-sync.html * igt@v3d/v3d_submit_csd@bad-multisync-out-sync: - shard-mtlp: NOTRUN -> [SKIP][232] ([i915#2575]) +1 other test skip [232]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-3/igt@v3d/v3d_submit_csd@bad-multisync-out-sync.html * igt@vc4/vc4_perfmon@destroy-invalid-perfmon: - shard-tglu: NOTRUN -> [SKIP][233] ([i915#2575]) [233]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-4/igt@vc4/vc4_perfmon@destroy-invalid-perfmon.html * igt@vc4/vc4_purgeable_bo@mark-purgeable: - shard-rkl: NOTRUN -> [SKIP][234] ([i915#7711]) +3 other tests skip [234]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@vc4/vc4_purgeable_bo@mark-purgeable.html * igt@vc4/vc4_purgeable_bo@mark-willneed: - shard-dg1: NOTRUN -> [SKIP][235] ([i915#7711]) +1 other test skip [235]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-12/igt@vc4/vc4_purgeable_bo@mark-willneed.html * igt@vc4/vc4_tiling@get-after-free: - shard-mtlp: NOTRUN -> [SKIP][236] ([i915#7711]) +1 other test skip [236]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-2/igt@vc4/vc4_tiling@get-after-free.html * igt@vc4/vc4_wait_seqno@bad-seqno-1ns: - shard-dg2: NOTRUN -> [SKIP][237] ([i915#7711]) +8 other tests skip [237]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-2/igt@vc4/vc4_wait_seqno@bad-seqno-1ns.html #### Possible fixes #### * igt@gem_ctx_persistence@engines-hang@vcs0: - shard-mtlp: [FAIL][238] ([i915#2410]) -> [PASS][239] [238]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-2/igt@gem_ctx_persistence@engines-hang@vcs0.html [239]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-7/igt@gem_ctx_persistence@engines-hang@vcs0.html * igt@gem_exec_fair@basic-pace-share@rcs0: - shard-rkl: [FAIL][240] ([i915#2842]) -> [PASS][241] +1 other test pass [240]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-rkl-2/igt@gem_exec_fair@basic-pace-share@rcs0.html [241]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@gem_exec_fair@basic-pace-share@rcs0.html * igt@i915_pm_rc6_residency@rc6-idle@rcs0: - shard-dg1: [FAIL][242] ([i915#3591]) -> [PASS][243] [242]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg1-14/igt@i915_pm_rc6_residency@rc6-idle@rcs0.html [243]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg1-19/igt@i915_pm_rc6_residency@rc6-idle@rcs0.html * igt@i915_pm_rpm@system-suspend-devices: - shard-dg2: [INCOMPLETE][244] -> [PASS][245] [244]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg2-11/igt@i915_pm_rpm@system-suspend-devices.html [245]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@i915_pm_rpm@system-suspend-devices.html * igt@i915_suspend@basic-s3-without-i915: - shard-rkl: [FAIL][246] ([fdo#103375]) -> [PASS][247] +1 other test pass [246]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-rkl-6/igt@i915_suspend@basic-s3-without-i915.html [247]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@i915_suspend@basic-s3-without-i915.html * igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-async-flip: - shard-tglu: [FAIL][248] ([i915#3743]) -> [PASS][249] [248]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-tglu-2/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html [249]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-3/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size: - shard-apl: [FAIL][250] ([i915#2346]) -> [PASS][251] [250]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-apl1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html [251]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-apl2/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html * igt@kms_cursor_legacy@single-move@all-pipes: - shard-mtlp: [DMESG-WARN][252] ([i915#2017]) -> [PASS][253] [252]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-4/igt@kms_cursor_legacy@single-move@all-pipes.html [253]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-3/igt@kms_cursor_legacy@single-move@all-pipes.html * igt@kms_frontbuffer_tracking@fbc-tiling-4: - shard-dg2: [FAIL][254] ([i915#6880]) -> [PASS][255] [254]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg2-11/igt@kms_frontbuffer_tracking@fbc-tiling-4.html [255]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-5/igt@kms_frontbuffer_tracking@fbc-tiling-4.html * igt@kms_rotation_crc@primary-y-tiled-reflect-x-270: - shard-rkl: [INCOMPLETE][256] ([i915#8875]) -> [PASS][257] [256]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-rkl-6/igt@kms_rotation_crc@primary-y-tiled-reflect-x-270.html [257]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-2/igt@kms_rotation_crc@primary-y-tiled-reflect-x-270.html * igt@kms_scaling_modes@scaling-mode-full@edp-1-pipe-d: - shard-mtlp: [ABORT][258] ([i915#9414]) -> [PASS][259] [258]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-7/igt@kms_scaling_modes@scaling-mode-full@edp-1-pipe-d.html [259]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-8/igt@kms_scaling_modes@scaling-mode-full@edp-1-pipe-d.html * igt@kms_sysfs_edid_timing: - shard-dg2: [FAIL][260] ([IGT#2]) -> [PASS][261] [260]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg2-5/igt@kms_sysfs_edid_timing.html [261]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@kms_sysfs_edid_timing.html * igt@kms_universal_plane@cursor-fb-leak-pipe-b: - shard-snb: [FAIL][262] ([i915#9196]) -> [PASS][263] [262]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-snb6/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html [263]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-snb4/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html - shard-tglu: [FAIL][264] ([i915#9196]) -> [PASS][265] [264]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-tglu-2/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html [265]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-3/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html * igt@perf_pmu@busy-double-start@rcs0: - shard-mtlp: [FAIL][266] ([i915#4349]) -> [PASS][267] [266]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-4/igt@perf_pmu@busy-double-start@rcs0.html [267]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-1/igt@perf_pmu@busy-double-start@rcs0.html * igt@sysfs_heartbeat_interval@mixed@vecs0: - shard-mtlp: [FAIL][268] ([i915#1731]) -> [PASS][269] [268]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-mtlp-6/igt@sysfs_heartbeat_interval@mixed@vecs0.html [269]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-mtlp-8/igt@sysfs_heartbeat_interval@mixed@vecs0.html #### Warnings #### * igt@gem_create@create-ext-cpu-access-big: - shard-dg2: [ABORT][270] ([i915#7461]) -> [INCOMPLETE][271] ([i915#9364]) [270]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-dg2-3/igt@gem_create@create-ext-cpu-access-big.html [271]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-dg2-11/igt@gem_create@create-ext-cpu-access-big.html * igt@gem_eio@in-flight-suspend: - shard-snb: [DMESG-WARN][272] ([i915#8841]) -> [DMESG-WARN][273] ([i915#5090] / [i915#8841]) [272]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-snb4/igt@gem_eio@in-flight-suspend.html [273]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-snb1/igt@gem_eio@in-flight-suspend.html * igt@i915_pm_rc6_residency@rc6-idle@rcs0: - shard-tglu: [WARN][274] ([i915#2681]) -> [FAIL][275] ([i915#2681] / [i915#3591]) [274]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-tglu-3/igt@i915_pm_rc6_residency@rc6-idle@rcs0.html [275]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-tglu-8/igt@i915_pm_rc6_residency@rc6-idle@rcs0.html * igt@kms_force_connector_basic@force-load-detect: - shard-rkl: [SKIP][276] ([fdo#109285]) -> [SKIP][277] ([fdo#109285] / [i915#4098]) [276]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-rkl-6/igt@kms_force_connector_basic@force-load-detect.html [277]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-4/igt@kms_force_connector_basic@force-load-detect.html * igt@kms_multipipe_modeset@basic-max-pipe-crc-check: - shard-rkl: [SKIP][278] ([i915#4816]) -> [SKIP][279] ([i915#4070] / [i915#4816]) [278]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13717/shard-rkl-4/igt@kms_multipipe_modeset@basic-max-pipe-crc-check.html [279]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/shard-rkl-1/igt@kms_multipipe_modeset@basic-max-pipe-crc-check.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2 [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#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280 [fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285 [fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289 [fdo#109303]: https://bugs.freedesktop.org/show_bug.cgi?id=109303 [fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315 [fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642 [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#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825 [fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827 [i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072 [i915#1339]: https://gitlab.freedesktop.org/drm/intel/issues/1339 [i915#1731]: https://gitlab.freedesktop.org/drm/intel/issues/1731 [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#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839 [i915#1937]: https://gitlab.freedesktop.org/drm/intel/issues/1937 [i915#2017]: https://gitlab.freedesktop.org/drm/intel/issues/2017 [i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346 [i915#2410]: https://gitlab.freedesktop.org/drm/intel/issues/2410 [i915#2436]: https://gitlab.freedesktop.org/drm/intel/issues/2436 [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#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587 [i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672 [i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681 [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#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116 [i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281 [i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282 [i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297 [i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299 [i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458 [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#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743 [i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840 [i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886 [i915#404]: https://gitlab.freedesktop.org/drm/intel/issues/404 [i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070 [i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077 [i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078 [i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079 [i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083 [i915#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#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349 [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#4537]: https://gitlab.freedesktop.org/drm/intel/issues/4537 [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#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852 [i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860 [i915#4879]: https://gitlab.freedesktop.org/drm/intel/issues/4879 [i915#4885]: https://gitlab.freedesktop.org/drm/intel/issues/4885 [i915#4936]: https://gitlab.freedesktop.org/drm/intel/issues/4936 [i915#5090]: https://gitlab.freedesktop.org/drm/intel/issues/5090 [i915#5138]: https://gitlab.freedesktop.org/drm/intel/issues/5138 [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#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461 [i915#5493]: https://gitlab.freedesktop.org/drm/intel/issues/5493 [i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591 [i915#5608]: https://gitlab.freedesktop.org/drm/intel/issues/5608 [i915#5882]: https://gitlab.freedesktop.org/drm/intel/issues/5882 [i915#5978]: https://gitlab.freedesktop.org/drm/intel/issues/5978 [i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095 [i915#6118]: https://gitlab.freedesktop.org/drm/intel/issues/6118 [i915#6228]: https://gitlab.freedesktop.org/drm/intel/issues/6228 [i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268 [i915#6403]: https://gitlab.freedesktop.org/drm/intel/issues/6403 [i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524 [i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658 [i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621 [i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768 [i915#6805]: https://gitlab.freedesktop.org/drm/intel/issues/6805 [i915#6880]: https://gitlab.freedesktop.org/drm/intel/issues/6880 [i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953 [i915#7036]: https://gitlab.freedesktop.org/drm/intel/issues/7036 [i915#7069]: https://gitlab.freedesktop.org/drm/intel/issues/7069 [i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118 [i915#7297]: https://gitlab.freedesktop.org/drm/intel/issues/7297 [i915#7387]: https://gitlab.freedesktop.org/drm/intel/issues/7387 [i915#7461]: https://gitlab.freedesktop.org/drm/intel/issues/7461 [i915#7484]: https://gitlab.freedesktop.org/drm/intel/issues/7484 [i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697 [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#7984]: https://gitlab.freedesktop.org/drm/intel/issues/7984 [i915#8213]: https://gitlab.freedesktop.org/drm/intel/issues/8213 [i915#8228]: https://gitlab.freedesktop.org/drm/intel/issues/8228 [i915#8292]: https://gitlab.freedesktop.org/drm/intel/issues/8292 [i915#8414]: https://gitlab.freedesktop.org/drm/intel/issues/8414 [i915#8428]: https://gitlab.freedesktop.org/drm/intel/issues/8428 [i915#8489]: https://gitlab.freedesktop.org/drm/intel/issues/8489 [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#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668 [i915#8708]: https://gitlab.freedesktop.org/drm/intel/issues/8708 [i915#8709]: https://gitlab.freedesktop.org/drm/intel/issues/8709 [i915#8809]: https://gitlab.freedesktop.org/drm/intel/issues/8809 [i915#8841]: https://gitlab.freedesktop.org/drm/intel/issues/8841 [i915#8875]: https://gitlab.freedesktop.org/drm/intel/issues/8875 [i915#8925]: https://gitlab.freedesktop.org/drm/intel/issues/8925 [i915#8962]: https://gitlab.freedesktop.org/drm/intel/issues/8962 [i915#9053]: https://gitlab.freedesktop.org/drm/intel/issues/9053 [i915#9137]: https://gitlab.freedesktop.org/drm/intel/issues/9137 [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#9364]: https://gitlab.freedesktop.org/drm/intel/issues/9364 [i915#9412]: https://gitlab.freedesktop.org/drm/intel/issues/9412 [i915#9414]: https://gitlab.freedesktop.org/drm/intel/issues/9414 [i915#9423]: https://gitlab.freedesktop.org/drm/intel/issues/9423 [i915#9424]: https://gitlab.freedesktop.org/drm/intel/issues/9424 [i915#9433]: https://gitlab.freedesktop.org/drm/intel/issues/9433 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7516 -> IGTPW_9925 * Piglit: piglit_4509 -> None CI-20190529: 20190529 CI_DRM_13717: ba043ea3baa7d6cd98262e865f903bf9016a8a5e @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_9925: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/index.html IGT_7516: 40b5a184f6da0a3295ee429947696d254522bb22 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9925/index.html [-- Attachment #2: Type: text/html, Size: 94422 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-10-11 4:14 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-10-05 11:54 [igt-dev] [i-g-t V6 0/3] tests/intel/pm: Separate display specific tests from i915_pm_rpm Bhanuprakash Modem 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 1/3] " Bhanuprakash Modem 2023-10-11 4:11 ` Sharma, Swati2 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 2/3] tests/intel/pm_rpm: Split module-reload test Bhanuprakash Modem 2023-10-05 19:44 ` Kamil Konieczny 2023-10-05 11:54 ` [igt-dev] [i-g-t V6 3/3] tests/intel/pm_rpm: Fix CI with renamed tests Bhanuprakash Modem 2023-10-11 4:14 ` Sharma, Swati2 2023-10-05 15:15 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/intel/pm: Separate display specific tests from i915_pm_rpm (rev3) Patchwork 2023-10-05 15:57 ` [igt-dev] ✗ CI.xeBAT: failure " Patchwork 2023-10-06 4:42 ` [igt-dev] ✗ Fi.CI.IGT: " Patchwork
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox