From: Tejun Heo <tj@kernel.org>
To: Zhang Qiao <zhangqiao22@huawei.com>
Cc: sched-ext@lists.linux.dev, David Vernet <void@manifault.com>,
Andrea Righi <arighi@nvidia.com>,
Changwoo Min <changwoo@igalia.com>,
Hui Tang <tanghui20@huawei.com>
Subject: Re: [PATCH sched_ext/for-7.4-fixes] sched_ext: Fix partial-SMT core counting in calc_shard_layout()
Date: Fri, 06 Nov 2026 08:48:43 -1000 [thread overview]
Message-ID: <8b54675a18fdf659a1c913784d5a27e9@kernel.org> (raw)
In-Reply-To: <1eac08a9-b5e9-b353-b9d1-1e2d32802993@huawei.com>
Hello, Qiao.
On Fri, Nov 06, 2026 at 10:44:30AM +0800, Zhang Qiao wrote:
> A core is counted when its cpu is the first cpu of
> topology_sibling_cpumask(), which includes offline cpus. When the
AFAICS topology_sibling_cpumask() includes offline cpus only on mips and
sparc64. x86, arm64, riscv, powerpc, loongarch and s390 clear an offlined
cpu from its siblings' masks. Which arch did you hit this on?
> + /* the low-numbered siblings may be offline */
> + if (cpumask_first_and(topology_sibling_cpumask(cpu),
> + llc_cpus) == cpu)
The comment describes one scenario rather than what the test does, which
isn't very useful. Can you state the rule instead? e.g.
/*
* scx_cid_init() forms each core from the siblings in
* @llc_cpus. The sibling mask may include cpus outside
* @llc_cpus, so count a core at its first sibling in @llc_cpus.
*/
The fix looks right, but the patch is whitespace damaged and doesn't
apply. Can you send v2 with git send-email?
Thanks.
--
tejun
next prev parent reply other threads:[~2026-11-06 18:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 2:44 [PATCH sched_ext/for-7.4-fixes] sched_ext: Fix partial-SMT core counting in calc_shard_layout() Zhang Qiao
2026-11-06 18:48 ` Tejun Heo [this message]
2026-11-10 6:28 ` Zhang Qiao
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=8b54675a18fdf659a1c913784d5a27e9@kernel.org \
--to=tj@kernel.org \
--cc=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=sched-ext@lists.linux.dev \
--cc=tanghui20@huawei.com \
--cc=void@manifault.com \
--cc=zhangqiao22@huawei.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.