From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 16D7AA04B8; Tue, 5 May 2020 16:49:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BCFF61D621; Tue, 5 May 2020 16:48:54 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 8E9B91D613 for ; Tue, 5 May 2020 16:48:51 +0200 (CEST) IronPort-SDR: FGOwoiK3nsY0GuAz3G32TlGEjSg+rCXaJCwuCfUrTBsVy8BJZVa2uvaHnOeKQo5UuziuNMaVvS X0uA/0W+QQUg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 07:48:50 -0700 IronPort-SDR: B1BRr6R72xpSnkNMXg1F8Jr5WBZXUi2j8usWdqRNebq1TK7ua9tOlN54varCmjDKPClnfQ2R2G 9Ki/v3YGuYhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,355,1583222400"; d="scan'208";a="294993090" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 05 May 2020 07:48:50 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 07:48:50 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 07:48:50 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.170) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 07:48:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S0xCJ/XhHeFVilMamGIZ5ZIeu3iXEe9vlVZEU47U9Htfz0CoqH/GPYXbi4UdjzqouLS+rlBcA14AzpYys1m2NY8tyKXFfonhzgo/eji+FtSFdMAmtzYxixpQjdE4U90gSAd2sqcP/wGAsA1uropCagRmMsAf4+M+Z0hKkcBLHKROgt3QI3hCe4uKQ2bnx+AexbshIzAUzg2h3Y/5PY4rlnhSGGr23EsN8sAGZjoRp6/9ILBNJFqMt2TynHdNFmTluEDfL+ULIA7ITvM5ly8XKVNKQTrlCT47XzmMW/HQHSjcvsfU3qxsx29kJgEhhK6kZAmU0rDXT2VjipQ/qqD2Tw== 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=qv6GqGAPg6nYFujGEb8TA0zJiQm1hIGJ4Qtko1aphow=; b=aZiSMGlYcTb18JBJkNTB5gch/D5PtkoLuyk/PoFvXP3ySg4dOQLTgzE3uoDyxOYOyfhhwZWVQcozx6Wq60iZ42e2h31KkpcJ55c05pUYfH22Xt8TF2B05fwChAJ+y/U19p6Bj/jQQugl9FqcaAD09h1rqul43VPiEQgVWfchJ2qESuzslEwJyd/dDR2tOIkhOHlWTMJsuw9or9BfWT4J+e/DHYdzTnH/gZrKmFH0NW1c6+Lx5r1MbsJX5c+ZSiHMPbinRyHCcQB/s/gGRJTjAign7mFLHLWp+fbB9ape5fxXREwEZ4JzvgyJ5pBQQcasvvZMzUxm69TPcmLH7jlr7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qv6GqGAPg6nYFujGEb8TA0zJiQm1hIGJ4Qtko1aphow=; b=ZmDOecHQiknoAXYByLmSAgARqjPvAwJKQjxvzEsnTK6ZOgs/zuOk5AQwZJqJMJIS5NPdZkGJZCsFhQKhdlyoG/LOU6OFJ1zNPxFBnqq8URAbPmBiMd6dRsONt7FKj0kfPbMMulTrtrCCfZDo3rZTiILsuK0VvT9MtNfqeIqRZz0= Received: from BYAPR11MB3143.namprd11.prod.outlook.com (2603:10b6:a03:92::32) by BYAPR11MB2726.namprd11.prod.outlook.com (2603:10b6:a02:be::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.19; Tue, 5 May 2020 14:48:46 +0000 Received: from BYAPR11MB3143.namprd11.prod.outlook.com ([fe80::5917:9757:49b0:3c49]) by BYAPR11MB3143.namprd11.prod.outlook.com ([fe80::5917:9757:49b0:3c49%5]) with mapi id 15.20.2979.025; Tue, 5 May 2020 14:48:46 +0000 From: "Van Haaren, Harry" To: Honnappa Nagarahalli , "dev@dpdk.org" , "phil.yang@arm.com" CC: "thomas@monjalon.net" , "david.marchand@redhat.com" , "Ananyev, Konstantin" , "jerinj@marvell.com" , "hemant.agrawal@nxp.com" , "Eads, Gage" , "Richardson, Bruce" , "nd@arm.com" Thread-Topic: [PATCH v3 6/6] service: relax barriers with C11 atomics Thread-Index: AQHWIBUkRxxwrbQLOU2fcMzUTdjCf6iZlQ/Q Date: Tue, 5 May 2020 14:48:45 +0000 Message-ID: References: <1587659482-27133-1-git-send-email-phil.yang@arm.com> <20200502000245.11071-1-honnappa.nagarahalli@arm.com> <20200502000245.11071-7-honnappa.nagarahalli@arm.com> In-Reply-To: <20200502000245.11071-7-honnappa.nagarahalli@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.162] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 82e10bc0-1130-4dac-bdbe-08d7f10369f2 x-ms-traffictypediagnostic: BYAPR11MB2726: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2733; x-forefront-prvs: 0394259C80 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rmmzBR0R67dyNp1sDqKcFkqVBSUrX0wnbZpL9bzvI5Y7T7cnuipcBKp8uy9CYTPDgAmJaBxCe9yQ4STbro9RRTvh0/7emLCRd0gQt6+aiw8XNr2WhK0r72ixWGmwqC0CXdTehcnqmPOFYDzsmHxh6yayURgZDND7PQ0m/jDrTqx/lhKJJCnBwWWsx7cBS16tegrWImn0W4KRXP8+ZCqdn9bGmiHHyZ3+GRGgzR+tzkxSv0b2hmTO3BxPDPgrZ0LUiqqwpwrFsN/5buHwFZLSAvqm11z/rSkb/u7jnPFEl/X+hM1M+7vdBEekVwzqGUxPkR/OxjqpGhCKsJQ2auh/Y39VpMUweMyj/oRiNEVk5SnfUHUmAm9+2lcuvKub+5K9f9b+si3fs/9QOZ4ZMlthCW/inrrMyEDM8ytwenPzokmcsLEej0vs1RG8S2yh71rRn2STDEj+VfO8eVTus/kxsM+qWH4MF6PL1r9ICCxsNN0jwKZIxvhy/QZNmQx0oCp1ittI4QjDrUnapqPUMuH0VQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3143.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(396003)(39860400002)(366004)(346002)(136003)(376002)(33430700001)(4326008)(86362001)(9686003)(8936002)(52536014)(71200400001)(33656002)(2906002)(8676002)(316002)(76116006)(5660300002)(66946007)(66556008)(66476007)(54906003)(110136005)(4744005)(53546011)(6506007)(33440700001)(186003)(55016002)(478600001)(26005)(7696005)(64756008)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: PsQzTmJIqd21k8RWz3Vjtw//SWXkUTDMLb4DBRP/bH7m/sN44XSvgQScDqY/Di8aNegHC4ovfeNDTIFzaUJCN+0V7oF4bp58bHFQDDQ0IBzrx3olYJsjuKWn8bj0Q2385adeitw9zC35W2hvQbb5xQHks4P97i0zo+R6HQ4bHg0mSANs3N7LKy+B3EWggGHXqQprPe3WKfAmuKrJD+F4YmnRpiQbOrzl8a0C8JTnGRdkjMw1vK7jzBzGXyg6OTFQroAfTeLf94bmJgHZF6TDvtS2zDevb4DV427He01I+XHyT0avUWnUfkvwlJjKYhTMZoWegKdnuELk7CY2BX1WyxHRBZzO/Zg4MKsyCmmipBU9mMMYP88rxrZ9e/GngjSGjvyANneUNcXEE9VCld6xe9Bx6L2xQ/ISY0olxzIo5o4wGDBfgSs5lv7VUKhF7WJQj8Hxu+eolR5TYH1Xtqu14D4O+GpkLP3PW80s8sQziDQ6Ts/jSKrh5mLS6ScaINpzUA7Pt62N4Cp16tKyAj+C1BX91OtAXR8v2laKNevCRjNC6hyD/BbT/UAuRdes3BeYvbX8r85V5B/ZeUTlZRom9a1uqzbsbq1A8xlq4yChA0oDuFTX5U8h1RhoCmPrgQsobSBYM9mcgjYdC2kv2mf976Lk693t5HJcpBM9tnUhiJ4hU0/AXUTr1OSmsohuB2NA97a1FpSIH5ZWP82rcMBDZeq2abPVi81BkIwD61dgVj3r19XAHco92c0RNQ3CWjtso4MjbFll2VZMDiH3bSQmTrgIYezu6cbg3GAFq7bndr2R7OI8vzWwGvfgyGczaURA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 82e10bc0-1130-4dac-bdbe-08d7f10369f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2020 14:48:45.9737 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CIRRQnC2cNHlTgF9/Nkt+0iseOgOFIe8dscJJihx6sNq9FKI8DGrCzi8hMNNpTYxfXndc/e3K7cRIRtXCblbBRd4I0Gcq/02Clq2MkCdCH0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2726 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 6/6] service: relax barriers with C11 atomics 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Honnappa Nagarahalli > Sent: Saturday, May 2, 2020 1:03 AM > To: dev@dpdk.org; phil.yang@arm.com; Van Haaren, Harry > > Cc: thomas@monjalon.net; david.marchand@redhat.com; Ananyev, Konstantin > ; jerinj@marvell.com; > hemant.agrawal@nxp.com; Eads, Gage ; Richardson, > Bruce ; honnappa.nagarahalli@arm.com; > nd@arm.com > Subject: [PATCH v3 6/6] service: relax barriers with C11 atomics >=20 > From: Phil Yang >=20 > The runstate, comp_runstate and app_runstate are used as guard variables > in the service core lib. To guarantee the inter-threads visibility of > these guard variables, it uses rte_smp_r/wmb. This patch use c11 atomic > built-ins to relax these barriers. >=20 > Signed-off-by: Phil Yang > Reviewed-by: Honnappa Nagarahalli Acked-by: Harry van Haaren