From: Daniel Vetter Subject: [PATCH] tests/debugfs_pipe_crc: set mode before creating CRC helper Date: Thu, 31 Oct 2013 15:50:34 +0100 Message-ID: <1383231034-12943-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by gabe.freedesktop.org (Postfix) with ESMTP id BF34BEFDF7 for ; Thu, 31 Oct 2013 07:50:44 -0700 (PDT) Received: by mail-ee0-f52.google.com with SMTP id e49so1441699eek.11 for ; Thu, 31 Oct 2013 07:50:43 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org Otherwise the automagic skipping for DP ports on gmch platforms won't work. v2: We also need to just skip that connector, not the entire subtest. Signed-off-by: Daniel Vetter --- tests/debugfs_pipe_crc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/debugfs_pipe_crc.c b/tests/debugfs_pipe_crc.c index 5ffa3c9..7f51724 100644 --- a/tests/debugfs_pipe_crc.c +++ b/tests/debugfs_pipe_crc.c @@ -162,18 +162,20 @@ static void test_read_crc(data_t *data, int pipe, unsigned flags) if (!connector->valid) continue; - valid_connectors++; fprintf(stdout, "%s: Testing connector %u\n", igt_subtest_name(), connector->config.connector->connector_id); + connector_set_mode(data, connector, &connector->config.default_mode); + pipe_crc = igt_pipe_crc_new(&data->debugfs, data->drm_fd, connector->config.pipe, INTEL_PIPE_CRC_SOURCE_AUTO); - connector_set_mode(data, connector, &connector->config.default_mode); + if (!pipe_crc) + continue; + valid_connectors++; - igt_require(pipe_crc); igt_assert(igt_pipe_crc_start(pipe_crc)); /* wait for 3 vblanks and the corresponding 3 CRCs */ -- 1.8.4.rc3