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 D1A54606A33A 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=xLKu50RC; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=Tpmo/Zq2; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=MKzV1GX8 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:References:In-Reply-To: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:List-Unsubscribe-Post: List-Owner; bh=frQ4YRD6CJvjvSCxrqII34ae7a2dfbpZcIZzXTU6cLA=; b=xLKu50RC1mrRI/ mf3chx5HcWAlhn/DWvOGceQOZKO9ugyxlLMRXoVs7OYXKozHL4c+UAsFiL5tD3Ayw7/lr95VZcyFZ awBjdS5QfMxyJJ3RV1LT/fIuZA7CECI/6RGBrnkGV4OS8vSxe0r21TsnK0JxZHA6LitMrsHwwas5g yHz/F1ZSM+CXUvLu4HEyVf7L/TKth9xDcERD6VW1qijHqU4c5IcGbrqeWuhrgsz77KheFo6D8P4Gy gTgclGIAL7dLWYLg1EXmmGdtR7g1sPwuZUfVO+j/f260Br/0hWuQPT1uIMGUbnm0+gejVo6kVhSJA jRqllC/IFbzzGJPJLFqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZLUH-0000000GgBA-38vs; Fri, 04 Dec 2026 05:05:37 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZLTj-0000000Gg70-2GXy for linux-arm-kernel@bombadil.infradead.org; Fri, 04 Dec 2026 05:05:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type:Content-ID:Content-Description; bh=frQ4YRD6CJvjvSCxrqII34ae7a2dfbpZcIZzXTU6cLA=; b=Tpmo/Zq2IkD1VNsUdcGvLoq4Ua PKbODKRq8wPNPWyMDJNq+Qe33lwT/vjPSOsaOcyRfdAnW52Nl1D0sEUNGTgsnJWnNGG/WwvA1t/fb dDsLrK8C5+Aaa1uJSLtLYpR0ZqfXA43VgQlDTDFKYpb6uOY0msKtN5izBNjgKNPbf5HgMlNjazgNo IxapVCUOZrcdZCIov3JI1ww0YbyhYijFUCvLgXMPA5nih4e7GhmZAWoCd35+N1vXoZAR/d9XGOeIV PSxnPb6eZEoJpojUTuA9AMTkvbIOgOF5Ed7LjdNHoU93PAVNOGJ8MgeV0ZFPLsdWX9e46zVHgTYnq vUWJJ2Qw==; Received: from linux.microsoft.com ([13.77.154.182]) by desiato.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZLTg-0000000Dzgo-1iD5 for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 05:05:02 +0000 Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 7D8B720B716C; Thu, 3 Dec 2026 21:04:55 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7D8B720B716C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796360695; bh=frQ4YRD6CJvjvSCxrqII34ae7a2dfbpZcIZzXTU6cLA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MKzV1GX8VJ2LCyzoqLI82OlVIYji9swhrEJpOV/KkUZwVvEb14wVZwJi6eRPhQ0Mc kUnWYvr1xB1JVhc83ZD88/xFX528SnezdANrHKAROFUxeif2+FMo5y3Z+8xIRMVSTW JK1MuFAQ2+uFJOP+yzOGPH9HW9CeRs5iQn39yKMo= 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 3/5] mailbox: zynqmp-ipi: Remove redundant percpu IRQ disable Date: Thu, 3 Dec 2026 21:04:51 -0800 Message-ID: <20261204050453.18005-4-ptsm@linux.microsoft.com> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20261204050453.18005-1-ptsm@linux.microsoft.com> References: <20261204050453.18005-1-ptsm@linux.microsoft.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-19.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_CR_TRAILER,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-20261204_050500_660486_E28A57F8 X-CRM114-Status: UNSURE ( 9.28 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) 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" Removing the registered CPU hotplug state already invokes the teardown callback on every online CPU disabling the SGI percpu interrupt. The additional on_each_cpu() is redundant, and on hotplug registration failure it disables an interrupt that was never enabled. Remove xlnx_disable_percpu_irq() and its on_each_cpu() call. Signed-off-by: Prasanna Kumar T S M --- drivers/mailbox/zynqmp-ipi-mailbox.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c index b978f4e9f830..ccc1d2233cbe 100644 --- a/drivers/mailbox/zynqmp-ipi-mailbox.c +++ b/drivers/mailbox/zynqmp-ipi-mailbox.c @@ -799,15 +799,6 @@ static int xlnx_mbox_cpuhp_down(unsigned int cpu) return 0; } -static void xlnx_disable_percpu_irq(void *data) -{ - struct zynqmp_ipi_pdata *pdata; - - pdata = *this_cpu_ptr(&per_cpu_pdata); - - disable_percpu_irq(pdata->virq_sgi); -} - static int xlnx_mbox_init_sgi(struct platform_device *pdev, int sgi_num, struct zynqmp_ipi_pdata *pdata) @@ -882,8 +873,6 @@ static void xlnx_mbox_cleanup_sgi(struct zynqmp_ipi_pdata *pdata) cpuhp_remove_state(pdata->hp_state); if (pdata->virq_sgi) { - on_each_cpu(xlnx_disable_percpu_irq, NULL, 1); - irq_clear_status_flags(pdata->virq_sgi, IRQ_PER_CPU); free_percpu_irq(pdata->virq_sgi, &per_cpu_pdata); irq_dispose_mapping(pdata->virq_sgi); -- 2.49.0