Skip to contentSkip to conversation

kms_force_connector_basic: add a test to test the i915 load detection path.

PATCH New Maarten Lankhorst 1 participant 1 message Jan 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kms_force_connector_basic: add a test to test the i915 load detection path.

This will force test the load_detect_test parameter in i915, to make sure load detection works as intended.

---

tests/kms_force_connector_basic.c +13 -0
index bd80caeffd82..f827d0008f7b 100644
@@ -52,6 +52,8 @@ static void reset_connectors(void)
 
 		drmModeFreeConnector(connector);
 	}
+
+	igt_set_module_param_int("load_detect_test", 0);
 }
 
 static int opt_handler(int opt, int opt_index, void *data)
@@ -108,6 +110,17 @@ int main(int argc, char **argv)
 		igt_skip_on(vga_connector->connection == DRM_MODE_CONNECTED);
 	}
 
+	igt_subtest("force-load-detect") {
+		igt_set_module_param_int("load_detect_test", 1);
+
+		temp = drmModeGetConnectorCurrent(drm_fd,
+						  vga_connector->connector_id);
+
+		igt_assert(temp->connection != DRM_MODE_UNKNOWNCONNECTION);
+
+		drmModeFreeConnector(temp);
+	}
+
 	igt_subtest("force-connector-state") {
 		igt_display_t display;
 

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