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=1796360696; b=bpTiYAI0MZu59Ptn/LNH+CaIDxw0Zt7JRCFoibI97KUxqfxLgmV740oc8PPmqkFvQ3dT hqIKgFrzDGM3Z9rtF3AhPqVD+ovCdIRRmomvkELGFHQfUV7zGQ9KtslkSMTCYcDhINjzV lKdjGlFN3SgEyX9pI1VYx5FOZhzum3PENFaNccI5dM/+21WSeVqihKvkyVrMisWcsU2sF iGpYAix3hViLUCEG5VWAiPCxTNEqYgG092BmSkTwSEqac0wFfx+VYq+4b6B0iAnoYzM/N +OnjK2+2lZ1+Ef/htSaagagH1s1nCfRJ+QG0bmW1m3zPq/JVPc0JzfKUo9cz7tKX1DA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796360696; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Spam-Status:X-Spam-Checker-Version; bh=frQ4YRD6CJvjvSCxrqII34ae7a2dfbpZcIZzXTU6cLA=; b=CQ1K52/LEQd7HkgHT9f654BWA3gS+yeVB0FwTlFkyshkHnFPVti/zCwc2qjZ/8Ot+bey N56mONiGdSXwyzrsNr7GSSLY3jwZsMbkIY96rPC2uGs1PXyZc0neBNl0idRyJCfLC6fGh l2zNRTQxIvdG7BolSgPzZeUbDa5cLvMNEqAz/uug2L4wR1LkkJetMJxsaXRZ4nrFpTWrj 27wPthkBWXCyejjukE1qtPrmtMiD1XOc5txzCIXoQF+UAmjgGT1xz/3FEJ2k2DP8kQYSO QF7aCgj7MW/ve2buu03dlD7J26DJkR+/FUcUDtIhEGVFrlskqLU0QQBUuEbZrMoJlcg== 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=MKzV1GX8; 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 2678B606A689 for ; Fri, 4 Dec 2026 05:04:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2678B606A689 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=MKzV1GX8 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-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-Transfer-Encoding: 8bit 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