From 4eb37bf4c130fe1264c7f63e30faff3a76cd093d Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Tue, 18 Feb 2014 14:27:19 -0300 Subject: [PATCH] tests/pm_pc8: add gem-idle subtest It's triggering WARNs and DRM_ERRORs on current drm-intel-nighly. Signed-off-by: Paulo Zanoni --- tests/pm_pc8.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c index 982b82e..1c85973 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -1376,6 +1376,17 @@ static void gem_execbuf_stress_subtest(int rounds, int wait_flags) gem_close(drm_fd, handle); } +/* When this test was written, it triggered WARNs and DRM_ERRORs on dmesg. */ +static void gem_idle_subtest(void) +{ + disable_all_screens(&ms_data); + igt_assert(wait_for_suspended()); + + sleep(5); + + gem_quiescent_gpu(drm_fd); +} + int main(int argc, char *argv[]) { int rounds = 50; @@ -1415,6 +1426,8 @@ int main(int argc, char *argv[]) gem_pread_subtest(); igt_subtest("gem-execbuf") gem_execbuf_subtest(); + igt_subtest("gem-idle") + gem_idle_subtest(); /* Misc */ igt_subtest("i2c") -- 2.7.4