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 C10B7606A338 for ; Fri, 4 Dec 2026 05:06:01 +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=pG9A1FRN; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=WTl1GSzi 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:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=Y5s9KgQ+FMFrL7T1VkOa/Q7xQ5jc2p2+Kl2hyM8dOYI=; b=pG9A1FRNZZA0NTj9uyBzQmNVuG NyOa9oLAxUZMQENEAGcw23PUx4ty+jtduGQ33xzaELcndiPW0X506IIpVaBTrqdzRagseBtt0Lt8+ ixkg3Uu0XcLGuCNObDPfKy5wulUNQaDcxxnkKxM+fh689lRU+vhjB5rbF4Z6e0RXmH+FNaSpZNJCO nWSg+5TK6GsT/ZU23k0HJKrTQo9GEQNDFrBhQeUXEBROFo/P85nWQw4ZESGH7AWvcr/0RcExZyAFh 0euAu2dNOwtzkMkOW6D4MXNm2DfNb5raIVEQPHnqJDoWZ7wtQHCPyf2oq26vwn7cVZHo+W5YA6ijO NQ/vnYUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZLUH-0000000GgBU-3rm9; Fri, 04 Dec 2026 05:05:37 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZLTi-0000000Gg4i-2U3O for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 05:05:08 +0000 Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id CA7EB20B7166; Thu, 3 Dec 2026 21:04:53 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com CA7EB20B7166 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796360693; bh=Y5s9KgQ+FMFrL7T1VkOa/Q7xQ5jc2p2+Kl2hyM8dOYI=; h=From:To:Subject:Date:From; b=WTl1GSziCTnn/MBNfjTy5MNDdevrWlBpPueEVDRIguDKlGKU4GoP3bGHJ1DRtyyTv 0OC0WeAFPnoEPmqOA6A09/D+v5YikihDaTlkLizqOAPSJUYdKhuux5TuJC+yB+CiCI i1XdeEZwXfaGFSV5i9VB+Y7FeT+2uL9JB7+M7Ykk= From: Prasanna Kumar T S M To: ptsm@linux.microsoft.com, 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, srivatsa@csail.mit.edu, jay.buddhabhatti@amd.com, gregkh@linuxfoundation.org, radheys@amd.com Subject: [PATCH v3 0/5] Fix CPU hotplug and SGI cleanup in Xilinx drivers Date: Thu, 3 Dec 2026 21:04:48 -0800 Message-ID: <20261204050453.18005-1-ptsm@linux.microsoft.com> X-Mailer: git-send-email 2.43.7 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_210507_068576_C312C0AD X-CRM114-Status: UNSURE ( 8.44 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.4 (----) 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" Both the ZynqMP IPI mailbox driver and the Xilinx event management driver register dynamic CPU hotplug callbacks using CPUHP_AP_ONLINE_DYN, but discard the allocated state ID and later attempt to remove CPUHP_AP_ONLINE_DYN directly. This leaves the actual callbacks dangling after driver removal and ignores hotplug registration failures. This series fixes CPU hotplug state tracking and SGI teardown in both drivers. Changes since v2: - Return cpuhp_setup_state() error directly from xlnx_mbox_init_sgi() and leave SGI teardown to the caller, as discussed on v1. - Split the request_percpu_irq() / unmapped virq_sgi cleanup fix into a separate patch. - Add cleanup patches for both drivers to remove the now-redundant on_each_cpu(xlnx_disable_percpu_irq, ...) calls. Link to v2: https://lore.kernel.org/lkml/20261130094513.2454356-1-ptsm@linux.microsoft.com/. Prasanna Kumar T S M (5): mailbox: zynqmp-ipi: Fix CPU hotplug state cleanup mailbox: zynqmp-ipi: Fix SGI cleanup on request_percpu_irq() failure mailbox: zynqmp-ipi: Remove redundant percpu IRQ disable soc: xilinx: Fix event manager CPU hotplug state cleanup soc: xilinx: Remove redundant percpu IRQ disable drivers/mailbox/zynqmp-ipi-mailbox.c | 35 ++++++++++++------------- drivers/soc/xilinx/xlnx_event_manager.c | 22 ++++++++-------- 2 files changed, 28 insertions(+), 29 deletions(-) -- 2.49.0