public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Lyude Paul <lyude@redhat.com>
To: Paul Kocialkowski <paul.kocialkowski@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t] tests/audio: Add suspend and hibernate tests for HDMI signal integrity
Date: Wed, 30 Aug 2017 14:42:29 -0400	[thread overview]
Message-ID: <1504118549.1959.4.camel@redhat.com> (raw)
In-Reply-To: <20170829153538.28317-1-paul.kocialkowski@linux.intel.com>

R-B'd and pushed, thanks!

On Tue, 2017-08-29 at 18:35 +0300, Paul Kocialkowski wrote:
> 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 <paul.kocialkowski@linux.intel.com>
> ---
>  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);
>  }
-- 
Cheers,
	Lyude
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

      parent reply	other threads:[~2017-08-30 18:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-29 15:35 [PATCH i-g-t] tests/audio: Add suspend and hibernate tests for HDMI signal integrity Paul Kocialkowski
2017-08-29 16:50 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-08-29 19:39 ` ✓ Fi.CI.IGT: " Patchwork
2017-08-30 18:42 ` Lyude Paul [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1504118549.1959.4.camel@redhat.com \
    --to=lyude@redhat.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=paul.kocialkowski@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox