summaryrefslogtreecommitdiff
path: root/tests/vgem_basic.c
AgeCommit message (Collapse)Author
2017-08-30igt/vgem_basic: Load and unload the module firstChris Wilson
To ensure the module exists, first load it. Then when we try to unload the module (to check that our modprobe interface works), we will not get spurious failures due to -ENOENT (in this case meaning the module did not exist): (vgem_basic:18361) igt-core-DEBUG: Starting subtest: unload (vgem_basic:18361) igt-kmod-DEBUG: Could not remove module vgem (No such file or directory) Test requirement not met in function test_unload, file vgem_basic.c:331: Test requirement: module_unload() == 0 Last errno: 2, No such file or directory Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-06-22igt/vgem_basic: Test DRM_IOCTL_SETVERSIONChris Wilson
vgem is a nasty test case for various parts of the core as it is a virtual device with drm_device.dev == NULL; this includes drm_setversion for example. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-25Replace more system("modprobe")Chris Wilson
As we have libkmod available, it is faster and safer than calling system(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-10-05igt/vgem_basic: Allow mmap() to persist without the vgem module loadedChris Wilson
Since vgem doesn't have any callbacks from shmemfs to its, we don't need to keep the module around to service a pagefault when only using the shmemfs facilities. Adjust the test to try to unload and check the mmap for access. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-09-30igt/vgem: Add a basic test for handling of module unloadChris Wilson
We found a bug where a dmabuf did not keep the module alive (and so when i915 tried to use it later, it exploded). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-07-15igt/vgem_slow/nohang: Test fence autotimeoutChris Wilson
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>
2016-07-12vgem: Add basic dma-buf fence interopChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-07-09lib/debugfs: Adjust path creation for opening /debugfs/.../dir/%dChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-06-23igt/vgem_basic: Check multiple clients can open /dev/dri/<vgem>Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-06-20igt/vgem_basic: Exercise opening sysfs/debugfsChris Wilson
For fun, debugfs/.../names currently explodes, so lets capture that and make sure that basic access to debugfs does no harm. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-06-18igt: Add basic exercise of vGEMChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>