All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Srivatsa S. Bhat (Microsoft)" <srivatsa@csail.mit.edu>
Cc: linux-leds@vger.kernel.org, linux-perf-users@vger.kernel.org,
	linux-s390@vger.kernel.org, lee@kernel.org,
	wsa+renesas@sang-engineering.com,
	"Heiko Carstens" <hca@linux.ibm.com>,
	"Vasily Gorbik" <gor@linux.ibm.com>,
	"Alexander Gordeev" <agordeev@linux.ibm.com>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH 04/14] clocksource/drivers, hotplug: Update name & callbacks to match their hotplug states
Date: Thu, 03 Dec 2026 19:40:18 +0000	[thread overview]
Message-ID: <sashiko-outbox-248532@kernel.org> (raw)
In-Reply-To: <20261204-fix-cpuhp-state-names-v1-4-32e62361ce1d@csail.mit.edu>

Thank you for your contribution! Sashiko AI review found no new issues
in this patch, but noticed 1 related pre-existing issue it does not
introduce:
- [High] clocksource/timer-econet-en751221: ignored cpuhp result in
  cevt_init() [1]
--

commit 18ae82e54708e9062467e26a7f153381b8d80f67
Author: Srivatsa S. Bhat (Microsoft) <srivatsa@csail.mit.edu>

clocksource/drivers, hotplug: Update name & callbacks to match their hotplug states

This commit updates CPU hotplug state names and callback function names
across five clocksource drivers so they match the hotplug sections they
register in.

> diff --git a/drivers/clocksource/timer-econet-en751221.c b/drivers/clocksource/timer-econet-en751221.c
> index 1859335345b59..9faa54becba2c 100644
> --- a/drivers/clocksource/timer-econet-en751221.c
> +++ b/drivers/clocksource/timer-econet-en751221.c

[ ... ]

> @@ -159,8 +159,8 @@ static int __init cevt_init(struct device_node *np)
>  	}
>  
>  	cpuhp_setup_state(CPUHP_AP_ONLINE_DYN,
> -			  "clockevents/econet/timer:starting",
> -			  cevt_init_cpu, NULL);
> +			  "clockevents/econet/timer:online",
> +			  cevt_cpu_online, NULL);
>  	return 0;
>  
>  err_unmap_irq:

[Severity: High]
This problem wasn't introduced by this patch, but shouldn't cevt_init()
check the return value of cpuhp_setup_state() [1] instead of
unconditionally returning 0?

If dynamic hotplug state allocation fails (for example with -ENOSPC),
timer_init() treats setup as successful while the per-CPU clock event
devices remain unregistered, leaving the system without timer interrupts.

[1] https://sashiko.dev/#/bug/linux-177c0c89-c176-4f16-b096-f118bb8fca1c

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-fix-cpuhp-state-names-v1-0-32e62361ce1d@csail.mit.edu?part=4

  reply	other threads:[~2026-12-03 19:40 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 19:16 [PATCH 00/14] treewide, cpu/hotplug: Align state and callback names with their sections Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 01/14] mailbox/zynqmp, cpu/hotplug: Update name & callbacks to match their hotplug states Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-04  5:54   ` Prasanna Kumar T S M
2026-12-04  5:54     ` Prasanna Kumar T S M
2026-12-04 18:09     ` Srivatsa S. Bhat
2026-12-04 18:09       ` Srivatsa S. Bhat
2026-12-03 19:16 ` [PATCH 02/14] soc/xilinx, " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-04  5:59   ` Prasanna Kumar T S M
2026-12-04  5:59     ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 03/14] riscv, " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:27   ` sashiko-bot
2026-12-04  5:59   ` Prasanna Kumar T S M
2026-12-04  5:59     ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 04/14] clocksource/drivers, hotplug: " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:40   ` sashiko-bot [this message]
2026-12-03 21:20   ` Herve Codina
2026-12-03 21:20     ` Herve Codina
2026-12-03 21:20     ` Herve Codina via OP-TEE
2026-12-04  6:36   ` Prasanna Kumar T S M
2026-12-04  6:36     ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 05/14] cpuidle, cpu/hotplug: " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-04  6:45   ` Prasanna Kumar T S M
2026-12-04  6:45     ` Prasanna Kumar T S M
2026-12-04 12:39   ` Rafael J. Wysocki (Intel)
2026-12-04 12:39     ` Rafael J. Wysocki (Intel)
2026-12-04 12:39     ` Rafael J. Wysocki (Intel) via OP-TEE
2026-12-04 18:05     ` Srivatsa S. Bhat
2026-12-04 18:05       ` Srivatsa S. Bhat
2026-12-03 19:16 ` [PATCH 06/14] firmware/arm_ffa, cpu/hotplug: Update name to match the hotplug state Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-04  7:18   ` Prasanna Kumar T S M
2026-12-04  7:18     ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 07/14] coresight, cpu/hotplug: Update name & callbacks to match their hotplug states Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 08/14] irqchip/riscv-aplic, hotplug: " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:41   ` sashiko-bot
2026-12-04  7:19   ` Prasanna Kumar T S M
2026-12-04  7:19     ` Prasanna Kumar T S M
2026-12-04 16:47   ` Thomas Gleixner
2026-12-04 16:47     ` Thomas Gleixner
2026-12-04 16:47     ` Thomas Gleixner via OP-TEE
2026-12-04 17:57     ` Srivatsa S. Bhat
2026-12-04 17:57       ` Srivatsa S. Bhat
2026-12-03 19:16 ` [PATCH 09/14] leds/trigger/cpu, " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:39   ` sashiko-bot
2026-12-04  7:21   ` Prasanna Kumar T S M
2026-12-04  7:21     ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 10/14] powercap/dtpm_cpu, hotplug: Update name & callback to match the hotplug state Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-04  7:25   ` Prasanna Kumar T S M
2026-12-04  7:25     ` Prasanna Kumar T S M
2026-12-04 12:40   ` Rafael J. Wysocki (Intel)
2026-12-04 12:40     ` Rafael J. Wysocki (Intel)
2026-12-04 12:40     ` Rafael J. Wysocki (Intel) via OP-TEE
2026-12-04 17:58     ` Srivatsa S. Bhat
2026-12-04 17:58       ` Srivatsa S. Bhat
2026-12-03 19:16 ` [PATCH 11/14] optee, cpu/hotplug: Update name to match the CPU " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-04  7:26   ` Prasanna Kumar T S M
2026-12-04  7:26     ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 12/14] debugobjects, cpu/hotplug: Update name & callback to match the " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-04  7:26   ` Prasanna Kumar T S M
2026-12-04  7:26     ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 13/14] csky, cpu/hotplug: Update name & callbacks to match their " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-04  7:28   ` Prasanna Kumar T S M
2026-12-04  7:28     ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 14/14] cpuidle/s390, cpu/hotplug: Update teardown callback to match its " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16   ` Srivatsa S. Bhat (Microsoft)
2026-12-04  7:28   ` Prasanna Kumar T S M
2026-12-04  7:28     ` Prasanna Kumar T S M
2026-12-04  8:30   ` Mete Durlu
2026-12-04  8:30     ` Mete Durlu
2026-12-03 19:52 ` [PATCH 00/14] treewide, cpu/hotplug: Align state and callback names with their sections sashiko-bot

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=sashiko-outbox-248532@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=agordeev@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=lee@kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=srivatsa@csail.mit.edu \
    --cc=wsa+renesas@sang-engineering.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.