From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796366762; b=kCEDbNQRQ+GYKr/Y0/KLBc1meQTm5mvpC+YeOYHg7T7vCiy1A87ZP0jRxo9rEJM+AZcz SoR6OAb85a3WfYbfSBzyZibcPqWnR5v0k+oUzy+dXnp2RGyli/5iAI5TTo0KNwSYYpLbQ owWM3WRq5lJEnoQK/0skjWkhufsyGf/bLxXRykS/Zi1xG+JVYnZC/sJiq47XA57ZtFxp8 0n38aMQV55otGlOrjk2qJaipIvi7sSyETCyZU8TuEPjLOx9lYi8azpp8RoVGqj9virgfv AjMZlHhD++owGEd4tC3THW/fPWoVMXedAhQLh6pZKu7X9C3ZayvJN4KF95Qkm5p3kVQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796366762; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=LPlR0wz5719Z3rE5LgTY0KN/eQwdQY0iBBA+T6EFwcA=; b=wcrVk9Lp0I8W0fHNeYNUUVFPwwe32+X1/8DifELrRl+WqQOKJCpVmmx//rY4IOAnB9gW w2Z3sdYBjcz3fJvwm/upa5abr2s6vyyGj6h4BHkGZiOunCGy15rdz9NSNMfD3s+PhY3fK riAOqWfs7I6VVKocY5MprqBoa+rIbTNwCl4Fozqpr0XiFkGf+r9iPFvt4ucTUbrHgifSv WovfYli95OM30aqaxmzxY1x+jGTrZSVc0AfnWwnrSGPmSwCsVnwoj9+qctCpOP9vt5Q4O +gXlacr6PGES9RtM47UMhea0cZ7D8fJc0IFM694bOk0DvT3m2T8/riKtrPYpvW2or/Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=g4fjAu24; arc=none smtp.remote-ip=13.77.154.182 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29AAB606A69D; Fri, 4 Dec 2026 06:46:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 29AAB606A69D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=g4fjAu24 Received: from [10.94.176.68] (unknown [52.172.102.222]) by linux.microsoft.com (Postfix) with ESMTPSA id CD86720B716A; Thu, 3 Dec 2026 22:45:40 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com CD86720B716A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796366760; bh=LPlR0wz5719Z3rE5LgTY0KN/eQwdQY0iBBA+T6EFwcA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=g4fjAu24tA0eMu/4+T/hcQEclfVyB2Brm/zt8ctWQ2fN9Z94mF+uEXQQokb8teHP3 wsAaS0VpiifzIN7P2Ufmy2NtCka+dF5huyxBLxIvp+Lj4Fghazoc6V5O6WYU2Y4JGF okwWjq+Psf8o0gGwQpYXisn1bRA66FwCY7rKn9fU= Message-ID: <7abbbe32-3c89-4a59-964a-a18cde767996@linux.microsoft.com> Date: Fri, 4 Dec 2026 12:15:38 +0530 X-Mailing-List: linux-csky@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 05/14] cpuidle, cpu/hotplug: Update name & callbacks to match their hotplug states To: "Srivatsa S. Bhat (Microsoft)" , Jassi Brar , Michal Simek , Saeed Nowshadi , Tanmay Shah , Tejas Patel , Rajan Vaja , Greg Kroah-Hartman , Abhyuday Godhasara , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Heinrich Schuchardt , Anup Patel , Conor Dooley , Caleb James DeLisle , Daniel Lezcano , Thomas Gleixner , Maxime Coquelin , Alexandre Torgue , Herve Codina , Chris Packham , Markus Stockhausen , Sander Vanheule , Lorenzo Pieralisi , Sudeep Holla , Ulf Hansson , "Rafael J. Wysocki" , Christian Loehle , Anup Patel , Atish Patra , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , Alexander Shishkin , Yeoreum Yun , Radu Rendec , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Lee Jones , Pavel Machek , Griffin Kroah-Hartman , Lukasz Luba , Jens Wiklander , Sumit Garg , Etienne Carriere , Andrew Morton , Zqiang , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Jiri Olsa , Ian Rogers , Adrian Hunter , Guo Ren , Mao Han , Mete Durlu , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Palmer Dabbelt , linux-riscv@lists.infradead.org, linux-mips@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, coresight@lists.linaro.org, linux-leds@vger.kernel.org, op-tee@lists.trustedfirmware.org, linux-perf-users@vger.kernel.org, linux-csky@vger.kernel.org, linux-s390@vger.kernel.org, Saurabh Sengar , Thara Gopinath References: <20261204-fix-cpuhp-state-names-v1-0-32e62361ce1d@csail.mit.edu> <20261204-fix-cpuhp-state-names-v1-5-32e62361ce1d@csail.mit.edu> Content-Language: en-US From: Prasanna Kumar T S M In-Reply-To: <20261204-fix-cpuhp-state-names-v1-5-32e62361ce1d@csail.mit.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04-12-2026 00:46, Srivatsa S. Bhat (Microsoft) wrote: > The PSCI and RISC-V SBI idle drivers register their hotplug callbacks at > CPUHP_AP_CPU_PM_STARTING, but both state names end in ':online'. > This state belongs to the STARTING section, whose callbacks run with > interrupts disabled, not to the ONLINE section. > > Change both suffixes to ':starting', following the naming convention > documented in Documentation/core-api/cpu_hotplug.rst. > > Also, rename the registered CPU hotplug startup and teardown callbacks > to match the states that they are associated with. > > No functional change intended, except for the update to the name string, > which gets reflected in sysfs output and instrumentation. > > Fixes: 9c6ceecb6541 ("cpuidle: psci: Support CPU hotplug for the hierarchical model") > Fixes: 6abf32f1d9c5 ("cpuidle: Add RISC-V SBI CPU idle driver") > Signed-off-by: Srivatsa S. Bhat (Microsoft) > --- > drivers/cpuidle/cpuidle-psci.c | 10 +++++----- > drivers/cpuidle/cpuidle-riscv-sbi.c | 10 +++++----- > 2 files changed, 10 insertions(+), 10 deletions(-) > > diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c > index 3c48876aef85..fbb349a53591 100644 > --- a/drivers/cpuidle/cpuidle-psci.c > +++ b/drivers/cpuidle/cpuidle-psci.c > @@ -119,7 +119,7 @@ static int psci_enter_s2idle_domain_idle_state(struct cpuidle_device *dev, > return __psci_enter_domain_idle_state(dev, drv, idx, true); > } > > -static int psci_idle_cpuhp_up(unsigned int cpu) > +static int psci_idle_cpu_starting(unsigned int cpu) > { > struct device *pd_dev = __this_cpu_read(psci_cpuidle_data.dev); > > @@ -133,7 +133,7 @@ static int psci_idle_cpuhp_up(unsigned int cpu) > return 0; > } > > -static int psci_idle_cpuhp_down(unsigned int cpu) > +static int psci_idle_cpu_dying(unsigned int cpu) > { > struct device *pd_dev = __this_cpu_read(psci_cpuidle_data.dev); > > @@ -208,9 +208,9 @@ static void psci_idle_init_cpuhp(void) > int err; > > err = cpuhp_setup_state_nocalls(CPUHP_AP_CPU_PM_STARTING, > - "cpuidle/psci:online", > - psci_idle_cpuhp_up, > - psci_idle_cpuhp_down); > + "cpuidle/psci:starting", > + psci_idle_cpu_starting, > + psci_idle_cpu_dying); > if (err) > pr_warn("Failed %d while setup cpuhp state\n", err); > } > diff --git a/drivers/cpuidle/cpuidle-riscv-sbi.c b/drivers/cpuidle/cpuidle-riscv-sbi.c > index eacffd4c02fe..94e9c54ebdd6 100644 > --- a/drivers/cpuidle/cpuidle-riscv-sbi.c > +++ b/drivers/cpuidle/cpuidle-riscv-sbi.c > @@ -144,7 +144,7 @@ static int sbi_enter_s2idle_domain_idle_state(struct cpuidle_device *dev, > return __sbi_enter_domain_idle_state(dev, drv, idx, true); > } > > -static int sbi_cpuidle_cpuhp_up(unsigned int cpu) > +static int sbi_cpuidle_cpu_starting(unsigned int cpu) > { > struct device *pd_dev = __this_cpu_read(sbi_cpuidle_data.dev); > > @@ -154,7 +154,7 @@ static int sbi_cpuidle_cpuhp_up(unsigned int cpu) > return 0; > } > > -static int sbi_cpuidle_cpuhp_down(unsigned int cpu) > +static int sbi_cpuidle_cpu_dying(unsigned int cpu) > { > struct device *pd_dev = __this_cpu_read(sbi_cpuidle_data.dev); > > @@ -175,9 +175,9 @@ static void sbi_idle_init_cpuhp(void) > return; > > err = cpuhp_setup_state_nocalls(CPUHP_AP_CPU_PM_STARTING, > - "cpuidle/sbi:online", > - sbi_cpuidle_cpuhp_up, > - sbi_cpuidle_cpuhp_down); > + "cpuidle/sbi:starting", > + sbi_cpuidle_cpu_starting, > + sbi_cpuidle_cpu_dying); > if (err) > pr_warn("Failed %d while setup cpuhp state\n", err); > } > Looks good to me. Reviewed-by: Prasanna Kumar T S M