tests/gem_suspend: exercise fence restore code

This exercise the bug fixed in

commit 94a335dba34ff47cad3d6d0c29b452d43a1be3c8
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Jul 17 14:51:28 2013 +0200

    drm/i915: correctly restore fences with objects attached

For fun I've also added a subtest for the inverse transition.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-07-22 09:24:43 +02:00
parent 5bc0324e86
commit 10834f8610
5 changed files with 129 additions and 0 deletions
+7
View File
@@ -1655,3 +1655,10 @@ int drmtest_enable_prefault(void)
return drmtest_prefault_control(true);
}
void drmtest_system_suspend_autoresume(void)
{
int ret;
ret = system("rtcwake -s 30 -m mem");
assert(ret == 0);
}
+3
View File
@@ -189,3 +189,6 @@ int drmtest_set_vt_graphics_mode(void);
/* prefault disabling, needs the corresponding debugfs interface */
int drmtest_disable_prefault(void);
int drmtest_enable_prefault(void);
/* suspend and auto-resume system */
void drmtest_system_suspend_autoresume(void);