From: Andrea Righi <arighi@nvidia.com>
To: Tejun Heo <tj@kernel.org>
Cc: David Vernet <void@manifault.com>,
Changwoo Min <changwoo@igalia.com>,
Emil Tsalapatis <emil@etsalapatis.com>,
sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCHSET v2 sched_ext/for-7.2] sched_ext: cid/cmask interface prep
Date: Thu, 4 Jun 2026 08:18:41 +0200 [thread overview]
Message-ID: <aiEYwXRzuNe_CF5q@gpd4> (raw)
In-Reply-To: <20260604020032.3536466-1-tj@kernel.org>
Hi Tejun,
On Wed, Jun 03, 2026 at 04:00:28PM -1000, Tejun Heo wrote:
> Hello,
>
> v2:
> - New patch 2 reorders the BPF-side cmask helpers (cid.bpf.h) and their
> callers to (cid, mask) so the kernel and BPF interfaces match.
> - Bound scx_cmask_for_each_cid() to the active range so a stale word past
> it can't yield a phantom cid (sashiko AI).
> - scx_bpf_kick_cid() returns scx_cid_to_cpu()'s errno instead of -EINVAL
> (Andrea).
>
> v1: https://lore.kernel.org/r/20260603172153.3081861-1-tj@kernel.org
>
> Preparatory changes to the cid/cmask interface that landed in for-7.2 this
> cycle - a single-cid helper-argument reorder on the kernel and BPF sides,
> two new helpers, and a kfunc return-type change. Posting ahead of the merge
> window, in particular the scx_bpf_kick_cid() return-type change in patch 4 -
> it changes a kfunc's signature and is cleaner to settle before 7.2 ships.
>
> - Patch 1 reorders the single-cid cmask helpers to (cid, mask), matching the
> kernel's index-first bit and cpumask predicates.
> - Patch 2 reorders the BPF-side counterparts in cid.bpf.h the same way.
> - Patch 3 adds scx_cmask_test() and scx_cmask_for_each_cid().
> - Patch 4 switches scx_bpf_kick_cid() from void to s32 so future cap
> enforcement can surface failures. The cid interface has no external users
> yet, so the ABI change is safe now.
>
> These are extracted from the in-development sub-scheduler series. Nothing
> here depends on the rest of that work.
Looks good to me.
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Thanks,
-Andrea
next prev parent reply other threads:[~2026-06-04 6:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 2:00 [PATCHSET v2 sched_ext/for-7.2] sched_ext: cid/cmask interface prep Tejun Heo
2026-06-04 2:00 ` [PATCH 1/4] sched_ext: Order single-cid cmask helpers as (cid, mask) Tejun Heo
2026-06-04 2:00 ` [PATCH 2/4] tools/sched_ext: " Tejun Heo
2026-06-04 2:00 ` [PATCH 3/4] sched_ext: Add scx_cmask_test() and scx_cmask_for_each_cid() Tejun Heo
2026-06-04 2:10 ` sashiko-bot
2026-06-04 2:00 ` [PATCH 4/4] sched_ext: Make scx_bpf_kick_cid() return s32 Tejun Heo
2026-06-04 6:18 ` Andrea Righi [this message]
2026-06-04 8:32 ` [PATCHSET v2 sched_ext/for-7.2] sched_ext: cid/cmask interface prep Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aiEYwXRzuNe_CF5q@gpd4 \
--to=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=emil@etsalapatis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sched-ext@lists.linux.dev \
--cc=tj@kernel.org \
--cc=void@manifault.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.