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 92EED41E82; Mon, 13 Mar 2023 08:02:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F2E04161A; Mon, 13 Mar 2023 08:02:34 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 6F0AC41140 for ; Mon, 13 Mar 2023 08:02:31 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32D6Ox4H020021; Mon, 13 Mar 2023 00:02:29 -0700 Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2175.outbound.protection.outlook.com [104.47.73.175]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3p8t1t4gqe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Mar 2023 00:02:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mwjkZwPYl+X6rtTwzgfbCxv4ufzFabxewfWd+WtUmY379mwPoiIdw8qoqJmXpJrkQOnBzLhCEJU6oFKw9V+eVWlZdn1gzKQsOacJjMLW8nu18tpkE9AA6MLl72VOS2mFYodLz4JcJmjWl4mk1mxxGshWRcFRoUanVGaJ2rkAke2LweR4j8GF/LE4oQLcKqik+03JzKggF854OxOLnGl/lKWt2o3mAQ0csIwiuPRxgzQaUerc5kRl1UAdo1coggtzhg7zP5QDQg72NbggwnYWkPwzSmRCwA9Z/W07DYxw1ujo4gWVAmH4XpiZBVkBbWHyC0UazyO68LczP38Ey2JtHA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FH937kUfOkTA1+Cq28kg0YZCqgWNKfcHWkHqjgKQYJc=; b=IZFouaYVnJFEklFyj46kt5sh0/rN9V9JScP9j4lgDgvtHV04oFUDDyD7I+Xq+MnRhUsltEw+VmM+KHq+IS63ci26OA41B/GeKp+oo9AARWdYtHPEComh2i1WI4Y+wZWOucHUGHuRHiSSiNkoXoTa+ZPmvCtfSMcLxVjMA77AxSy3GqcEBlKl0JV0v/PDgR3nWiuZy7ADuttjwrx+qWdq9txcVYf5UCjdyi9g2hTX11KLhGXFkwS0w/1GHcz+OsWy0noiKG4aG7wfk99r6UyExE/EBaAMoZgNEc4r2E62l3+SC7yQJXlCVn+wO0z522sr/+kSPfbZSNEtxmUUvGgBGQ== 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=FH937kUfOkTA1+Cq28kg0YZCqgWNKfcHWkHqjgKQYJc=; b=avdYcQQDtIIaCvQcEeBp62QzC/HYmwy7iigoEgQ04ErQ7WJQP5WC9xgnKoGYbCC68AAkycI3ygsjuxq82+oijstvHmvETb5gntPVZ8huix+zxv7GUzFI60HQNoHhOBrGDze/4fK5ZTYPfg8LK9wy9XRC8zbvoXqHUfOAUgCVOhw= Received: from PH0PR18MB4086.namprd18.prod.outlook.com (2603:10b6:510:3::9) by MN6PR18MB5443.namprd18.prod.outlook.com (2603:10b6:208:47f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Mon, 13 Mar 2023 07:02:26 +0000 Received: from PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::9f7:fdef:41fe:4e8f]) by PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::9f7:fdef:41fe:4e8f%4]) with mapi id 15.20.6178.024; Mon, 13 Mar 2023 07:02:25 +0000 From: Pavan Nikhilesh Bhagavatula To: Tyler Retzlaff , "dev@dpdk.org" CC: "Honnappa.Nagarahalli@arm.com" , "Ruifeng.Wang@arm.com" , "thomas@monjalon.net" Subject: RE: [EXT] [PATCH 04/16] drivers/event: use previous value atomic fetch operations Thread-Topic: [EXT] [PATCH 04/16] drivers/event: use previous value atomic fetch operations Thread-Index: AQHZU53nSQEOIZau+EO579B1SOIEbq74TD8g Date: Mon, 13 Mar 2023 07:02:25 +0000 Message-ID: References: <1678486530-20688-1-git-send-email-roretzla@linux.microsoft.com> <1678486530-20688-5-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1678486530-20688-5-git-send-email-roretzla@linux.microsoft.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNccGJoYWdhdmF0?= =?us-ascii?Q?dWxhXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02?= =?us-ascii?Q?Yjg0YmEyOWUzNWJcbXNnc1xtc2ctMDBlNDg1YzctYzE2ZC0xMWVkLWI2Y2Et?= =?us-ascii?Q?NGMwMzRmNWZhYTM2XGFtZS10ZXN0XDAwZTQ4NWM5LWMxNmQtMTFlZC1iNmNh?= =?us-ascii?Q?LTRjMDM0ZjVmYWEzNmJvZHkudHh0IiBzej0iMjc2MSIgdD0iMTMzMjMxNjQ1?= =?us-ascii?Q?NDM5MDgyOTcyIiBoPSJ0Z0FQTTNwOWp3Qmt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ZUFBQUFiUUJoQUhJQWRnQmxBR3dBYkFCZkFIQUFjZ0J2QUdvQVpR?= =?us-ascii?Q?QmpBSFFBWHdCakFHOEFaQUJsQUhNQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQkFBQUFBQUFBQUFJQUFBQUFBSjRBQUFCdEFH?= =?us-ascii?Q?RUFjZ0IyQUdVQWJBQnNBRjhBZEFCbEFISUFiUUJwQUc0QWRRQnpBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUVBQUFBQUFBQUFBZ0FBQUFBQSIvPjwvbWV0YT4=3D?= x-dg-rorf: true x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4086:EE_|MN6PR18MB5443:EE_ x-ms-office365-filtering-correlation-id: 4d194ba1-e1ef-4ef3-fc41-08db2390e6db x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /Cj8GMw/KySklobs19HtQaBe+6uB42fmPSyIg8CUTt5SYY2GskRvUe85ed1CwtSyclEF39a6J3anpA0e212m1/U9JflCDYRwrIr87tHCvMA60J33jSqFjC6tMHGg5kkHrNP4od6CEfH3g3JPg3+Tqtlr23Zl5zOpyCcJ67LxTGbtiCuCipxVeBdojoMjo7e9bp97NZlFOLLKSaPe2h3GGsU6hf7KzDhRz8nKYzMD+E3Ct+OBdV0EjvBGBhwkdyXMOfmr1nRMkwaX/jKC1Hf1tUs0Wd2j9Vw1C2cYWz1R0D0IxJS3PyaqMsHnkvt9aiD+JnvSuK4oavJV2Vhgs6lpbeA8PW0ZJTVr0onwOv/azEsJ4zDYZcpMoxhD/6uOjHb+DgF8sRpEvA0sjs0UfzZ9dav4sqINAu+pMu3RygiWo6z1mFQzeWXkCsNROQaUD60atWzW6zS8Y1k6hRuf1nU1coA3sMiJdvxdJoIoF22H44bt+JMoH0Uz81JlI07lphA3vifZnBeYs4p73+Ma9lau4rTDG5TH+YNlX2GDcOabPzNROyk6xWXKJmy6LKbJ0arKAZjUqD/fFwHD1suJ2+dZj9lInESZ2JArsGWDr5vN3hFWsIYLU5/IGgdiz9dD0KhxmbGTSc/9EDRnaxt59PDEso0duhN1DcyMm3oyhFcg5l9Nt3+CxvvNHRjJLo2moVlSguSNWUOM5bkU11BLjQ9K9Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4086.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(346002)(366004)(396003)(39860400002)(136003)(376002)(451199018)(86362001)(38100700002)(122000001)(38070700005)(83380400001)(9686003)(6506007)(26005)(53546011)(71200400001)(478600001)(110136005)(7696005)(186003)(4326008)(66476007)(5660300002)(76116006)(66946007)(66556008)(52536014)(41300700001)(8676002)(64756008)(66446008)(2906002)(8936002)(54906003)(316002)(33656002)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TJ9KTSpSmx57Gv4JgJlaPzcEvrbu3G4YqckSWHIeTM9Gssqz2YgxeLSGmVur?= =?us-ascii?Q?t7Kn7q/hObFnrffDyQ7x0vjKjWzsFcKwdkE24NKuZFMapa38W2q4o245XAlX?= =?us-ascii?Q?gbxzCGxolRDQfrLoNN7Iu6EBLkR/M7azTjhhADjnklAv6cqAa/djbIsuxl+9?= =?us-ascii?Q?LUYQydRzwWIy+bHTWKgyJsdZxOI3XnSUpNAhShsGTFasu+1aGqydqm50NcT0?= =?us-ascii?Q?mOdF6uVIluKsqI3/8IEWqpLUufaxbBR+wwp9xy3MBcGyCz4OrUY12kEZhKF9?= =?us-ascii?Q?UrAygG8lPwiiw2NWfaI5OJDD/cnvGD544HJfVzebYe8K9Wg9vdHsCcvyNIif?= =?us-ascii?Q?JJmTps89yFAWd5sfyVzUM57GeRb8hzlwvVybnnXebfHQ3KnrZC09nzvnJrg0?= =?us-ascii?Q?84iSELHnC/bgIFrE9ocB+LyG9jw2bpwm3McgIm+IF1uKXS/vP8sNfLyZ5qOm?= =?us-ascii?Q?v2MeVfz6EjDPS7EBJJuUdWI2qyrKP9502dzX6hblAjgDC1ynrTC9k8w13OuV?= =?us-ascii?Q?/Aze9YUX2ZaPRLNrkJOvDFEOdVd+K9h8+aFzHm0F0PQv0T97liPhpwEiiPrz?= =?us-ascii?Q?mAeeBmEBBji5Zi7OQ8xrVkmemyNowbdBLMr8r82tdaddOv9NF7rmokJi/18S?= =?us-ascii?Q?suo+XteiFEklh4Ddo/VzOuQpNHWP2D87QXhwAU2e528i28YP/jFd7i2YRrY1?= =?us-ascii?Q?lCUni03h512p9ffM+lyhXbBONncMEMTCCXWLqCV4auTnNBd3DS1MlvhvRjO0?= =?us-ascii?Q?oKtq0/3JJ1qcNqPMKy1voHSWalniraTxCJLB3f+YP/8A2lWdKnPGIbfO2gOe?= =?us-ascii?Q?Uw/uPvVLnK46jxCYMYKsZFKZJlgLZZqRdzU1b2JXDw5K/6EWZKgE3+I6sK9S?= =?us-ascii?Q?tOlqz7gNuf/4jliX8EL/CQQyvXLUJqxBJW6b8kKsvGgW0BR6bYt522YMkex3?= =?us-ascii?Q?MWemtb2nWbEmTcP06M2mXwnrHU80jwmLtHDJQsWEAMCxiWK0Sk84ub38cikg?= =?us-ascii?Q?1qVmUlRdr41hpyNi4OTlKERa86vDE/xYVlfBT5pqcxVrxsunib+mOe/302y5?= =?us-ascii?Q?KG7YcdexffelZGUHBm95ohOilchicGiqBST3PiJgXPlF9mu9DqgCP+0xbvt9?= =?us-ascii?Q?ehusGobpttloBiF03uUvoLT1srhHaXupKaY2B16K/3EeLVv4Rwq2V/rpnVOQ?= =?us-ascii?Q?IwE5TPg4igUF+PTdjblG9CDkYZk0Zi2uuDAubi1Agbd1LUM64LA2XQK581XC?= =?us-ascii?Q?XJiUhoYBf9GEDbklFDMII4MbJKJlkRCCXel4Propx/ZOy6WTGxamEYF94LRG?= =?us-ascii?Q?fbiGJ6+oIl6bXiqQolG4mAJDV1juoyoYgKRq2JTcPuU0UsF2NelBtgH9x4Ja?= =?us-ascii?Q?On5F7okMxxvF/IsjkGN3y52fIxg3bnRD3fEcbFDp1uQnUivz4+dNVfB/h3y3?= =?us-ascii?Q?XSyahQ+MZfq1Yratv8n9faWLSbCn6ubLyebtjgccgF08rEIjv256psGL7e8B?= =?us-ascii?Q?fj3ErK1R0z26mk1TUofOg0vIRCVNQcATP2ETS1MXC0JxW8CMXXfN2WUdVKIJ?= =?us-ascii?Q?+gT2Df0PqQT0bOAXufMEMo/XCJl75kJK+NSCvL95?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4086.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d194ba1-e1ef-4ef3-fc41-08db2390e6db X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2023 07:02:25.8027 (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: 5ulbq326i1OaMc0mvuvmDAR6ocEtwvXM4YX6sor3yPyJQvkxvS93HE4N80qkQMxK7/192+wgSAiGiHgurJw+m78827Rieh+dEE31Jxh9BO4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR18MB5443 X-Proofpoint-GUID: 4Vrz8o9dvUoMehEUCghQGRAfAqhtqKae X-Proofpoint-ORIG-GUID: 4Vrz8o9dvUoMehEUCghQGRAfAqhtqKae X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-12_10,2023-03-10_01,2023-02-09_01 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 > -----Original Message----- > From: Tyler Retzlaff > Sent: Saturday, March 11, 2023 3:45 AM > To: dev@dpdk.org > Cc: Honnappa.Nagarahalli@arm.com; Ruifeng.Wang@arm.com; > thomas@monjalon.net; Tyler Retzlaff > Subject: [EXT] [PATCH 04/16] drivers/event: use previous value atomic fet= ch > operations >=20 > External Email >=20 > ---------------------------------------------------------------------- > Use __atomic_fetch_{add,and,or,sub,xor} instead of > __atomic_{add,and,or,sub,xor}_fetch adding the necessary code to > allow consumption of the resulting value. >=20 > Signed-off-by: Tyler Retzlaff Acked-by: Pavan Nikhilesh > --- > drivers/event/cnxk/cnxk_tim_worker.h | 2 +- > drivers/event/dsw/dsw_event.c | 4 ++-- > drivers/event/octeontx/timvf_worker.h | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/event/cnxk/cnxk_tim_worker.h > b/drivers/event/cnxk/cnxk_tim_worker.h > index a326d55..0bd66ec 100644 > --- a/drivers/event/cnxk/cnxk_tim_worker.h > +++ b/drivers/event/cnxk/cnxk_tim_worker.h > @@ -123,7 +123,7 @@ > const uint64_t v =3D > ~(TIM_BUCKET_W1_M_NUM_ENTRIES << > TIM_BUCKET_W1_S_NUM_ENTRIES); >=20 > - return __atomic_and_fetch(&bktp->w1, v, __ATOMIC_ACQ_REL); > + return __atomic_fetch_and(&bktp->w1, v, __ATOMIC_ACQ_REL) & > v; > } >=20 > static inline uint64_t > diff --git a/drivers/event/dsw/dsw_event.c > b/drivers/event/dsw/dsw_event.c > index 9932caf..cbdc03f 100644 > --- a/drivers/event/dsw/dsw_event.c > +++ b/drivers/event/dsw/dsw_event.c > @@ -45,8 +45,8 @@ > * allocation. > */ > new_total_on_loan =3D > - __atomic_add_fetch(&dsw->credits_on_loan, acquired_credits, > - __ATOMIC_RELAXED); > + __atomic_fetch_add(&dsw->credits_on_loan, acquired_credits, > + __ATOMIC_RELAXED) + acquired_credits; >=20 > if (unlikely(new_total_on_loan > dsw->max_inflight)) { > /* Some other port took the last credits */ > diff --git a/drivers/event/octeontx/timvf_worker.h > b/drivers/event/octeontx/timvf_worker.h > index 3f1e77f..aa729f8 100644 > --- a/drivers/event/octeontx/timvf_worker.h > +++ b/drivers/event/octeontx/timvf_worker.h > @@ -135,7 +135,7 @@ > { > const uint64_t v =3D ~(TIM_BUCKET_W1_M_NUM_ENTRIES << > TIM_BUCKET_W1_S_NUM_ENTRIES); > - return __atomic_and_fetch(&bktp->w1, v, __ATOMIC_ACQ_REL); > + return __atomic_fetch_and(&bktp->w1, v, __ATOMIC_ACQ_REL) & > v; > } >=20 > static inline struct tim_mem_entry * > -- > 1.8.3.1