[igt-dev] [PATCH i-g-t 2/4] Revert "tests/i915/gem_ctx_param: Add a couple invalid PARAM_VM cases"

priyanka.dandamudi at intel.com priyanka.dandamudi at intel.com
Mon Nov 21 06:19:14 UTC 2022


From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>

This reverts commit 9c59d4bd0d18b336d0b15e6dea0210e43768b96c.
---
 tests/i915/gem_ctx_param.c | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/tests/i915/gem_ctx_param.c b/tests/i915/gem_ctx_param.c
index d119ea74e..990ce4e95 100644
--- a/tests/i915/gem_ctx_param.c
+++ b/tests/i915/gem_ctx_param.c
@@ -182,25 +182,6 @@ static void test_vm(int i915)
 	gem_context_destroy(i915, arg.ctx_id);
 	igt_require(err == -ENOENT);
 
-	/* Test that we can't set the VM on ctx0 */
-	arg.ctx_id = 0;
-	arg.value = gem_vm_create(i915);
-	err = __gem_context_set_param(i915, &arg);
-	gem_vm_destroy(i915, arg.value);
-	igt_assert_eq(err, -EINVAL);
-
-	/* Test that we can't set the VM after we've done an execbuf */
-	arg.ctx_id = gem_context_create(i915);
-	ahnd = get_reloc_ahnd(i915, arg.ctx_id);
-	spin = igt_spin_new(i915, .ahnd = ahnd, .ctx_id = arg.ctx_id);
-	igt_spin_free(i915, spin);
-	put_ahnd(ahnd);
-	arg.value = gem_vm_create(i915);
-	err = __gem_context_set_param(i915, &arg);
-	gem_context_destroy(i915, arg.ctx_id);
-	gem_vm_destroy(i915, arg.value);
-	igt_assert_eq(err, -EINVAL);
-
 	parent = gem_context_create(i915);
 	child = gem_context_create(i915);
 


More information about the igt-dev mailing list