From patchwork Tue Feb 2 13:03:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 8190161 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 24A259FCD9 for ; Tue, 2 Feb 2016 13:02:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 609B820320 for ; Tue, 2 Feb 2016 13:02:37 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 74C6420306 for ; Tue, 2 Feb 2016 13:02:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C69816E2BD; Tue, 2 Feb 2016 05:02:33 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id E25876E5B5 for ; Tue, 2 Feb 2016 05:02:31 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 02 Feb 2016 05:02:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,384,1449561600"; d="scan'208";a="903829779" Received: from mcvlad-wk.rb.intel.com ([10.237.105.57]) by orsmga002.jf.intel.com with ESMTP; 02 Feb 2016 05:02:11 -0800 From: Marius Vlad To: intel-gfx@lists.freedesktop.org Date: Tue, 2 Feb 2016 15:03:38 +0200 Message-Id: <1454418218-10346-3-git-send-email-marius.c.vlad@intel.com> X-Mailer: git-send-email 2.7.0.rc3 In-Reply-To: <1454418218-10346-1-git-send-email-marius.c.vlad@intel.com> References: <1454418218-10346-1-git-send-email-marius.c.vlad@intel.com> Subject: [Intel-gfx] [PATCH 3/3] lib/igt_kms: Remove check against HDMI on HSW and BDW when forcing a connector. This should allow running tests/kms_hdmi_inject. 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 64aa5d1..9b294dd 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -384,16 +384,8 @@ 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))) + if (connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort) return false; switch (state) {