[PATCH i-g-t 5/5] tests/intel/xe_compute_preempt.c: Reduced child count for PTL

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Thu Feb 20 08:07:56 UTC 2025


On Mon, Feb 17, 2025 at 08:18:54AM +0000, priyanka.dandamudi at intel.com wrote:
> From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
> 
> Preemption is not happening for long kernel when child count is beyond
> 50 in PTL for compute-preempt-many test and its failing user fence.
> So, reduced child count for PTL.

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew

> 
> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
> ---
>  tests/intel/xe_compute_preempt.c | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/intel/xe_compute_preempt.c b/tests/intel/xe_compute_preempt.c
> index 5319dee7b..d4c243c16 100644
> --- a/tests/intel/xe_compute_preempt.c
> +++ b/tests/intel/xe_compute_preempt.c
> @@ -64,8 +64,16 @@ igt_main
>  				continue;
>  
>  			igt_dynamic_f("engine-%s", xe_engine_class_string(hwe->engine_class)) {
> +				uint16_t dev_id = intel_get_drm_devid(xe);
> +				int child_count;
> +
> +				if (IS_PANTHERLAKE(dev_id))
> +					child_count = 50;
> +				else
> +					child_count = 100;
> +
>  				test_compute_preempt(xe, hwe, false);
> -				igt_fork(child, 100)
> +				igt_fork(child, child_count)
>  					test_compute_preempt(xe, hwe, false);
>  				igt_waitchildren();
>  			}
> -- 
> 2.34.1
> 


More information about the igt-dev mailing list