From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0081.outbound.protection.outlook.com [104.47.41.81]) by dpdk.org (Postfix) with ESMTP id 707A67D30 for ; Thu, 4 Jan 2018 12:39:33 +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=nbqTpiq3AbIWI+K/gZtGhwTHNkGHNfK2UtVtncXmpnE=; b=gqnkxVmAVK6aFTpfU4HH2obkFj/7UeRPwNr+Aig9WONA58ell4AehiaEGIy+AJhAb5jOPVU89Iy97Ljfd4bLUtk/ItAy6KrwZFVblo7aZk0OquCU3lVqCG4FOxQPKS/rzm3M7wke7RHCbCt58xTahQZFD/diakjwl0nf6kEjGnQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Thu, 4 Jan 2018 11:39:29 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, dev@dpdk.org Cc: Pavan Nikhilesh Date: Thu, 4 Jan 2018 17:09:12 +0530 Message-Id: <20180104113912.12645-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BN6PR14CA0001.namprd14.prod.outlook.com (10.173.157.139) To MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0abff86a-e608-45be-046d-08d55367d235 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 3:mynT2Kf4isVRtE9+OAFGoQR39GvOhTerTSB7hdO0DjzuWj1fuxTNVa6c7b1HYAvtA6WSvqTxiJ7Wq8EP05Rv4VfWRYeGgXyxE138t3xCh5lQlSZACa19LebT0Fan5ffARKsjAM8B6QfrhpClcJW40SPRoB9P6OF78nfowZlA+820JvdvUngNoIUlz9Jaxv6OnPGUnRph1MNEzcZfgn7d1mOBG3zzuqUCl/fB4EWIju7Qe1d2fBUtEUQlflarAYFt; 25:4m00+Ug7UzM8ODqHWKqYTnatfQg7x/WUbp+QcI/NUWS8qigc8FZxrvPwsFyuzyI5cUjBc6lHZDx5gaC82tvBh7nPALS2MH9PDQ94+Uy5YjhPGBpCkw5E80hVpjDkFddZLtt5VcGI739oaC9d90yy7TcECGW8FrW6e6JRxS6HnNsBFrhOPXHE84vXjhUkgKD94aWsLrubC461L7SNn28vMw0KhPoLecKEPEkbQ8Cdg/hiIO2Gt99avyqWASl4LsZ0bPsd7W4fQA8SVYBqykoSr/oeWn2Rjbxh2qNMLkcN3LqC/5FOzWLB3RMLgedpoAAEg2bqqMeI3GKa/fFoJQ5rrA==; 31:vlMA0SjTIZ6vOgEXkkm6wPhBIfMWxLjm7mFDPUZzcSrzmqWcV9JmdWLhGkWF4Ay9mgU0ofgPKD5MkwAIbBJNvazptr9SWm7DBRbwWBLKgQ5xst8CghrqQbIpMwcieXsE0OH+fpMrFQwvYn3NTyRu3HsDx615wdjB3GVwYBBCSJ8sZ15uznL+hIm/LPDoH55XmkzPQ/mFB2/csbSEd1bStm7b+di2ek7bkohGrhEid58= X-MS-TrafficTypeDiagnostic: MWHPR07MB3469: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 20:dytT8AHc9UQGIQ6sBBjhZZoHAXa5wkGlsOk0kB29LkHWRsjaqHVHpqUEfaOTmkLrelBJnpMZ2VxT1LoR3x8ZolO/BgG+CIRh4lbpMIgKbaEsR071FuWcRilXwCx7GxUnVZ9ReKo3PDJWnag5Q3p5WBIa9cTjZyoI55cjyE0W2iV8jxRZpRm4054OASBwD6k5jYTStPJ0T5D7oT2LkV7DMGQR0/P43YD9mcTICQ/BDnbujWEr1HBjzcULZNKZ+kTXDjxkUV+MtLoO102HyskmZrLX0m/MItbNudyo5bcJ6VInPNsF8moNU2IuGIrnmDow0VVqPVb84spL4h25qrUvVa4XSgtaM/COyPMw+HHoKqLm8ycFKm09GWjg2nBGxVQfaHDuBxmNb3bWqzg6/2j8T57/Cr/H6NTp83yz6Hr+WMbD4BJL41Xyi4WMFzHyaFqP4ayd9D5P/fu6K1440y4ku31A+Qcv78jiRJQ1lqUYFOGwjDjkHJZ1hUtvCdlZNdvIz/yrloEIpZ1QWQXKZ19FsQKVB6G3oF8SdZ7lfHair+hloLNcW2d1xPTCu4RoO3IR0hBPOE1jAEEW0zwv1GWh5NVb2aLX+ruBo27R03hMHz0=; 4:JEDhrbBMaynNbiuAE5QNB0IYvumUYN3uViXB5/+kkOk3oKnSiz3SUvgWOnAqpkUjLCcfH21RaPz0kzbevcywJLQKgEtjk0kTYStraz/tEUMAK8yyQ8FjypuQW//fex93zYXT7DEy8bN3pV7ZW2OXcf1tbZQRU81j3mGduHUwCcjWOvY06gZRToNdS5tJmmqJ/OD8gzh0ciCEgj5eRTmEtyvPce4rwrvA1sdkLkY53av8WGJIfe2lhHbV+JC/PMNgrgJl4N6AapgRK3pz8SRuYw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(3231023)(944501075)(3002001)(10201501046)(6041268)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:MWHPR07MB3469; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3469; X-Forefront-PRVS: 054231DC40 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39380400002)(39860400002)(346002)(366004)(199004)(189003)(7736002)(81166006)(50226002)(16526018)(81156014)(53416004)(8936002)(66066001)(48376002)(68736007)(50466002)(5009440100003)(16586007)(316002)(47776003)(36756003)(69596002)(478600001)(25786009)(72206003)(106356001)(4326008)(105586002)(107886003)(3846002)(6486002)(6512007)(5660300001)(6116002)(2906002)(97736004)(1076002)(305945005)(42882006)(53936002)(6506007)(386003)(51416003)(59450400001)(52116002)(6666003)(8676002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3469; H:Pavan-LT.caveonetworks.com; 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; MWHPR07MB3469; 23:00456rPP3CzSvOT5pgBHBCDKXDeVp/EaZh6yKIeKy?= =?us-ascii?Q?mgPdsostZWrWNI4r7RcT6t799Qtz12c1jvLyEx6Mu5cp8doL8efo6/ojp0Ev?= =?us-ascii?Q?7b3p3EaDC+57xhdzvBRdLCffH8/C+JM1pZpZaRGUXTIk7T7L0UFONllqcier?= =?us-ascii?Q?wjzg8trFp/Vd4raeZYraTI6nEu+m0lyQO3Vdbgq+hFY9jHXXcE54yTi7fyeB?= =?us-ascii?Q?ivdiNUPQyUef030At5pd6pik/EIDjSCFMLjD4lSYAfISfXHrdMwJkpBwO7EZ?= =?us-ascii?Q?gMEV1+dOMWxOvzTimZVFrtrfYFtv3D+8YuA2jCvDbHjfz6ZXKhdKm5ocUXTW?= =?us-ascii?Q?Iezu5P1KcuLCI6khNfF1S1dege7rMm88dOX3ru1Lw4ylAjNj49vQQu9PHoG7?= =?us-ascii?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G2pMHdeMhCCqSOWgR/oJfthEqZAhOtBq8njdOKOs40kZUusnfPjkfzROqWyQpSXkTfMgTf+r5j+Dh/bl3sDHgVJ7vHy2/MwpEX7VKzIxTFY/aR79iMbsL/W8ryjY8p9mkEW1kEuJYhTo15k4wkf/KXWtBv5MyrfUl5c+9Wkm7yK2dVHgD+EhYQnZrW4f9Li2AVPS5ZNKraonqtC9GARadh4DOGaq8QutIE+zBI1+NFeV/05pbvULsebhGJEx/0IuBKUhE2/z9mKoAW7m0drjT++2k8ZuoQ0PQbcoGsFEbz6DFOr5TtgoJE4I=; 5:R41nELE5IdHAYjeYWoCjAdtgkTKiJSUQ+kBM5ljufSN461l8jsx3UvzgeAV/QauPP9wT40/x4e8LW4+QZgeesL0p2sMjQB+Sd3gKfRtoFskxBVzctOZYVgXxTrDYNiArdv27DyEkBCrNDZ+p9P0xG9y9TQk6nwuuz6QyU83QGyM=; 24:KMWCwCSc6Pm9sY2UEt/KLchm8ONsIO+uTo7oid7UFqpvxnWEj/V0OrkxNuvYJ/tpmgO1jOAhLAbElc7Nr0oTHEjAyaSSg277v7bmLKk/J9g=; 7:auDh4Pfyg7W9zPAEwcQeejMLjh8EwHUhEEji85DhczPYURBPh6nhvSBZBsVxn5wiU3KPQl3yPJnApDLv00xp2SUBkgW5bLEwV7/ZVH39yLBBJ6FVaSa22cjjUDEWA83i+jVNmT54IvP4hp2FiSFDTUq3jne5YMmU0bX7nJ5K0NsO+4Ck2jhTZ1/f0/FgoWnFuwC7ODjd7Y2TerIuGHGUtA1M/OwaquosA8fA1ewW9e/pKgtskTHVOmfJr6Pa5kbO SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2018 11:39:29.4813 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0abff86a-e608-45be-046d-08d55367d235 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3469 Subject: [dpdk-dev] [PATCH] mempool/octeontx: use smp instead of io 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: Thu, 04 Jan 2018 11:39:34 -0000 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 --- 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