diff options
author | Oscar Mateo <oscar.mateo@intel.com> | 2013-11-05 14:15:19 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-11-05 16:45:16 +0100 |
commit | aa252d0e009b8c94ff875a69a4ca3640d1a5c1c9 (patch) | |
tree | 0c794f0285b57a9f4b886292ca0be80bc6b02c9c /lib | |
parent | 4a6a59f314f61e1e4156bb13a65efabee31a76fc (diff) |
lib/drmtest: Retire requests via drop caches after gem_quiescent_gpu
This helps make sure that the GPU is really quiescent by getting
rid of any residual stuff.
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/drmtest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index e3fc166e..d8fc60f6 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -47,6 +47,7 @@ #include "i915_drm.h" #include "intel_chipset.h" #include "intel_gpu_tools.h" +#include "igt_debugfs.h" /* This file contains a bunch of wrapper functions to directly use gem ioctls. * Mostly useful to write kernel tests. */ @@ -163,6 +164,7 @@ void gem_quiescent_gpu(int fd) } gem_sync(fd, handle); + igt_drop_caches_set(DROP_RETIRE); } /** |