From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D5CB606A6A1 for ; Wed, 2 Dec 2026 10:43:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=pByNeMJ8; dkim=fail reason="signature verification failed" (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=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=30CJWknGPbhpYOZpo38kLsSWNE7FKBv3mlaj3jbApB4=; b=pByNeMJ88Coq2KnJY2MVbka3s9 QjPNKzDkGOAZZTb1yMsK1D54dFbh/sPsk5fuGgozJCkKzoCfWji7dNREDg+jEDIkj6qu1O7GBmKFj VvtaOdjUXYlx7FGHbQi4CTjBRPBqS8gTyT/l3oJZSz3SdZ8NiErYWOCHNp5VtIy6y4si6vZgP+EGl jgJ6nVP6StCchtC0e1WpjAPLrbQAQpCtuK9bcAc/96EG76N1S97WAARxFB14WMQSJoR2kMt6J0+h0 Cpfz3kZiVAmt2j9iVyA6BfaXT/MgrxFlLCO9cwE4bg2LmqcAUFTdHXpV1iROFj1BK3j45bUSJingd sHlmUA0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhoM-0000000BDHD-2wOx; Wed, 02 Dec 2026 10:43:42 +0000 Received: from outgoing2021.csail.mit.edu ([128.30.2.78]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhoJ-0000000BDGk-3yUe for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 10:43:41 +0000 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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_024339_998259_F1F0F4AA X-CRM114-Status: GOOD ( 24.64 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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