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 E51FF42DD4; Tue, 4 Jul 2023 14:51:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 722A540E03; Tue, 4 Jul 2023 14:51:56 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id B915640042 for ; Tue, 4 Jul 2023 14:51:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688475113; x=1720011113; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=R9Y6/FsXFXMIN+VxZzWKHe/LMyF6BUZj9L5vA1wBRg8=; b=C4A4/ZwFn4hbZVVfb8sI0ILL23qE0jMGdjdYXi3A1Auj3ncVUSkXHN2Z hUK3ahHliis1lJLyvNKQ83tQD+Kj55icU/82r8FBx71I1Z4uqErOu4r9j 3HzzoJBMdTgLh8ZnMnJF23gaEeCtf961TRsZdNIZ8SvPK21+nA24JFbll YuL4CR7WKfUjMaXS6C08OUWf47sK1SVlps2OV+3tS1FDh+xQzSo76HJDr ezdW6mqMEfKA7/rni3QYLxXc6PQHadyT5p0GS2BsT59vVfCEPuJubv/oM lAlzN6vX6XHOfoCcoor5bsT7JXBJhGn7etohprq+MsUeLbhOd5Do7JqN2 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="363149108" X-IronPort-AV: E=Sophos;i="6.01,180,1684825200"; d="scan'208";a="363149108" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2023 05:51:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="712880480" X-IronPort-AV: E=Sophos;i="6.01,180,1684825200"; d="scan'208";a="712880480" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga007.jf.intel.com with ESMTP; 04 Jul 2023 05:51:52 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) 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.2507.27; Tue, 4 Jul 2023 05:51:51 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.2507.27; Tue, 4 Jul 2023 05:51:51 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Tue, 4 Jul 2023 05:51:51 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) 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.2507.27; Tue, 4 Jul 2023 05:51:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c1bUe9jdCOCxI72CxxOTJ4CfU1oD7/kr7miYxZPUGNLixuCpzlOfi8EA9cC4ikrblYfXesVDchX4lh/sQxQebr/aTmKErhbpKhrvp96xEKan3MazeqxMkcJCHQ3WMvdKp4n/XFre0cUWxEdZ2vrC7/VMk7jmscwP1nBTjBWekwIw0zUhpHKdx7XmuJgs0wm6AyBD7L/GE0odpBp7JRgJkiDNwZz45lmQmwmGFbUx/fwX9xeaNuz0obx5Bee8/eNQpyWeQ62t5hOvUZrnHXdnZAoYlyelFGtjZBeW0J982YaJDriZWT191g8Mwe6+miEJt1iZDAc42CGu1pEaoKmwaQ== 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=toM5axroiCWsVZU9oH3FEu/UBhqnidugNbHh13YQ29g=; b=Pv9x7a1NFPMtx2he2nLvYUeQK+ij7vRCfPDa0Vj+WEfjGB0G4rebgwAMF9DQooXOppK1Pg2Zw+/p/f9fZpC/Mi4Rov75frnq6FtjyqyrDvr4XMQsBEF3AP9QvQJMmvmRH4/wd0eEUDD8qcYQwD3w1QHhJwAccMduER2qmvX2I/949mFeyIw3xk+xv64ag2qIBbRXRGg0uiO1bSCx5ci693pVrMFSXagBxw03sn0R9nH/WWINLHAHoFTFcFpQSq+6vShhm8/uaObfTwGJiqq/0oVT/GtLqxGqT2nDN+GR+njx9dh9us/i5f5gUmbJZRYemoxQcWjUs8dD9aEhnsxP9A== 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 DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by PH0PR11MB4918.namprd11.prod.outlook.com (2603:10b6:510:31::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Tue, 4 Jul 2023 12:51:48 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::3a63:ce12:27cd:911e]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::3a63:ce12:27cd:911e%4]) with mapi id 15.20.6544.024; Tue, 4 Jul 2023 12:51:48 +0000 Message-ID: <0ac10642-4d89-2778-819f-56730e899ec1@intel.com> Date: Tue, 4 Jul 2023 13:51:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.12.0 Subject: Re: [dpdk-dev] [PATCH v2 1/1] vfio: add page-by-page mapping API Content-Language: en-US To: Stephen Hemminger , David Marchand CC: dev , Bruce Richardson , "Ray Kinsella" , Dmitry Kozlyuk , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam , Xuan Ding , "Yigit, Ferruh" References: <043fc2d53770da8248b9cd0214775f9d41f2e0fb.1631273229.git.anatoly.burakov@intel.com> <868198b65b2e067d0fc733eb30b78dd4f8337798.1635430146.git.anatoly.burakov@intel.com> <20230703164857.6b016eab@hermes.local> From: "Burakov, Anatoly" In-Reply-To: <20230703164857.6b016eab@hermes.local> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB7PR03CA0100.eurprd03.prod.outlook.com (2603:10a6:10:72::41) To DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|PH0PR11MB4918:EE_ X-MS-Office365-Filtering-Correlation-Id: a0020985-3ed0-40bb-5fcf-08db7c8d6e1e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KNnPB+XO9gyv+XbOW8ubfPNeqXB9GMEeAOjAeOUmsnRk3WOWhe20NRzRSH/ix3G6EEUv58UcoLLnUVwbeszvhA5iG8WwSnLzbqvlQ0kd0Khq7Gy02MlpVnqjc4ZKeOy7yPZpv3lAdzCHSDrX56CDnU9U2d+YF1/tFlSohSaP1xmxz/7UKIDKNhMavSEDJlF9HEC+fLcGBjeAIwJP77WKvUR5upcOKw5PZRNUFYLRuFr/vWZhXcHC/M4ccGlles3F5TQH5N/ESjQjPvwpD7j3S961YHGbU5FPQPe9yoaVQAHFlb5xPIsD1HUc99axHJTmxtw7r2GztfjQQnE7ezKp4qqUHP0BTrjDnv9MUgXFcJzxiiMLXwXaUZBTDH12NpzVvVGzmweDQmeAm36ciVv/CmECYaEreHeUeYs8hbsFL7pq6IqwvVOuW8PBzJ6WYmcl55Xb0iF/BjXIjyUCL4SfS8shiA/QCrQlya6KO6yHwk2As8hU3h0BGhYR1J6qf8mShIu2oon2vbvVGL6qP3ZSxrkDcMldlN53Lif2QY/6pn4awNT5cgJW0dexMvNUtiwWQaPuVtH1fp54GbbO3JO1oOP7D20QnZu6LM2TBXu/VGWKdZ6q3CLB2cd0lNVApz9trfbWsGslL5sezNbH+MLtBw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(376002)(136003)(396003)(346002)(366004)(39860400002)(451199021)(31686004)(6666004)(6512007)(6486002)(966005)(54906003)(110136005)(478600001)(83380400001)(2616005)(36756003)(31696002)(86362001)(2906002)(107886003)(53546011)(26005)(186003)(6506007)(82960400001)(38100700002)(66946007)(66556008)(66476007)(4326008)(316002)(5660300002)(41300700001)(8936002)(8676002)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SXBMeFVRdDNMY3lneHIzbFNESzJHL2NKd3ZNbFJ6RWowUGJXNmI5dFgrRXV5?= =?utf-8?B?dk85eXBOcHhCOHNrMTBLZFArNEQrdVpJbWJUckpEQmFyNUY5M0J1Sm8zSU5O?= =?utf-8?B?blI0WGRPb3JkT1pBM2VXV3NyNFhPVW00aXkxM1B3T0w5ZUVZVzU0NTkvVzJT?=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NWs5MU84bGpKbzVENmFGS3lmbTRCQlMvanpJOVpH?= =?utf-8?B?QWNVVmNWMG8zeWllQklIajRIMzN5R2Noanp5Y2czamhtQlIzeWVydXJQZ1BZ?= =?utf-8?B?KzR2RlJLMVlUYTMxT2tXN3lETmxJajBZQlE3Vk9FOEwvTERtSlgxSzkxMnZs?= =?utf-8?B?VSs3azg5YzczNnNEaDRkM1ExcWFyTE5PTHBDcHRobmsrb1A3YzU5em5PUGVO?= =?utf-8?B?VUE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: a0020985-3ed0-40bb-5fcf-08db7c8d6e1e X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6502.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 12:51:48.3938 (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: k3P8SWMhGBTVKV1oaDRDcj7iurOEFTm1CZeGMv/bGMLcItmYW0E1qb1uA+crCr1pxbtwwJSlDQ6J4/xbqrwV565A5U/Y0ZdvlgyPwznZ1Ts= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4918 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 7/4/2023 12:48 AM, Stephen Hemminger wrote: > On Thu, 2 Jun 2022 10:23:07 +0200 > David Marchand wrote: > >> Hello Anatoly, >> >> On Tue, Nov 2, 2021 at 4:54 PM Burakov, Anatoly >> wrote: >>> >>> On 28-Oct-21 3:09 PM, Anatoly Burakov wrote: >>>> Currently, there is no way to map memory for DMA in a way that allows >>>> unmapping it partially later, because some IOMMU's do not support >>>> partial unmapping. There is a workaround of mapping all of these >>>> segments separately, but this is inconvenient and silly, so this >>>> commit adds a proper API that does it. >>>> >>>> This commit relies on earlier infrastructure that was built out to >>>> support "chunking", as the concept of "chunks" is essentially the same >>>> as page size. >>>> >>>> Signed-off-by: Anatoly Burakov >>>> --- >>>> >>>> Notes: >>>> v2: >>>> - Added checks for page alignment of supplied values >>>> - Added rte_errno values (similar to patch 103165 [1]) >>>> >>>> [1] http://patches.dpdk.org/project/dpdk/patch/e8c5e7ba089e2283c3cd67e4529e52fe49390eb9.1635428963.git.anatoly.burakov@intel.com/ >>> >>> I think this API also needs VA and IOVA addresses in an array, so that >>> it's possible to map IOVA-discontiguous segments. This is too late for >>> this release, so let's postpone it till 22.02. >> >> It seems this patch fell through the cracks. >> Any update? >> >> Thanks. > > It is not clear what problem this is trying to solve. > Is it for some hardware platform that is not available? > Any updates on this patch or should it just be dropped? > This should probably be dropped, because I believe there was already another patch that makes all mappings as page-by-page. -- Thanks, Anatoly