summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_kms.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 1f519ae0..c9d3a200 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -41,6 +41,7 @@
#include "drmtest.h"
#include "igt_kms.h"
#include "igt_aux.h"
+#include "intel_chipset.h"
/*
* There hasn't been a release of libdrm containing these #define's yet, so
@@ -344,6 +345,17 @@ bool kmstest_force_connector(int drm_fd, drmModeConnector *connector,
char *path;
const char *value;
int debugfs_fd, ret;
+ uint32_t devid;
+
+ devid = intel_get_drm_devid(drm_fd);
+
+ /* forcing hdmi or dp connectors on HSW and BDW doesn't currently work,
+ * so fail early to allow the test to skip if required */
+ if ((connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
+ connector->connector_type == DRM_MODE_CONNECTOR_HDMIB ||
+ connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort)
+ && (IS_HASWELL(devid) || IS_BROADWELL(devid)))
+ return false;
switch (state) {
case FORCE_CONNECTOR_ON: