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 4FC3AA0C4C; Tue, 31 Aug 2021 18:02:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 104E04067E; Tue, 31 Aug 2021 18:02:32 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id BFFCD40141 for ; Tue, 31 Aug 2021 18:02:29 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="218517117" X-IronPort-AV: E=Sophos;i="5.84,366,1620716400"; d="scan'208";a="218517117" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 09:01:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,366,1620716400"; d="scan'208";a="601040777" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga001.fm.intel.com with ESMTP; 31 Aug 2021 09:01:36 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 31 Aug 2021 09:01:35 -0700 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 31 Aug 2021 09:01:35 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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; Tue, 31 Aug 2021 09:01:35 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.107) 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.2242.10; Tue, 31 Aug 2021 09:01:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V8KhGRauIm9+UIUrjbx52F65+eaFKvnjYD0dTuvsXT3YzkjVoBJAF9w0Q2PZqgfsGFODMO6q6cuYmL+iSatDuajza1+6jnMkq4V6qpHsAoJ1izy106ZgMRHRb+WkIBN66UFBJNIlwY4VjoHJIyL5drPJWR0QS+7QzqcZShW2yaMz01HHFvHd/juIZLW+ezCL3taM2JJSVUtPFM8R2KrSkZv87kbNuL1pV0Q17J/CDdVHypXSqLI2KQ2nOl8oGuyxoomOnkS/hR9FQ2+8ebbKOBhJ5ktsRSwnXPXUTPTNzG0KWLzlcecaLad/sMZt5PrOhxnD1VKAG0hVS1JD8DCFSQ== 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=sOX+IENs1iapiuJA2E6RgXnl7yz7RHYSpskZwKLXHN0=; b=aWkiT4ul2zY4Pd4FaOmhUF0YTWs5zW0L0w0AtU7JMHXf0+x7vTu6MKusTIpySWb87MlJh7nFLbzbOnCbtSYvrCkugrLjFDBX0XO0h0/Uza5vQFJmlAyT2dtYWuo2VpHwOdZgBz2AvhP6L6WcyJjNSQ2o64vcydMqjb3uTNO+mAQ6aX6QkNqdPaI7yJWryx0qXFpzwDRS5aVkfKsKQZYDas4Wq6lqkHJEnBIk7RIgkB+sX4+XfR5V98xXiyerfm02fXhPqyywDT7VV80WU1DuOyEjfR6/rrMY4cz1NvOUcxMvWVZD6NgLDJCqde1K3ZBKnWtfVNcGNiQsU6TPOB1N0g== 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=sOX+IENs1iapiuJA2E6RgXnl7yz7RHYSpskZwKLXHN0=; b=eWdbmEX4f0anTpwk4JYWorwxg+RdsfdvSjYZWcw7oL04gPApgW2AqNiz+/HXy1kqzkuYtTdFxX9mAeR4OKnAueLANTpq6rhU91JwWDWDUOz4/mS9s1NJhOY5nkSd7XJ8CAcazdSRdZrx+f3ffqL69AkUZAUJ9l2f3i6GEmCqdEg= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB5142.namprd11.prod.outlook.com (2603:10b6:510:39::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.24; Tue, 31 Aug 2021 16:01:33 +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.024; Tue, 31 Aug 2021 16:01:33 +0000 To: Xuan Ding , , CC: , , , References: <20210831131039.29964-1-xuan.ding@intel.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <2c9fc397-df61-2ef6-0cce-db5dbbb1c952@intel.com> Date: Tue, 31 Aug 2021 17:01:28 +0100 In-Reply-To: <20210831131039.29964-1-xuan.ding@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DU2P250CA0011.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::16) 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 DU2P250CA0011.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.20 via Frontend Transport; Tue, 31 Aug 2021 16:01:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 83b089d9-37e8-4795-d6d2-08d96c989a46 X-MS-TrafficTypeDiagnostic: PH0PR11MB5142: 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:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BiBR5SDFHd2nVqtJUJXX/k1Mw4vvWR7/ShCYgIqcsiev77OnE6Y1VWXiNlZ2kEuKPQMUikqF+IPCSzrYBI0SDJ4Mo+oFBJBmP6Y3SP0x50aVdefA2lfzcL3MVlAAI55KkoMeZWqNyvcjGkMsWrIHGdXM6m5xWmEtdDp3ietGL57x6Z5BmZFnmgs245mo4SzEJrPgDExSFNKxpFST6Du4gt6xHgSmtxBWGQ6MagRa9J7g99I6etqR9SxXQ0BpuA3oll7dIJeBZNKpsdfwc6JFZVmRpsjq8zxGgPvGjE+HsHnH+EZkiGBq3J4F5NCe9JD95Os1KRNnibE0yAizYXmKC0p1/DCHreHnI1IMLQSQf1NCgUDhoDneg4I2raKeu/KM7vqhW6a4/YD4Nm49b5J6nEgw0o0WVNWDL5BF8DAyqH/IkNELZjulPj4brtE3+bCazDtqoFeo7TbixpIwCWwoCblIOKcZ3ARWBCHfBumf9IZujIRXhX5B2Zlw67CJeU+UBf59oXt4s/S+OEH8V3lvUrcyzvZCtjIC18x9CXkF2vBBfHK3xtEecIphsYarcZrJUMrpM4A9m9if2u0sto6D2OKjfgf3o7SlrKiAicYjYoadtZua/HrYfPHuNY2H/z/gV63dZf10f1f+lgMK8nJp9MMpcSP7hWACWTs6UnUWa6byS8LLVpW6fdnoQXIf/L2V5w4++ugNqQ0+66j6TADSp3iJZnY67E+Rm94PI1ImTsPIeYFx5IHQlSD1t1HWifJFghw+Vhz0XhOa/i+lAJG8vyfvp68oaSvuOL8p3u2mLRA= 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)(39860400002)(346002)(376002)(396003)(366004)(8936002)(6636002)(4326008)(36756003)(186003)(31686004)(6666004)(44832011)(2616005)(956004)(83380400001)(2906002)(26005)(107886003)(66476007)(66946007)(478600001)(66556008)(6486002)(53546011)(966005)(8676002)(5660300002)(38100700002)(31696002)(16576012)(316002)(86362001)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eXVrclFTQTlWRUg3ZXZJdTRtc0FnSURyWnBVYUZyeERhMVZsb2VPemhWSnEz?= =?utf-8?B?UXU2V3dFTkxBelVOL0RtMUtibGp0T0hyTXhsN3JodVZqaWVaLysyQTBvMmR1?= =?utf-8?B?RHpRbjZoOXFoYTh2RWFKaFJ4Vnh2ZVliUG5yNE9jaDhuWmhYRzJwd3dESFp2?= =?utf-8?B?M1h3WkhvY05pQ3kwbzRTeUljMTg3UitqK0cyUmJqMWJ6ZXhHUTlLRDBBQlJE?= =?utf-8?B?ai9pQnVpcXRERXVPRzVTV2JRZEc1c0REUE94WmlVMz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SU0ttc1J2cmlXNUp3eXhIRm5iT0V3?= =?utf-8?B?K2RoWEdqMW04RVRESlIyaWRvellmakh3WGMxWWNVWFFkWWJIS2txNmpudUpr?= =?utf-8?B?T3FIaWZFaDRpSkQ0Q3pDbExJWUV6eSt6VTJBUTc4dmJKNDZUd0pNTmZjcHBC?= =?utf-8?B?Zlhya2J1SnEwZDU3bVFVNTgydmJ0RXpGUkowaThRS3U0VnJTQUx6WGNoem5H?= =?utf-8?B?WDZzTTRyNTNMdnZKRkJlcUo2bjdReEQ3am5nU0NINDFEQkFYd1hPR21OcTdn?= =?utf-8?B?MVE3a1V0UEt1VVF1Y3lielpNcXRnZ0poUU00L1U3UDMyMVN2VHhFNExCQmdD?= =?utf-8?B?aHppMlBQSDRCdzcyM0lCOWhqUk1jcFArU2ZXZzFYNktNaEJsY2I2cURDZ1Za?= =?utf-8?B?RVdoRFYzQ0t3aGdoZkZZQk9pdGFxWmNrZGVGelRSMk4wZnZsVmlabVRrR2pl?= =?utf-8?B?NjFZU1QxOW0zSmFXSDN4UUc4a2pwOVJCWFA1YUtYbEtKVXpHMW5EVldrZkk0?= =?utf-8?B?cytocVdBSERuM1RCaTg3T3dmU1ZsMFgxblRsRTlVSEQxUGgxTEtMVDJtaC9v?= =?utf-8?Q?d4idSsEP/+eNf97ATKAQleBiDIdDTdo+/+P2uos?= X-MS-Exchange-CrossTenant-Network-Message-Id: 83b089d9-37e8-4795-d6d2-08d96c989a46 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2021 16:01:32.9953 (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: teJgafst93326hUU2gCxuVqB0jUAaP1WpcrUaLQOcjXfkuA0jH7ASnnhUaEzEF8FKhqnqSS42lUgk6o3bFzMTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5142 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 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.