From patchwork Mon Mar 4 15:29:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10837955 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 B596E13B5 for ; Mon, 4 Mar 2019 15:29:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A02672A563 for ; Mon, 4 Mar 2019 15:29:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 918E02A569; Mon, 4 Mar 2019 15:29:32 +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 15B122A563 for ; Mon, 4 Mar 2019 15:29:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C07789D39; Mon, 4 Mar 2019 15:29:31 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by gabe.freedesktop.org (Postfix) with ESMTPS id BFC9A89D30; Mon, 4 Mar 2019 15:29:30 +0000 (UTC) Received: by mail-qk1-x742.google.com with SMTP id x9so2997195qkf.0; Mon, 04 Mar 2019 07:29:30 -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=er7v9h0f88sjdEl8aBU/QQvAFBwpbZhoaNHNPlBMCMc=; b=E3t3dPHHeZwvIax3rvXyjww9V30V2ii0xwBy7SLgvU4yM6sP4fMZgrooDKfwWtw9Nk 1ocDeORKFVUN2ASVh0SwIP4sudee6vUiF5AC1FU7X+VHFGIW/DTfRICx2MgGuH+CFDVk VWehlWe8MoKpg2cZYhejchuu6SM5OI/VmN14nYPUpnnYXoqLF9ct/V53iaJSBdP7x417 mai9LhO7V3mHK47h3eMvn3TWr+fWehuVJFTnj3XApPcc+7nRKdowIi8jRsmtkk5cUphr 5cFyVC3FUFE7xwnobs2vBdf2dJNDhx/GUAjb1U0pU2ncIcexlHKKHBs1ImVZpLQNTm1Q lDQg== X-Gm-Message-State: APjAAAUKgSaFMKRN2h/BAxR4GQYNrhlDhX9oMtcAf0vsQa5+o/sRiQ3V GvWguL4v3h9phr1O5Nu37v0= X-Google-Smtp-Source: APXvYqxZ/cd+Yy7RdRT+x9ivDDpB1lFW9WlSWY6i/+EUaP1ZYe1IO38NwST8sbEJB8ivS6gTn7VqFA== X-Received: by 2002:a37:83c6:: with SMTP id f189mr13753883qkd.196.1551713369888; Mon, 04 Mar 2019 07:29:29 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id k37sm4151735qtc.91.2019.03.04.07.29.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 04 Mar 2019 07:29:29 -0800 (PST) Date: Mon, 4 Mar 2019 12:29:27 -0300 From: Rodrigo Siqueira To: Petri Latvala , Arkadiusz Hiler Message-ID: <69730596ecfc3dc7e7ad1e2b8f28e59ca8c72e8e.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=er7v9h0f88sjdEl8aBU/QQvAFBwpbZhoaNHNPlBMCMc=; b=MiOvZh0MIKLn2pFRBuznM9M7q6lXgeAGYKidnyJhEGgyjvnG5BST9ep8+8fSm0qtRz 2aLYvsvIEmBYkkBXlCS42obOseLUYyMZaA4bpIc6ffQmUcxGtQsRCzEuN2rFnqAfdwqd +kVOrIFA2K5GCiZHzN5MpAEIHmzUQzSdvbDdy+xTL5WETUkLW/Di8bJ0+gw/U4rRpUTg 8w2hmka5SL+7qht5qD8V7dMm6Z9PobF0GCNhREx0l2xQTh7Fs1IqD3M/E+ezKo+sLBTS rsDWY/QGcRFeYmxWMnHbVLLT6oZIXrUqMIuDITPJ7f7WUEbhDazbUGU/SEXp93WD48CV Vjwg== Subject: [Intel-gfx] [PATCH i-g-t 1/7] kms_flip: Removes unreachable code related to TEST_RPM 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_RPM test because the kms_flip never sets this flags, i.e., TEST_RPM 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 | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 798fc4e8..f769d30e 100755 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -68,7 +68,6 @@ #define TEST_ENOENT (1 << 22) #define TEST_FENCE_STRESS (1 << 23) #define TEST_VBLANK_RACE (1 << 24) -#define TEST_RPM (1 << 25) #define TEST_SUSPEND (1 << 26) #define TEST_TS_CONT (1 << 27) #define TEST_BO_TOOBIG (1 << 28) @@ -809,9 +808,6 @@ static unsigned int run_test_step(struct test_output *o) "failed to disable output: %s\n", strerror(errno)); - if (o->flags & TEST_RPM) - igt_assert(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED)); - if (o->flags & TEST_SUSPEND) igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE); @@ -1321,9 +1317,6 @@ static int run_test(int duration, int flags) igt_require((flags & TEST_HANG) == 0 || !is_wedged(drm_fd)); - if (flags & TEST_RPM) - igt_require(igt_setup_runtime_pm()); - resources = drmModeGetResources(drm_fd); igt_require(resources); @@ -1570,10 +1563,6 @@ int main(int argc, char **argv) if (tests[i].flags & TEST_NO_2X_OUTPUT) continue; - /* code doesn't disable all crtcs, so skip rpm tests */ - if (tests[i].flags & TEST_RPM) - continue; - igt_subtest_f( "2x-%s", tests[i].name) run_pair(tests[i].duration, tests[i].flags); } @@ -1592,10 +1581,6 @@ int main(int argc, char **argv) if (tests[i].flags & TEST_NO_2X_OUTPUT) continue; - /* code doesn't disable all crtcs, so skip rpm tests */ - if (tests[i].flags & TEST_RPM) - continue; - igt_subtest_f( "2x-%s-interruptible", tests[i].name) run_pair(tests[i].duration, tests[i].flags); }