From patchwork Thu Aug 3 11:43:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9878791 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 4510860360 for ; Thu, 3 Aug 2017 11:43:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3577920090 for ; Thu, 3 Aug 2017 11:43:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2747B288A3; Thu, 3 Aug 2017 11:43:49 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 DB9422889F for ; Thu, 3 Aug 2017 11:43:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D10F36E10B; Thu, 3 Aug 2017 11:43:47 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 433DE6E10B for ; Thu, 3 Aug 2017 11:43:46 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id r77so1876461wmd.2 for ; Thu, 03 Aug 2017 04:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id; bh=fyV7/AGExX5qWC2SXBsKtP9kPtFVYCvdbmtcw+OYvMQ=; b=OtQwaZ2mKzRHYFP2oQ/eABfCCjCHXBx4y9qOUmFhRPbRawFqwuIavzBtsy4oKHkUuY b0PmUxhXL3Mmd2Azzh/0zHRXynbdLCNXQFGvnQrKa2i/j6nSY0vr1/dDn5seCwomsOnG nMUMl19Q37xQX9duXJvfkuXp6kSCLqE4ivhMY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fyV7/AGExX5qWC2SXBsKtP9kPtFVYCvdbmtcw+OYvMQ=; b=aBY198bDWidYCsa7/8bH3BB0Lhnmoa02HFLFWqb+Ce8OP6peEXLSeN6dI74vvVDa5K 1TSFelKzKJ0pZJC8YMrjKNE6ULqKj9zCCi9PPwEhks6ajQjp7QewUvuBtDlzuaPPWPkG q+JgAh1Gi03qTl8hoswoSfhyfDW/Q/0An99RcUzG1TnMEnm7xmGPDq7dTtt1wbHXJHKw 45BjHzOW6S9j7hZzCxmGWgX3U/qAOSUFUy3DmrgKzndfPnPRCBLsLMqePKyADhriMCc6 LaKVTOGzFdLnIYY98Q8bsUmCuCMdbh6DYIdxsWT46jxzuT5j8fYJjIVUF1u5Or1W1iIa tcaw== X-Gm-Message-State: AIVw112m1yG9VpNcSs/9vbY+U6f+01LdZ+ocF0CaO28ytW+WLyefUAa9 fGYiF3yOWog7Sy3f//s= X-Received: by 10.80.140.36 with SMTP id p33mr1584598edp.176.1501760624488; Thu, 03 Aug 2017 04:43:44 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5640:0:960b:2678:e223:c1c6]) by smtp.gmail.com with ESMTPSA id a68sm1230670edf.92.2017.08.03.04.43.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Aug 2017 04:43:43 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Thu, 3 Aug 2017 13:43:39 +0200 Message-Id: <20170803114339.26445-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.13.3 Cc: Daniel Vetter , Paulo Zanoni , Daniel Vetter Subject: [Intel-gfx] [PATCH i-g-t] tests/pm_rpm: Use the quick mode by default 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 pm_rpm is one of the main offenders for long runtime in our full igt run. And hey, there's a quick option already, so make it the default. This means there's yet another way to enable stress tests, we really need to standardize this somehow. Or shred the stress-tests we really don't want/need anymore. Cc: Paulo Zanoni Cc: Arkadiusz Hiler Signed-off-by: Daniel Vetter --- tests/pm_rpm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index 1873c9017b6e..8962bc3e56d8 100644 --- a/tests/pm_rpm.c +++ b/tests/pm_rpm.c @@ -1852,14 +1852,14 @@ static void fences_subtest(bool dpms) igt_assert(munmap(buf_ptr, params.fb.size) == 0); } -int rounds = 40; +int rounds = 10; bool stay = false; static int opt_handler(int opt, int opt_index, void *data) { switch (opt) { case 'q': - rounds = 10; + rounds = 50; break; case 's': stay = true; @@ -1874,10 +1874,10 @@ static int opt_handler(int opt, int opt_index, void *data) int main(int argc, char *argv[]) { const char *help_str = - " --quick\t\tMake the stress-tests not stressful, for quick regression testing.\n" + " --stress\t\tMake the stress-tests more stressful, for quick regression testing.\n" " --stay\t\tDisable all screen and try to go into runtime pm. Useful for debugging."; static struct option long_options[] = { - {"quick", 0, 0, 'q'}, + {"stress", 0, 0, 'q'}, {"stay", 0, 0, 's'}, { 0, 0, 0, 0 } };