linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arch/powerpc: Remove unused function icp_native_cause_ipi_rm()
@ 2025-01-01 13:42 Gautam Menghani
  2025-01-11 17:14 ` Ritesh Harjani (IBM)
  2025-02-26  4:46 ` Madhavan Srinivasan
  0 siblings, 2 replies; 3+ messages in thread
From: Gautam Menghani @ 2025-01-01 13:42 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, naveen, maddy
  Cc: Gautam Menghani, linuxppc-dev, linux-kernel

Remove icp_native_cause_ipi_rm() as it has no callers since
commit 53af3ba2e819("KVM: PPC: Book3S HV: Allow guest exit path to have
MMU on")

Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
---
 arch/powerpc/include/asm/xics.h       |  1 -
 arch/powerpc/sysdev/xics/icp-native.c | 21 ---------------------
 2 files changed, 22 deletions(-)

diff --git a/arch/powerpc/include/asm/xics.h b/arch/powerpc/include/asm/xics.h
index 89090485bec1..60ef312dab05 100644
--- a/arch/powerpc/include/asm/xics.h
+++ b/arch/powerpc/include/asm/xics.h
@@ -31,7 +31,6 @@
 #ifdef CONFIG_PPC_ICP_NATIVE
 extern int icp_native_init(void);
 extern void icp_native_flush_interrupt(void);
-extern void icp_native_cause_ipi_rm(int cpu);
 #else
 static inline int icp_native_init(void) { return -ENODEV; }
 #endif
diff --git a/arch/powerpc/sysdev/xics/icp-native.c b/arch/powerpc/sysdev/xics/icp-native.c
index 700b67476a7d..4e89158a577c 100644
--- a/arch/powerpc/sysdev/xics/icp-native.c
+++ b/arch/powerpc/sysdev/xics/icp-native.c
@@ -145,27 +145,6 @@ static void icp_native_cause_ipi(int cpu)
 	icp_native_set_qirr(cpu, IPI_PRIORITY);
 }
 
-#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
-void icp_native_cause_ipi_rm(int cpu)
-{
-	/*
-	 * Currently not used to send IPIs to another CPU
-	 * on the same core. Only caller is KVM real mode.
-	 * Need the physical address of the XICS to be
-	 * previously saved in kvm_hstate in the paca.
-	 */
-	void __iomem *xics_phys;
-
-	/*
-	 * Just like the cause_ipi functions, it is required to
-	 * include a full barrier before causing the IPI.
-	 */
-	xics_phys = paca_ptrs[cpu]->kvm_hstate.xics_phys;
-	mb();
-	__raw_rm_writeb(IPI_PRIORITY, xics_phys + XICS_MFRR);
-}
-#endif
-
 /*
  * Called when an interrupt is received on an off-line CPU to
  * clear the interrupt, so that the CPU can go back to nap mode.
-- 
2.47.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arch/powerpc: Remove unused function icp_native_cause_ipi_rm()
  2025-01-01 13:42 [PATCH] arch/powerpc: Remove unused function icp_native_cause_ipi_rm() Gautam Menghani
@ 2025-01-11 17:14 ` Ritesh Harjani (IBM)
  2025-02-26  4:46 ` Madhavan Srinivasan
  1 sibling, 0 replies; 3+ messages in thread
From: Ritesh Harjani (IBM) @ 2025-01-11 17:14 UTC (permalink / raw)
  To: Gautam Menghani, mpe, npiggin, christophe.leroy, naveen, maddy
  Cc: Gautam Menghani, linuxppc-dev, linux-kernel

Gautam Menghani <gautam@linux.ibm.com> writes:

> Remove icp_native_cause_ipi_rm() as it has no callers since
> commit 53af3ba2e819("KVM: PPC: Book3S HV: Allow guest exit path to have
> MMU on")
>
> Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
> ---
>  arch/powerpc/include/asm/xics.h       |  1 -
>  arch/powerpc/sysdev/xics/icp-native.c | 21 ---------------------
>  2 files changed, 22 deletions(-)

Indeed there are no callers left of this function. Great catch!

Looks good to me. Please feel free to add - 
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>

-ritesh


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arch/powerpc: Remove unused function icp_native_cause_ipi_rm()
  2025-01-01 13:42 [PATCH] arch/powerpc: Remove unused function icp_native_cause_ipi_rm() Gautam Menghani
  2025-01-11 17:14 ` Ritesh Harjani (IBM)
@ 2025-02-26  4:46 ` Madhavan Srinivasan
  1 sibling, 0 replies; 3+ messages in thread
From: Madhavan Srinivasan @ 2025-02-26  4:46 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, naveen, Gautam Menghani
  Cc: linuxppc-dev, linux-kernel

On Wed, 01 Jan 2025 19:12:49 +0530, Gautam Menghani wrote:
> Remove icp_native_cause_ipi_rm() as it has no callers since
> commit 53af3ba2e819("KVM: PPC: Book3S HV: Allow guest exit path to have
> MMU on")
> 
> 

Applied to powerpc/next.

[1/1] arch/powerpc: Remove unused function icp_native_cause_ipi_rm()
      https://git.kernel.org/powerpc/c/65acbd1285f7fe8c8b82cb90e4db923db5b9fe03

Thanks


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-26  4:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-01 13:42 [PATCH] arch/powerpc: Remove unused function icp_native_cause_ipi_rm() Gautam Menghani
2025-01-11 17:14 ` Ritesh Harjani (IBM)
2025-02-26  4:46 ` Madhavan Srinivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).