mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] sched_ext: Honor SCX_PICK_IDLE_CORE in CPU selection shortcuts
@ 2026-10-12  6:51 Hui Su
  2026-10-12  6:51 ` [PATCH 1/2] sched_ext: idle: " Hui Su
  2026-10-12  6:51 ` [PATCH 2/2] selftests/sched_ext: Cover strict-core " Hui Su
  0 siblings, 2 replies; 3+ messages in thread
From: Hui Su @ 2026-10-12  6:51 UTC (permalink / raw)
  To: tj
  Cc: void, arighi, changwoo, mingo, peterz, juri.lelli,
	vincent.guittot, dietmar.eggemann, rostedt, bsegall, mgorman,
	vschneid, kprateek.nayak, sched-ext, linux-kernel, bpf, sh_def,
	stable

The restricted select_cpu kfunc path and the normal WAKE_SYNC shortcuts can
bypass SCX_PICK_IDLE_CORE on SMT systems. The first patch skips the WAKE_SYNC
shortcuts when strict-core selection is requested and validates restricted
candidates against their idle SMT mask. The second patch covers the restricted
path and both WAKE_SYNC shortcuts while retaining the generic smoke test when
no SMT pair is available.

This series is based on:

  [PATCH v3] sched_ext: idle: Respect task affinity in restricted CPU selection
  https://lore.kernel.org/lkml/20261011173100.2090211-1-sh_def@163.com/

Testing:
- x86_64 KVM/QEMU: all three restricted/WAKE_SYNC differential cases
  reproduced the strict-core violation before the fix and returned -EBUSY
  after it.
- The sched_ext selftests passed apart from an unrelated dsp_local_on
  environment failure while opening system Kconfig.
- The strict-core test passed 50 consecutive runs; non-SMT coverage retained
  the generic smoke test and skipped the SMT-specific cases.

Hui Su (2):
  sched_ext: idle: Honor SCX_PICK_IDLE_CORE in CPU selection shortcuts
  selftests/sched_ext: Cover strict-core CPU selection shortcuts

 kernel/sched/ext/idle.c                       |   6 +-
 .../selftests/sched_ext/allowed_cpus.bpf.c    |  36 +-
 .../selftests/sched_ext/allowed_cpus.c        | 316 +++++++++++++++++-
 3 files changed, 347 insertions(+), 11 deletions(-)


base-commit: 9a2d086eba0f331eb5940d6a91efa7caa39080ad
-- 
2.55.0


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

end of thread, other threads:[~2026-10-12  6:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12  6:51 [PATCH 0/2] sched_ext: Honor SCX_PICK_IDLE_CORE in CPU selection shortcuts Hui Su
2026-10-12  6:51 ` [PATCH 1/2] sched_ext: idle: " Hui Su
2026-10-12  6:51 ` [PATCH 2/2] selftests/sched_ext: Cover strict-core " Hui Su

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®