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 8E936A0C46; Tue, 7 Sep 2021 18:10:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E91F410ED; Tue, 7 Sep 2021 18:10:54 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 4B5DA410EC for ; Tue, 7 Sep 2021 18:10:52 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10099"; a="207465005" X-IronPort-AV: E=Sophos;i="5.85,274,1624345200"; d="scan'208";a="207465005" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2021 09:09:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,274,1624345200"; d="scan'208";a="503134238" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga008.fm.intel.com with ESMTP; 07 Sep 2021 09:09:02 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) 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.2242.12; Tue, 7 Sep 2021 09:09:01 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 7 Sep 2021 09:09:01 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.47) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Tue, 7 Sep 2021 09:09:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MkGPMn7cXOZs53EWD7Tz8tc/xT9aEcsofVUVnuu1tOdIT4728TacoR6fv+7Ef3Wk6zEjH558pngbS2M7ArlujaFMGZyC6HgTSynqVTPaCcRPCZxz/2JMz+KEoiHS/XG8yYDDNMtq3jD5VVtFu/4gYBIIecEVmqjh3GyXKMxUtDNnFp2g0l0PpF9IwoH5U3MOdvZZWzt6ByL0ADmVuzAJC7O92EoojZCWXz9ZkJOp+leNQJQf2DwLswr0KnYSzxlZ0TS2PIL8gRvkJqcnPoyWT3oJpEv4xZAB5U5GlYCxG4umAsBkynZ339auXL7njQEcYPYSVrIoEww29NDBxiXF9A== 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=LqpovNEjqleCbbZ8xmFj+/lQhgf6Co34xT66wxQblYw=; b=gG3BovQLge2auTL+ol+lILZKpiOz/606SP+M1+c58LDoHnfUBGwPpqrJXn1rgz8O2+kxSK0fiSP3MMex9EwDV5jfCETgTygSSTnasGVZDTvCXsux+0kuP5Y5tcvlwL3HAxqUkiBdBa6JbkdQCx2EMf0V0mxRtNLAJQw899uJQQaTFFtV1c1DkJu6olYwuvMiMEZCeI+AHZxgANVKotefrJHlVNqnBRT05OsfaF8yz32tZM7Ghp5q8EERQwz+DO62txvcQudYPKrmQliNY3Q/U+c7ep36hV9MfUsf7+JQCnv1oU8e8QehxNOkdGWbAZ99x9Zicousjw+58XICtMR0MA== 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=LqpovNEjqleCbbZ8xmFj+/lQhgf6Co34xT66wxQblYw=; b=nxvMIFihwPUZt/SywIVmY2vRvpLbMNi+pykF0vDaB+rbtfvjHz3Oo38EqdE0J7tLLiUvPYXiWGEBOygdzVsci+YKzMNvDqurr5nRvlppkr3cEKnZYFDwAgd06WxbRcOyXsnUV7XNvptogguHXBs4YI8BUS/MDp5JSh4wPRgRAZI= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB5064.namprd11.prod.outlook.com (2603:10b6:510:3b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.13; Tue, 7 Sep 2021 16:08:59 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::747b:3a08:d1ec:31fc]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::747b:3a08:d1ec:31fc%5]) with mapi id 15.20.4478.025; Tue, 7 Sep 2021 16:08:59 +0000 To: "Burakov, Anatoly" , "Ding, Xuan" , "Kinsella, Ray" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "Hu, Jiayu" , "Richardson, Bruce" , Thomas Monjalon References: <20210831131039.29964-1-xuan.ding@intel.com> <2c9fc397-df61-2ef6-0cce-db5dbbb1c952@intel.com> <926d7065-481f-b84e-1d05-bdeebd31d6ea@intel.com> <032e666a-9ada-f4c0-36bc-ad9b5fac4359@intel.com> <8779d165-6e98-a294-9f4b-a6ce76d9c77a@intel.com> <0998ae41-2c0d-c5f6-806c-50ccbcaf2139@intel.com> <695fb104-533f-a9cd-42b0-953769ebf7c9@ashroe.eu> <059c8e40-5fee-ce8b-c29f-c94a43ea7a50@intel.com> <20b52952-2c57-e07d-5982-f644d2921cb4@intel.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <11030a4c-ffe2-68e7-10c1-ddd74652b533@intel.com> Date: Tue, 7 Sep 2021 17:08:52 +0100 In-Reply-To: <20b52952-2c57-e07d-5982-f644d2921cb4@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DU2PR04CA0340.eurprd04.prod.outlook.com (2603:10a6:10:2b4::12) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DU2PR04CA0340.eurprd04.prod.outlook.com (2603:10a6:10:2b4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19 via Frontend Transport; Tue, 7 Sep 2021 16:08:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 128e8356-db96-49b3-cca7-08d97219ccea X-MS-TrafficTypeDiagnostic: PH0PR11MB5064: 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:4303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JUOlTDJzL58jiNzVX3WbsZO8gWvITouOxkdvlenGfjd4WPUPBrOI6YNZbc8HqkM6Eb1ZLc0404QOKbPAjYGGQNGtiKa9DL+M09Ijw+UrMYJWlVJVlZoGGnnVEmhqibGm7YMb0ctob5O9TYP4nGO5xYboxaG7b4EeNeGJC+xnEQhACpGMfkNPRlNm7r+JUcgW9y/1gXR/npQxIQ7nnmzC3j4ns6hDavZTrwqSes6mKPZsh21r0BT79olrtwgImGhWOPhtnbOkBT0O7Ao53/KB35LxLonrGtPZcRVr0Vz1Gh2FAhQA2i6l6iu8BUbE/5YP2spnGQmeyNcNPRAX/FlrbC/FukjB8lk7TQoylCIQBZjfB9skxyGdrrngzuzn1KQQhMqWP91B+a94e29+ApNlfG8XrUxL+Vz0hh+SEcqM3ZMckZU1N1Dw+GNMSVf/o8ZdOooyY2tKQr70uDXITc5lFuWVfsuOwmvZlP1Y82D2rXGWoR/kRTpS8f+BFVwa7BRmfQncisIRMMExnUNyFHEtxc3WXt9NMmPPyKKn908W25WDLwC5K6VO1zBVqbThhVO3gjhFETsMXXtEwacmDMzatsrnUaHKpkI726QyHYJuliQ6HMEi7MluZEcuDAGaKmEXbR9wUnOolimVQsWMxgDGXL1YjFjjuVA7ROiZkUGfPqlTZLDoJeg7TlzFZuHMOkxHPmEgapVGeNzgglIMJuTbh3ebW7rKhiXQOyS/+UNEQhSjS3f1X8Q6bg4i7E7QyCu7zmH0Zlu3DKi4dhklaiIdqhy5PcZzrffMpHQhfx71Z3o= 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:(4636009)(366004)(83380400001)(66476007)(36756003)(8936002)(110136005)(316002)(54906003)(6666004)(44832011)(508600001)(53546011)(66556008)(16576012)(8676002)(5660300002)(6486002)(4326008)(31696002)(86362001)(186003)(66946007)(2906002)(956004)(2616005)(966005)(38100700002)(31686004)(26005)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aDR6WmR2M0NkTS9zSnVlMVRTajBNSncvbHlFWWV3YVBSK1A1SDlTVExtWHVa?= =?utf-8?B?WkVldGdtQ3JaU29XYlZKWXB3a1ZCdHBXeWhSZVhTRXFlM1c2TkNZQmdlZm5k?= =?utf-8?B?M3F4Wnk1NmZ1YzJTTjdwZHNReU9rR2Vpd2RzNklVZEpRQ2FvOXdWeXZwVW5q?= =?utf-8?B?aG5qY2pLWHZtUjk5MUt3QTd6WjE5RzJyRkw5aEloTzNYRDYrYVdxcGliQ1FB?= =?utf-8?B?QzNrWitRNDkzWWQxY3E5dUlZZWU0WkJITEpoVER5NGxBS0tMOFlZay94N2VG?= =?utf-8?B?emRzRFVUTzFxWldBdWk2bEpOb1lmN3Z0b0hHb2JXeHp4YmJYTnBqbE1JK0dx?= =?utf-8?B?c3VPOFZyK1pnU2NoOTZjektRWmw2cW04S0xSQXFQdzVkTEZOZE85Sm1KWHpO?= =?utf-8?B?RWdHMFQyZW9iQmh3L2VwM3BJOXE1cXZaSDFPZkpZSmplbmZZVmNMaFRWVCt3?= =?utf-8?B?NGVnaGZCeUlKZEdpUnhzSHdLb2ZaV0t6a0J3V0MzQlkwM1pNTFNvSEwxdnBk?= =?utf-8?B?b3E3TGJiNTgwUjFsNVdXem4yeWFuRnRzaGxMaWY3ZzRyeEZCdWZIejQ0ZjRG?= =?utf-8?B?aGZqRzN0dDZQdjluV2NSbDBuc3FabGV1cVlRVGc2S0tTdXRxQXF5UFhvOUpL?= =?utf-8?B?RTY4eldGdWJJRjZKQzFxcFBXa3NxaHJpVE1LR1dueG9OUTJxVWpJYmVoQ3BY?= =?utf-8?B?ZDc2YkRNL3VkTk05UjZWL0pCNERZaUZ6dE9HS0Q5VEE3S2tFdFpYL3A5SHVN?= =?utf-8?B?RVMvaWh1ZUdqZFFwOHBjdFdhZkJEdGNXWW5rUzVsT21zTHRjb212VFVwMnFJ?= =?utf-8?B?Uk5SdnNnRFZCR2M5TFFNM3FFdDl0NFZJeCtpUytIcXd3ck1IZ3pJejlHRWNR?= =?utf-8?B?bkpPSDBYeVdueGJiZjdpUTQ3TXp2NVhiWGNCcndxTzBYK2F3UnhXaVJ3YUFJ?= =?utf-8?B?WmtWMnlWWUJmOXdncmFwdTFDTC9PTUFqa0QzTldBRjN1Sk9qWXEvRVJ4OVBr?= =?utf-8?B?dTloQWNPNnNFVXhqMmJ4OUFIWkFnb1NId2M3Y09lNHdIbUxnSFJqMEJlakM5?= =?utf-8?B?c00yeFVLcjVGNWwvRTAvYzdxOFNqbkVzdXV0NFZtUFVhR0crYlZjWFpYSjlI?= =?utf-8?B?S3VkNm1TeGlNYmxMQ1hHNXlpVE9RRGIwdVZuTS9Oa3BmZkljN1pXYmdUcjVz?= =?utf-8?B?ZldvelY3T0FhdEhBdEE4RWlOY3l5c0s2WHF5WkRWeFZySDNEWlE3bXcwWDdr?= =?utf-8?B?MFY1YkdUdUVUSTFZUDRNVFUxZUNjU0grOUJyZE5mcGw0ZlQvbGhNcnB3cEVi?= =?utf-8?B?U0t3QU1zZWRpZTJZendMaDFIUUk5ZEt6VkhVQ000cVVBcmZDeU5HUndzamJn?= =?utf-8?B?Zjd2NTBMek94NTJrM2Zjb2wzcFBoNFdMbVFwTDNxb2ladzN4MXJJUnRRRlM4?= =?utf-8?B?cHdxMmhuQnBSKzhpdVFXYW5wbTBWZVFHUGJ3N1JYT1o5MWRrak0zTlhoUjlt?= =?utf-8?B?U21WZnlGZ0NUVUdUTjhjTlh5dGx0Um1TakI4cFF2blVHVXI2SUM1bGgxNUhD?= =?utf-8?B?aEVMeDZaSDQzS3pDaGtlZlJubXVPUVNaZGFWdmFIMVdCZGxuWllqTndWMzIv?= =?utf-8?B?V1B6Tld1eDdJeCtzSXA1SjJSUkN3YlB6WnVVY2JnY3dWVEk0NG9BL0FSSXMz?= =?utf-8?B?dGxBcHA1TWNNS3h6K0drY2hUelZkbFcyTCtlNlA1TEJKS20wVHkyMDBsMHI1?= =?utf-8?Q?kvi9QYSVhRIlrqjr0HxLFudeA7ukfNDUG0ZvcDS?= X-MS-Exchange-CrossTenant-Network-Message-Id: 128e8356-db96-49b3-cca7-08d97219ccea X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2021 16:08:58.8658 (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: QtyHlH6/V1w/vx8wfzkUrCKRTmehQPSw9c3K+9FHaKhz0C65KRz+Q71YNtN5Mpe7glvuQbbnF+bsHX7/yuAakQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5064 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] doc: announce change in vfio dma mapping 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" On 9/7/2021 4:21 PM, Burakov, Anatoly wrote: > On 06-Sep-21 2:43 PM, Ferruh Yigit wrote: >> On 9/6/2021 9:51 AM, Ding, Xuan wrote: >>> Hi, >>> >>>> -----Original Message----- >>>> From: Kinsella, Ray >>>> Sent: Friday, September 3, 2021 12:13 AM >>>> To: Yigit, Ferruh ; Burakov, Anatoly >>>> ; Ding, Xuan ; >>>> dev@dpdk.org >>>> Cc: maxime.coquelin@redhat.com; Xia, Chenbo ; Hu, >>>> Jiayu ; Richardson, Bruce ; >>>> Thomas Monjalon >>>> Subject: Re: [PATCH] doc: announce change in vfio dma mapping >>>> >>>> >>>> >>>> On 02/09/2021 10:50, Ferruh Yigit wrote: >>>>> On 9/1/2021 2:25 PM, Burakov, Anatoly wrote: >>>>>> On 01-Sep-21 12:42 PM, Ferruh Yigit wrote: >>>>>>> On 9/1/2021 12:01 PM, Burakov, Anatoly wrote: >>>>>>>> On 01-Sep-21 10:56 AM, Ferruh Yigit wrote: >>>>>>>>> On 9/1/2021 2:41 AM, Ding, Xuan wrote: >>>>>>>>>> Hi Ferruh, >>>>>>>>>> >>>>>>>>>>> -----Original Message----- >>>>>>>>>>> From: Yigit, Ferruh >>>>>>>>>>> Sent: Wednesday, September 1, 2021 12:01 AM >>>>>>>>>>> To: Ding, Xuan ; dev@dpdk.org; Burakov, >>>> Anatoly >>>>>>>>>>> >>>>>>>>>>> Cc: maxime.coquelin@redhat.com; Xia, Chenbo >>>> ; Hu, >>>>>>>>>>> Jiayu ; Richardson, Bruce >>>> >>>>>>>>>>> Subject: Re: [PATCH] doc: announce change in vfio dma mapping >>>>>>>>>>> >>>>>>>>>>> On 8/31/2021 2:10 PM, Xuan Ding wrote: >>>>>>>>>>>> Currently, the VFIO subsystem will compact adjacent DMA regions for >>>> the >>>>>>>>>>>> purposes of saving space in the internal list of mappings. This has a >>>>>>>>>>>> side effect of compacting two separate mappings that just happen to >>>> be >>>>>>>>>>>> adjacent in memory. Since VFIO implementation on IA platforms also >>>> does >>>>>>>>>>>> not allow partial unmapping of memory mapped for DMA, the current >>>>>>>>>>> DPDK >>>>>>>>>>>> VFIO implementation will prevent unmapping of accidentally adjacent >>>>>>>>>>>> maps even though it could have been unmapped [1]. >>>>>>>>>>>> >>>>>>>>>>>> The proper fix for this issue is to change the VFIO DMA mapping API to >>>>>>>>>>>> also include page size, and always map memory page-by-page. >>>>>>>>>>>> >>>>>>>>>>>> [1] https://mails.dpdk.org/archives/dev/2021-July/213493.html >>>>>>>>>>>> >>>>>>>>>>>> Signed-off-by: Xuan Ding >>>>>>>>>>>> --- >>>>>>>>>>>>     doc/guides/rel_notes/deprecation.rst | 3 +++ >>>>>>>>>>>>     1 file changed, 3 insertions(+) >>>>>>>>>>>> >>>>>>>>>>>> diff --git a/doc/guides/rel_notes/deprecation.rst >>>>>>>>>>> b/doc/guides/rel_notes/deprecation.rst >>>>>>>>>>>> index 76a4abfd6b..1234420caf 100644 >>>>>>>>>>>> --- a/doc/guides/rel_notes/deprecation.rst >>>>>>>>>>>> +++ b/doc/guides/rel_notes/deprecation.rst >>>>>>>>>>>> @@ -287,3 +287,6 @@ Deprecation Notices >>>>>>>>>>>>       reserved bytes to 2 (from 3), and use 1 byte to indicate warnings >>>> and >>>>>>>>>>> other >>>>>>>>>>>>       information from the crypto/security operation. This field >>>>>>>>>>>> will be >>>>>>>>>>>> used to >>>>>>>>>>>>       communicate events such as soft expiry with IPsec in lookaside >>>> mode. >>>>>>>>>>>> + >>>>>>>>>>>> +* vfio: the functions `rte_vfio_container_dma_map` will be amended >>>> to >>>>>>>>>>>> +  include page size. This change is targeted for DPDK 22.02. >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Is this means adding a new parameter to API? >>>>>>>>>>> If so this is an ABI/API break and we can't do this change in the 22.02. >>>>>>>>>> >>>>>>>>>> Our original plan is add a new parameter in order not to use a new >>>> function >>>>>>>>>> name, so you mean, any changes to the API can only be done in the LTS >>>> version? >>>>>>>>>> If so, we can only add a new API and retire the old one in 22.11. >>>>>>>>>> >>>>>>>>> >>>>>>>>> We can add a new API anytime. Adding new parameter to an existing API >>>> can be >>>>>>>>> done on the ABI break release. >>>>>>>> >>>>>>>> So, 22.11 then? >>>>>>>> >>>>>>> >>>>>>> Yes. >>>>>>> >>>>>>>>> >>>>>>>>> You can add the new API in this release, and start using it. >>>>>>>>> And mark the old API as deprecated in this release. This lets existing >>>> binaries >>>>>>>>> to keep using it, but app needs to switch to new API for compilation. >>>>>>>>> Old API can be removed on 22.11, and you will need a deprecation notice >>>> before >>>>>>>>> 22.11 for it. >>>>>>>>> >>>>>>>>> Is above plan works for you? >>>>>>>>> >>>>>>>> >>>>>>>> We have slightly rethought our approach, and the functionality that Xuan >>>>>>>> requires does not rely on this API. They can, for all intents and >>>>>>>> purposes, be >>>>>>>> considered unrelated issues. >>>>>>>> >>>>>>>> I still think it's a good idea to update the API that way, so I would >>>>>>>> like to do >>>>>>>> that, and if we have to wait until 22.11 to fix it, I'm OK with that. Since >>>>>>>> there no longer is any urgency here, it's acceptable to wait for the >>>>>>>> next LTS >>>> to >>>>>>>> break it. >>>>>>>> >>>>>>> >>>>>>> Got it. >>>>>>> >>>>>>> As far as I understand, main motivation in techboard decision was to >>>> prevent the >>>>>>> ABI break as much as possible (main reason of decision wasn't deprecation >>>> notice >>>>>>> being late). But if the correct thing to do is to rename the API (and >>>>>>> break the >>>>>>> ABI), I don't see the benefit to wait one more year, it is just delaying the >>>>>>> impact and adding overhead to us. >>>>>>> I am for being pragmatic and doing the change in this release if API rename >>>> is >>>>>>> better option, perhaps we can visit the issue again in techboard. >>>>>>> >>>>>>> Can you please describe why renaming API is better option, comparing to >>>> adding >>>>>>> new API with new parameter? >>>>>> >>>>>> I take it you meant "why renaming API *isn't* a better option". >>>>>> >>>>>> The problem we're solving is that the API in question does not know about >>>> page >>>>>> sizes and thus can't map segments page-by-page. I mean I /guess/ we could >>>> have >>>>>> two API's (one paged, one not paged), but then we get into all kinds of hairy >>>>>> things about the API leaking the details of underlying platform. >>>>>> >>>>>> Bottom line: i like current API function name. It's concise, it's >>>>>> descriptive. >>>>>> It's only missing a parameter, which i would like to add. A rename has been >>>>>> suggested (deprecate old API, add new API with a different name, and with >>>> added >>>>>> parameter), but honestly, I don't see why we have to do that because this is >>>>>> predicated upon the assumption that we *can't* break ABI at all, under any >>>>>> circumstances. >>>>>> >>>>>> Can you please explain to me what is wrong with keeping a versioned symbol? >>>>>> Like, keep the old function around to keep ABI compatibility, but break the >>>> API >>>>>> compatibility for those who target 22.02 or later? That's what symbol >>>> versioning >>>>>> is *for*, is it not? >>>>>> >>>>> >>>>> Nothing wrong with symbol versioning, indeed that is preferred way if it works >>>>> for you, I didn't get that symbol versioning is planned. >>>>> >>>>> @Ray, >>>>> Since symbol versioning is planned, ABI won't break, but API will change, can >>>>> this change be done in this release without deprecation notice? >>>> >>>> Yes - I would think so. >>>> Since we are going to the effort of using symbol versioning nothing is being >>>> depreciated as such (yet). >>>> >>>>> Later we can have a deprecation notice to remove old symbol on 22.11. >>> >>> Thanks for your explanation. >>> @Yigit, Ferruh Does it mean that we can do API change in 21.11? If so, we will >>> follow the process and target API change in this release. :) >>> >> >> With symbol versioning, yes you can make the change in this release. >> >> You can send another deprecation notice to remove the old symbol for 22.11, that >> can be sent anytime until 22.08 released. >> > > Hi Ferruh and others, > > We have decided to switch gears somewhat :) > > The original intent was to ensure that two adjacent segments can be freely > mapped and unmapped. The easiest solution was page-by-page mapping, so that's > where the API change idea came from. > > However, due to tech board decision to not grant the exception at the time, we > have figured out a way to avoid the API change. The API change is still a good > idea because mapping things page-by-page is a valid use case that is currently > not covered by the API, so the next plan was to do the API change in a later > release as a separate issue, not related to original Xuan's intent. > > However, we've been discussing implementation details with Xuan, and we arrived > at a realization that what Xuan wants to implement not only does not *require* > page size, it *cannot* be implemented with page size API because there's no way > to know page size for that memory at the time of the API call. So, turns out we > need both paged and page-less versions :) > > This means that there are no deprecation notices now, because we will be adding > a new API after all, but we will *not* deprecate or remove the old API - that > one will still stay valid. > > Apologies for constantly shifting ground, but in the end i think we arrived at > the best possible solution for this problem! > So there won't be symbol versioning but only new API, which means no deprecation notice is required, please update this patch's status accordingly. Thanks for keep working on the issue to find a better solution.