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 0F2A4A0547; Thu, 26 Aug 2021 11:30:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A7C9140140; Thu, 26 Aug 2021 11:30:05 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id F39CF4013F; Thu, 26 Aug 2021 11:30:03 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10087"; a="217426591" X-IronPort-AV: E=Sophos;i="5.84,353,1620716400"; d="scan'208";a="217426591" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2021 02:30:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,353,1620716400"; d="scan'208";a="426728142" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by orsmga003.jf.intel.com with ESMTP; 26 Aug 2021 02:30:02 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 26 Aug 2021 02:30:01 -0700 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 26 Aug 2021 02:30:01 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Thu, 26 Aug 2021 02:30:01 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.49) 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; Thu, 26 Aug 2021 02:30:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bu93H3MEhAHeKxnExQ3UhUskCk+JToDI4/fYjWezX3PmHdfEP+wUDGFQAznrGd+xgBtp0wgNmBA1npzLBw5qdBYXZj7kswXI0lVzAjI1LPz3U1U3pCUX2Qs0+mvsvYuxksXNPEEipObPLZMrAmyiyTNithMrvI9yfv6u/dVIu1j0q5VfbHuB2t7m7bqkm8hl7Rf4lCQkwcJsVvf1vVSzdEdBBl/OmH99P6CJjChWJA7RyCXoY3zoNwFq8Nsfr1MpbdZglk8oRHeDUTeIE/MSd7AasFGxuy4ZfuC/lbpUPfkcA1YSdoJFZ2/mI8vWCh4bvyQ/38AuXER+cJPeOJ9nOA== 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=ab0869vICa56KcylwPiwdf2STSR+y9AYSHZJl/IdCLo=; b=AOF0kezuBi84V/nkv3//WgvXHUgNGmhJrdZG0q76tR5RxwoT8A6uZoPoSYLLMXyrpgyQw+gMGgUP2c3ZagPtF9EnXxQAHIFOk0nbmE41M9o0FVRTZL+5ySGSSb7g5FCxskm1w8gUGA5LxGJ9TAySYgVYKbcIJ17mhkhNvVo+5iYRafAi+MzzRf8ea3XuK4O7cma7sTN2Iytgjl5V1QdWuUcFgXer+JZq+pIbDu/XHJ0WXm2jcmSuM/nAK+EnlUPy0QzHN+zY1KFkHVQWI2pu3CqpiAfPm8VrHC4rk7MG3FQv2Ld2FFARdZWueH0gCBSyXHCwtgkflgH3AEVGAU8yPA== 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=ab0869vICa56KcylwPiwdf2STSR+y9AYSHZJl/IdCLo=; b=qJ7xLOYOJNFNYf64tOlo16Y2snF6Uf3Zof1qY7p2Tn++G5Q1C6f+tk4bqPafzPGyCwFMrqZhKYC+jsOrI/cKAiNnvVONSElx41kxyh8ZufvAq2DsA2/GeU33sRrKO2ryg0/cqZ5WuDYsqcHYvB7REceeujH0/xdb3pHt2ZFH0Zg= Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB4967.namprd11.prod.outlook.com (2603:10b6:510:41::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.21; Thu, 26 Aug 2021 09:29: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%4]) with mapi id 15.20.4457.020; Thu, 26 Aug 2021 09:29:59 +0000 To: "Burakov, Anatoly" , Xuan Ding , , , CC: , , "techboard@dpdk.org" , David Marchand References: <20210825112700.83810-1-xuan.ding@intel.com> <8aef3f20-8edf-7e6a-5e59-f325a2d3383a@intel.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <886efb65-32aa-adb9-63de-9ca41d87ac4b@intel.com> Date: Thu, 26 Aug 2021 10:29:53 +0100 In-Reply-To: <8aef3f20-8edf-7e6a-5e59-f325a2d3383a@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DB8PR09CA0007.eurprd09.prod.outlook.com (2603:10a6:10:a0::20) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.0.206] (37.228.236.146) by DB8PR09CA0007.eurprd09.prod.outlook.com (2603:10a6:10:a0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.19 via Frontend Transport; Thu, 26 Aug 2021 09:29:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 775c658d-5f60-4c47-b8a9-08d96874129c X-MS-TrafficTypeDiagnostic: PH0PR11MB4967: 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:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tJIqLpwYvhP4BVumu9eNGyGSpEkfZ9DgdqOGV23y6/CtqJS1jNSSG7o0NOkVal0C3siMuEl+xeJThZR8SrCxplbA847IUbZLU3NIv0Wv+4TfbJvazLv3z/cJPJJW6aP/oqDd1Z3W0VmYwsUuEC1rxyV3fXTQs2doKGdYsZjvV3WhbNn5oKjxitf9uSbxMhmAevLK5+GErsHUgs9VQvTC1TWbg+/ZLNj+Csdlygur6MpynHumr2N++5og3FZ1HRZrxTvuLlOhc5+YgX3u/J5eq3409c99PXBO5NxtgkqxLJ0w/eUcOqTsKJQj5ZjsGvL3jxbdHw6yCS6LOPiqRl7EjWw6P3vuWrRpYIH6dAiy2cqAmNKDmNyw4pRflf6R9oTQLUuwbTXcbhgkT3idfRsg2lcc2afSHXWBQ/ge2z+XryJUirv57Ms6bwsp/Q9AApYLTMlJKN+2eDzDJmWbLeNgI1SvExu4orgMossHwmnXgSfQvyMHi0RnCMh4uTVx28y01NeT/Wq9JNCEPIDXYi+RWNhEPxQdEyTvwQMVn91EaKFRKihlOT9MhtUfZLvZU/l1ws2CdFbPvGFv+JhvLuklwVPJPl6vf85Wtn7C1KRfid0n1oNJv9aniZ1NdBa02Ueo8lnlIFDyUlhhMNs4e3XCjVddy1r/wBwDnAT36W/2ix0tqmzY3Fl+V9pJzbkmk110DY4ggsGCRQugZo4qWmE9gt3+jLYJh1jETfw/RGzDMYtXjCLdRPLi+1fGv67ZAn/k1ZYxTUKFfFffUYehMWpm7GWtjP/MNUdUbYOpS6wBTWI= 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)(136003)(376002)(39860400002)(396003)(366004)(346002)(110136005)(16576012)(54906003)(5660300002)(4326008)(53546011)(478600001)(316002)(31696002)(2616005)(6636002)(956004)(44832011)(2906002)(83380400001)(86362001)(8936002)(31686004)(26005)(38100700002)(36756003)(66556008)(66476007)(8676002)(6666004)(66946007)(966005)(186003)(6486002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QmFheE9VSU5RUTdSc0k3VlRJL3Q1SmZRYk5VQjJxZ1FQWmpUTGtRR3Z2alR4?= =?utf-8?B?bGd3UHFPZjJwQm5ZbkFldVJqTWFlOGR1NDNVZTVoQ29YSGZqQUJLREV5SWpp?= =?utf-8?B?Z0FTMUJ2ZFhEeHYxMDV4TTZxRGFjUi85RUVHSitvWWxPUkJYZ0Z3MFhUTlNE?= =?utf-8?B?c0VsbFZsc3o3SmZ5UUNqZUorTU9IM3V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sm5QbXVPZE1EOWJJR01uV1Z4UzVkZlFGQVpJb1FSWERT?= =?utf-8?B?MERaWkE3NzRjaU5wTTZHbEZIV2tFQjBJTXdGN1dNOHFVbVYrQ0s1QXNDNWZa?= =?utf-8?B?dURudGZqRnBOQ1pRdEF6djN1QVljN1crRFJEUmxtOVRIMVdNckQ5OXR1WlVL?= =?utf-8?B?cUZLVmNYY0oyTk5vOVlka0pQNkR5UFR2SHFtbldRcUg3aHZEc3d0VmdsRTRU?= =?utf-8?B?QjVZOHdaZU5vRTM5UUVSeHljSEVocFlPMW1vd0h3QVd3dFF1d0lFTmdQVCth?= =?utf-8?B?KytuRWlUaTBHckVqd21QcDU3WXdNWGdDZllEQ0w2MnU0QWR4S3ZzUTFmN0pX?= =?utf-8?B?dXdOZWNnMVJMSkRoSlRpb3F0OG45Mk5RRFNEalRXYWRLNnhlRVRzK216SzE0?= =?utf-8?B?MEFPZnpnZXlyd3ZZTm5hL2t5R1JuektTajAzTnJ6aTB5S0NySkczQ3FONGtp?= =?utf-8?B?cDNDTHVINVlmSUhOM0ZHRVBIU1BBRld0OWZYSlhLbEZrb3d6UnJ3Mm92MzhP?= =?utf-8?B?bkphdTVOeEVzaDRUVnUrb3RBZ3VUT3lXNDlLQUd0VCt6Ui9ManRFVi9yejA0?= =?utf-8?B?d0pDN0pTa0ZrajA5WnpGa0EwZDlkUzQrZWlpNjZ4OHNTclpUT1BUaVNGWC9v?= =?utf-8?Q?UmZGMeYWoT6kRzOm8PlgRlRgpVAHDF8GZfRPRjW?= X-MS-Exchange-CrossTenant-Network-Message-Id: 775c658d-5f60-4c47-b8a9-08d96874129c X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2021 09:29:58.8835 (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: nHhRZUcOo5lsCcVRR63dXnfCSqxJnWC4d5xnuwKtn5akVZGtB8xtIiGwgvtI5/Hxlesyh/fm57FIea4LiDZuWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4967 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] doc: announce change in dma mapping/unmapping 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 8/25/2021 12:47 PM, Burakov, Anatoly wrote: > On 25-Aug-21 12:27 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..272ffa993e 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` and >> `rte_vfio_container_dma_unmap` >> +  will be amended to include page size. This change is targeted for DPDK 21.11. >> > > Acked-by: Anatoly Burakov > Techboard decision was to add a new API, instead of updating existing ones, to not break the apps using this API. @Xuan, @Anatoly, can you please confirm if this will solve your problem?