All of lore.kernel.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,
	intel-gfx@lists.freedektop.org
Subject: Re: [igt-dev] [PATCH i-g-t v1 3/6] [intel-gfx] tests/pm_dc : Added test to validate DC6 state on Gen11 platform. On Gen11 Platform, DC6 is achieved with PSR entry.
Date: Tue, 2 Oct 2018 16:31:46 +0300	[thread overview]
Message-ID: <20181002133146.GF20560@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <1537977563-18878-4-git-send-email-jyoti.r.yadav@intel.com>

On Wed, Sep 26, 2018 at 11:59:20AM -0400, Jyoti Yadav wrote:
> Signed-off-by: Jyoti Yadav <jyoti.r.yadav@intel.com>
> ---
>  tests/pm_dc.c | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
> 
> diff --git a/tests/pm_dc.c b/tests/pm_dc.c
> index db38ccf..b609fad 100644
> --- a/tests/pm_dc.c
> +++ b/tests/pm_dc.c
> @@ -132,6 +132,20 @@ static uint32_t read_dc3_dc5_counter(uint32_t dev_id)
>  	return dc3_dc5_count;
>  }
>  
> +static uint32_t read_dc5_dc6_counter(uint32_t dev_id)
> +{
> +	uint32_t dc5_dc6_count;
> +
> +	if (IS_SKYLAKE(dev_id) || IS_ICELAKE(dev_id))
> +		dc5_dc6_count = INREG(SKL_CSR_DC5_DC6_COUNT);
> +	else {
> +		igt_warn("Currently DC6 support is for ICL, SKL Platform (%s)\n",
> +			__func__);
> +		return -EPERM;
> +	}
> +	return dc5_dc6_count;
> +}
> +
>  static void test_dc5(data_t *data)
>  {
>  	uint32_t dc3_dc5_counter_before_psr, dc3_dc5_counter_after_psr;
> @@ -147,6 +161,7 @@ static void test_dc5(data_t *data)
>  int main(int argc, char *argv[])
>  {
>  	data_t data = {};
> +	uint32_t dc5_dc6_counter_before_psr, dc5_dc6_counter_after_psr;
>  
>  	igt_skip_on_simulation();
>  	igt_fixture {
> @@ -170,6 +185,14 @@ int main(int argc, char *argv[])
>  		test_dc5(&data);
>  		cleanup(&data);
>  	}
> +	igt_subtest("DC6_state_on_gen11") {
> +		dc5_dc6_counter_before_psr = read_dc5_dc6_counter(data.devid);
> +		test_dc5(&data);
> +		dc5_dc6_counter_after_psr = read_dc5_dc6_counter(data.devid);

Hm, why is this GEN11 specific? It should run anywhere where DC6 is
available, so all GEN9+ machines, except GEN9_LP. So I think instead of
this and the previous subtest we'd need a psr-dc5 and psr-dc6 subtests,
skipping each if the corresponding DC state isn't available on the
platform.

> +		igt_require_f(dc5_dc6_counter_after_psr > dc5_dc6_counter_before_psr,
> +				"DC6 State is not achieved\n");
> +		cleanup(&data);
> +	}
>  	igt_fixture {
>  		psr_disable(data.debugfs_fd);
>  		close(data.debugfs_fd);
> -- 
> 2.7.4
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-10-02 13:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-26 15:59 [igt-dev] [PATCH i-g-t v1 0/6] Added new test file pm_dc.c Jyoti Yadav
2018-09-26 15:59 ` [igt-dev] [PATCH i-g-t v1 1/6] [intel-gfx] lib/igt_pm : Moves Dmc_loaded() function into library. Because it will be used by new test pm_dc.c which will validate Display C States Jyoti Yadav
2018-10-02 13:11   ` Imre Deak
2018-09-26 15:59 ` [igt-dev] [PATCH i-g-t v1 2/6] [intel-gfx] tests/pm_dc : Added new test to verify Display C States. Currently this test validate DC5 upon PSR entry for Icelake, Skylake and Broxton platform Jyoti Yadav
2018-10-02 13:25   ` Imre Deak
2018-10-03 23:59     ` Dhinakaran Pandiyan
2018-10-04  0:13     ` Dhinakaran Pandiyan
2018-10-03 10:24   ` Petri Latvala
2018-09-26 15:59 ` [igt-dev] [PATCH i-g-t v1 3/6] [intel-gfx] tests/pm_dc : Added test to validate DC6 state on Gen11 platform. On Gen11 Platform, DC6 is achieved with PSR entry Jyoti Yadav
2018-10-02 13:31   ` Imre Deak [this message]
2018-09-26 15:59 ` [igt-dev] [PATCH i-g-t v1 4/6] [intel-gfx][intel-dev] tests/pm_dc : This patch adds test to validate DC6 on SKL. DC6 on SKL is achieved with RPM enabled and DPMS OFF sequence Jyoti Yadav
2018-10-02 13:36   ` Imre Deak
2018-10-03  4:37     ` Yadav, Jyoti R
2018-10-03  9:50       ` Imre Deak
2018-10-04  0:15       ` Dhinakaran Pandiyan
2018-09-26 15:59 ` [igt-dev] [PATCH i-g-t v1 5/6] [intel-gfx] lib/intel_reg : This patch adds Display C States related residency counters Jyoti Yadav
2018-09-26 15:59 ` [igt-dev] [PATCH i-g-t v1 6/6] [intel-gfx] tests/Makefile : Added new file tests/pm_dc.c for compilation Jyoti Yadav
2018-10-02 13:38   ` Imre Deak
2018-10-03 10:25     ` Petri Latvala
2018-09-26 16:50 ` [igt-dev] ✓ Fi.CI.BAT: success for Added new test file pm_dc.c Patchwork
2018-09-26 22:22 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-10-04  0:22 ` [igt-dev] [PATCH i-g-t v1 0/6] " Dhinakaran Pandiyan

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=20181002133146.GF20560@ideak-desk.fi.intel.com \
    --to=imre.deak@intel.com \
    --cc=anusha.srivatsa@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedektop.org \
    --cc=jyoti.r.yadav@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.