From patchwork Tue Aug 29 15:35:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowki X-Patchwork-Id: 9927653 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 9F5386022E for ; Tue, 29 Aug 2017 15:35:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90E5C2899F for ; Tue, 29 Aug 2017 15:35:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8559C289A6; Tue, 29 Aug 2017 15:35:47 +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.2 required=2.0 tests=BAYES_00, 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 28FB32899F for ; Tue, 29 Aug 2017 15:35:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6DE6589A77; Tue, 29 Aug 2017 15:35:46 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7A9CA89A77 for ; Tue, 29 Aug 2017 15:35:45 +0000 (UTC) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2017 08:35:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,445,1498546800"; d="scan'208";a="143278277" Received: from linux.intel.com ([10.54.29.200]) by orsmga005.jf.intel.com with ESMTP; 29 Aug 2017 08:35:44 -0700 Received: from workstation.fi.intel.com (workstation.fi.intel.com [10.237.68.32]) by linux.intel.com (Postfix) with ESMTP id 3B030580362; Tue, 29 Aug 2017 08:35:43 -0700 (PDT) From: Paul Kocialkowski To: intel-gfx@lists.freedesktop.org Date: Tue, 29 Aug 2017 18:35:38 +0300 Message-Id: <20170829153538.28317-1-paul.kocialkowski@linux.intel.com> X-Mailer: git-send-email 2.14.0 Subject: [Intel-gfx] [PATCH i-g-t] tests/audio: Add suspend and hibernate tests for HDMI signal integrity 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 This introduces tests for HDMI signal integrity after suspend and hibernate. They simply test that signal integrity is ensured before and after suspend or hibernate. Signed-off-by: Paul Kocialkowski --- tests/audio.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/audio.c b/tests/audio.c index 7fb91c97..560876a3 100644 --- a/tests/audio.c +++ b/tests/audio.c @@ -167,8 +167,27 @@ static void test_integrity(const char *device_name) free(data.alsa); } +static void test_suspend_resume_integrity(const char *device_name, + enum igt_suspend_state state, + enum igt_suspend_test test) +{ + test_integrity(device_name); + + igt_system_suspend_autoresume(state, test); + + test_integrity(device_name); +} + igt_main { igt_subtest("hdmi-integrity") test_integrity("HDMI"); + + igt_subtest("hdmi-integrity-after-suspend") + test_suspend_resume_integrity("HDMI", SUSPEND_STATE_MEM, + SUSPEND_TEST_NONE); + + igt_subtest("hdmi-integrity-after-hibernate") + test_suspend_resume_integrity("HDMI", SUSPEND_STATE_DISK, + SUSPEND_TEST_DEVICES); }