From patchwork Mon Mar 4 15:30:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10837957 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7C7B114DE for ; Mon, 4 Mar 2019 15:30:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 680A12A665 for ; Mon, 4 Mar 2019 15:30:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 665EB2A5EE; Mon, 4 Mar 2019 15:30:07 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,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 1FA0A2A66D for ; Mon, 4 Mar 2019 15:30:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8349E89CF2; Mon, 4 Mar 2019 15:30:06 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by gabe.freedesktop.org (Postfix) with ESMTPS id D7BC489CF2; Mon, 4 Mar 2019 15:30:04 +0000 (UTC) Received: by mail-qt1-x844.google.com with SMTP id p48so5542741qtk.2; Mon, 04 Mar 2019 07:30:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HQaC9i3D7rFNagcLTlxsUi8OWHbVxHPTWi0pt5IjTeU=; b=pcEIWZLSmKsvLxuPR6UnJQ0NR8fEELp/Q+kx0Zy2aI+GUrlb7dOguRQchcpQ1QFJgc Vpk26DboREJKZe+eF0CVBdJjtLwIvyMEI/NcuOfl3Pbtvb6O+Ye591CgXAgLGKLp9p/9 8Ncfv8qhk4mHmi5ZH2q2st2O4vQCMU52rg/5D//yZpw0mXx0/ScR+xa0I1VQXc+XNK79 IhizpOgOSSm23IAJ2CzYlz9ZXq4ECqy9i+MZxKitJe4cx5iIAxpEdqUhfYwtpp3NxGmv sv7rN1BC3sGTFfzuYVsjWApSljhyyizShyrYlJ+G8lGVg2JEtyIDRviqyZyvbB0oPLNI IimA== X-Gm-Message-State: APjAAAWa+psxFcCL7FMPshYIQshEOdvu5vukB/yk7wJt/b97HCsYymcs BdySJ1Cqcy/A7ea/DRboVlM= X-Google-Smtp-Source: APXvYqwxCXtw9cEG2DP0RqGeq5/O8YqCPVmWdyl4BW3x6vz3XpRYwQXQemhccZI+xqpkQPrN1lDtqA== X-Received: by 2002:ac8:1c0e:: with SMTP id a14mr14685780qtk.259.1551713403949; Mon, 04 Mar 2019 07:30:03 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id u18sm3635128qka.25.2019.03.04.07.30.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 04 Mar 2019 07:30:03 -0800 (PST) Date: Mon, 4 Mar 2019 12:30:01 -0300 From: Rodrigo Siqueira To: Petri Latvala , Arkadiusz Hiler Message-ID: <3656fa026ef33f6ce2ddffe9de64b88372df0642.1551712108.git.rodrigosiqueiramelo@gmail.com> References: MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20180716 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HQaC9i3D7rFNagcLTlxsUi8OWHbVxHPTWi0pt5IjTeU=; b=K5tGetj3QIRo4cGSM+EN5SudzroDLezomTfFNWG1HhMIXSJV/OnhPtA4DuABITJ6Jb SbuzbIZlWBmidgRK291zxPaaSJQKeZCe7gHTO6FJy7Zb29h4cYBFdftH4ckxofCvsQcF buFDxHHS6dJMxvQ0iudPkUZyym+h8sNVzbv7qrM2adbOpSx6RhZEAroSfi/FUsI/GJNS Ua9QP+qEw3EFCTHFgpwLrsxC+QskDxNPqrAKvFzTwYa5ZxjiVXzG8gkLWsJxT7bfnBDF b62pcbEx4SyrbPikbmnliFJJKRa/Ym80tpZvuD1dLRBG2uR2QXTatEeOQyxzxIUoOB7H j+gA== Subject: [Intel-gfx] [PATCH i-g-t 2/7] kms_flip: Removes unreachable code related to TEST_TS_CONT X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP This commit removes the code related to TEST_TS_CONT test because the kms_flip never sets this flags, i.e., TEST_TS_CONT is not used. Take a look at commit 07a3fccf to see why this flag is never set. Signed-off-by: Rodrigo Siqueira --- tests/kms_flip.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index f769d30e..0d261b77 100755 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -69,7 +69,6 @@ #define TEST_FENCE_STRESS (1 << 23) #define TEST_VBLANK_RACE (1 << 24) #define TEST_SUSPEND (1 << 26) -#define TEST_TS_CONT (1 << 27) #define TEST_BO_TOOBIG (1 << 28) #define TEST_BASIC (1 << 30) @@ -497,21 +496,6 @@ static void check_state(const struct test_output *o, const struct event_state *e "unexpected %s seq %u, should be >= %u\n", es->name, es->current_seq, es->last_seq + o->seq_step); - /* Check that the vblank frame didn't wrap unexpectedly. */ - if (o->flags & TEST_TS_CONT) { - /* Ignore seq_step here since vblank waits time out immediately - * when we kill the crtc. */ - igt_assert_f(es->current_seq - es->last_seq >= 0, - "unexpected %s seq %u, should be >= %u\n", - es->name, es->current_seq, es->last_seq); - igt_assert_f(es->current_seq - es->last_seq <= 150, - "unexpected %s seq %u, should be < %u\n", - es->name, es->current_seq, es->last_seq + 150); - - igt_debug("testing ts continuity: Current frame %u, old frame %u\n", - es->current_seq, es->last_seq); - } - if (o->flags & TEST_CHECK_TS) { double elapsed, expected;