From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 271011B173 for ; Wed, 24 Jan 2018 16:36:46 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D17C022378; Wed, 24 Jan 2018 10:36:45 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:36:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=IxKdKrEDXCXoX/CSg L/aakpITurC8sHMtBs/1HJ1Swo=; b=L9vo4DHWO5jWEJAFRpJJ5W7ZWG5srvAy3 Hfn81lN0nNieBhKNdUF15Bz0cLTWMoOMephIB3OYczsIuTPWgPtkRLE27Wj/Rf06 npifhON3FUNFP45Qdn1NCG5GyCOUs9i0xgSJjq91/npFrY5X5VwFvSy9QOJdDF/G XE4W94SWjJTIsE2o0qszJXvMSDae2l58THxwuvD7Ud3sVK4c4aA/V06g567qUlw8 2dDBjO1/v5RWJxCNr9eUDhWPYkoRyF+2EwZmazbtljMyhKu33zyW0InXgjRBhGJE VNAKK1PL/TMz4K6T/PRgOI2duSqzBGxcE97qZgEnMvfhH6lIapipg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=IxKdKrEDXCXoX/CSgL/aakpITurC8sHMtBs/1HJ1Swo=; b=g9F1/ZS1 928u71aTCe1UedWubsQJJAzYZCz9cRrYgNL0cVP0VgnZQ6IkSX1YEKvtlHkFyw3X M8hFDXvg1TBhA1AB6yOfVAvCjyy/Z6iPtcbnFiPM2CJ9mjsoOznX8NbXRtp/kKQi yB/Ug6wMKRzZiHCs95q1wAuabpcNNilyFzNp70gw1/bfD9s17vE3mMl4RAZZitsL kKazxcwZPUnO9yVRQi5ZgwqeTIla3OPZlnK2Ko1kLoN4KZSRHFcs2yuhJ98HgK7U MVEPiyv51KbN8gaXVl5wYrO4ROEsDHXjNXkTBfyIqL9aWlOpYhU2mTATusxLi3mr pSx337nCsEaz5A== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id BAA447E354; Wed, 24 Jan 2018 10:36:43 -0500 (EST) From: Yuanhan Liu To: Pavan Nikhilesh Cc: Santosh Shukla , dpdk stable Date: Wed, 24 Jan 2018 23:31:29 +0800 Message-Id: <1516808026-25523-21-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'mempool/octeontx: fix improper memory barrier' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:36:46 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From d925af2c087da01457f861890d06a5c288901a13 Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Mon, 8 Jan 2018 10:10:43 +0530 Subject: [PATCH] mempool/octeontx: fix improper memory barrier [ upstream commit b6f26c9db26482d0e8c004b138aa72bdf5f6c975 ] 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") Signed-off-by: Pavan Nikhilesh Acked-by: Santosh Shukla --- 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 9525da1..6c69003 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.7.4