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 5855A43FC8; Tue, 7 May 2024 12:06:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF88A4327A; Tue, 7 May 2024 12:06:56 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by mails.dpdk.org (Postfix) with ESMTP id 159CD402C8 for ; Tue, 7 May 2024 12:06:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715076415; x=1746612415; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=qmmzNquz9uK297SDY9Q58sXEZbuB9ftwTj2//2bFqRQ=; b=iIAJoLkGgSz96LSKO+M6gyMPiZ3C2PklGWGkrJkdfiAkEEXlvBqTmaQ/ ul0Ysynbs8ZQwhsOf8ZdekgLwnap2tz1gk8F0l0vAsLPWNEIMLiDyTmFW mQ1eSDDc6rbaoGaFOSHkqfS0Ht5U8AWWoegbZ6SrqKtKe2axkzkQuh67M NWR7wwVGZccQCHcMQweNMKMXuIpbAT4ZsxwoPOhGz6p1J1Vbkjr0wb4Mz AbESGppRAmobJh8TxgvsW4CS63s6OwYe28G+9ALLBQ71GRHdzAmfEv8CB R2SNgf+NMB8vH9Z8ryHua97aXdNVSN4Y8j6tlddS2XL06Vj742ei707nY Q==; X-CSE-ConnectionGUID: av2lDiDPTkyJFDMYVs0Nzw== X-CSE-MsgGUID: 4ZcRcgwbQH+LMN02X/1CLw== X-IronPort-AV: E=McAfee;i="6600,9927,11065"; a="14643815" X-IronPort-AV: E=Sophos;i="6.07,261,1708416000"; d="scan'208";a="14643815" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 03:06:53 -0700 X-CSE-ConnectionGUID: nDUnt5ArStC0XqjHMCscPw== X-CSE-MsgGUID: dRKe8i46S0eJ5ohUgR85pQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,261,1708416000"; d="scan'208";a="29052604" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 07 May 2024 03:06:53 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 7 May 2024 03:06:52 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 7 May 2024 03:06:52 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 7 May 2024 03:06:52 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.40) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 7 May 2024 03:06:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oaiDRdSCDi6IJ5JJ8ebT82XJn9sXnw1WcJHV+EjN6/E6emAzwuZwlE1g6XrFUM8P757AISH5qvbt20eu4I20mVHAvzJgJSFwlyDwcrAQQXnKZn69VCAJqE81a/TdETPCJlj9w2M9uiC7uljC4HHdIsugPRQfAIIkRFiepa0KSaXuXGVztBwgu2vBwi2W+c1KHq+sU/Z+VldgXJ0uFQcziHkfMLBVPQjhRr6onD69ct4jZzHbPFMdXaQATo0NSGRJwywIZs/+7sGPC0notgTB12RvWCiFj+w8e1DaaAcLV0ZoVtRJGKcC5Izua3bt2Se9tc66nawMJooiopcJ0rONwQ== 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=BdfTe/93nB+8av2kc6GPpX4dOOxuqRyvL8TR5eqx6UI=; b=MKZStr4y8b/FfjI7nc7RxgDAeKkvC7ZzYUMgwMPspY1D3mH37tVyDD3BcXqZXJEXlu1tq9OO9DcPHRjjtfz3ew445abZIe0znLejsNeaourY9GstPMqKuIG4qsUlnlpMyD0W7uLvLyQDJNkEizuxWthQkE23SD82tFBjtki884KeB19ThZzG7h0xrZ4JI1WV2AxHdD7LlcDtH7+v5j104PQJWbcOB6cSBOI8D0MWubJppVvV7z33UdP7WMP1hQeAx0kY9DWSCj3xcZYzSlW/9pigKbt+wvl2VrCVEF3KS2KYRzdECN0IZK3gbSBL4x2hTSxMjoQ8kIxUx/TtHYcKgA== 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 Received: from DM4PR11MB7757.namprd11.prod.outlook.com (2603:10b6:8:103::22) by CYXPR11MB8756.namprd11.prod.outlook.com (2603:10b6:930:d6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Tue, 7 May 2024 10:06:43 +0000 Received: from DM4PR11MB7757.namprd11.prod.outlook.com ([fe80::60c9:10e5:60f0:13a1]) by DM4PR11MB7757.namprd11.prod.outlook.com ([fe80::60c9:10e5:60f0:13a1%5]) with mapi id 15.20.7544.041; Tue, 7 May 2024 10:06:43 +0000 From: "Xu, Rosen" To: Tyler Retzlaff , "dev@dpdk.org" CC: =?iso-8859-1?Q?Mattias_R=F6nnblom?= , =?iso-8859-1?Q?Morten_Br=F8rup?= , "Sevincer, Abdullah" , Ajit Khaparde , Alok Prasad , "Burakov, Anatoly" , Andrew Rybchenko , Anoob Joseph , "Richardson, Bruce" , "Marohn, Byron" , Chenbo Xia , Chengwen Feng , "Loftus, Ciara" , "Power, Ciara" , Dariusz Sosnowski , "Hunt, David" , Devendra Singh Rawat , "Carrillo, Erik G" , Guoyang Zhou , Harman Kalra , "Van Haaren, Harry" , "Nagarahalli, Honnappa" , Jakub Grajciar , "Jerin Jacob" , Jeroen de Borst , Jian Wang , Jiawen Wu , Jie Hai , "Wu, Jingjing" , "Joshua Washington" , Joyce Kong , "Guo, Junfeng" , "Laatz, Kevin" , Konstantin Ananyev , Liang Ma , Long Li , Maciej Czekaj , Matan Azrad , Maxime Coquelin , "Chautru, Nicolas" , Ori Kam , Pavan Nikhilesh , "Mccarthy, Peter" , Rahul Lakkireddy , "Pattan, Reshma" , Ruifeng Wang , Rushil Gupta , "Gobriel, Sameh" , Sivaprasad Tummala , Somnath Kotur , Stephen Hemminger , Suanming Mou , Sunil Kumar Kori , Sunil Uttarwar , Tetsuya Mukawa , Vamsi Attunuru , Viacheslav Ovsiienko , "Medvedkin, Vladimir" , Xiaoyun Wang , "Wang, Yipeng1" , Yisen Zhuang , Ziyang Xuan Subject: RE: [PATCH v5 22/45] raw/ifpga: use rte stdatomic API Thread-Topic: [PATCH v5 22/45] raw/ifpga: use rte stdatomic API Thread-Index: AQHan98LiSxrpipR00WmFRCmzVAbJrGLjKjw Date: Tue, 7 May 2024 10:06:43 +0000 Message-ID: References: <1710967892-7046-1-git-send-email-roretzla@linux.microsoft.com> <1715018306-13741-1-git-send-email-roretzla@linux.microsoft.com> <1715018306-13741-23-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1715018306-13741-23-git-send-email-roretzla@linux.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB7757:EE_|CYXPR11MB8756:EE_ x-ms-office365-filtering-correlation-id: c8b95135-4fb6-4991-1036-08dc6e7d65b2 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|366007|7416005|1800799015|376005|38070700009; x-microsoft-antispam-message-info: =?iso-8859-1?Q?HzsR9r0gbtwJhzUOTT5wrg4aU9swIubaLTU3Fkk07J/DMiRBE+i7Nl/9cH?= =?iso-8859-1?Q?zbsAH/reuHaEYtiK7nNYTxwU76DYFJqknuoAPR11Dh0ce2WyejTEZuFJ5h?= =?iso-8859-1?Q?Xse3VNenqiF9MGGmcqOVj/De/YFRRZVv8DpiY4ILddCOBTwfTN+H1ewTHk?= =?iso-8859-1?Q?zjePbxC4b/7AiJVGDx1EofbXFXtxcoyYb6ALgN/KukreRWx/ttm4zDZLC5?= =?iso-8859-1?Q?OujMTEsRRUQPgcCF+6FwVV8xGxOaaWdXt4PJk2U1iYNZtDA1K7X7Y6GJuB?= =?iso-8859-1?Q?KsuQsoNue8DLOwfzc+ksJUt9VDmXggHeKQkLg8LhEMh9YG400nlZWOPf1b?= =?iso-8859-1?Q?RQvX4nt2l7VvvLvaVymMf7n4U69QSIOMg0M3edQQlXsagltEg7qfBhExAx?= =?iso-8859-1?Q?n6tayr5XvwgIZOnrZBEfX1ckz7T2ZpO5W2nFfDULeBXGkSl6QJg0Q8BPW2?= =?iso-8859-1?Q?vqPck8VzdiIEEpRBSfjHoxZ5N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-1?Q?bH16hd84t9vP7vViKrSGRJ7BaqGQ4Fsw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB7757.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(7416005)(1800799015)(376005)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?L3PPb5O7qUED4WVX27kRKBMPQNYfpQ7riVr0LOQ+0cKffb7xsej7BXiIU6?= =?iso-8859-1?Q?VJY9ABS1h/oYm/xusx2lmcpJ2uw0HOh8V0XS46mHa3HLKSuU+QRrtc25+O?= =?iso-8859-1?Q?mGrOJBnjSm1Vjvz4kjlw24kIKrqO4HzrvLl97ILSrW9t+3vg0x62HDlPVa?= =?iso-8859-1?Q?DNwx0HQKhsLucuMvN/5UsGvDTlazfH8lCN+CtbYaaQmGsL7iDZvYgw0WEK?= =?iso-8859-1?Q?FxNZ7YOY3/Klxgl08YkkyMzxI/uFNXWecl5miYwnFX+2dqoJFobDeXQAXG?= =?iso-8859-1?Q?ejCsXxl3SIcCczM0NkL70s59SGWzDFSBqfe/GZr42V5OwkY6hjJO9c5wDY?= =?iso-8859-1?Q?AwlOAj6cRgIUH4Qwn9kDZXHjRQO4wrUWPswdiFuohEmdRGA2eNOGUNPBLG?= =?iso-8859-1?Q?rWHSUsGKxzlYMII7hB4kCV/bGl/qr/qZti2qOdNDBKQXWLpkmZNQiC5Z63?= =?iso-8859-1?Q?+bq7VCFxXb21qcf/K4Re5YCUzF2Ge2tOCuDuTvISy5FH8gzN0zFwgZiE+N?= =?iso-8859-1?Q?E2YaP6LOIojwudQ9WGzjXBGYCod/8RDt1ChaWvG0C1fHL9VJfiaRNKdE9c?= =?iso-8859-1?Q?CWycE8Y0ow9w21HqQ8BF32xeBcRMGPhVoW8AlPIByHqzp8UYYS6+6gDOBW?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muYqW29+mBcmY3tTa?= =?iso-8859-1?Q?e2hGGqUIw35L8oO50m9CsuGGfuQqo6j0G8JzZ2yphBRcfEAosILo4v7VzS?= =?iso-8859-1?Q?8wr8luVjMe/EP44gBiO+Sk76j5taWNofsO?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB7757.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8b95135-4fb6-4991-1036-08dc6e7d65b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 May 2024 10:06:43.5301 (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: HYqAdW4+kfvEZ5/VrpfrOARl6hcUlApVugN59XDNMSwhFjFRj4/iey6yjB7g7Rinr0oSDJPuc6rKcBiMFFKQ1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR11MB8756 X-OriginatorOrg: intel.com 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 Hi, > -----Original Message----- > From: Tyler Retzlaff > Sent: Tuesday, May 7, 2024 1:58 AM > To: dev@dpdk.org > Cc: Mattias R=F6nnblom ; Morten Br=F8rup > ; Sevincer, Abdullah > ; Ajit Khaparde > ; Alok Prasad ; > Burakov, Anatoly ; Andrew Rybchenko > ; Anoob Joseph ; > Richardson, Bruce ; Marohn, Byron > ; Chenbo Xia ; > Chengwen Feng ; Loftus, Ciara > ; Power, Ciara ; Dariusz > Sosnowski ; Hunt, David ; > Devendra Singh Rawat ; Carrillo, Erik G > ; Guoyang Zhou ; > Harman Kalra ; Van Haaren, Harry > ; Nagarahalli, Honnappa > ; Jakub Grajciar ; > Jerin Jacob ; Jeroen de Borst ; > Jian Wang ; Jiawen Wu > ; Jie Hai ; Wu, Jingjing > ; Joshua Washington ; > Joyce Kong ; Guo, Junfeng > ; Laatz, Kevin ; Konstantin > Ananyev ; Liang Ma > ; Long Li ; Maciej Czekaj > ; Matan Azrad ; Maxime > Coquelin ; Chautru, Nicolas > ; Ori Kam ; Pavan Nikhilesh > ; Mccarthy, Peter > ; Rahul Lakkireddy > ; Pattan, Reshma > ; Xu, Rosen ; Ruifeng > Wang ; Rushil Gupta ; > Gobriel, Sameh ; Sivaprasad Tummala > ; Somnath Kotur > ; Stephen Hemminger > ; Suanming Mou > ; Sunil Kumar Kori ; Sunil > Uttarwar ; Tetsuya Mukawa > ; Vamsi Attunuru ; > Viacheslav Ovsiienko ; Medvedkin, Vladimir > ; Xiaoyun Wang > ; Wang, Yipeng1 > ; Yisen Zhuang ; > Ziyang Xuan ; Tyler Retzlaff > > Subject: [PATCH v5 22/45] raw/ifpga: use rte stdatomic API >=20 > Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding > rte_atomic_xxx optional rte stdatomic API. >=20 > Signed-off-by: Tyler Retzlaff > Acked-by: Stephen Hemminger > --- > drivers/raw/ifpga/ifpga_rawdev.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/raw/ifpga/ifpga_rawdev.c > b/drivers/raw/ifpga/ifpga_rawdev.c > index f89bd3f..78d3c88 100644 > --- a/drivers/raw/ifpga/ifpga_rawdev.c > +++ b/drivers/raw/ifpga/ifpga_rawdev.c > @@ -73,7 +73,7 @@ >=20 > static struct ifpga_rawdev ifpga_rawdevices[IFPGA_RAWDEV_NUM]; >=20 > -static int ifpga_monitor_refcnt; > +static RTE_ATOMIC(int) ifpga_monitor_refcnt; > static rte_thread_t ifpga_monitor_start_thread; >=20 > static struct ifpga_rawdev * > @@ -512,7 +512,7 @@ static int set_surprise_link_check_aer( > int gsd_enable, ret; > #define MS 1000 >=20 > - while (__atomic_load_n(&ifpga_monitor_refcnt, > __ATOMIC_RELAXED)) { > + while (rte_atomic_load_explicit(&ifpga_monitor_refcnt, > +rte_memory_order_relaxed)) { > gsd_enable =3D 0; > for (i =3D 0; i < IFPGA_RAWDEV_NUM; i++) { > ifpga_rdev =3D &ifpga_rawdevices[i]; > @@ -549,7 +549,7 @@ static int set_surprise_link_check_aer( >=20 > dev->poll_enabled =3D 1; >=20 > - if (!__atomic_fetch_add(&ifpga_monitor_refcnt, 1, > __ATOMIC_RELAXED)) { > + if (!rte_atomic_fetch_add_explicit(&ifpga_monitor_refcnt, 1, > +rte_memory_order_relaxed)) { > ret =3D > rte_thread_create_internal_control(&ifpga_monitor_start_thread, > "ifpga-mon", ifpga_rawdev_gsd_handle, > NULL); > if (ret !=3D 0) { > @@ -573,7 +573,8 @@ static int set_surprise_link_check_aer( >=20 > dev->poll_enabled =3D 0; >=20 > - if (!(__atomic_fetch_sub(&ifpga_monitor_refcnt, 1, > __ATOMIC_RELAXED) - 1) && > + if (!(rte_atomic_fetch_sub_explicit(&ifpga_monitor_refcnt, 1, > + rte_memory_order_relaxed) - 1) && > ifpga_monitor_start_thread.opaque_id !=3D 0) { > ret =3D > pthread_cancel((pthread_t)ifpga_monitor_start_thread.opaque_id); > if (ret) > -- > 1.8.3.1 Reviewed-by: Rosen Xu