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 5EA08A0C53; Wed, 25 Aug 2021 13:48:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4AC7740140; Wed, 25 Aug 2021 13:48:07 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id F1CE04003D for ; Wed, 25 Aug 2021 13:48:04 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10086"; a="217226752" X-IronPort-AV: E=Sophos;i="5.84,350,1620716400"; d="scan'208";a="217226752" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2021 04:48:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,350,1620716400"; d="scan'208";a="536272186" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga002.fm.intel.com with ESMTP; 25 Aug 2021 04:48:03 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) 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.10; Wed, 25 Aug 2021 04:48:02 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Wed, 25 Aug 2021 04:48:02 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Wed, 25 Aug 2021 04:48:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HqXI8mZSlADDcwevwg67wkRC7Y59Hkecmpm357SwIfjbjyzc7neDygwLrEu36/xq1Yz0V91OHjhOEAanBXvnIXwJ1igJdwG+A+OHMSaVzj2JdHeYGwgBWp4sm8OvdiLS/T3qwvQPe9PUmukwYLEmwTj5ZaQsz923JjZQjwJZ2EHNtgXitvg5H1d39Z8B5Xsonh2ChkPoZMZRwshGA/Eu2P+ENbjcZZrSE6c8RikESvIfOmNzICLGmNDzKJ2lfqPkMT2L2rPq+rHrBy3VENplKm6U6zdDEiT3xnjhNocaNOjQR48Zt4DN2Fkx2oFJ7QzkBGs034F9IvK6TacciVsNjw== 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=vk7+C0vwuGLBQNjReoiWFHMav6nNYE/zcTrhqAlNXQU=; b=EJ7NoPm+e9HH68oHq3mpblfFoD0usSZ2KD+fmJt4nBsJkvqKRtau/VS0sSDC3/SilMuJ8EJ87gtDP1aLeD28T+o1wI6pcZIsZ2qAq+jpquoQvxTcocNUFjXDG6ViClMqwVAAbQvEkB3R8PCvmgQcuGVRQvcPsd3EHQRTjjBGT6mHxmXIQoty1K5f9892FBOc/6GYgnekw/ahZIRcf41KF/eSTJrpVMq+Q3KJ+JJTq9JQWLJlpMsxrrMpm3NVxnSAPOpWIfeTZMudUCeoz25xBmj06nKobmZngKZpwR8r4a+SNjdr7AcwHUm5iyHrcaMhBVg2l44HTRw4EZc7byerHA== 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=vk7+C0vwuGLBQNjReoiWFHMav6nNYE/zcTrhqAlNXQU=; b=A5eZEK2dye3o6bL5YDOCr94TGg0QrN1LIK9RKf4vgmmWNiKnQwlIE6TSRQEFNHKMRNLkun9fmStbUMnn3M0wwbidHLBP4znzbi+DweMG8mP0vGxsFFF6A8TkCCLbJVk5U9f/+XyxU07V1GyYoDlYYSMVDC01JfqtilwiXe6pIxw= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5093.namprd11.prod.outlook.com (2603:10b6:510:3e::23) by PH0PR11MB4997.namprd11.prod.outlook.com (2603:10b6:510:31::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Wed, 25 Aug 2021 11:47:59 +0000 Received: from PH0PR11MB5093.namprd11.prod.outlook.com ([fe80::5193:dc97:b903:aaaa]) by PH0PR11MB5093.namprd11.prod.outlook.com ([fe80::5193:dc97:b903:aaaa%5]) with mapi id 15.20.4436.027; Wed, 25 Aug 2021 11:47:59 +0000 To: Xuan Ding , , , CC: , , References: <20210825112700.83810-1-xuan.ding@intel.com> From: "Burakov, Anatoly" Message-ID: <8aef3f20-8edf-7e6a-5e59-f325a2d3383a@intel.com> Date: Wed, 25 Aug 2021 12:47:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 In-Reply-To: <20210825112700.83810-1-xuan.ding@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB8PR09CA0027.eurprd09.prod.outlook.com (2603:10a6:10:a0::40) To PH0PR11MB5093.namprd11.prod.outlook.com (2603:10b6:510:3e::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.12] (212.17.34.161) by DB8PR09CA0027.eurprd09.prod.outlook.com (2603:10a6:10:a0::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Wed, 25 Aug 2021 11:47:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cbca30b4-053a-4002-5a37-08d967be2f8c X-MS-TrafficTypeDiagnostic: PH0PR11MB4997: 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: e0URAj4XR43oPR1pjDFnhDq5yJR9bSibXjCasfTDJUpVhNIVgDq0OPU9LtP5QEWo81eHcsgFrGeAEcJu0ATYHGh7dUcFg/dUwwigPr2rUOk2ag8nujRpm+xHRfsA3Fz5bIjLF9jmoF+FAOCYcya+2BEQHWR9QUaCWDfpkjyFMQGKrNR98Yx8UB2h7fpuuHlEI8fxCqXo6zkSbLkFyQ4dAslmVkF9jdeWkEoDEo62ussbIAEEsU7KRlpN4f6ZAaoYJuJox1QjTAPhC5lFtZvJ8q0yhKT+EkQBqv+HoWbdR+vfAbXBHdhf8f5MZb3iACeL88im4COwFF/mTClRkRsqGAohtVtpgP6jsuB59APSdGDxShpX918KPpRW3ouiwUnka7tjoCc3e+DKI4hM5vbhOOT0o5adDiX/t/kk4O2Qbfh8f0Z3DzOT3ik/Z1DzcbevxKWUZJHpzvh4Ji+u6o8B/AsMuPI+9b6oHksYBTqV47QGsKsm1cv5Yl9LMOJ2FR3wdpjwERGSLNAPuftmPn/9SU0V4ZBrKyZBzZWPvDyhj6x62Von3uFPsRdGViwiOvpiNgz2nVlpVAmlgetSHXs0sAPEMtTV6picDK8cr0EZe/arA7PqASUWgt6+AgxAilAMPrJFMeDMxJyxsk4p2739xAufTohOAjGfw5AIQj91B+3DILo+c9d5LLgG1UVQM9ecmvumvDkO800TFY8IR0hpb1RCQwd8S+xI7e8DziQv7FeOj8UBJNHoJmLUhUpEPSbFkDTZtq9CFXuAi5jc0L71dMPy2mrcqQ0DBHrUEpZVrO2sTQ+VHrLqc5q/fcVqNF4i X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5093.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(39860400002)(396003)(136003)(376002)(16576012)(6636002)(66946007)(4326008)(107886003)(66476007)(316002)(6666004)(31686004)(66556008)(5660300002)(83380400001)(2616005)(2906002)(956004)(8676002)(6486002)(478600001)(26005)(53546011)(966005)(31696002)(8936002)(38100700002)(36756003)(86362001)(186003)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eDkyakZ1TGpsWTQwOUMzNmpCZ1pCak9ncjRsdHErS0RWd1FJSU9lZEVLeUFC?= =?utf-8?B?eDZrdW1qVllGeW1jdGdEamFyVUxmYmZWTFJDTi9tbFNMMXh1WlBkV1ZKMmlQ?= =?utf-8?B?RDJkVTEwRlNVcnUvZ0MzQnQyRlQ5M3RRMm9pR0ozT0lFTithem5iSFh2QkZw?= =?utf-8?B?YXNlaGpNMkFLN2R2elpxVElQQTIrR0VhbUhod1lDL0ZSWk0yOTRHc3dnTHpQ?= =?utf-8?B?NGs4SDBHNW1zTDYrbG0rQ1NISW1Db0hLcEFRNlBQN0gxZmxJMS9ZSjJyL0Zu?= =?utf-8?B?M2F1eXFLcEVvZURFSWdKYjEvVzNqc09RN0hnYVBIUXZ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jR3T2c2aENZaitUZlg4VUM4?= =?utf-8?B?QStGbk96SSsrUENqRTZQZ2NEWnhmY01qUjBkcE00bDR2VWtOVGRobUU4cnJn?= =?utf-8?B?cFFaZEdmNHVKRm5OVjBiUDF5dFJVODkzN1RnOWFYNXpUd1VWVm1wT25acXJL?= =?utf-8?B?c29MUjc5Q3B4WkNDY2RlcDl0a2s5eHJNWmFtR1J0alVsUnMrVEd6RGQxNGcx?= =?utf-8?B?MXlGQW9rRHFZL0pBYVc1YUx0V3dGcUh5RTBlWWpzYS9tSVRiOHRJSUo4SE14?= =?utf-8?B?Y2N1OE9pWTR3Umd6U3dGZXBoSXJFeDNzOGFwYk1xcjl3VFJIQktNazNZNzZN?= =?utf-8?B?aTdkME5NMjkvWERhMVVqVlpSeGhjSlNCK0tWckVjM1V2dFh2ZGhpNnlWaTRh?= =?utf-8?B?eFJmOWVoVDZPeE5iQ3JpTWFPdVVQUSs0aTlHdE5oVFdXS0tGaUFSaXdZRmhQ?= =?utf-8?B?U0dRbk8zaWNRaFdxRE5vTUJ4QWpwYWJNSDcvQzkxWS9TSDNGeUFpM2tZTmJZ?= =?utf-8?Q?54YpwxL4g05woj9nq2enqyYDEM3pRH35e+6eAz3?= X-MS-Exchange-CrossTenant-Network-Message-Id: cbca30b4-053a-4002-5a37-08d967be2f8c X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5093.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2021 11:47:59.0014 (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: 3RxHLsdF6thFt/gT5sMUtTYDm4gH6w2lAuaJ1SNQY48J1X9yyQ1SFz8gDrU6vRlC4/4kUbQYLHRUptYRLFEh3G6xdwuSp/fHIZkuRGNAxgg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4997 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 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 -- Thanks, Anatoly