public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: Jyoti Yadav <jyoti.r.yadav@intel.com>
Cc: igt-dev@lists.freedesktop.org, anusha.srivatsa@intel.com,
	rodrigo.vivi@intel.com
Subject: Re: [igt-dev] [PATCH i-g-t v2 3/5] [intel-gfx] tests/pm_dc: Added test for DC6 during PSR.
Date: Mon, 15 Oct 2018 18:20:11 +0300	[thread overview]
Message-ID: <20181015152011.GE11298@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <1539172908-20679-4-git-send-email-jyoti.r.yadav@intel.com>

On Wed, Oct 10, 2018 at 08:01:46AM -0400, Jyoti Yadav wrote:
> This patch add subtest to check DC6 entry on PSR for the supported
> platforms.
> 
> Signed-off-by: Jyoti Yadav <jyoti.r.yadav@intel.com>
> ---
>  tests/pm_dc.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/tests/pm_dc.c b/tests/pm_dc.c
> index 4125d83..98e011f 100644
> --- a/tests/pm_dc.c
> +++ b/tests/pm_dc.c
> @@ -208,6 +208,13 @@ int main(int argc, char *argv[])
>  		test_dc_state_psr(&data);
>  		cleanup(&data);
>  	}
> +
> +	igt_subtest("dc6-psr") {
> +		data.dc_flags |= CHECK_DC6;
> +		test_dc_state_psr(&data);

The subtest should be skipped on platforms without a DC6 counter. You
could check upfront the available counters and skip each DC5/DC6
subtests accordingly.

> +		cleanup(&data);
> +	}
> +
>  	igt_fixture {
>  		close(data.debugfs_fd);
>  		display_fini(&data);
> -- 
> 1.9.1
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-10-15 15:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-10 12:01 [igt-dev] [PATCH i-g-t v2 0/5] Added new test file pm_dc.c Jyoti Yadav
2018-10-10 12:01 ` [igt-dev] [PATCH i-g-t v2 1/5] [intel--gfx] lib/igt_pm: Moves Dmc_loaded() function into library Jyoti Yadav
2018-10-15 13:44   ` Imre Deak
2018-10-10 12:01 ` [igt-dev] [PATCH i-g-t v2 3/5] [intel-gfx] tests/pm_dc: Added test for DC6 during PSR Jyoti Yadav
2018-10-15 15:20   ` Imre Deak [this message]
2018-10-10 12:01 ` [igt-dev] [PATCH i-g-t v2 4/5] [intel-gfx] tests/pm_dc: Added test for DC5 during DPMS Jyoti Yadav
2018-10-10 12:01 ` [igt-dev] [PATCH i-g-t v2 5/5] [intel-gfx] tests/pm_dc: Added test for DC6 " Jyoti Yadav
2018-10-10 15:13 ` [igt-dev] ✓ Fi.CI.BAT: success for Added new test file pm_dc.c. (rev2) Patchwork
2018-10-10 20:33 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
     [not found] ` <1539172908-20679-3-git-send-email-jyoti.r.yadav@intel.com>
2018-10-15 15:18   ` [igt-dev] [PATCH i-g-t v2 2/5] [intel-gfx] tests/pm_dc : Added new test to verify Display C States Imre Deak

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=20181015152011.GE11298@ideak-desk.fi.intel.com \
    --to=imre.deak@intel.com \
    --cc=anusha.srivatsa@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jyoti.r.yadav@intel.com \
    --cc=rodrigo.vivi@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