[igt-dev] [PATCH i-g-t v3 5/5] [intel-gfx] tests/pm_dc: Added test for DC6 during DPMS
Imre Deak
imre.deak at intel.com
Wed Nov 21 17:43:18 UTC 2018
On Sat, Nov 03, 2018 at 07:36:06AM -0400, Jyoti Yadav wrote:
> Added new subtest for DC6 entry during DPMS on/off cycle.
> During DPMS on/off cycle DC6 counter is incremented.
>
> v2: Renamed the subtest name.
> v3: Rebased.
>
> Signed-off-by: Jyoti Yadav <jyoti.r.yadav at intel.com>
> ---
> tests/pm_dc.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/tests/pm_dc.c b/tests/pm_dc.c
> index d47b837..6d71e34 100644
> --- a/tests/pm_dc.c
> +++ b/tests/pm_dc.c
> @@ -211,7 +211,7 @@ int main(int argc, char *argv[])
> igt_info("Runtime PM support: %d\n", has_runtime_pm);
> igt_require(has_runtime_pm);
> igt_require(igt_pm_dmc_loaded(data.debugfs_fd));
> - igt_display_init(&data->display, data->drm_fd);
> + igt_display_init(&data.display, data.drm_fd);
Should be fixed in the patch adding it.
> //display_init(&data);
> }
>
> @@ -248,6 +248,15 @@ int main(int argc, char *argv[])
> // cleanup(&data);
> }
>
> + igt_subtest("dc6-dpms") {
> + /* Check DC6 counter is available for the platform.
> + * Skip the test if counter is not available.
> + */
> + read_dc_counter(data.drm_fd, CHECK_DC6);
> + test_dc_state_dpms(&data, CHECK_DC6);
> + //cleanup(&data);
Leftover code.
> + }
> +
> igt_fixture {
> close(data.debugfs_fd);
> display_fini(&data);
> --
> 1.9.1
>
More information about the igt-dev
mailing list