From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AAAC7A052A; Mon, 25 Jan 2021 18:50:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6EC3B140F48; Mon, 25 Jan 2021 18:50:11 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id EE1B9140F29 for ; Mon, 25 Jan 2021 18:50:08 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10PHfLEB015623; Mon, 25 Jan 2021 09:50:04 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0220; bh=Tusi17pk52yU07cCZn08SefwYAuXoevXF/vkf8rklAg=; b=DCaARehFV6FlCPULX0tXQQy0PSIRiRidnkAA2oz4RMDw9qOJclZ2tbApWQbIFCE5q0Rs XJyHPZqeNI4ZblNJhm0JjxS7wJ9p2juL1W6Aq1/yRUov4a7O7fP6SEo20inN6RXTsshE YJrzBNTKqnRigE/3zfC5P1ltWCY/xYd4kbi7F3DLp4QkqwDqfKfaHi1gYknTjwJqSfOc VkeqqN+1IxNOonSJ6/8brPduVPhRAounqSXM38cgPL/xNFSTDgAjJA/zry0FYELtKR6a ETN4FsLA5c4n2Nxqha8cwLN2VpZp/WorD5zNCB7HxbHDinebFoWSERsb3ck4/hyJ48Xc VA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com with ESMTP id 368j1u5g0b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 25 Jan 2021 09:50:04 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 Jan 2021 09:50:03 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 Jan 2021 09:50:02 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.176) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 25 Jan 2021 09:50:02 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aRT8dHdPKdfcr2R4aahY2U3TPOWY6irggDIhrtDJRBvoMf+yByCV9Xpi8cHDWs2SoZSJPQo9C5YXZ08ECDAPaT+qJBNCZtBL1hf+TIddS/IynZyfvk/QbW12XhTlJIutawwlWZpz5fOGZsGCmAIrUUf/W7v6KOALc81ceepGRqZFr2a75EaCPuCH77sgo4Pz6SDy5il7Wqk6qKpzx4x/vTeNAHzQKdOT3UBTbhrddFpExRZDMFWdsqC05lnqU1j+3o/prEDnyrTgmHtcWkbS0AHc/dHpwihhCrAHMusFSDKPJX8HbogQIs9atlGRQpjBxri5Nt2Wsw25Xfx0SYI/wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Tusi17pk52yU07cCZn08SefwYAuXoevXF/vkf8rklAg=; b=jD1d9e5wzO6cj+gPQP36ReseaE0LZk7Eic6VdmKiPvUTG8pFIO8W02KE/AH0/u+oJq5LcxXvu2arnEh0awqbP7LoC6zuJSutvNHrxEtP41TpQV4dYVf42gZZYSOQMWRJyKlXYG/w/z62ogN9DihSdvj76ilrdG/KlLeI+Is6TwAUWSjw1A3ptxk3xkY5aViivIIvQUDbEoyJVEWV8BVqR5370D4swritWWaPlOVwiW2oe9JDf6XF9HYPzzB4lGD91MHm8wyn71dbWT6yykLpJryOfGFRLxR2N3tp84SLbPHZ5yr0BCanGTgaWzcaf6Gs3QG+YldsVrldLoFqNtluAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Tusi17pk52yU07cCZn08SefwYAuXoevXF/vkf8rklAg=; b=HBPgnPkcwKgmPkRc3ZtCq3s+B9uAqwnsLuX4+VtDeYCbRtczulxvlf2nhMa35EP+5Q7ETeuOYZqPQwpVoTvd53dpmtxU38xoMyJ1C/luG4fWlN8rrCx0ZONxviHv40WKz038lmsPJl+cuNpKjDSuaL6DivYb1LGBfTZ7CNJnbwk= Received: from CO6PR18MB3828.namprd18.prod.outlook.com (2603:10b6:5:346::20) by CO6PR18MB3860.namprd18.prod.outlook.com (2603:10b6:5:34d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.13; Mon, 25 Jan 2021 17:50:01 +0000 Received: from CO6PR18MB3828.namprd18.prod.outlook.com ([fe80::5c2c:a13a:4f3d:94df]) by CO6PR18MB3828.namprd18.prod.outlook.com ([fe80::5c2c:a13a:4f3d:94df%5]) with mapi id 15.20.3784.019; Mon, 25 Jan 2021 17:50:01 +0000 From: Pavan Nikhilesh Bhagavatula To: Feifei Wang , Jerin Jacob Kollanukkaran CC: "dev@dpdk.org" , "Honnappa.Nagarahalli@arm.com" , "nd@arm.com" , Phil Yang , Ruifeng Wang Thread-Topic: [EXT] [dpdk-dev] [PATCH v1 3/5] app/eventdev: replace wmb with thread fence for perf test Thread-Index: AQHW6kRyRGp81ZYrp02OdxgQ9gYUHqo4sGsQ Date: Mon, 25 Jan 2021 17:50:01 +0000 Message-ID: References: <20210114070830.707550-1-feifei.wang2@arm.com> <20210114070830.707550-4-feifei.wang2@arm.com> In-Reply-To: <20210114070830.707550-4-feifei.wang2@arm.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [2405:201:d009:380f:50b:3c28:481f:4468] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 09484d6a-acf9-4be2-c1dc-08d8c159a3bc x-ms-traffictypediagnostic: CO6PR18MB3860: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3968; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5BT6cQ/3hrOMEGvLoJNnqGW08lUaeWSLhcYtJ8hp7pq6PM7+0htQvJdh+f6v244Px9IfvJgIlKD4OkPURKGacLdxzoakY+I3qEuWEXwscZWEmBvC8bhwkm+GRqAACnJmJoJuC0Vjff4MbmTQlRgNiV1cAZvifpVUo64xX2AvpLkPpzHm7Q+73TLt6AZwrhFLTnoLGH0EDxMnXMulSb7Tb1dIGN9wfFHdiKMiU0xjBXRzgqngvb3KZEJIevIflAEFRZeSrUN6nTgh2CHg4n3F7gKp+9f+nGRRtGsd3iKqznDiRM7cA2Xap/OZkVS00+i92x3XN8dUb0aOGOgvgzp8LjauJ/ICIt8EPTj5vrftKQ4QYcitG27SAg2alQSXDE1yIohk7lg8/UJLCZPsdxscuA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB3828.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(376002)(366004)(39860400002)(346002)(52536014)(55016002)(8676002)(86362001)(316002)(54906003)(478600001)(110136005)(6506007)(7696005)(5660300002)(9686003)(66556008)(8936002)(6636002)(83380400001)(76116006)(64756008)(66446008)(186003)(2906002)(71200400001)(66946007)(33656002)(66476007)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?E5FuY9pvZu/wbrOSVs3nlV59yZdMqD7dP3UFBcldwPU7Fq+QYS3Gull4KD6U?= =?us-ascii?Q?6shu5OIRrUoH/Eux1SuxsY7MRtU6v5q/KR++kELs0NyGtMGo2J3chhYR450o?= =?us-ascii?Q?VOi7miyadTwD7aF6kU4RC+aZxqj/nR7sKfJ73sUDfXPudwgV3jufdlVLZYFu?= =?us-ascii?Q?rrv0uHHn3eT5Zk3RmHobBhgIFnYz4FLzEXDwh6XpIpQrFpOyXf5z4CMkk4IL?= =?us-ascii?Q?PkBOz56F+UFSBvQbpURbqPPCeAQIMt5kMkQaWRmUD7wHM5X4flezs1tvysYO?= =?us-ascii?Q?LOXtGCBOxArjpfQNPjyR0u6EcOUy9xgwJp7KNF4W/3VsEFUgnh2qIf3J/P6S?= =?us-ascii?Q?LmluUMVmf3bAy+jGUZfWJCJNxKIoq9MDOr74wUVmTK6Vup/0a1v4NKbv8pM/?= =?us-ascii?Q?Bs5+ACy0djq7PdtOdIPaULFxGW8lp7wq687K1cUqJv5M32OIN579IHQD9YRj?= =?us-ascii?Q?V8ePtSbibdrTJASvOKUCdPxnKqfWAUv+R/s1OqDEP3lPrFexnk0TZL7lBGlN?= =?us-ascii?Q?cS9S6mzsKiqyHizFem4ob4TiJ8jUaPxHdJ/Ql5ZLEaA1ATy1zA91/lYaND0+?= =?us-ascii?Q?LzQu+MONxjn8lrfsnWIruk2/tMMX6uh1lIWU4WVa2aPAHUpyz/jcKawCvIZp?= =?us-ascii?Q?8N6tFbYQPCjUhCGBg1dwqOd2049oLgD3rFcV2G1d+f9jj9UrmSUUZzYi6h+h?= =?us-ascii?Q?gJ0oAu4AZATZ62wAZNcj3LDa54aqwbhyjI41poskMPxBK3Ke5TwcktDrBbrq?= =?us-ascii?Q?sR1UP3Kd0ByfjbMKvXb65wPotDxRX+Xxv9bA7OtAFBnatkh4MiwxzHcOmTm/?= =?us-ascii?Q?MRjXWNGrGztQWtARKouo/V6Tuh9Iawj398iTM94ks62VC25d6WI4H5aJlB/b?= =?us-ascii?Q?4Hn6tefwNYqDv/Ub6sVOzdnvXTxcDvgmnF6K57AjW/5PRq3fDO4z/37cR6kl?= =?us-ascii?Q?zhYwkFG4dTN8uEWJkAqaTzRkdJcaZgOFTgP7c5/5ROUi+cEpFDWEPzmM+Gll?= =?us-ascii?Q?yHfm4J2IlbS1LnV5ZH+PzccmRq8mlyfTNIIL07TAYzjxecb64W/dGhPqLMfA?= =?us-ascii?Q?Lq0Jh2FJjccRI08wjqO+LKZSe5HCs7che9BWZ/6aLqVuqHNybMvyyT9GIc7V?= =?us-ascii?Q?swPiKSDxhw83?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB3828.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 09484d6a-acf9-4be2-c1dc-08d8c159a3bc X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jan 2021 17:50:01.5226 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pZdISh+aBEGTnbilMK0rWggtIiUm37/YE2+zCxwqWJb0d8yzXTK2Gi/rrdBbMIi3QVY4sSR0NcBtbsS+iWvVTdtLzV5MrP3J5UCc/VWlzXs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB3860 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-25_07:2021-01-25, 2021-01-25 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v1 3/5] app/eventdev: replace wmb with thread fence for perf test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >Simply replace rte_smp barrier with atomic threand fence. > >Signed-off-by: Phil Yang >Signed-off-by: Feifei Wang >Reviewed-by: Ruifeng Wang Acked-by: Pavan Nikhilesh >--- > app/test-eventdev/test_perf_common.h | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >diff --git a/app/test-eventdev/test_perf_common.h b/app/test- >eventdev/test_perf_common.h >index e7233e5a5..9785dc3e2 100644 >--- a/app/test-eventdev/test_perf_common.h >+++ b/app/test-eventdev/test_perf_common.h >@@ -98,11 +98,11 @@ perf_process_last_stage(struct rte_mempool >*const pool, > { > bufs[count++] =3D ev->event_ptr; > >- /* wmb here ensures event_prt is stored before >- * updating the number of processed packets >- * for worker lcores >+ /* release fence here ensures event_prt is >+ * stored before updating the number of >+ * processed packets for worker lcores > */ >- rte_smp_wmb(); >+ rte_atomic_thread_fence(__ATOMIC_RELEASE); > w->processed_pkts++; > > if (unlikely(count =3D=3D buf_sz)) { >@@ -122,11 +122,11 @@ perf_process_last_stage_latency(struct >rte_mempool *const pool, > > bufs[count++] =3D ev->event_ptr; > >- /* wmb here ensures event_prt is stored before >- * updating the number of processed packets >- * for worker lcores >+ /* release fence here ensures event_prt is >+ * stored before updating the number of >+ * processed packets for worker lcores > */ >- rte_smp_wmb(); >+ rte_atomic_thread_fence(__ATOMIC_RELEASE); > w->processed_pkts++; > > if (unlikely(count =3D=3D buf_sz)) { >-- >2.25.1