[PATCH] drm/xe: Modify minimum of various scheduler timeout to 0.

Upadhyay, Tejas tejas.upadhyay at intel.com
Fri Apr 5 04:53:17 UTC 2024



> -----Original Message-----
> From: Ghimiray, Himal Prasad <himal.prasad.ghimiray at intel.com>
> Sent: Friday, March 8, 2024 4:31 PM
> To: intel-xe at lists.freedesktop.org
> Cc: Ghimiray, Himal Prasad <himal.prasad.ghimiray at intel.com>; Brost,
> Matthew <matthew.brost at intel.com>; Vishwanathapura, Niranjana
> <niranjana.vishwanathapura at intel.com>; Upadhyay, Tejas
> <tejas.upadhyay at intel.com>
> Subject: [PATCH] drm/xe: Modify minimum of various scheduler timeout to 0.
> 
> The sysman teams needs to disable preemption and timeslice to test
> exclusivity mode and are relying on setting 'timeslice_duration_us'
> and 'preempt_timeout_us' to 0 for the same. Hence set the min configs to 0.
> 
> Cc: Matthew Brost <matthew.brost at intel.com>
> Cc: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>
> Cc: Tejas Upadhyay <tejas.upadhyay at intel.com>
> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
> ---
>  drivers/gpu/drm/xe/Kconfig.profile | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/Kconfig.profile
> b/drivers/gpu/drm/xe/Kconfig.profile
> index ba17a25e8db3..80e80b55467f 100644
> --- a/drivers/gpu/drm/xe/Kconfig.profile
> +++ b/drivers/gpu/drm/xe/Kconfig.profile
> @@ -18,7 +18,7 @@ config DRM_XE_TIMESLICE_MAX
>  	  contexts by guc scheduling.
>  config DRM_XE_TIMESLICE_MIN
>  	int "Default min timeslice duration (us)"
> -	default 1 # microseconds
> +	default 0 # microseconds
>  	help
>  	  Configures the default min timeslice duration between multiple
>  	  contexts by guc scheduling.
> @@ -39,7 +39,7 @@ config DRM_XE_PREEMPT_TIMEOUT_MAX
>  	  run.
>  config DRM_XE_PREEMPT_TIMEOUT_MIN
>  	int "Default min preempt timeout (us)"
> -	default 1 # microseconds
> +	default 0 # microseconds
>  	help
>  	  Configures the default min preempt timeout after which context
>  	  will be forcefully taken away and higher priority context will

You need to set default  prempt timeout to be 0 in XE_HW_ENGINE_PREEMPT_TIMEOUT_MIN  drivers/gpu/drm/xe/xe_hw_engine.h as well.

Thanks,
Tejas
> --
> 2.25.1



More information about the Intel-xe mailing list