diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-06-02 09:52:18 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-06-03 14:22:36 +0100 |
commit | 5a08524404ddd579857fea2bd977b770e9911032 (patch) | |
tree | 4051c371a947e71cad4d8d64f7d144d6efb10c4e /tests/i915/gem_ppgtt.c | |
parent | 2d5c26f844cf1851e5097680d30c951978291c29 (diff) |
i915/gem_ppgtt: Remove defunct test
i915_gem_gtt_info has been removed and so flink-and-exit-vma-leak is
defunct.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests/i915/gem_ppgtt.c')
-rw-r--r-- | tests/i915/gem_ppgtt.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c index b905ea55..0d40a7b7 100644 --- a/tests/i915/gem_ppgtt.c +++ b/tests/i915/gem_ppgtt.c @@ -289,46 +289,6 @@ static void flink_and_close(void) close(fd2); } -static void flink_and_exit(void) -{ - uint32_t fd, fd2, fd3; - uint32_t bo, flinked_bo, name; - char match[20]; - - fd = drm_open_driver(DRIVER_INTEL); - igt_require(gem_uses_full_ppgtt(fd)); - - bo = gem_create(fd, 4096); - name = gem_flink(fd, bo); - snprintf(match, sizeof(match), "(name: %u)", name); - - fd2 = drm_open_driver(DRIVER_INTEL); - flinked_bo = gem_open(fd2, name); - - /* Verify VMA is not there yet. */ - igt_assert(!igt_debugfs_search(fd, "i915_gem_gtt", match)); - - exec_and_get_offset(fd2, flinked_bo); - - /* Verify VMA has been created. */ - igt_assert(igt_debugfs_search(fd, "i915_gem_gtt", match)); - - /* Close the context. */ - close(fd2); - - /* Execute a different and unrelated (wrt object sharing) context to - * ensure engine drops its last context reference. - */ - fd3 = drm_open_driver(DRIVER_INTEL); - exec_and_get_offset(fd3, gem_create(fd3, 4096)); - close(fd3); - - igt_drop_caches_set(fd, DROP_ACTIVE | DROP_RETIRE | DROP_IDLE); - igt_assert(!igt_debugfs_search(fd, "i915_gem_gtt", match)); - - close(fd); -} - #define N_CHILD 8 igt_main { @@ -364,7 +324,4 @@ igt_main igt_subtest("flink-and-close-vma-leak") flink_and_close(); - - igt_subtest("flink-and-exit-vma-leak") - flink_and_exit(); } |