From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0046.outbound.protection.outlook.com [104.47.36.46]) by dpdk.org (Postfix) with ESMTP id A5B581B1A7; Mon, 8 Jan 2018 05:41:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VeYVujvXMVQC4wwvdoXSp5if0OphVTzFEMOwZTjUeu8=; b=UYusmVkZff+tri6He9hRHSQTwCwVvUbvXYSHOdQ1FgrQdavtG7gINoyPgoCAzVn9di9EKmoaVX+IneCY7h4nJ2AMzo0mgWvbobXYmNOwDjpMhfBHXlNpWPYzOHFkFTNDMVl3oHkcjlpsF8y/czixVzgOjMh7Cy70y9MpkSS5RCs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by CY4PR07MB3461.namprd07.prod.outlook.com (10.171.252.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Mon, 8 Jan 2018 04:41:15 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, dev@dpdk.org Cc: Pavan Nikhilesh , stable@dpdk.org Date: Mon, 8 Jan 2018 10:10:43 +0530 Message-Id: <20180108044043.25596-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180104113912.12645-1-pbhagavatula@caviumnetworks.com> References: <20180104113912.12645-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: HK2PR04CA0082.apcprd04.prod.outlook.com (10.170.154.154) To CY4PR07MB3461.namprd07.prod.outlook.com (10.171.252.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2f381587-0a43-4f00-4537-08d556520e91 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3461; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 3:wS1B4Yy6dUjfsoaLCFTj0T5d3YpuWzdj+J8/DzJI6iu1cCfPCykMNuf09FlPLwuD+cmloJHjXBn7fsnXmp8rLg+LMhm7bIzcsgv12MjZNe6pGz8M7YVT90xkuNwX3Q5JhbEBovb8Rap6bI1bNYriimREexi76LJipr9wsGZi2wCOJjarTLTsXLpbdbL3NgHeWK5LSiFIklp4Bj3p4J4wlBQL7psrjsEQnh65yzIHmQvcvf3Cfm968mp5SFSPdUDv; 25:J8Jy+Dvhyv4JRwa3d2IVnqIL4iMkAjVjw8Fc4g8O0mezAKCWi641ZYtLmKpIU/mOjYY6qx9Kk+zHO0Ya//8x5IG9UpP7Mmi5B+1uFVldOcoZdnutmJv+eD2jt2bHGUbKFRU7tC76d9ldvjvwaR75y/gL7OHmOmFb5zK3YlgMH1EAqR22TfA+JvoUu3tGFM79AMwywl7Ck0I8uS8WD5yk9vZW4+KNnua+kQgLIKR98fp4WAd28Q9P75/celmpV4Qxzpak6if4lWIsiZqUrw+0AIjaNXn9uYZOfvMxXCrvWw4E+xKNFyFmmdBLj3z1pZ3IGfHgeNv7PEkiqEAvfrcfPQ==; 31:dOT7JglRf2vn2d/lXcyrvxuQk00z5PtYYcwp1r++DRoZtHJmTEX0TqZ2obI/0TIudzqmmcAP/rkpAtZXRW/qNAU1U9w+xhaFx+fsl/DPmtYihz+j7oLjS9JCTfrZ1+KgbdA3Lj2+XY3jESe1jdCJWY4j3rXA1QAvAtRATug4puGrqGd6NgjPyD3+Bcf4vpsHEpmKJhNq6NsdZl+0oaL35qVoqlJ5kKhYGQkTvMVIgVM= X-MS-TrafficTypeDiagnostic: CY4PR07MB3461: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 20:/t7eiHwCYztBkpSEOOhX4n/B4lK9soz9w6DRc2nOMr3sr9X+p9cjp8Ms+4rPTbEuzP5DNKkPCL3S0BWKagwuGov3GDQtuU6rsizgcKLyu2wEi0O4s/MFYV+Vw7RzZq+2HmAQjfTMNu+mHp9zhqOxtmuZs5dvaUFhVk3FtST2br3JxuNqnHrpyyHL4OtSLS/oreqLd/StwNIh8o3Ks/1YsWfEYr+XVV7yxlfCjmmkCfDVkbvc4uIQQ1ZhjugXeUiyQXQbKqb9gco3sP8p59KIZ9zn3jH1bQU+qdchLzuMHaOpkrkO6qcdjCfFjwdfMfzlB9HIaWhLhSPEKHdey6NrXqKWax12OtZ2NQE+1C+8pcztwEjkncptK5n1N/4hDQLC9kYhNzj5oamI5netjOpUSAxXcTzL1yHIVFknfjIfedFeBWM1ru2S7rmNTqSNlPy/80dtQRNjIlMimNkTKpBmdX25AwFfnZ0qaWxLZGviO9uLCd6FhtwXJEFZFud4aGIksIeRWkMAJ7D/SRfr2kna9rdpZpu1HGTw3o3Ftdhcl/DTy7XS3XMqvbLDVRuKoFbJ7m7bP00fdqUGySN6aGgH0arpGwb1kcvscNKlEdLLtwk=; 4:nXBkaVLpjT90GLH7L3ZlAR6yhWfXSxzzGEMFRQY/u635UPbXkubyi2bky8tK3m2IPFc5GMQpOz8SuFZjVaIUzfR3BIMPDIIPprIYQgu4JlD6YgttBc1CNzSmu0X23tlOs2Rh8pwCNy1xURcmzzIYqTIH6qKG0wouqnYSGkwUFT6Fp+LdvkhDnHSrFgypjc0l/IeG/mhF9JpTiCKBmAxqhuCoy6EJxgUxMDvmv9VITueKhuJCP4ZMwhTv8Dv3Oh+ho/7mRwAvQknKgXNSFXpedw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(10201501046)(3002001)(3231023)(944501075)(6041268)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:CY4PR07MB3461; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3461; X-Forefront-PRVS: 054642504A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(376002)(39380400002)(366004)(346002)(396003)(39850400004)(199004)(189003)(53936002)(6666003)(72206003)(81166006)(50466002)(47776003)(42882006)(2950100002)(478600001)(81156014)(36756003)(8676002)(48376002)(50226002)(5660300001)(6512007)(8936002)(6486002)(68736007)(16526018)(66066001)(97736004)(76176011)(1076002)(51416003)(52116002)(4326008)(25786009)(2906002)(5009440100003)(3846002)(450100002)(105586002)(6506007)(316002)(305945005)(6116002)(386003)(106356001)(59450400001)(16586007)(7736002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3461; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3461; 23:2xayfJUx/91kLvs2oI92G9gquXxwzl5oTlgga8Npf?= =?us-ascii?Q?vO8ac3Frda5k4/WM8ApldtOx7ZlM0gMc8m1kafqZgDFCfhs32+at/ODgXqw0?= =?us-ascii?Q?WYRqE9miy7xXlJ2hSGpCjCTS20iZ1t2KacVuwULTFoCUm+8nab7nYiKISImt?= =?us-ascii?Q?bVXt0tpri9oa6MaXguBejKs7lBCrRrqbqEUl0LmLUqKAOGmeAhAtKBYDvUfu?= =?us-ascii?Q?JFefPDUE78PILt734VX1T5QhEiX1axN1lHcNqXSloU+CZWsy1cPx63a44zTb?= =?us-ascii?Q?JpCh1imeXcNwJq3nY00PTPkcPenj/oFIO9U7r8nD5w2Yyo5ls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cDdm6?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 6:LH9Dv600f7Io3tdU2uz7076YL6RuXZZrm8FLNTggt3T9vdFUzf02q7VHAB+rqI6cmbpWJWJhfKxxe9IWUT/9rMQJ7w1+2soqJ7s5kZXJ3iQelLGJMmewgVTiTqQ2CVamozab8DExne/LdLmBwRTi51Blp0lCh/yVYg6CBmdIBPMvN09ej+JfLiMfXqWAkuY18mIeQcYwhrNB+aWnvPffNnYRn9+1TEur+IR7WbyHfL64mIJEYnBfJNvtuYoOTjUiR8efY4trYhEL5irGu8FA56Fa/e38eQ9oxFuJhzo2k/lU7e22FsB1G8JDbSzkP5s9QRBjnofMV9HEtrgc4mJdfXCy13C3CrB4SgIlv+ZZWhE=; 5:e87d4DQyvtlFgZN06CcDItyDzqxaN3qW3UqGUyiHwbTWygPN+fzIWlTys/827VuPCuXa2wD8/gO2GHYp56/5OCVrHXXpDc4VZZIGuLizkQoG8xbBAJvhfWCztHyeLgjnF82h3CKJmwKT01BRxf+eWxj1Mbq/v4s+wA/Z/9RYEQ0=; 24:o6yQZBAgNBSmrWWa7XGLfDuQT2CX/+hlt8PHiLvAdYF5+Qy0kZy8NRJ4wv/agxt47Y7YnhtAD4gX4r7QuzZ7fCEFkf0IVlE9DEQFOr9yAF0=; 7:TRT5XyPRl5d1YLsgaLayTpmvtOyEoi0z7VPQbAizPq/DE7yx/qQaxcdB+YakI1tZOUgODRv7hHwEdakJZBvLR5I5xLV0A2QNzstcL8pKGdf/0CMnIYjUaIM8Cc1lYVpjrEYwsFbiSp6TPQyvxePFBTzLffOQrVoVcwCl2SKt3EJieANLgiDF6hgkagT8w9z1wFR+dcE0ncahhUU69NN5eSkeQy0Q/h8eIlD+mMGalGQl8hIv6aHyGLMN7Qc5hCt4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 04:41:15.5596 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2f381587-0a43-4f00-4537-08d556520e91 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3461 Subject: [dpdk-dev] [PATCH v2] mempool/octeontx: fix improper memory barrier X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 04:41:20 -0000 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 --- 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.14.1