[igt-dev] [PATCH i-g-t v2 3/5] [intel-gfx] tests/pm_dc: Added test for DC6 during PSR.

Imre Deak imre.deak at intel.com
Mon Oct 15 15:20:11 UTC 2018


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 at 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
> 


More information about the igt-dev mailing list