summaryrefslogtreecommitdiff
path: root/lib/igt_kms.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-08-23 21:21:14 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-08-30 16:29:47 +0300
commit1d20adab2deebc6c8a97368f6911e20479b21160 (patch)
treec216b283dae12b34e5c9ec2ea095663c00621b39 /lib/igt_kms.c
parent522bab4503db480dddd1985c9976bc0a6e6da986 (diff)
lib/igt_kms: Remove stale restrictions for HSW/BDW HDMI connector forcing
We have no problems forcing HDMI connector status on HSW/BDW these days. Remove the bogus restriction. Also DP forcing doesn't really work on any platform because the kernel can't get the DPCD if there's nothing actually connected. So keep refusing DP forcing, and in fact extend it to all platforms. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Simon Ser <simon.ser@intel.com>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r--lib/igt_kms.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 17a7d2b6..d8cdae76 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -980,23 +980,15 @@ bool kmstest_force_connector(int drm_fd, drmModeConnector *connector,
char *path, **tmp;
const char *value;
drmModeConnector *temp;
- uint32_t devid;
int len, dir, idx;
- if (is_i915_device(drm_fd)) {
- 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;
- }
+ /*
+ * Forcing DP connectors doesn't currently work, so
+ * fail early to allow the test to skip if required.
+ */
+ if (is_i915_device(drm_fd) &&
+ connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort)
+ return false;
switch (state) {
case FORCE_CONNECTOR_ON: