From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=128.30.2.78 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796208223; b=x053iL5acp9JJSMEKRIyj4ZEwoVW+yx07wYcriFYjyJ4ml6qrKuT22NW22grmJubiz2C RB4LE0Wbzv7y5SUtoK7+xeT5/ateB6cwSKUz1+DDl0QRwcDTI1qFV06MxrwNSZJ3Z/7Uu aZoyeJoOGEEYBxNyRDJGcraZizirQjJ360hiMVlpJJ1xWAEzXnw/4VJD0fOt13/LBdaoy wj5AcFqfzrcPYQrSFWqN0p5mGL9B7YLAC3ripzROCjfmzDQ2+z3QdGqB5JQPRX81rC3s6 zBJfOWARvCFaiY+FwJfhbMJp4vHm2GKOpDY1Lz08z7MgcbOQkoP+jb+9cj5A9WzPjSA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796208223; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=30CJWknGPbhpYOZpo38kLsSWNE7FKBv3mlaj3jbApB4=; b=rSvs1el3lTvFI1E0zikmVxITTmszRibR6QDSiN89As9oIr/OKg9Q78RDYJufeXiDkDld qU6YFWV03hk3aLqbl7P3xwYC4l74lI+t5IhXzZIbgzGpdmEcxV60BtkClo54hu0owYoUu Nby7nTdTHyVhDJogH2orfMt0sBxmt76+8X1CZP9LR8X801Qx7wgoB6LvbP48A49CVRsU9 kqb16VpPZmx5ZoXivwbnVd2EdPNxYd2tvd78NV9k3Fyv9xMUiK7O+3/w+WZ/IjWIc5EUn LgVEfVWlZhJWW6Bo1bw9lUrWdWXuSazxpfIaxJXmDwFexLTOA6FnGvWrrhyVJ9lTEvQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=csail.mit.edu; spf=pass smtp.mailfrom=csail.mit.edu; dkim=pass header.d=outgoing.csail.mit.edu header.i=@outgoing.csail.mit.edu header.a=rsa-sha256 header.s=test20231205 header.b=uJGPAOG2; arc=none smtp.remote-ip=128.30.2.78 Received: from outgoing2021.csail.mit.edu (outgoing2021.csail.mit.edu [128.30.2.78]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6E22606A332 for ; Wed, 2 Dec 2026 10:43:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A6E22606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=csail.mit.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=csail.mit.edu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outgoing.csail.mit.edu header.i=@outgoing.csail.mit.edu header.a=rsa-sha256 header.s=test20231205 header.b=uJGPAOG2 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=outgoing.csail.mit.edu; s=test20231205; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=30CJWknGPbhpYOZpo38kLsSWNE7FKBv3mlaj3jbApB4=; t=1796208219; x=1797072219; b=uJGPAOG2y4skPs7T1lW07byDyqdONZIP3nxWMQ3tmnkSvn2bVRfCcdbEHhDNVKBdctNQfzXpZx+ lSegG9VMncib7g/zOveneSHhRymPQpq6DZECuBXRKIw+Ky2A2mtyn0rg5phNyZIXchaQmD4ODWpfE QUtQrbUGJvzDQwzqqtexGMZ7HelhYG1SWxnB3rVIpVrZewh72rbZbITrhJ1BfaQE9smvFhgoRBFKJ uDEvGN/4H9NKuVEC6IsiZ7ZyNRC3kXE4rUwUdYH5lY3NAskvqPC8+jbVuNzyrrt7ZrW7VZn/n5l3L EM+5Xk4tiE99efKoAYaaQMqhrqOVkXDxEOwA==; Received: from [167.220.238.83] (helo=csail.mit.edu) by outgoing2021.csail.mit.edu with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1xYhoG-00DCBV-DM; Wed, 02 Dec 2026 05:43:36 -0500 Date: Wed, 2 Dec 2026 16:13:29 +0530 From: "Srivatsa S. Bhat" To: Prasanna Kumar T S M Cc: jassisinghbrar@gmail.com, michal.simek@amd.com, tanmay.shah@amd.com, saeed.nowshadi@amd.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ssengar@linux.microsoft.com, tgopinath@linux.microsoft.com, tejas.patel@xilinx.com, rajan.vaja@xilinx.com, abhyuday.godhasara@xilinx.com, gregkh@linuxfoundation.org Subject: Re: [PATCH v2 1/2] mailbox: zynqmp-ipi: Fix CPU hotplug state cleanup Message-ID: References: <20261130094513.2454356-1-ptsm@linux.microsoft.com> <20261130094513.2454356-2-ptsm@linux.microsoft.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Dec 02, 2026 at 04:11:38PM +0530, Srivatsa S. Bhat wrote: > Hi Prasanna, > > On Mon, Nov 30, 2026 at 01:45:12AM -0800, Prasanna Kumar T S M wrote: > > On driver removal, the CPUHP_AP_ONLINE_DYN CPU hotplug state is removed > > instead of its actual state. This can leave the mailbox driver callbacks > > dangling. Use the actual CPU hotplug state during driver removal. > > > > Hotplug registration failures are also ignored, allowing probe to > > succeed without the callbacks needed to enable interrupts on CPUs > > brought online later. > > > > This is found by code inspection. > > Minor nit: This bit of detail doesn't feel necessary to capture in the commit > message. On the other hand, if you had used a script or some automation tool > (ex: coccinelle) to find such issues, its corresponding snippet would have been > useful to include. > > > > Fixes: 6ffb1635341b ("mailbox: zynqmp: handle SGI for shared IPI") > > Cc: stable@vger.kernel.org > > Signed-off-by: Prasanna Kumar T S M > > --- > > drivers/mailbox/zynqmp-ipi-mailbox.c | 29 ++++++++++++++++++++-------- > > 1 file changed, 21 insertions(+), 8 deletions(-) > > > > diff --git a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c > > index 42d2583e44ca..843b5ecc905a 100644 > > --- a/drivers/mailbox/zynqmp-ipi-mailbox.c > > +++ b/drivers/mailbox/zynqmp-ipi-mailbox.c > > @@ -126,6 +126,7 @@ struct zynqmp_ipi_mbox { > > * @method: IPI SMC or HVC is going to be used > > * @local_id: local IPI agent ID > > * @virq_sgi: IRQ number mapped to SGI > > + * @hp_state: CPU hotplug state for SGI callbacks > > * @num_mboxes: number of mailboxes of this IPI agent > > * @ipi_mboxes: IPI mailboxes of this IPI agent > > */ > > The hp_state variable appears to be only added to the comment, and not the > actual zynqmp_ipi_pdata struct. So, how did this even build? > Argh. Please ignore this comment, I missed reading the hunk right after this, which adds the member to the struct. Sorry! > > @@ -136,6 +137,7 @@ struct zynqmp_ipi_pdata { > > unsigned int method; > > u32 local_id; > > int virq_sgi; > > + enum cpuhp_state hp_state; > > int num_mboxes; > > struct zynqmp_ipi_mbox ipi_mboxes[] __counted_by(num_mboxes); > > }; Regards, Srivatsa