DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] mempool/octeontx: use smp instead of io barrier
@ 2018-01-04 11:39 Pavan Nikhilesh
  2018-01-08  4:05 ` santosh
  2018-01-08  4:40 ` [dpdk-dev] [PATCH v2] mempool/octeontx: fix improper memory barrier Pavan Nikhilesh
  0 siblings, 2 replies; 4+ messages in thread
From: Pavan Nikhilesh @ 2018-01-04 11:39 UTC (permalink / raw)
  To: jerin.jacob, santosh.shukla, dev; +Cc: Pavan Nikhilesh

Use smp barrier instead of IO barrier when sending mbox request as the
write has to be reflected between cores not IO devices.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
---
 drivers/mempool/octeontx/octeontx_mbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mempool/octeontx/octeontx_mbox.c b/drivers/mempool/octeontx/octeontx_mbox.c
index 9525da1aa..6c6900389 100644
--- a/drivers/mempool/octeontx/octeontx_mbox.c
+++ b/drivers/mempool/octeontx/octeontx_mbox.c
@@ -128,7 +128,7 @@ mbox_send_request(struct mbox *m, struct octeontx_mbox_hdr *hdr,
 
 	/* Write the msg header */
 	rte_write64(new_hdr.u64, ram_mbox_hdr);
-	rte_io_wmb();
+	rte_smp_wmb();
 	/* Notify PF about the new msg - write to MBOX reg generates PF IRQ */
 	rte_write64(0, m->reg);
 }
-- 
2.15.1

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

end of thread, other threads:[~2018-01-12 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-04 11:39 [dpdk-dev] [PATCH] mempool/octeontx: use smp instead of io barrier Pavan Nikhilesh
2018-01-08  4:05 ` santosh
2018-01-08  4:40 ` [dpdk-dev] [PATCH v2] mempool/octeontx: fix improper memory barrier Pavan Nikhilesh
2018-01-12 17:25   ` Thomas Monjalon

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