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

Upadhyay, Tejas tejas.upadhyay at intel.com
Fri Apr 12 10:53:35 UTC 2024



> -----Original Message-----
> From: Ghimiray, Himal Prasad <himal.prasad.ghimiray at intel.com>
> Sent: Friday, April 12, 2024 4:21 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 v2] 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.
> 
> -v2
> Modify values in drivers/gpu/drm/xe/xe_hw_engine.h
> 
> 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>

LGTM,
Reviewed-by: Tejas Upadhyay <tejas.upadhyay at intel.com>

> ---
>  drivers/gpu/drm/xe/Kconfig.profile | 4 ++--
> drivers/gpu/drm/xe/xe_hw_engine.h  | 4 ++--
>  2 files changed, 4 insertions(+), 4 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 diff --git
> a/drivers/gpu/drm/xe/xe_hw_engine.h
> b/drivers/gpu/drm/xe/xe_hw_engine.h
> index 71968ee2f600..5be0783a8865 100644
> --- a/drivers/gpu/drm/xe/xe_hw_engine.h
> +++ b/drivers/gpu/drm/xe/xe_hw_engine.h
> @@ -23,7 +23,7 @@ struct drm_printer;
>  #ifdef CONFIG_DRM_XE_TIMESLICE_MIN
>  #define XE_HW_ENGINE_TIMESLICE_MIN CONFIG_DRM_XE_TIMESLICE_MIN
> #else -#define XE_HW_ENGINE_TIMESLICE_MIN 1
> +#define XE_HW_ENGINE_TIMESLICE_MIN 0
>  #endif
>  #ifdef CONFIG_DRM_XE_TIMESLICE_MAX
>  #define XE_HW_ENGINE_TIMESLICE_MAX
> CONFIG_DRM_XE_TIMESLICE_MAX @@ -38,7 +38,7 @@ struct drm_printer;
> #ifdef CONFIG_DRM_XE_PREEMPT_TIMEOUT_MIN  #define
> XE_HW_ENGINE_PREEMPT_TIMEOUT_MIN
> CONFIG_DRM_XE_PREEMPT_TIMEOUT_MIN  #else -#define
> XE_HW_ENGINE_PREEMPT_TIMEOUT_MIN 1
> +#define XE_HW_ENGINE_PREEMPT_TIMEOUT_MIN 0
>  #endif
>  #ifdef CONFIG_DRM_XE_PREEMPT_TIMEOUT_MAX  #define
> XE_HW_ENGINE_PREEMPT_TIMEOUT_MAX
> CONFIG_DRM_XE_PREEMPT_TIMEOUT_MAX
> --
> 2.25.1



More information about the Intel-xe mailing list