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=1796368815; b=xfjeeQFWs7PY9d7aN7Ru9455iH615TyaWdSn9lAe4o2wbSxVcQd+MGy8usAI7Jv0ow19 m7QsGy4b664pZYx+dfDCmxLmg3mtr9RpzTa5J7+Hh7AD3F7bA7fg9Xe6UujDA5PzFY56H icO8mj9bhCNKVQCNo2FnEBMKtXF53cR+iSUHmAXuZzKUmmGNXyTpcORyevJ0n0Hs+zPbM YuXy2t7dgcD0H7SpTbQvU6oPf7e6zkdRR9ksvdhEAXj3bo242ox53kg+SGtNAUKqYOGj6 wla1LBOcLneCdbAjGQer32qeTTuE1VM6rqlYWwAwnZmKCnIaRRiihyeYPA5bA8/CwQQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796368815; 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=z72DBFXMi7FxVWe3OgZW3QW1oyxYXevDOfmc/WO+Ko4=; b=FkDEWVDsZGhLwAw+Cxt1Zbd3CoSihCxFGHUCgmNl5cNqbSsiCT9DvGHj3NXha8wXHFb9 bgVQp6Vf6YAJrVPpSggTs4ZSPEtxE089cZhMrgJtltxeZqACibZYMFK4+zvG2Ccecc8mW bbwvSSy22rohv+h6HjvoC8O3ER8nHX5QgmMcPztFo9bKhK3PCpNQlghQPG5tFh/DBoiGm nfg25YI1uwnRVUN1pcF1nTZzIziSn1ZT4DwRUPmC07w07T/396Fbkz6a8I8Om/1CWMQXq 0rCmJvU/oW1QRcnLWJx2fKMiSw+fVxL/FQGkbFFC9vfEcWW6PQ1b65gKoKqMRYFdDXw== 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=UEjUpHnw; 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 EC3E6606A330; Fri, 4 Dec 2026 07:20:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EC3E6606A330 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=UEjUpHnw Received: from [10.94.176.68] (unknown [52.172.102.253]) by linux.microsoft.com (Postfix) with ESMTPSA id 4614520B716C; Thu, 3 Dec 2026 23:19:53 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4614520B716C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796368813; bh=z72DBFXMi7FxVWe3OgZW3QW1oyxYXevDOfmc/WO+Ko4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=UEjUpHnwQlC/GTNSR88tOuoF3Lh+jMacgR9E73IyxNBL+DO3zrQv1rsjt/BdzafAV zGpfq3/t1Ez1s5+ACRSYW/nNDKjVXXbqbvdrXvjxUeloTOWlWFPb/2UW3dvKz68I1X tv/j3afQKiwVUo4iTbya4zAw+WgaDyseWCFTR/xs= Message-ID: Date: Fri, 4 Dec 2026 12:49:51 +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 08/14] irqchip/riscv-aplic, 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-8-32e62361ce1d@csail.mit.edu> Content-Language: en-US From: Prasanna Kumar T S M In-Reply-To: <20261204-fix-cpuhp-state-names-v1-8-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 APLIC direct-mode driver registers its CPU hotplug callbacks at > CPUHP_AP_ONLINE_DYN, but labels the state "irqchip/riscv/aplic:starting". > This is misleading because the 'starting' suffix denotes the earlier, > interrupts-disabled STARTING section, and not the ONLINE section. > > Rename it to "irqchip/riscv/aplic:online", 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: 2333df5ae51e ("irqchip: Add RISC-V advanced PLIC driver for direct-mode") > Signed-off-by: Srivatsa S. Bhat (Microsoft) > --- > drivers/irqchip/irq-riscv-aplic-direct.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/irqchip/irq-riscv-aplic-direct.c b/drivers/irqchip/irq-riscv-aplic-direct.c > index bfd11a884316..2b58db452824 100644 > --- a/drivers/irqchip/irq-riscv-aplic-direct.c > +++ b/drivers/irqchip/irq-riscv-aplic-direct.c > @@ -181,7 +181,7 @@ void aplic_direct_restore_states(struct aplic_priv *priv) > aplic_idc_set_delivery(per_cpu_ptr(&aplic_idcs, cpu), true); > } > > -static int aplic_direct_dying_cpu(unsigned int cpu) > +static int aplic_direct_cpu_offline(unsigned int cpu) > { > if (aplic_direct_parent_irq) > disable_percpu_irq(aplic_direct_parent_irq); > @@ -189,7 +189,7 @@ static int aplic_direct_dying_cpu(unsigned int cpu) > return 0; > } > > -static int aplic_direct_starting_cpu(unsigned int cpu) > +static int aplic_direct_cpu_online(unsigned int cpu) > { > if (aplic_direct_parent_irq) { > enable_percpu_irq(aplic_direct_parent_irq, > @@ -314,9 +314,9 @@ int aplic_direct_setup(struct device *dev, void __iomem *regs) > * interrupt on all CPUs > */ > cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, > - "irqchip/riscv/aplic:starting", > - aplic_direct_starting_cpu, > - aplic_direct_dying_cpu); > + "irqchip/riscv/aplic:online", > + aplic_direct_cpu_online, > + aplic_direct_cpu_offline); > } > } > > Looks good to me. Reviewed-by: Prasanna Kumar T S M