mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-18 20:03:06 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user