From: Pavan Nikhilesh Date: Mon, 8 Jan 2018 04:40:43 +0000 (+0530) Subject: mempool/octeontx: fix improper memory barrier X-Git-Tag: spdx-start~710 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b6f26c9db26482d0e8c004b138aa72bdf5f6c975;p=dpdk.git mempool/octeontx: fix improper memory barrier Use smp barrier instead of IO barrier when sending mbox request as the write has to be reflected between cores not IO devices. Fixes: 6da9d24574db ("event/octeontx: add mailbox support") Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh Acked-by: Santosh Shukla --- diff --git a/drivers/mempool/octeontx/octeontx_mbox.c b/drivers/mempool/octeontx/octeontx_mbox.c index 640a58d3da..28d8c8bb0c 100644 --- a/drivers/mempool/octeontx/octeontx_mbox.c +++ b/drivers/mempool/octeontx/octeontx_mbox.c @@ -100,7 +100,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); }