Skip to contentSkip to conversation

tests/kms_force_connector: Fixes

PATCH In review Daniel Vetter 4 participants 9 messages Dec 1, 2015 – Dec 4, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 tests/kms_force_connector: Fixes

Somehow the kernel's mode list changed with our EDID. No idea whether that's the right thing here since I'm not really an EDID expert. But then again the testcase wants to check that the injection works, not validate the kernel's parser.

v2: Only check the preferred mode for more future-proofing (Thomas).

---
 tests/kms_force_connector.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
tests/kms_force_connector.c +2 -4
index 838a3b0ae2e6..99a5649ec0c3 100644
@@ -150,10 +150,8 @@ int main(int argc, char **argv)
 					   vga_connector->connector_id);
 
 		CHECK_MODE(temp->modes[0], 1920, 1080, 60);
-		CHECK_MODE(temp->modes[1], 1280, 720, 60);
-		CHECK_MODE(temp->modes[2], 1024, 768, 60);
-		CHECK_MODE(temp->modes[3], 800, 600, 60);
-		CHECK_MODE(temp->modes[4], 640, 480, 60);
+		/* Don't check non-preferred modes to avoid to tight coupling
+		 * with the in-kernel EDID parser. */
 
 		drmModeFreeConnector(temp);
 
Signature · 6 lines
2.1.0

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 2/3 lib/kms+tests: Use cached connector state

Speeds up testcases except for those where we want to exercise the probing itself. The only exceptions left where we do a full probe are

- pm_rpm: We use it to make sure the kernel doesn't get things wrong with power domains, so we really want to exercise the full probe paths. And there the only place really is the specific validation done with the data gathered by get_drm_info.

- kmstest_force_ functions: Newer kernels should be better at re-probing state when the force sysfs fields change, but better safe than sorry.

v2: I also consolidated the start_n_modes and start_connectors while at it - move one of the fixup hunks to this patch that accidentally got misplaced (Thomas).

---
 lib/igt_kms.c                    | 16 ++++++++++++++--
 tests/kms_3d.c                   |  4 ++--
 tests/kms_draw_crc.c             |  4 ++--
 tests/kms_fbcon_fbt.c            |  2 +-
 tests/kms_flip.c                 |  2 +-
 tests/kms_force_connector.c      | 41 +++++++++++++++++++++++++---------------
 tests/kms_frontbuffer_tracking.c |  2 +-
 tests/kms_setmode.c              |  2 +-
 tests/pm_lpsp.c                  |  2 +-
 tests/pm_rpm.c                   |  4 +++-
 tests/testdisplay.c              |  3 ++-
 11 files changed, 54 insertions(+), 28 deletions(-)
