From patchwork Wed Mar 23 17:09:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 8652401 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 76DC89F38C for ; Wed, 23 Mar 2016 17:08:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8CFC3201FA for ; Wed, 23 Mar 2016 17:08:41 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B2CEF203B1 for ; Wed, 23 Mar 2016 17:08:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 144536E8D0; Wed, 23 Mar 2016 17:08:36 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTP id 98BC56E8CD for ; Wed, 23 Mar 2016 17:08:33 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP; 23 Mar 2016 10:08:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,383,1455004800"; d="scan'208";a="940089833" Received: from mcvlad-wk.rb.intel.com ([10.237.105.57]) by orsmga002.jf.intel.com with ESMTP; 23 Mar 2016 10:08:32 -0700 From: Marius Vlad To: intel-gfx@lists.freedesktop.org Date: Wed, 23 Mar 2016 19:09:37 +0200 Message-Id: <1458752978-18866-3-git-send-email-marius.c.vlad@intel.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1458752978-18866-1-git-send-email-marius.c.vlad@intel.com> References: <1458752978-18866-1-git-send-email-marius.c.vlad@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 2/3] lib/igt_kms: Allow forcing HDMI connectors and remove checks against BDW and HSW. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Marius Vlad --- lib/igt_kms.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 12d52f5..b90ab3e 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -531,16 +531,9 @@ bool kmstest_force_connector(int drm_fd, drmModeConnector *connector, const char *value; int debugfs_fd, ret, len; drmModeConnector *temp; - 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))) + /* forcing dp connectors doesn't currently work */ + if (connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort) return false; switch (state) {