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 AC519A034D; Wed, 12 Jan 2022 10:20:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DB6A41C3D; Wed, 12 Jan 2022 10:20:50 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id D583340141 for ; Wed, 12 Jan 2022 10:20:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641979248; x=1673515248; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=bfMBpx/dbbiOmZtt4WZyi54MC6nSujJNiE4yNWEJI7s=; b=Zgy46KLsdBWG06cXqRarw+eBON3jGHwdx3HteyIxpDRZMZqybDf8Nowb aEs2gglVGcCABpaHh7py0j57WfcrhRMeE0Rj6CbmeMjeMB28grY69AAGH f+Gaa2p/9bd5gS0y+ZBO5BaAlkBJLAHZeIm5WvBrCb9eijJe4jou3KWLR xyCbPDa4rrnNL8ZMkkuSmNwVBcnEQy9ndMDPEnPDdgiWPk8DrKyOsvm9Y jhaBwvtLO2+BRuTdEDGXGSd7oGahozy1Tz1Im/iydIpeWII+k4f2Y0qs3 e4g4RBaXXWu3vj27OHbNehsT8O0R4U/A8OI2bNNRB8D4ekNI3UYX9OF3b g==; X-IronPort-AV: E=McAfee;i="6200,9189,10224"; a="241249969" X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="241249969" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2022 01:20:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="592949918" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga004.fm.intel.com with ESMTP; 12 Jan 2022 01:20:46 -0800 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 12 Jan 2022 01:20:45 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Wed, 12 Jan 2022 01:20:45 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.106) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Wed, 12 Jan 2022 01:20:44 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lox0B04Vregz+HnMPtBi/k7P2KXgNpXCcvJE/BvbY4WhiiHoiD3siFN5a6ckkV6v/CxOoVHQBdl16WoLuDPpCGkaXfVsrVHG+l73Cr8NAffmjVTkYNmCs+3WA6aalhsy67HTayi0AVRVY90eI7Aplsf0q7uSa9O7UXIgGShdlYLLh3AFm1A7E7c34475Uh164rYZNjOqpHIBuzTj92CbDDgEC+G0vZi/KOfWkYrZ3bIOBODNPUO8b7CmKPonlwpVK/nvfQUjYVqiNz7TjmVFNimAVifonC68MrfKb1FfxtENkjO1x1cU+GaeQ9bu0C/ww4SDhrsec/b/8iSmdp7f2w== 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=2E/y1ur85Ty1rleJ1q5W0YOCmziqxCvx7ldSIK1v8mw=; b=Bbv6upVm8/XgyUtmjLA5a+ptyujQZx2gS+460aApWDqmwBbpz19uyOLlXvsXSfpllsq5leS7f+CJZ7rapnS4EF5gNBd99OI6uz6Dat0rd8G+ZqyCfEqqDfPkCAu/o+9f7NBeJEG8tPtE4Y3ooelPFVGPbtmAEiLxIdpa5so+Q7TOGDHN3uI61n6MJuWqSNO179DZZijUCz2A6N6Ie2J72h0eBD4Az8T8KwqXRQWDixkIyH7HW4z+LBJGDZrPdLP39ph0qtg9/jFzOINDmoz6TlS0me2zbeELzvZqSadU4y6dOuAdnCmsvZQA3TXmntxf2LJZt/K+0QxRUQbQLFbjaw== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB4840.namprd11.prod.outlook.com (2603:10b6:510:43::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.9; Wed, 12 Jan 2022 09:20:43 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4867.012; Wed, 12 Jan 2022 09:20:43 +0000 Message-ID: <6689e4d8-6fe9-45f4-ff0d-4b8a6f585959@intel.com> Date: Wed, 12 Jan 2022 09:20:35 +0000 Subject: Re: [EXT] Re: [PATCH] common/cnxk: use cas with release semantics for batch alloc Content-Language: en-US To: Ruifeng Wang , "Ashwin Sekhar Thalakalath Kottilveetil" , "dev@dpdk.org" , "Honnappa Nagarahalli" CC: Nithin Kumar Dabilpuram , "jerinj@marvell.com" , Sunil Kumar Kori , "Satha Koteswara Rao Kottidi" , Pavan Nikhilesh Bhagavatula , Kiran Kumar Kokkilagadda , Satheesh Paul , "Anoob Joseph" , Akhil Goyal , nd References: <20211130054527.2696881-1-asekhar@marvell.com> <2f82681c-e615-8e3b-4548-58bcffc0ec8e@intel.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0423.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18b::14) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a6ca6972-fc48-49a1-a25f-08d9d5accec7 X-MS-TrafficTypeDiagnostic: PH0PR11MB4840:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xVjIraR4FTkksLLSMpI4eRszZjDO6wX9G6qk5f4Cx8AoEsIhOQEVD5aXv0cbuoIS8aBlIUzPCmYMVgCU4fBhC/HruRexlmE2SK86IFO3N4U/SRJEqdps0m5sUoA8uMppGlDeew/8KX6VoGV9ruFiJGPnpqfiP39TGORDYgCwsDmLdhGjkf0vX2J6IBzhgY67gjO0GvYWJfJgf/78pfGKtKB5cm4uWeKi9NlZcD+iLTuyWgu25v8peGfIytRsPjzJcTEBetAy0LDh3myfh/q0MgFlioXPi85yYHKmlqtRBCKYdg+oUnh9N2+XMiEqQ/BL4nWEnew24OhcMyiRGCl3IDymx9GDJfaohsEUy8kW7qPU8PmfD3Ymq6X76kp5DfmY+wLanYJaV/1ew9PGQ+1lxc5Gq6mu/u06AxFGn4Hp3U0W/HUpntZYdoLpP8CW0L83kbuQiY3kd1S4+3ADbZOH8vklWxQPQHPa9W18hFbmxJWN80+fziasutqRTRdqLkzUo5ywvpi+5C2zVRSNnziNdGrbXS2DgHlGKxyjgb9ARfqGISbP88GzL70KWsZL/U8CMTTKM7vNwnYlOfK8CPtv6ym8gtxtBAy0ph4ncnAfvg1x0D63VkvFoBUqUQrsQ7pupRevyw5KBX8VTzd85HZfO62W/Cc9VoPF88m2rLP4tVRkPiAR207FiXZqyrTQX5VQAWZGaJGBu67LK2WFXV9Huw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(508600001)(6666004)(186003)(8676002)(2906002)(44832011)(5660300002)(8936002)(82960400001)(6506007)(36756003)(53546011)(6512007)(54906003)(31696002)(83380400001)(38100700002)(2616005)(66946007)(26005)(6486002)(4326008)(7416002)(110136005)(31686004)(66476007)(66556008)(316002)(86362001)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?M3VnZHdvaHBLUitrZjYyRnAwc2lnWjh1VGpZbnZoVnY1Z0htQ211V0l5Y0Rp?= =?utf-8?B?cVBGZ1l6QWd3a3FuaXA5WTV1TkNPd0hKUXhhVkllVTVlL05yT2NudUJpa3VY?= =?utf-8?B?UXZSY3RJMG84VW5xWWg2bjhJUXV3ODRWdnhXRTZzZy9scGRTd1U4c1pkaHht?= =?utf-8?B?S2puL3VTbHZ6MHNkbTI1NlRoZHlWOHA2dHpQVUhUOXJzVkZvYTRmZjFVeXRy?= =?utf-8?B?U25PLzAzMGMrbE1JUVJPSVFlTHk2cUFDQ1ZBbGQ1MC9SN3BYelluOG8xcG1S?= =?utf-8?B?bGcxWVNMQkpKSm1oMjVud2ROMklGWmtPeXFHa3A4V2ZY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f-8?B?L0FiZmJkelAzbFRqYTJ2N0pocDRId0Qzc0MrK1RmQUY4K1RWaWVmYWI0WGVU?= =?utf-8?Q?75ru5FNeO+l++LtHzh7HDuk=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: a6ca6972-fc48-49a1-a25f-08d9d5accec7 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2022 09:20:43.3822 (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: ErnzSPFapMRa01NdRr7UKCyWVpdNAg0LhRd90R7wl4sYWaxhXNNCvgmOh1GJEe1oJ8QvlP3ibt4GSriu9+ia8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4840 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 On 1/12/2022 6:18 AM, Ruifeng Wang wrote: >> -----Original Message----- >> From: Ruifeng Wang >> Sent: Wednesday, January 12, 2022 11:01 AM >> To: Ferruh Yigit ; Ashwin Sekhar Thalakalath >> Kottilveetil ; dev@dpdk.org; Honnappa Nagarahalli >> >> Cc: Nithin Kumar Dabilpuram ; >> jerinj@marvell.com; Sunil Kumar Kori ; Satha >> Koteswara Rao Kottidi ; Pavan Nikhilesh >> Bhagavatula ; Kiran Kumar Kokkilagadda >> ; Satheesh Paul ; >> Anoob Joseph ; Akhil Goyal ; >> nd >> Subject: RE: [EXT] Re: [PATCH] common/cnxk: use cas with release semantics >> for batch alloc >> >>> -----Original Message----- >>> From: Ferruh Yigit >>> Sent: Tuesday, January 11, 2022 9:46 PM >>> To: Ashwin Sekhar Thalakalath Kottilveetil ; >>> dev@dpdk.org; Honnappa Nagarahalli ; >>> Ruifeng Wang >>> Cc: Nithin Kumar Dabilpuram ; >>> jerinj@marvell.com; Sunil Kumar Kori ; Satha >>> Koteswara Rao Kottidi ; Pavan Nikhilesh >>> Bhagavatula ; Kiran Kumar Kokkilagadda >>> ; Satheesh Paul ; >>> Anoob Joseph ; Akhil Goyal >>> Subject: Re: [EXT] Re: [PATCH] common/cnxk: use cas with release >>> semantics for batch alloc >>> >>> On 1/11/2022 12:26 PM, Ashwin Sekhar Thalakalath Kottilveetil wrote: >>>> CAS is compare and swap. CASL is compare and swap with release >>> semantics. >>>> >>> >>> What does 'release semantics' mean? What is functional difference in both? >> >> 'release semantics' is semantics in memory ordering for store operations. >> It ensures store-store ordering. >> >> And some comments below. >>> >>>> But on CNXK platform, the functionality of CAS* instructions is >>>> completely >>> different when it is done to specific addresses. These APIs are meant >>> for use for such special cases. These cannot be made ARM generic. >>>> >>>> Ashwin Sekhar T K >>>> >>>>> -----Original Message----- >>>>> From: Ferruh Yigit >>>>> Sent: Tuesday, January 11, 2022 5:42 PM >>>>> To: Ashwin Sekhar Thalakalath Kottilveetil ; >>>>> dev@dpdk.org; Honnappa Nagarahalli >> ; >>>>> Ruifeng Wang (Arm Technology China) >>>>> Cc: Nithin Kumar Dabilpuram ; Jerin Jacob >>>>> Kollanukkaran ; Sunil Kumar Kori >>>>> ; Satha Koteswara Rao Kottidi >>>>> ; Pavan Nikhilesh Bhagavatula >>>>> ; Kiran Kumar Kokkilagadda >>>>> ; Satheesh Paul >> ; >>>>> Anoob Joseph ; Akhil Goyal >> >>>>> Subject: [EXT] Re: [PATCH] common/cnxk: use cas with release >>>>> semantics for batch alloc >>>>> >>>>> External Email >>>>> >>>>> ------------------------------------------------------------------- >>>>> -- >>>>> - On 1/11/2022 12:08 PM, Ferruh Yigit wrote: >>>>>> On 11/30/2021 5:45 AM, Ashwin Sekhar T K wrote: >>>>>>> Before issuing the batch alloc, we clear the first word of cache >>>>>>> lines so that NPA can update the status. Make sure that this line >>>>>>> clear is flushed before the batch alloc is issued. >>>>>>> >>>>>>> Signed-off-by: Ashwin Sekhar T K >>>>>>> --- >>>>>>>   drivers/common/cnxk/roc_io.h         | 12 ++++++++++++ >>>>>>>   drivers/common/cnxk/roc_io_generic.h |  9 +++++++++ >>>>>>>   drivers/common/cnxk/roc_npa.h        |  2 +- >>>>>>>   3 files changed, 22 insertions(+), 1 deletion(-) >>>>>>> >>>>>>> diff --git a/drivers/common/cnxk/roc_io.h >>>>>>> b/drivers/common/cnxk/roc_io.h index fe5f7f46d0..4f15503c29 >>>>>>> 100644 >>>>>>> --- a/drivers/common/cnxk/roc_io.h >>>>>>> +++ b/drivers/common/cnxk/roc_io.h >>>>>>> @@ -78,6 +78,18 @@ roc_atomic64_cas(uint64_t compare, uint64_t >>>>> swap, >>>>>>> int64_t *ptr) >>>>>>>       return compare; >>>>>>>   } >>>>>>> +static __plt_always_inline uint64_t roc_atomic64_casl(uint64_t >>>>>>> +compare, uint64_t swap, int64_t *ptr) { >>>>>>> +    asm volatile(PLT_CPU_FEATURE_PREAMBLE >>>>>>> +             "casl %[compare], %[swap], [%[ptr]]\n" >>>>>>> +             : [compare] "+r"(compare) >>>>>>> +             : [swap] "r"(swap), [ptr] "r"(ptr) >>>>>>> +             : "memory"); >>>>>>> + >>>>>> >>>>>> out of curiosity, what is the "cas with release semantics"? >>>>>> briefly, what is the difference between 'cas' and 'casl'? >>>>> >>>>> + Honnappa & Ruifeng, >> >> Thanks Ferruh for adding me in this loop. >>>>> >>>>> Isn't this API Arm wide, instead of being cnxk specific? >>>>> Does it make sense to make this API for arm and cnxk use from there? >> >> Yes, CAS operation can be used Arm wide. >> Generally, CAS is available via __atomic_compare_exchange/_n() compiler >> built-ins. This is the way we use atomic in DPDK. So there is no need to add >> another generic API. > > Just to make my comment more clear. > For generic CAS operations, compiler built-ins can be used. No more API needed. > Given the special usage of the instructions in CNXK, the inline assembly here is not intended to be a wrapper of > generic CAS operation but rather an interface to other hardware function. It doesn't make sense to make it Arm wide. > Got it. Thanks for clarification, I will continue with the set.