lib/igt_kms.c +14 -2
index 528164499828..fd4f05e81f3d 100644
@@ -393,6 +393,7 @@ bool kmstest_force_connector(int drm_fd, drmModeConnector *connector,
 	char *path, **tmp;
 	const char *value;
 	int debugfs_fd, ret, len;
+	drmModeConnector *temp;
 	uint32_t devid;
 
 	devid = intel_get_drm_devid(drm_fd);
@@ -459,6 +460,11 @@ bool kmstest_force_connector(int drm_fd, drmModeConnector *connector,
 
 	igt_install_exit_handler(reset_connectors_at_exit);
 
+	/* To allow callers to always use GetConnectorCurrent we need to force a
+	 * redetection here. */
+	temp = drmModeGetConnector(drm_fd, connector->connector_id);
+	drmModeFreeConnector(temp);
+
 	igt_assert(ret != -1);
 	return (ret == -1) ? false : true;
 }
@@ -480,6 +486,7 @@ void kmstest_force_edid(int drm_fd, drmModeConnector *connector,
 {
 	char *path;
 	int debugfs_fd, ret;
+	drmModeConnector *temp;
 
 	igt_assert_neq(asprintf(&path, "%s-%d/edid_override", kmstest_connector_type_str(connector->connector_type), connector->connector_type_id),
 		       -1);
@@ -494,6 +501,11 @@ void kmstest_force_edid(int drm_fd, drmModeConnector *connector,
 		ret = write(debugfs_fd, edid, length);
 	close(debugfs_fd);
 
+	/* To allow callers to always use GetConnectorCurrent we need to force a
+	 * redetection here. */
+	temp = drmModeGetConnector(drm_fd, connector->connector_id);
+	drmModeFreeConnector(temp);
+
 	igt_assert(ret != -1);
 }
 
@@ -556,7 +568,7 @@ bool kmstest_get_connector_config(int drm_fd, uint32_t connector_id,
 	}
 
 	/* First, find the connector & mode */
-	connector = drmModeGetConnector(drm_fd, connector_id);
+	connector = drmModeGetConnectorCurrent(drm_fd, connector_id);
 	if (!connector)
 		goto err2;
 
@@ -1979,7 +1991,7 @@ void igt_enable_connectors(void)
 
 	for (int i = 0; i < res->count_connectors; i++) {
 
-		c = drmModeGetConnector(drm_fd, res->connectors[i]);
+		c = drmModeGetConnectorCurrent(drm_fd, res->connectors[i]);
 
 		/* don't attempt to force connectors that are already connected
 		 */
tests/kms_3d.c +2 -2
index 4cf765cd713d..bfc981ee279d 100644
@@ -43,7 +43,7 @@ igt_simple_main
 	/* find an hdmi connector */
 	for (int i = 0; i < res->count_connectors; i++) {
 
-		connector = drmModeGetConnector(drm_fd, res->connectors[i]);
+		connector = drmModeGetConnectorCurrent(drm_fd, res->connectors[i]);
 
 		if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA &&
 		    connector->connection == DRM_MODE_DISCONNECTED)
@@ -66,7 +66,7 @@ igt_simple_main
 
 	/* check for 3D modes */
 	mode_count = 0;
-	connector = drmModeGetConnector(drm_fd, connector_id);
+	connector = drmModeGetConnectorCurrent(drm_fd, connector_id);
 	for (int i = 0; i < connector->count_modes; i++) {
 		if (connector->modes[i].flags & DRM_MODE_FLAG_3D_MASK)
 			mode_count++;
tests/kms_draw_crc.c +2 -2
index dccf5355c287..3f801749fc2b 100644
@@ -232,8 +232,8 @@ static void setup_environment(void)
 	igt_assert(drm_res->count_connectors <= MAX_CONNECTORS);
 
 	for (i = 0; i < drm_res->count_connectors; i++)
-		drm_connectors[i] = drmModeGetConnector(drm_fd,
-							drm_res->connectors[i]);
+		drm_connectors[i] = drmModeGetConnectorCurrent(drm_fd,
+							       drm_res->connectors[i]);
 
 	kmstest_set_vt_graphics_mode();
 
tests/kms_fbcon_fbt.c +1 -1
index 0feb1a4969a9..3c93378eb96b 100644
@@ -63,7 +63,7 @@ static void setup_drm(struct drm_info *drm)
 	igt_assert(drm->res->count_connectors <= MAX_CONNECTORS);
 
 	for (i = 0; i < drm->res->count_connectors; i++)
-		drm->connectors[i] = drmModeGetConnector(drm->fd,
+		drm->connectors[i] = drmModeGetConnectorCurrent(drm->fd,
 						drm->res->connectors[i]);
 
 	kmstest_set_vt_graphics_mode();
tests/kms_flip.c +1 -1
index 7157e709f0eb..a3acc3dd28e8 100644
@@ -418,7 +418,7 @@ static void dpms_off_other_outputs(struct test_output *o)
 				goto next;
 		}
 
-		connector = drmModeGetConnector(drm_fd, connector_id);
+		connector = drmModeGetConnectorCurrent(drm_fd, connector_id);
 
 		kmstest_set_connector_dpms(drm_fd, connector,  DRM_MODE_DPMS_ON);
 		kmstest_set_connector_dpms(drm_fd, connector,  DRM_MODE_DPMS_OFF);
tests/kms_force_connector.c +26 -15

101 lines not on this page · raw message

tests/kms_frontbuffer_tracking.c +1 -1
index 4734f25398b4..fbeeb4bf0b8d 100644
@@ -1266,7 +1266,7 @@ static void setup_drm(void)
 	igt_assert(drm.res->count_connectors <= MAX_CONNECTORS);
 
 	for (i = 0; i < drm.res->count_connectors; i++)
-		drm.connectors[i] = drmModeGetConnector(drm.fd,
+		drm.connectors[i] = drmModeGetConnectorCurrent(drm.fd,
 						drm.res->connectors[i]);
 
 	rc = drmSetClientCap(drm.fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
tests/kms_setmode.c +1 -1
index cf06aabf3e5a..d5ac8f931b55 100644
@@ -504,7 +504,7 @@ static int get_one_connector(drmModeRes *resources, int connector_id,
 	drmModeConnector *connector;
 	drmModeModeInfo mode;
 
-	connector = drmModeGetConnector(drm_fd, connector_id);
+	connector = drmModeGetConnectorCurrent(drm_fd, connector_id);
 	igt_assert(connector);
 	cconf->connector = connector;
 
tests/pm_lpsp.c +1 -1
index b62876c4c253..257ae1b8b1d9 100644
@@ -231,7 +231,7 @@ igt_main
 		igt_assert(drm_res->count_connectors <= MAX_CONNECTORS);
 
 		for (i = 0; i < drm_res->count_connectors; i++)
-			drm_connectors[i] = drmModeGetConnector(drm_fd,
+			drm_connectors[i] = drmModeGetConnectorCurrent(drm_fd,
 							drm_res->connectors[i]);
 
 		disable_audio_runtime_pm();
tests/pm_rpm.c +3 -1
index e9ba9ea24307..37aef96ed267 100644
@@ -370,7 +370,7 @@ static void init_mode_set_data(struct mode_set_data *data)
 	igt_assert(data->res->count_connectors <= MAX_CONNECTORS);
 
 	for (i = 0; i < data->res->count_connectors; i++) {
-		data->connectors[i] = drmModeGetConnector(drm_fd,
+		data->connectors[i] = drmModeGetConnectorCurrent(drm_fd,
 						data->res->connectors[i]);
 		data->edids[i] = get_connector_edid(data->connectors[i], i);
 	}
@@ -405,6 +405,8 @@ static void get_drm_info(struct compare_data *data)
 	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);
tests/testdisplay.c +2 -1
index 28875b2d21e5..74e60b6f4bda 100644
@@ -132,7 +132,8 @@ static void dump_connectors_fd(int drmfd)
 	for (i = 0; i < mode_resources->count_connectors; i++) {
 		drmModeConnector *connector;
 
-		connector = drmModeGetConnector(drmfd, mode_resources->connectors[i]);
+		connector = drmModeGetConnectorCurrent(drmfd,
+						       mode_resources->connectors[i]);
 		if (!connector) {
 			igt_warn("could not get connector %i: %s\n", mode_resources->connectors[i], strerror(errno));
 			continue;
Signature · 6 lines
2.1.0

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw

PATCH 3/3 tests/kms_force_connector: Include in BAT set

In reply to Daniel Vetter

Forcing connector state is a basic piece of our test infrastructure that we use in all the kms_ tests. It allows us to run tests even if no outputs are connected.

They're also really fast, so perfect candidates for inclusion into the BAT set.

---
 tests/.gitignore                  |   2 +-
 tests/Makefile.sources            |   2 +-
 tests/kms_force_connector.c       | 189 --------------------------------------
 tests/kms_force_connector_basic.c | 189 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 191 insertions(+), 191 deletions(-)
 delete mode 100644 tests/kms_force_connector.c
 create mode 100644 tests/kms_force_connector_basic.c
tests/.gitignore +1 -1
index 43d63d3abac9..900c681caec9 100644
@@ -138,7 +138,7 @@ kms_fence_pin_leak
 kms_flip
 kms_flip_event_leak
 kms_flip_tiling
-kms_force_connector
+kms_force_connector_basic
 kms_frontbuffer_tracking
 kms_legacy_colorkey
 kms_mmio_vs_cs_flip
tests/Makefile.sources +1 -1
index b70bca060253..63de439d8717 100644
@@ -163,7 +163,7 @@ TESTS_progs = \
 	gen7_forcewake_mt \
 	kms_3d \
 	kms_fence_pin_leak \
-	kms_force_connector \
+	kms_force_connector_basic \
 	kms_pwrite_crc \
 	kms_sink_crc_basic \
 	prime_udl \
tests/kms_force_connector.c deleted +0 -189

189 lines not on this page · raw message

tests/kms_force_connector_basic.c new file +189 -0

189 lines not on this page · raw message

Signature · 1 line
2.1.0

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

Re: [PATCH i-g-t 3/3] tests/kms_force_connector: Include in BAT set

Quoted 7 lines · Daniel Vetter

Forcing connector state is a basic piece of our test infrastructure that we use in all the kms_ tests. It allows us to run tests even if no outputs are connected.

They're also really fast, so perfect candidates for inclusion into the BAT set.

Quoted 6 lines
---
 tests/.gitignore                  |   2 +-
 tests/Makefile.sources            |   2 +-
 tests/kms_force_connector.c       | 189 --------------------------------------
 tests/kms_force_connector_basic.c | 189 ++++++++++++++++++++++++++++++++++++++

Would it be worth renaming the subtests instead, in case there are future tests that would make sense in kms_force_connector but that shouldn't be included in the BAT list?

Quoted 424 lines
 4 files changed, 191 insertions(+), 191 deletions(-)
 delete mode 100644 tests/kms_force_connector.c
 create mode 100644 tests/kms_force_connector_basic.c
tests/.gitignore +1 -1
index 43d63d3abac9..900c681caec9 100644
@@ -138,7 +138,7 @@ kms_fence_pin_leak
 kms_flip
 kms_flip_event_leak
 kms_flip_tiling
-kms_force_connector
+kms_force_connector_basic
 kms_frontbuffer_tracking
 kms_legacy_colorkey
 kms_mmio_vs_cs_flip
tests/Makefile.sources +1 -1
index b70bca060253..63de439d8717 100644
@@ -163,7 +163,7 @@ TESTS_progs = \
        gen7_forcewake_mt \
        kms_3d \
        kms_fence_pin_leak \
-       kms_force_connector \
+       kms_force_connector_basic \
        kms_pwrite_crc \
        kms_sink_crc_basic \
        prime_udl \
tests/kms_force_connector.c deleted +0 -189
deleted file mode 100644
index 637f625a852f..000000000000
@@ -1,189 +0,0 @@
-/*
- * Copyright © 2014 Intel Corporation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- * IN THE SOFTWARE.
- *
- */
-
-#include "igt.h"
-
-IGT_TEST_DESCRIPTION("Check the debugfs force connector/edid features work"
-                    " correctly.");
-
-#define CHECK_MODE(m, h, w, r) \
-       igt_assert_eq(m.hdisplay, h); igt_assert_eq(m.vdisplay, w); \
-       igt_assert_eq(m.vrefresh, r);
-
-static void reset_connectors(void)
-{
-       int drm_fd = 0;
-       drmModeRes *res;
-       drmModeConnector *connector = NULL;
-
-       drm_fd = drm_open_driver_master(DRIVER_INTEL);
-       res = drmModeGetResources(drm_fd);
-
-       for (int i = 0; i < res->count_connectors; i++) {
-
-               connector = drmModeGetConnectorCurrent(drm_fd,
-                                                      res->connectors[i]);
-
-               kmstest_force_connector(drm_fd, connector,
-                                       FORCE_CONNECTOR_UNSPECIFIED);
-
-               kmstest_force_edid(drm_fd, connector, NULL, 0);
-
-               drmModeFreeConnector(connector);
-       }
-}
-
-static int opt_handler(int opt, int opt_index, void *data)
-{
-       switch (opt) {
-       case 'r':
-               reset_connectors();
-               exit(0);
-               break;
-       }
-
-       return 0;
-}
-
-int main(int argc, char **argv)
-{
-       /* force the VGA output and test that it worked */
-       int drm_fd = 0;
-       drmModeRes *res;
-       drmModeConnector *vga_connector = NULL, *temp;
-       int start_n_modes, start_connection;
-       struct option long_opts[] = {
-               {"reset", 0, 0, 'r'},
-               {0, 0, 0, 0}
-       };
-       const char *help_str =
-              "  --reset\t\tReset all connector force states and edid.\n";
-
-       igt_subtest_init_parse_opts(&argc, argv, "", long_opts, help_str,
-                                   opt_handler, NULL);
-
-       igt_fixture {
-               drm_fd = drm_open_driver_master(DRIVER_INTEL);
-               res = drmModeGetResources(drm_fd);
-
-               /* find the vga connector */
-               for (int i = 0; i < res->count_connectors; i++) {
-
-                       vga_connector = drmModeGetConnectorCurrent(drm_fd,
-                                                                  res->connectors[i]);
-
-                       if (vga_connector->connector_type == DRM_MODE_CONNECTOR_VGA) {
-                               start_n_modes = vga_connector->count_modes;
-                               start_connection = vga_connector->connection;
-                               break;
-                       }
-
-                       drmModeFreeConnector(vga_connector);
-
-                       vga_connector = NULL;
-               }
-
-               igt_require(vga_connector);
-               igt_skip_on(vga_connector->connection == DRM_MODE_CONNECTED);
-       }
-
-       igt_subtest("force-connector-state") {
-               igt_display_t display;
-
-               /* force the connector on and check the reported values */
-               kmstest_force_connector(drm_fd, vga_connector, FORCE_CONNECTOR_ON);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               igt_assert_eq(temp->connection, DRM_MODE_CONNECTED);
-               igt_assert_lt(0, temp->count_modes);
-               drmModeFreeConnector(temp);
-
-               /* attempt to use the display */
-               kmstest_set_vt_graphics_mode();
-               igt_display_init(&display, drm_fd);
-               igt_display_commit(&display);
-               igt_display_fini(&display);
-
-
-               /* force the connector off */
-               kmstest_force_connector(drm_fd, vga_connector,
-                                       FORCE_CONNECTOR_OFF);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               igt_assert_eq(temp->connection, DRM_MODE_DISCONNECTED);
-               igt_assert_eq(0, temp->count_modes);
-               drmModeFreeConnector(temp);
-
-               /* check that the previous state is restored */
-               kmstest_force_connector(drm_fd, vga_connector,
-                                       FORCE_CONNECTOR_UNSPECIFIED);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               igt_assert_eq(temp->connection, start_connection);
-               drmModeFreeConnector(temp);
-       }
-
-       igt_subtest("force-edid") {
-               kmstest_force_connector(drm_fd, vga_connector,
-                                       FORCE_CONNECTOR_ON);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               drmModeFreeConnector(temp);
-
-               /* test edid forcing */
-               kmstest_force_edid(drm_fd, vga_connector,
-                                  igt_kms_get_base_edid(), EDID_LENGTH);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-
-               igt_debug("num_conn %i\n", temp->count_modes);
-
-               CHECK_MODE(temp->modes[0], 1920, 1080, 60);
-               /* Don't check non-preferred modes to avoid to tight coupling
-                * with the in-kernel EDID parser. */
-
-               drmModeFreeConnector(temp);
-
-               /* remove edid */
-               kmstest_force_edid(drm_fd, vga_connector, NULL, 0);
-               kmstest_force_connector(drm_fd, vga_connector,
-                                       FORCE_CONNECTOR_UNSPECIFIED);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               /* the connector should now have the same number of modes that
-                * it started with */
-               igt_assert_eq(temp->count_modes, start_n_modes);
-               drmModeFreeConnector(temp);
-
-       }
-
-       igt_fixture {
-               drmModeFreeConnector(vga_connector);
-               close(drm_fd);
-
-               reset_connectors();
-       }
-
-       igt_exit();
-}
tests/kms_force_connector_basic.c new file +189 -1
new file mode 100644
index 000000000000..637f625a852f
@@ -0,0 +1,189 @@
+/*
+ * Copyright © 2014 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+#include "igt.h"
+
+IGT_TEST_DESCRIPTION("Check the debugfs force connector/edid features work"
+                    " correctly.");
+
+#define CHECK_MODE(m, h, w, r) \
+       igt_assert_eq(m.hdisplay, h); igt_assert_eq(m.vdisplay, w); \
+       igt_assert_eq(m.vrefresh, r);
+
+static void reset_connectors(void)
+{
+       int drm_fd = 0;
+       drmModeRes *res;
+       drmModeConnector *connector = NULL;
+
+       drm_fd = drm_open_driver_master(DRIVER_INTEL);
+       res = drmModeGetResources(drm_fd);
+
+       for (int i = 0; i < res->count_connectors; i++) {
+
+               connector = drmModeGetConnectorCurrent(drm_fd,
+                                                      res->connectors[i]);
+
+               kmstest_force_connector(drm_fd, connector,
+                                       FORCE_CONNECTOR_UNSPECIFIED);
+
+               kmstest_force_edid(drm_fd, connector, NULL, 0);
+
+               drmModeFreeConnector(connector);
+       }
+}
+
+static int opt_handler(int opt, int opt_index, void *data)
+{
+       switch (opt) {
+       case 'r':
+               reset_connectors();
+               exit(0);
+               break;
+       }
+
+       return 0;
+}
+
+int main(int argc, char **argv)
+{
+       /* force the VGA output and test that it worked */
+       int drm_fd = 0;
+       drmModeRes *res;
+       drmModeConnector *vga_connector = NULL, *temp;
+       int start_n_modes, start_connection;
+       struct option long_opts[] = {
+               {"reset", 0, 0, 'r'},
+               {0, 0, 0, 0}
+       };
+       const char *help_str =
+              "  --reset\t\tReset all connector force states and edid.\n";
+
+       igt_subtest_init_parse_opts(&argc, argv, "", long_opts, help_str,
+                                   opt_handler, NULL);
+
+       igt_fixture {
+               drm_fd = drm_open_driver_master(DRIVER_INTEL);
+               res = drmModeGetResources(drm_fd);
+
+               /* find the vga connector */
+               for (int i = 0; i < res->count_connectors; i++) {
+
+                       vga_connector = drmModeGetConnectorCurrent(drm_fd,
+                                                                  res->connectors[i]);
+
+                       if (vga_connector->connector_type == DRM_MODE_CONNECTOR_VGA) {
+                               start_n_modes = vga_connector->count_modes;
+                               start_connection = vga_connector->connection;
+                               break;
+                       }
+
+                       drmModeFreeConnector(vga_connector);
+
+                       vga_connector = NULL;
+               }
+
+               igt_require(vga_connector);
+               igt_skip_on(vga_connector->connection == DRM_MODE_CONNECTED);
+       }
+
+       igt_subtest("force-connector-state") {
+               igt_display_t display;
+
+               /* force the connector on and check the reported values */
+               kmstest_force_connector(drm_fd, vga_connector, FORCE_CONNECTOR_ON);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               igt_assert_eq(temp->connection, DRM_MODE_CONNECTED);
+               igt_assert_lt(0, temp->count_modes);
+               drmModeFreeConnector(temp);
+
+               /* attempt to use the display */
+               kmstest_set_vt_graphics_mode();
+               igt_display_init(&display, drm_fd);
+               igt_display_commit(&display);
+               igt_display_fini(&display);
+
+
+               /* force the connector off */
+               kmstest_force_connector(drm_fd, vga_connector,
+                                       FORCE_CONNECTOR_OFF);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               igt_assert_eq(temp->connection, DRM_MODE_DISCONNECTED);
+               igt_assert_eq(0, temp->count_modes);
+               drmModeFreeConnector(temp);
+
+               /* check that the previous state is restored */
+               kmstest_force_connector(drm_fd, vga_connector,
+                                       FORCE_CONNECTOR_UNSPECIFIED);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               igt_assert_eq(temp->connection, start_connection);
+               drmModeFreeConnector(temp);
+       }
+
+       igt_subtest("force-edid") {
+               kmstest_force_connector(drm_fd, vga_connector,
+                                       FORCE_CONNECTOR_ON);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               drmModeFreeConnector(temp);
+
+               /* test edid forcing */
+               kmstest_force_edid(drm_fd, vga_connector,
+                                  igt_kms_get_base_edid(), EDID_LENGTH);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+
+               igt_debug("num_conn %i\n", temp->count_modes);
+
+               CHECK_MODE(temp->modes[0], 1920, 1080, 60);
+               /* Don't check non-preferred modes to avoid to tight coupling
+                * with the in-kernel EDID parser. */
+
+               drmModeFreeConnector(temp);
+
+               /* remove edid */
+               kmstest_force_edid(drm_fd, vga_connector, NULL, 0);
+               kmstest_force_connector(drm_fd, vga_connector,
+                                       FORCE_CONNECTOR_UNSPECIFIED);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               /* the connector should now have the same number of modes that
+                * it started with */
+               igt_assert_eq(temp->count_modes, start_n_modes);
+               drmModeFreeConnector(temp);
+
+       }
+
+       igt_fixture {
+               drmModeFreeConnector(vga_connector);
+               close(drm_fd);
+
+               reset_connectors();
+       }
+
+       igt_exit();
+}
--

2.1.0

Quoted 5 lines

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw

Re: [PATCH i-g-t 3/3] tests/kms_force_connector: Include in BAT set

Quoted 15 lines · Thomas Wood
Quoted 7 lines · Daniel Vetter

Forcing connector state is a basic piece of our test infrastructure that we use in all the kms_ tests. It allows us to run tests even if no outputs are connected.

They're also really fast, so perfect candidates for inclusion into the BAT set.

Quoted 6 lines
---
 tests/.gitignore                  |   2 +-
 tests/Makefile.sources            |   2 +-
 tests/kms_force_connector.c       | 189 --------------------------------------
 tests/kms_force_connector_basic.c | 189 ++++++++++++++++++++++++++++++++++++++
Quoted 3 lines

Would it be worth renaming the subtests instead, in case there are future tests that would make sense in kms_force_connector but that shouldn't be included in the BAT list?

If we in the future can inject hdmi screens (or maybe even DP) I think that should still stay a BAT testcase since it's basic test infrastructure. Same reason for why all the pipe CRC and sink CRC tests are in BAT in their entirety - if any of that fails large amounts of testcase results will be highly suspect. That's why I opted to rename the test binary, not the subtests.
-Daniel

Quoted 431 lines
Quoted 431 lines

 4 files changed, 191 insertions(+), 191 deletions(-)
 delete mode 100644 tests/kms_force_connector.c
 create mode 100644 tests/kms_force_connector_basic.c
tests/.gitignore +1 -1
index 43d63d3abac9..900c681caec9 100644
@@ -138,7 +138,7 @@ kms_fence_pin_leak
 kms_flip
 kms_flip_event_leak
 kms_flip_tiling
-kms_force_connector
+kms_force_connector_basic
 kms_frontbuffer_tracking
 kms_legacy_colorkey
 kms_mmio_vs_cs_flip
tests/Makefile.sources +1 -1
index b70bca060253..63de439d8717 100644
@@ -163,7 +163,7 @@ TESTS_progs = \
        gen7_forcewake_mt \
        kms_3d \
        kms_fence_pin_leak \
-       kms_force_connector \
+       kms_force_connector_basic \
        kms_pwrite_crc \
        kms_sink_crc_basic \
        prime_udl \
tests/kms_force_connector.c deleted +0 -189
deleted file mode 100644
index 637f625a852f..000000000000
@@ -1,189 +0,0 @@
-/*
- * Copyright © 2014 Intel Corporation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- * IN THE SOFTWARE.
- *
- */
-
-#include "igt.h"
-
-IGT_TEST_DESCRIPTION("Check the debugfs force connector/edid features work"
-                    " correctly.");
-
-#define CHECK_MODE(m, h, w, r) \
-       igt_assert_eq(m.hdisplay, h); igt_assert_eq(m.vdisplay, w); \
-       igt_assert_eq(m.vrefresh, r);
-
-static void reset_connectors(void)
-{
-       int drm_fd = 0;
-       drmModeRes *res;
-       drmModeConnector *connector = NULL;
-
-       drm_fd = drm_open_driver_master(DRIVER_INTEL);
-       res = drmModeGetResources(drm_fd);
-
-       for (int i = 0; i < res->count_connectors; i++) {
-
-               connector = drmModeGetConnectorCurrent(drm_fd,
-                                                      res->connectors[i]);
-
-               kmstest_force_connector(drm_fd, connector,
-                                       FORCE_CONNECTOR_UNSPECIFIED);
-
-               kmstest_force_edid(drm_fd, connector, NULL, 0);
-
-               drmModeFreeConnector(connector);
-       }
-}
-
-static int opt_handler(int opt, int opt_index, void *data)
-{
-       switch (opt) {
-       case 'r':
-               reset_connectors();
-               exit(0);
-               break;
-       }
-
-       return 0;
-}
-
-int main(int argc, char **argv)
-{
-       /* force the VGA output and test that it worked */
-       int drm_fd = 0;
-       drmModeRes *res;
-       drmModeConnector *vga_connector = NULL, *temp;
-       int start_n_modes, start_connection;
-       struct option long_opts[] = {
-               {"reset", 0, 0, 'r'},
-               {0, 0, 0, 0}
-       };
-       const char *help_str =
-              "  --reset\t\tReset all connector force states and edid.\n";
-
-       igt_subtest_init_parse_opts(&argc, argv, "", long_opts, help_str,
-                                   opt_handler, NULL);
-
-       igt_fixture {
-               drm_fd = drm_open_driver_master(DRIVER_INTEL);
-               res = drmModeGetResources(drm_fd);
-
-               /* find the vga connector */
-               for (int i = 0; i < res->count_connectors; i++) {
-
-                       vga_connector = drmModeGetConnectorCurrent(drm_fd,
-                                                                  res->connectors[i]);
-
-                       if (vga_connector->connector_type == DRM_MODE_CONNECTOR_VGA) {
-                               start_n_modes = vga_connector->count_modes;
-                               start_connection = vga_connector->connection;
-                               break;
-                       }
-
-                       drmModeFreeConnector(vga_connector);
-
-                       vga_connector = NULL;
-               }
-
-               igt_require(vga_connector);
-               igt_skip_on(vga_connector->connection == DRM_MODE_CONNECTED);
-       }
-
-       igt_subtest("force-connector-state") {
-               igt_display_t display;
-
-               /* force the connector on and check the reported values */
-               kmstest_force_connector(drm_fd, vga_connector, FORCE_CONNECTOR_ON);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               igt_assert_eq(temp->connection, DRM_MODE_CONNECTED);
-               igt_assert_lt(0, temp->count_modes);
-               drmModeFreeConnector(temp);
-
-               /* attempt to use the display */
-               kmstest_set_vt_graphics_mode();
-               igt_display_init(&display, drm_fd);
-               igt_display_commit(&display);
-               igt_display_fini(&display);
-
-
-               /* force the connector off */
-               kmstest_force_connector(drm_fd, vga_connector,
-                                       FORCE_CONNECTOR_OFF);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               igt_assert_eq(temp->connection, DRM_MODE_DISCONNECTED);
-               igt_assert_eq(0, temp->count_modes);
-               drmModeFreeConnector(temp);
-
-               /* check that the previous state is restored */
-               kmstest_force_connector(drm_fd, vga_connector,
-                                       FORCE_CONNECTOR_UNSPECIFIED);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               igt_assert_eq(temp->connection, start_connection);
-               drmModeFreeConnector(temp);
-       }
-
-       igt_subtest("force-edid") {
-               kmstest_force_connector(drm_fd, vga_connector,
-                                       FORCE_CONNECTOR_ON);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               drmModeFreeConnector(temp);
-
-               /* test edid forcing */
-               kmstest_force_edid(drm_fd, vga_connector,
-                                  igt_kms_get_base_edid(), EDID_LENGTH);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-
-               igt_debug("num_conn %i\n", temp->count_modes);
-
-               CHECK_MODE(temp->modes[0], 1920, 1080, 60);
-               /* Don't check non-preferred modes to avoid to tight coupling
-                * with the in-kernel EDID parser. */
-
-               drmModeFreeConnector(temp);
-
-               /* remove edid */
-               kmstest_force_edid(drm_fd, vga_connector, NULL, 0);
-               kmstest_force_connector(drm_fd, vga_connector,
-                                       FORCE_CONNECTOR_UNSPECIFIED);
-               temp = drmModeGetConnectorCurrent(drm_fd,
-                                                 vga_connector->connector_id);
-               /* the connector should now have the same number of modes that
-                * it started with */
-               igt_assert_eq(temp->count_modes, start_n_modes);
-               drmModeFreeConnector(temp);
-
-       }
-
-       igt_fixture {
-               drmModeFreeConnector(vga_connector);
-               close(drm_fd);
-
-               reset_connectors();
-       }
-
-       igt_exit();
-}
tests/kms_force_connector_basic.c new file +189 -1
new file mode 100644
index 000000000000..637f625a852f
@@ -0,0 +1,189 @@
+/*
+ * Copyright © 2014 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+#include "igt.h"
+
+IGT_TEST_DESCRIPTION("Check the debugfs force connector/edid features work"
+                    " correctly.");
+
+#define CHECK_MODE(m, h, w, r) \
+       igt_assert_eq(m.hdisplay, h); igt_assert_eq(m.vdisplay, w); \
+       igt_assert_eq(m.vrefresh, r);
+
+static void reset_connectors(void)
+{
+       int drm_fd = 0;
+       drmModeRes *res;
+       drmModeConnector *connector = NULL;
+
+       drm_fd = drm_open_driver_master(DRIVER_INTEL);
+       res = drmModeGetResources(drm_fd);
+
+       for (int i = 0; i < res->count_connectors; i++) {
+
+               connector = drmModeGetConnectorCurrent(drm_fd,
+                                                      res->connectors[i]);
+
+               kmstest_force_connector(drm_fd, connector,
+                                       FORCE_CONNECTOR_UNSPECIFIED);
+
+               kmstest_force_edid(drm_fd, connector, NULL, 0);
+
+               drmModeFreeConnector(connector);
+       }
+}
+
+static int opt_handler(int opt, int opt_index, void *data)
+{
+       switch (opt) {
+       case 'r':
+               reset_connectors();
+               exit(0);
+               break;
+       }
+
+       return 0;
+}
+
+int main(int argc, char **argv)
+{
+       /* force the VGA output and test that it worked */
+       int drm_fd = 0;
+       drmModeRes *res;
+       drmModeConnector *vga_connector = NULL, *temp;
+       int start_n_modes, start_connection;
+       struct option long_opts[] = {
+               {"reset", 0, 0, 'r'},
+               {0, 0, 0, 0}
+       };
+       const char *help_str =
+              "  --reset\t\tReset all connector force states and edid.\n";
+
+       igt_subtest_init_parse_opts(&argc, argv, "", long_opts, help_str,
+                                   opt_handler, NULL);
+
+       igt_fixture {
+               drm_fd = drm_open_driver_master(DRIVER_INTEL);
+               res = drmModeGetResources(drm_fd);
+
+               /* find the vga connector */
+               for (int i = 0; i < res->count_connectors; i++) {
+
+                       vga_connector = drmModeGetConnectorCurrent(drm_fd,
+                                                                  res->connectors[i]);
+
+                       if (vga_connector->connector_type == DRM_MODE_CONNECTOR_VGA) {
+                               start_n_modes = vga_connector->count_modes;
+                               start_connection = vga_connector->connection;
+                               break;
+                       }
+
+                       drmModeFreeConnector(vga_connector);
+
+                       vga_connector = NULL;
+               }
+
+               igt_require(vga_connector);
+               igt_skip_on(vga_connector->connection == DRM_MODE_CONNECTED);
+       }
+
+       igt_subtest("force-connector-state") {
+               igt_display_t display;
+
+               /* force the connector on and check the reported values */
+               kmstest_force_connector(drm_fd, vga_connector, FORCE_CONNECTOR_ON);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               igt_assert_eq(temp->connection, DRM_MODE_CONNECTED);
+               igt_assert_lt(0, temp->count_modes);
+               drmModeFreeConnector(temp);
+
+               /* attempt to use the display */
+               kmstest_set_vt_graphics_mode();
+               igt_display_init(&display, drm_fd);
+               igt_display_commit(&display);
+               igt_display_fini(&display);
+
+
+               /* force the connector off */
+               kmstest_force_connector(drm_fd, vga_connector,
+                                       FORCE_CONNECTOR_OFF);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               igt_assert_eq(temp->connection, DRM_MODE_DISCONNECTED);
+               igt_assert_eq(0, temp->count_modes);
+               drmModeFreeConnector(temp);
+
+               /* check that the previous state is restored */
+               kmstest_force_connector(drm_fd, vga_connector,
+                                       FORCE_CONNECTOR_UNSPECIFIED);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               igt_assert_eq(temp->connection, start_connection);
+               drmModeFreeConnector(temp);
+       }
+
+       igt_subtest("force-edid") {
+               kmstest_force_connector(drm_fd, vga_connector,
+                                       FORCE_CONNECTOR_ON);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               drmModeFreeConnector(temp);
+
+               /* test edid forcing */
+               kmstest_force_edid(drm_fd, vga_connector,
+                                  igt_kms_get_base_edid(), EDID_LENGTH);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+
+               igt_debug("num_conn %i\n", temp->count_modes);
+
+               CHECK_MODE(temp->modes[0], 1920, 1080, 60);
+               /* Don't check non-preferred modes to avoid to tight coupling
+                * with the in-kernel EDID parser. */
+
+               drmModeFreeConnector(temp);
+
+               /* remove edid */
+               kmstest_force_edid(drm_fd, vga_connector, NULL, 0);
+               kmstest_force_connector(drm_fd, vga_connector,
+                                       FORCE_CONNECTOR_UNSPECIFIED);
+               temp = drmModeGetConnectorCurrent(drm_fd,
+                                                 vga_connector->connector_id);
+               /* the connector should now have the same number of modes that
+                * it started with */
+               igt_assert_eq(temp->count_modes, start_n_modes);
+               drmModeFreeConnector(temp);
+
+       }
+
+       igt_fixture {
+               drmModeFreeConnector(vga_connector);
+               close(drm_fd);
+
+               reset_connectors();
+       }
+
+       igt_exit();
+}
--

2.1.0

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw
In reply to Daniel Vetter
Quoted 1 line · Daniel Vetter

Somehow the kernel's mode list changed with our EDID.

I do not undestand what you're trying to say here.

BR,
Jani.

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#6 lore raw
Quoted 4 lines · Jani Nikula
Quoted 1 line · Daniel Vetter

Somehow the kernel's mode list changed with our EDID.

I do not undestand what you're trying to say here.

The EDID we injected stayed the same, but the kernel started listing more modes for it. I didn't do a bisect nor analyse the root-cause since that would mean decoding the edid by hand to double-check what's going on.

Suggestions for better phrasing?
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#7 lore raw
Quoted 11 lines · Daniel Vetter
Quoted 4 lines · Jani Nikula
Quoted 1 line · Daniel Vetter

Somehow the kernel's mode list changed with our EDID.

I do not undestand what you're trying to say here.

The EDID we injected stayed the same, but the kernel started listing more modes for it. I didn't do a bisect nor analyse the root-cause since that would mean decoding the edid by hand to double-check what's going on.

Suggestions for better phrasing?

Your first sentence above.

BR,
Jani.

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#8 lore raw
Quoted 7 lines · Jani Nikula
Quoted 6 lines · Daniel Vetter
Quoted 4 lines · Jani Nikula
Quoted 1 line · Daniel Vetter

Somehow the kernel's mode list changed with our EDID.

I do not undestand what you're trying to say here.

Quoted 7 lines
Quoted 5 lines

The EDID we injected stayed the same, but the kernel started listing more modes for it. I didn't do a bisect nor analyse the root-cause since that would mean decoding the edid by hand to double-check what's going on.

Suggestions for better phrasing?

Your first sentence above.

Done, and pushed all three patches to master.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx