From patchwork Wed Jul 16 20:06:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 4570281 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B78BCC0514 for ; Wed, 16 Jul 2014 20:07:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 71F54201C7 for ; Wed, 16 Jul 2014 20:07:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9240C201B9 for ; Wed, 16 Jul 2014 20:07:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F07D6E633; Wed, 16 Jul 2014 13:07:02 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by gabe.freedesktop.org (Postfix) with ESMTP id A07946E633 for ; Wed, 16 Jul 2014 13:07:00 -0700 (PDT) Received: by mail-vc0-f171.google.com with SMTP id hq11so1202546vcb.2 for ; Wed, 16 Jul 2014 13:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MaFyZ0i66mZ8L+UlAfwOtZsmQoUhDXeiDoR9qv53Qt8=; b=OZHDsmpfwufbrcVThL+xLJJgLFMH62nvyymlqxXfcVT9sm+xBXx7sP/CBasPWpOVAH Q7mNbnc/DUo8UbecPpgzMdcrtfZz5StQTpuuDtPnNKw0i2utYOG/kqdYF+xUQrKT69tt 3llNn4ZBtNdBdaQVUjFAMlLWaY6+Y7H4xiKR4Su9YxuIzpSN2ebpJRSwjQVpf5gX0ScN MiQ94PuFy7tcPBpWXjQB3nNWT8d3I73+BevWIL+hzBPIp/sFQUDgcfQMHtv8jntDx+3O OvVw8xxIcjT1THx827Z4o2rKXm+i1bHJAr3xtvQ3EInjAE3udDLgWK9xAs29VlvgHf6O jOUQ== X-Received: by 10.52.245.99 with SMTP id xn3mr4667288vdc.85.1405541220131; Wed, 16 Jul 2014 13:07:00 -0700 (PDT) Received: from localhost.localdomain ([177.132.8.34]) by mx.google.com with ESMTPSA id m10sm567834vdj.28.2014.07.16.13.06.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Jul 2014 13:06:59 -0700 (PDT) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Wed, 16 Jul 2014 17:06:35 -0300 Message-Id: <1405541195-3642-2-git-send-email-przanoni@gmail.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1405541195-3642-1-git-send-email-przanoni@gmail.com> References: <1405541195-3642-1-git-send-email-przanoni@gmail.com> Cc: Paulo Zanoni Subject: [Intel-gfx] [PATCH] tests/pm_rpm: add dpms-mode-unset{, -non}-lpsp subtests X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Paulo Zanoni These tests currently trigger WARNs on our Kernel. Let's make sure we fix the bug and it never comes back. Signed-off-by: Paulo Zanoni --- tests/pm_rpm.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index 323e072..1e63bc8 100644 --- a/tests/pm_rpm.c +++ b/tests/pm_rpm.c @@ -1390,6 +1390,23 @@ static void system_suspend_subtest(void) igt_assert(wait_for_suspended()); } +/* Enable a screen, activate DPMS, then do a modeset. At some point our driver + * produced WARNs on this case. */ +static void dpms_mode_unset_subtest(enum screen_type type) +{ + disable_all_screens(&ms_data); + igt_assert(wait_for_suspended()); + + igt_require(enable_one_screen_with_type(&ms_data, type)); + igt_assert(wait_for_active()); + + disable_all_screens_dpms(&ms_data); + igt_assert(wait_for_suspended()); + + disable_all_screens(&ms_data); + igt_assert(wait_for_suspended()); +} + int main(int argc, char *argv[]) { int rounds = 50; @@ -1462,6 +1479,10 @@ int main(int argc, char *argv[]) debugfs_forcewake_user_subtest(); igt_subtest("sysfs-read") sysfs_read_subtest(); + igt_subtest("dpms-mode-unset-lpsp") + dpms_mode_unset_subtest(SCREEN_TYPE_LPSP); + igt_subtest("dpms-mode-unset-non-lpsp") + dpms_mode_unset_subtest(SCREEN_TYPE_NON_LPSP); /* Modeset stress */ igt_subtest("modeset-lpsp-stress")