[igt-dev] [PATCH i-g-t] i915/gem_vm_create: Added test description for test case

Lukasz Fiedorowicz lukasz.fiedorowicz at intel.com
Thu Aug 13 14:46:08 UTC 2020


<priyanka.dandamudi at intel.com> writes:

> From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
>
> Added test description for test and to all the available subtests.
>
> Cc: Melkaveri, Arjun <Arjun.Melkaveri at intel.com>
> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
> ---
>  tests/i915/gem_vm_create.c | 20 +++++++++++++++-----
>  1 file changed, 15 insertions(+), 5 deletions(-)
>
> diff --git a/tests/i915/gem_vm_create.c b/tests/i915/gem_vm_create.c
> index e8af68f1..9fd8fb89 100644
> --- a/tests/i915/gem_vm_create.c
> +++ b/tests/i915/gem_vm_create.c
> @@ -26,6 +26,11 @@
>  #include "igt.h"
>  #include "igt_dummyload.h"
>  
> +IGT_TEST_DESCRIPTION("Test the basic vm creation ioctl,"
> +		 "where it checks if invalid combinations are rejected and "
> +		 "checks isolation that the same vm_id on different fd are indeed "
> +		 "different VM.");
> +
>  static int vm_create_ioctl(int i915, struct drm_i915_gem_vm_control *ctl)
>  {
>  	int err = 0;
> @@ -395,10 +400,10 @@ igt_main
>  		igt_require_gem(i915);
>  		igt_require(has_vm(i915));
>  	}
> -
> +	igt_describe("Checks if vm creation ioctl returns error for invalid flags and extensions.");
>  	igt_subtest("invalid-create")
>  		invalid_create(i915);
> -
> +	igt_describe("Checks if vm destroy ioctl returns error for invalid vmid's, flags and extensions.");
>  	igt_subtest("invalid-destroy")
>  		invalid_destroy(i915);
>  
> @@ -406,16 +411,21 @@ igt_main
>  		igt_fixture {
>  			gem_context_require_param(i915, I915_CONTEXT_PARAM_VM);
>  		}
> -
> +		igt_describe("Checks if offset for same context can be different for different VM's.");
>  		igt_subtest("execbuf")
>  			execbuf(i915);
>  
> +		igt_describe("Checks if same vmid in different fd are different VM, also " 
> +			     "proves that it cannot be written to vm from another fd.");
>  		igt_subtest("isolation")
>  			isolation(i915);
> -
> +		
> +		igt_describe("Checks if an already VMA for different contexts will try to keep its offset or not.");

Could you please rephrase this description. I have trouble understanding
what do you test here.
Other descriptions look good but please be consistent in
naming and use upper or lower case and stick to it (vm/VM, etc.)

>  		igt_subtest("create-ext")
>  			create_ext(i915);
> -
> +		
> +		igt_describe("Test tries to access same VM and context for "
> +			     "two different spin batches when vm has been destroyed asynchronously.");
>  		igt_subtest("async-destroy")
>  			async_destroy(i915);
>  	}
> -- 
> 2.26.2
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev


-- 
Thanks,
Lukasz


More information about the igt-dev mailing list