All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/sched: Switch the default policy to "fair"
@ 2026-11-10 14:14 Tvrtko Ursulin
  2026-11-10 14:25 ` sashiko-bot
  2026-11-10 14:28 ` Philipp Stanner
  0 siblings, 2 replies; 4+ messages in thread
From: Tvrtko Ursulin @ 2026-11-10 14:14 UTC (permalink / raw)
  To: dri-devel
  Cc: kernel-dev, Tvrtko Ursulin, Christian König, Matthew Brost,
	Danilo Krummrich, Philipp Stanner

After the last known real fair policy bug was fixed in commit:
2ab510e63197 ("drm/sched: Fix virtual runtime race")

And two theoretical ones in commits:
cda6f72545f2 ("drm/sched: Fix out of bounds entity priority check"
75709a35da45 ("drm/sched: Adjust run-queue when changing priority at runtime")

Lets switch the default policy to fair.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Danilo Krummrich <dakr@kernel.org>
Cc: Philipp Stanner <phasta@kernel.org>
---
If everything goes well in the next release we can then continue removing
the obsolete policies and simplifying the run-queue management.
---
 drivers/gpu/drm/scheduler/sched_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c
index 99252674e266..a030061d0390 100644
--- a/drivers/gpu/drm/scheduler/sched_main.c
+++ b/drivers/gpu/drm/scheduler/sched_main.c
@@ -83,13 +83,13 @@
 #define CREATE_TRACE_POINTS
 #include "gpu_scheduler_trace.h"
 
-int drm_sched_policy = DRM_SCHED_POLICY_FIFO;
+int drm_sched_policy = DRM_SCHED_POLICY_FAIR;
 
 /**
  * DOC: sched_policy (int)
  * Used to override default entities scheduling policy in a run queue.
  */
-MODULE_PARM_DESC(sched_policy, "Specify the scheduling policy for entities on a run-queue, " __stringify(DRM_SCHED_POLICY_RR) " = Round Robin, " __stringify(DRM_SCHED_POLICY_FIFO) " = FIFO (default), " __stringify(DRM_SCHED_POLICY_FAIR) " = Fair (experimental).");
+MODULE_PARM_DESC(sched_policy, "Specify the scheduling policy for entities on a run-queue, " __stringify(DRM_SCHED_POLICY_RR) " = Round Robin, " __stringify(DRM_SCHED_POLICY_FIFO) " = FIFO, " __stringify(DRM_SCHED_POLICY_FAIR) " = Fair (default).");
 module_param_named(sched_policy, drm_sched_policy, int, 0444);
 
 static u32 drm_sched_available_credits(struct drm_gpu_scheduler *sched)
-- 
2.56.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-11 11:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10 14:14 [PATCH] drm/sched: Switch the default policy to "fair" Tvrtko Ursulin
2026-11-10 14:25 ` sashiko-bot
2026-11-10 14:28 ` Philipp Stanner
2026-11-11 11:15   ` Tvrtko Ursulin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.