From patchwork Fri Aug 25 12:03:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowki X-Patchwork-Id: 9921909 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8A10C60349 for ; Fri, 25 Aug 2017 12:03:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64F2F28047 for ; Fri, 25 Aug 2017 12:03:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59E6828068; Fri, 25 Aug 2017 12:03:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EC0E828047 for ; Fri, 25 Aug 2017 12:03:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A44D46E17A; Fri, 25 Aug 2017 12:03:46 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id CDC026E17A for ; Fri, 25 Aug 2017 12:03:44 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP; 25 Aug 2017 05:03:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.41,425,1498546800"; d="scan'208"; a="1166072035" Received: from linux.intel.com ([10.54.29.200]) by orsmga001.jf.intel.com with ESMTP; 25 Aug 2017 05:03:41 -0700 Received: from workstation.fi.intel.com (workstation.fi.intel.com [10.237.68.142]) by linux.intel.com (Postfix) with ESMTP id A09DF58048D; Fri, 25 Aug 2017 05:03:39 -0700 (PDT) From: Paul Kocialkowski To: intel-gfx@lists.freedesktop.org Date: Fri, 25 Aug 2017 15:03:37 +0300 Message-Id: <20170825120337.8172-1-paul.kocialkowski@linux.intel.com> X-Mailer: git-send-email 2.14.0 Subject: [Intel-gfx] [PATCH i-g-t] tests: chamelium: Eliminate reset when preparing output 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-Virus-Scanned: ClamAV using ClamSMTP Resetting the Chamelium when preparing the video output is unnecessary and significant increases the tests run-time. Since all video-related tests work just as well without it, eliminate it. This also adds a call to reset_test in the analog frame dump test, that was missing before, although the chamelium was still reset by the call to prepare_output. Signed-off-by: Paul Kocialkowski --- tests/chamelium.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/chamelium.c b/tests/chamelium.c index 00ae484b..484bb537 100644 --- a/tests/chamelium.c +++ b/tests/chamelium.c @@ -417,8 +417,6 @@ prepare_output(data_t *data, drmModeConnector *connector = chamelium_port_get_connector(data->chamelium, port, false); - chamelium_reset(data->chamelium); - igt_assert(res = drmModeGetResources(data->drm_fd)); kmstest_unset_all_crtcs(data->drm_fd, res); @@ -626,6 +624,8 @@ test_analog_frame_dump(data_t *data, struct chamelium_port *port) int fb_id, i; bool bridge; + reset_state(data, port); + output = prepare_output(data, &display, port); connector = chamelium_port_get_connector(data->chamelium, port, false); primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);