[PATCH 1/2] tests/intel/xe_exec_system_allocator: Add section to trigger 64k fault

Francois Dugast francois.dugast at intel.com
Mon Jun 23 09:54:26 UTC 2025


On Mon, Jun 16, 2025 at 12:06:39AM -0700, Matthew Brost wrote:
> 64K is the fault size in Xe. Add sections to explicitly trigger these
> faults, as they are interesting and having dedicated sections helps with
> profiling the KMD.
> 
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>

Nit: to help clearly identify the tests, we could rename the previous
section from "many-large-%s" to "many-2m-%s".

Reviewed-by: Francois Dugast <francois.dugast at intel.com>

> ---
>  tests/intel/xe_exec_system_allocator.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/tests/intel/xe_exec_system_allocator.c b/tests/intel/xe_exec_system_allocator.c
> index 2a99bd435a..65d281c784 100644
> --- a/tests/intel/xe_exec_system_allocator.c
> +++ b/tests/intel/xe_exec_system_allocator.c
> @@ -806,6 +806,10 @@ partial(int fd, struct drm_xe_engine_class_instance *eci, unsigned int flags)
>   * Description: Run %arg[1] system allocator test many times with large allocations
>   * Test category: stress test
>   *
> + * SUBTEST: many-64k-%s
> + * Description: Run %arg[1] system allocator test many times with large allocations
> + * Test category: stress test
> + *
>   * SUBTEST: many-large-execqueues-%s
>   * Description: Run %arg[1] system allocator test on many exec_queues with large allocations
>   *
> @@ -1741,6 +1745,11 @@ igt_main
>  				test_exec(fd, hwe, 1, 128, SZ_2M, 0, 0, NULL,
>  					  NULL, s->flags);
>  
> +		igt_subtest_f("many-64k-%s", s->name)
> +			xe_for_each_engine(fd, hwe)
> +				test_exec(fd, hwe, 1, 128, SZ_64K, 0, 0, NULL,
> +					  NULL, s->flags);
> +
>  		igt_subtest_f("many-large-execqueues-%s", s->name)
>  			xe_for_each_engine(fd, hwe)
>  				test_exec(fd, hwe, 16, 128, SZ_2M, 0, 0, NULL,
> -- 
> 2.34.1
> 


More information about the igt-dev mailing list