linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqchip/gic-v3: use dsb(ishst) to synchronize data to smp before issuing ipi
@ 2022-02-18 21:55 Barry Song
  2022-02-19  9:56 ` Marc Zyngier
  2022-02-20 15:04 ` Russell King (Oracle)
  0 siblings, 2 replies; 11+ messages in thread
From: Barry Song @ 2022-02-18 21:55 UTC (permalink / raw)
  To: maz, tglx, will, linux-kernel; +Cc: linux-arm-kernel, linuxarm, Barry Song

dsb(ishst) should be enough here as we only need to guarantee the
visibility of data to other CPUs in smp inner domain before we
send the ipi.

Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
---
 drivers/irqchip/irq-gic-v3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
index 5e935d97207d..0efe1a9a9f3b 100644
--- a/drivers/irqchip/irq-gic-v3.c
+++ b/drivers/irqchip/irq-gic-v3.c
@@ -1211,7 +1211,7 @@ static void gic_ipi_send_mask(struct irq_data *d, const struct cpumask *mask)
 	 * Ensure that stores to Normal memory are visible to the
 	 * other CPUs before issuing the IPI.
 	 */
-	wmb();
+	dsb(ishst);
 
 	for_each_cpu(cpu, mask) {
 		u64 cluster_id = MPIDR_TO_SGI_CLUSTER_ID(cpu_logical_map(cpu));
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-02-20 20:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-18 21:55 [PATCH] irqchip/gic-v3: use dsb(ishst) to synchronize data to smp before issuing ipi Barry Song
2022-02-19  9:56 ` Marc Zyngier
2022-02-19 23:46   ` Barry Song
2022-02-20  1:33     ` Barry Song
2022-02-20 13:30   ` Ard Biesheuvel
2022-02-20 15:04     ` Marc Zyngier
2022-02-20 15:05     ` Russell King (Oracle)
2022-02-20 20:09       ` Barry Song
2022-02-20 15:04 ` Russell King (Oracle)
2022-02-20 15:21   ` Marc Zyngier
2022-02-20 20:20     ` Barry Song

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).