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

Himal Prasad Ghimiray himal.prasad.ghimiray at intel.com
Fri Apr 12 10:50:53 UTC 2024


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>
---
 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