From patchwork Mon Jul 23 11:46:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10540033 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 D1FE313BB for ; Mon, 23 Jul 2018 11:47:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C25D12863B for ; Mon, 23 Jul 2018 11:47:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6AB428669; Mon, 23 Jul 2018 11:47:13 +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,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 825EE2863B for ; Mon, 23 Jul 2018 11:47:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 671D66E30F; Mon, 23 Jul 2018 11:47:11 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id BED5B6E21C for ; Mon, 23 Jul 2018 11:47:06 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id b15-v6so376638wrv.10 for ; Mon, 23 Jul 2018 04:47:06 -0700 (PDT) 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:in-reply-to :references; bh=G9202F9jb+tGm2buj5MUcBvA/z3lf/jhpS0kAEHhY9M=; b=Mvu5cPtq5vDpI6K2i68HVSYPYFvz+VHPqpByeGudxNuh3nnloBgS320Daeo2TfTcNT SbkYdUwhJ4JaKz/RHItbnjHuUM0uY8dujvd9IZI3wIGlE/JKjEziD+fL4yUxc8sk3mmD 3C6Q32HmNrQX4ebtYAR3x9Icab83AlSCRXY5QKaH3mCON60UpG0j0C4e8u5HaliU2plj sZXlTKLgIMb+PSMZ3A6f5l+vAyFIfz+jZrlixHsNETxnwXa1/2Ie42QAXfOihx/GJ4/z IusQnXMxRD/KYxWGCZEC76zt2lgvOnogUJ3xSA910kaqRklyxcgHTs340zsHhF2XtS9Y RfOg== X-Gm-Message-State: AOUpUlERawfrDC9YP2CG+Jgmuu5Oa7HloeIJXTEjeDc1+AXe5ZsSZTvO znJxDvGDjby96APJdXetqK2R1w== X-Google-Smtp-Source: AAOMgpdUhhSaViQkz1sAdua/v6qOV91f7tZT0Q2sGskyKYbQ2G8fmf80e6LB0B0qsQoGsQ3c+/yI4w== X-Received: by 2002:adf:f9c9:: with SMTP id w9-v6mr8269736wrr.105.1532346425445; Mon, 23 Jul 2018 04:47:05 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id l14-v6sm23658407wrw.65.2018.07.23.04.47.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jul 2018 04:47:04 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Mon, 23 Jul 2018 12:46:58 +0100 Message-Id: <20180723114658.13025-4-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723114658.13025-1-tvrtko.ursulin@linux.intel.com> References: <20180723114658.13025-1-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH i-g-t 4/4] tests/perf_pmu: Restore runtime PM status at rc6 test exit 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: intel-gfx@lists.freedesktop.org MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Avoid running subsequent subtests in non-default setup by restoring the runtime PM config in one particular subtest. Signed-off-by: Tvrtko Ursulin --- tests/perf_pmu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c index a1d36ac4fa9d..9a20abb6b95c 100644 --- a/tests/perf_pmu.c +++ b/tests/perf_pmu.c @@ -1441,6 +1441,9 @@ test_rc6(int gem_fd, unsigned int flags) close(fw); close(fd); + if (flags & TEST_RUNTIME_PM) + igt_restore_runtime_pm(); + assert_within_epsilon(busy - prev, 0.0, tolerance); }