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

Imre Deak imre.deak at intel.com
Wed Nov 21 17:40:58 UTC 2018


On Sat, Nov 03, 2018 at 07:36:04AM -0400, Jyoti Yadav wrote:
> This patch add subtest to check DC6 entry on PSR for the supported
> platforms.
> 
> v2: Rename the subtest with more meaningful name.
> v3: Rebased.
> 
> Signed-off-by: Jyoti Yadav <jyoti.r.yadav at intel.com>
> ---
>  tests/pm_dc.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/tests/pm_dc.c b/tests/pm_dc.c
> index 671c0f5..3ecfb1c 100644
> --- a/tests/pm_dc.c
> +++ b/tests/pm_dc.c
> @@ -203,6 +203,18 @@ int main(int argc, char *argv[])
>  		test_dc_state_psr(&data, CHECK_DC5);
>  		cleanup(&data);
>  	}
> +
> +	igt_subtest("dc6-psr") {
> +		psr_enable(data.debugfs_fd);
> +		igt_require_f(edp_psr_sink_support(&data),
> +			      "Sink does not support PSR\n");
> +		/* Check DC5 counter is available for the platform.
                         ^DC6
> +		 * Skip the test if counter is not available.
> +		 */
> +		read_dc_counter(data.drm_fd, CHECK_DC6);
> +		test_dc_state_psr(&data, CHECK_DC6);
> +		cleanup(&data);

You add this here only to remove it in a later patch.

> +	}
>  	igt_fixture {
>  		close(data.debugfs_fd);
>  		display_fini(&data);
> -- 
> 1.9.1
> 


More information about the igt-dev mailing list