From patchwork Wed Apr 20 17:49:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 8893801 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2F1A8BF29F for ; Wed, 20 Apr 2016 17:47:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 594B920115 for ; Wed, 20 Apr 2016 17:47:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id AB01C2025A for ; Wed, 20 Apr 2016 17:47:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C0B616EABF; Wed, 20 Apr 2016 17:47:19 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B06A6EABF for ; Wed, 20 Apr 2016 17:47:18 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 20 Apr 2016 10:46:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,510,1455004800"; d="scan'208";a="788783899" Received: from mcvlad-wk.rb.intel.com ([10.237.105.57]) by orsmga003.jf.intel.com with ESMTP; 20 Apr 2016 10:46:54 -0700 From: Marius Vlad To: intel-gfx@lists.freedesktop.org Date: Wed, 20 Apr 2016 20:49:56 +0300 Message-Id: <1461174597-7722-1-git-send-email-marius.c.vlad@intel.com> X-Mailer: git-send-email 2.8.0.rc3 Cc: tomi.p.sarvela@intel.com Subject: [Intel-gfx] [PATCH i-g-t 1/2] lib/igt_aux: Half the timeout for suspend to RAM and a third for suspend to disk. 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-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, 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 Signed-off-by: Marius Vlad --- lib/igt_aux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/igt_aux.c b/lib/igt_aux.c index c32569f..fe18365 100644 --- a/lib/igt_aux.c +++ b/lib/igt_aux.c @@ -671,9 +671,9 @@ void igt_system_suspend_autoresume(void) igt_skip_on_simulation(); /* skip if system doesn't support suspend-to-mem */ - igt_require(system("rtcwake -n -s 30 -m mem" SQUELCH) == 0); + igt_require(system("rtcwake -n -s 15 -m mem" SQUELCH) == 0); - igt_assert_f(system("rtcwake -s 30 -m mem") == 0, + igt_assert_f(system("rtcwake -s 15 -m mem") == 0, "This failure means that something is wrong with the " "rtcwake tool or how your distro is set up. This is not " "a i915.ko or i-g-t bug.\n"); @@ -698,12 +698,12 @@ void igt_system_hibernate_autoresume(void) igt_skip_on_simulation(); /* skip if system doesn't support suspend-to-disk */ - igt_require(system("rtcwake -n -s 90 -m disk" SQUELCH) == 0); + igt_require(system("rtcwake -n -s 30 -m disk" SQUELCH) == 0); /* The timeout might need to be adjusted if hibernation takes too long * or if we have to wait excessively long before resume */ - igt_assert_f(system("rtcwake -s 90 -m disk") == 0, + igt_assert_f(system("rtcwake -s 30 -m disk") == 0, "This failure means that something is wrong with the " "rtcwake tool or how your distro is set up. This is not " "a i915.ko or i-g-t bug.\n");