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 7F5E41B1BF for ; Wed, 24 Jan 2018 16:41:35 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2E7E722714; Wed, 24 Jan 2018 10:41:35 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:41:35 -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=sWZrVoCIqnFvnUEKt BlfuOwbo49EgnrMoqd/Wp9mXAc=; b=Fu2a/HhT3Zvq+ziEWXAeiQQQuswpLWSk9 zt7OX329jMDB1BT4eP+4PRE7pROexiNnTt0YoaS7oMYbsb0/3zBqvHFa8Y0K1LiR mGA+fNzwu0tbsRoZJPOVJHDN+IldT6sSklsb04IsE8RH2qzGlTL/mZ1LXuVLpOqf ZXJQyulvBbQHamL6/lo2CnYated1oTYM3cETHNYgauGjlrw3sjYrA1LmLyqU7V25 pnuNomD+nmoSnFzwvVMVqussbrE0EsIXmigK8ImPf2I1MhKPT8J65DOCU1874xm0 LO0KktiDI9/tgBg9Rs+BtTWTb0BtXHIRuhdJy/NHmKzF7Nwwfk1fw== 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=sWZrVoCIqnFvnUEKtBlfuOwbo49EgnrMoqd/Wp9mXAc=; b=FICJNAgl /WW1vRlDDdx4glKqQ4EfC/C8ufwqXeu9kk6Gvjsz1alnKuFW5oG9nA9Bvs/NZxmT xXj8KHBJWy9bamO8lyeGwC7FTyhrewuq9ZPgDm3rTLmFqX/58aY4ghDdzGbGu+s/ StlBgE5/uU+UBIvTJVn1JkUpEWdsuFCLU2HAgmlT50wgRCxqL2CbZ5mm7Vl9mx1C X8yOLyysw4BZXXQaJEIDym+QMH0UgTEyOotXGGPjZDn48B8N/SjJkDg0WYcNj8a9 0mM+UvF8y7kt/EmFZdYsMfLjU1VUmD/XnlAkTP36LQcm2ZoObbbbSYoLVtySFN2j 7AEDsSFI1aw4jg== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 122C17E354; Wed, 24 Jan 2018 10:41:32 -0500 (EST) From: Yuanhan Liu To: Pavan Nikhilesh Cc: Santosh Shukla , dpdk stable Date: Wed, 24 Jan 2018 23:33:15 +0800 Message-Id: <1516808026-25523-127-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 natural alignment being optimized out' 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:41:35 -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 715ec77fa5fdfc89c52c30d671dd66442d64afb3 Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Thu, 18 Jan 2018 19:14:33 +0530 Subject: [PATCH] mempool/octeontx: fix natural alignment being optimized out [ upstream commit 9ac7f8e57290df0e1d3da6c33010feb5ccb66dfb ] The mbox messages are naturally aligned and in some cases compiler optimization might disregard natural alignment. Use volatile key word to force compiler to disable optimizing and maintain alignment. Fixes: aecb8e093b52 ("event/octeontx: introduce specialized mbox message copy") 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 6c69003..a38bfe6 100644 --- a/drivers/mempool/octeontx/octeontx_mbox.c +++ b/drivers/mempool/octeontx/octeontx_mbox.c @@ -89,7 +89,7 @@ struct mbox_ram_hdr { }; static inline void -mbox_msgcpy(uint8_t *d, const uint8_t *s, uint16_t size) +mbox_msgcpy(volatile uint8_t *d, volatile const uint8_t *s, uint16_t size) { uint16_t i; -- 2.7.4