diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-15 09:01:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-15 09:04:15 +0100 |
commit | c8ab577cbdeb5480f000f55ed2decae7b7932197 (patch) | |
tree | a1530140612f4e9537ae17faccde910d85042132 /lib/igt_vgem.h | |
parent | 2ed42d3c4dc180ddbb99b1292f8656ca52d1d90e (diff) |
igt/vgem_slow/nohang: Test fence autotimeout
To protect the kernel against unscrupulous fence users, fences should
automatically signal after a timeout.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_vgem.h')
-rw-r--r-- | lib/igt_vgem.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/igt_vgem.h b/lib/igt_vgem.h index 91c77baf..ab9ece4c 100644 --- a/lib/igt_vgem.h +++ b/lib/igt_vgem.h @@ -40,7 +40,10 @@ void *__vgem_mmap(int fd, struct vgem_bo *bo, unsigned prot); void *vgem_mmap(int fd, struct vgem_bo *bo, unsigned prot); bool vgem_has_fences(int fd); -uint32_t vgem_fence_attach(int fd, struct vgem_bo *bo, bool write); +bool vgem_fence_has_flag(int fd, unsigned flags); +uint32_t vgem_fence_attach(int fd, struct vgem_bo *bo, unsigned flags); +#define VGEM_FENCE_WRITE 0x1 +#define WIP_VGEM_FENCE_NOTIMEOUT 0x2 void vgem_fence_signal(int fd, uint32_t fence); #endif /* IGT_VGEM_H */ |