All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>,
	Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Cc: rafael@kernel.org, peterz@infradead.org,
	Heiko Stuebner <heiko@sntech.de>,
	"moderated list:ARM/Rockchip SoC support"
	<linux-arm-kernel@lists.infradead.org>,
	"open list:ARM/Rockchip SoC support"
	<linux-rockchip@lists.infradead.org>
Subject: Re: [PATCH 0/2] powercap: idle_inject: Create threads on demand
Date: Wed, 11 Nov 2026 01:21:36 +0100	[thread overview]
Message-ID: <87bj7wtdyn.ffs@fw13> (raw)
In-Reply-To: <20261105105805.a6d1b38585290ab73597aa6b@linux-foundation.org>

On Thu, Nov 05 2026 at 10:58, Andrew Morton wrote:
> On Thu, 5 Nov 2026 19:46:13 +0100 Daniel Lezcano <daniel.lezcano@oss.qualcomm.com> wrote:
>
>> On 11/3/26 00:09, Daniel Lezcano wrote:
>> > Idle injection currently registers per-CPU kernel threads during early
>> > initialization, including on CPUs for which no idle injection device
>> > will be registered.
>> > 
>> > This series makes thread creation follow the lifetime and CPU mask of
>> > each idle injection device.
>> > 
>> > The first patch adds an optional CPU mask to smpboot thread descriptors.
>> > The mask restricts thread creation, CPU hotplug handling and teardown,
>> > while preserving the existing behavior for descriptors without a mask.
>> > 
>> > The second patch uses this support to register idle injection threads
>> > when a device registers and destroy them when it unregisters. CPU
>> > ownership claims, registration rollback and thread teardown are
>> > serialized to prevent overlapping registrations from sharing threads.
>> > 
>> > Validation includes W=1 builds of the affected objects, whitespace
>> > checks and static review of the teardown locking paths. Concurrent
>> > registration and CPU hotplug runtime testing remains outstanding.
>> > 
>> > The series was tested on Rockchip RK3588.
>> 
>> One thing not specified in this cover is which tree these changes have 
>> to go through ?
>
> I'd volunteer Rafael's, after peterz/tglx review.
>
> Please!  Removing one kernel thread per cpu makes the world a better
> place.

I'll look at it in the next days with brain awake...


WARNING: multiple messages have this Message-ID (diff)
From: Thomas Gleixner <tglx@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>,
	Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Cc: rafael@kernel.org, peterz@infradead.org,
	Heiko Stuebner <heiko@sntech.de>,
	"moderated list:ARM/Rockchip SoC support"
	<linux-arm-kernel@lists.infradead.org>,
	"open list:ARM/Rockchip SoC support"
	<linux-rockchip@lists.infradead.org>
Subject: Re: [PATCH 0/2] powercap: idle_inject: Create threads on demand
Date: Wed, 11 Nov 2026 01:21:36 +0100	[thread overview]
Message-ID: <87bj7wtdyn.ffs@fw13> (raw)
In-Reply-To: <20261105105805.a6d1b38585290ab73597aa6b@linux-foundation.org>

On Thu, Nov 05 2026 at 10:58, Andrew Morton wrote:
> On Thu, 5 Nov 2026 19:46:13 +0100 Daniel Lezcano <daniel.lezcano@oss.qualcomm.com> wrote:
>
>> On 11/3/26 00:09, Daniel Lezcano wrote:
>> > Idle injection currently registers per-CPU kernel threads during early
>> > initialization, including on CPUs for which no idle injection device
>> > will be registered.
>> > 
>> > This series makes thread creation follow the lifetime and CPU mask of
>> > each idle injection device.
>> > 
>> > The first patch adds an optional CPU mask to smpboot thread descriptors.
>> > The mask restricts thread creation, CPU hotplug handling and teardown,
>> > while preserving the existing behavior for descriptors without a mask.
>> > 
>> > The second patch uses this support to register idle injection threads
>> > when a device registers and destroy them when it unregisters. CPU
>> > ownership claims, registration rollback and thread teardown are
>> > serialized to prevent overlapping registrations from sharing threads.
>> > 
>> > Validation includes W=1 builds of the affected objects, whitespace
>> > checks and static review of the teardown locking paths. Concurrent
>> > registration and CPU hotplug runtime testing remains outstanding.
>> > 
>> > The series was tested on Rockchip RK3588.
>> 
>> One thing not specified in this cover is which tree these changes have 
>> to go through ?
>
> I'd volunteer Rafael's, after peterz/tglx review.
>
> Please!  Removing one kernel thread per cpu makes the world a better
> place.

I'll look at it in the next days with brain awake...

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

  reply	other threads:[~2026-11-11  0:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 23:09 [PATCH 0/2] powercap: idle_inject: Create threads on demand Daniel Lezcano
2026-11-02 23:09 ` Daniel Lezcano
2026-11-02 23:09 ` [PATCH 1/2] smpboot: Allow restricting per-CPU threads to a CPU mask Daniel Lezcano
2026-11-02 23:09   ` Daniel Lezcano
2026-11-03 11:48   ` Bradley Morgan
2026-11-03 11:48     ` Bradley Morgan
2026-11-12 17:40   ` Thomas Gleixner
2026-11-12 17:40     ` Thomas Gleixner
2026-11-12 18:03     ` Daniel Lezcano
2026-11-12 18:03       ` Daniel Lezcano
2026-11-02 23:09 ` [PATCH 2/2] powercap: idle_inject: Create per-CPU threads on registration Daniel Lezcano
2026-11-02 23:09   ` Daniel Lezcano
2026-11-05 18:46 ` [PATCH 0/2] powercap: idle_inject: Create threads on demand Daniel Lezcano
2026-11-05 18:46   ` Daniel Lezcano
2026-11-05 18:58   ` Andrew Morton
2026-11-05 18:58     ` Andrew Morton
2026-11-11  0:21     ` Thomas Gleixner [this message]
2026-11-11  0:21       ` Thomas Gleixner

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=87bj7wtdyn.ffs@fw13 \
    --to=tglx@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=daniel.lezcano@oss.qualcomm.com \
    --cc=heiko@sntech.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=peterz@infradead.org \
    --cc=rafael@kernel.org \
    /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.