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 DC56AA00C5; Wed, 27 Jul 2022 21:27:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 930DF4021F; Wed, 27 Jul 2022 21:27:14 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2045.outbound.protection.outlook.com [40.107.20.45]) by mails.dpdk.org (Postfix) with ESMTP id 3C15740141 for ; Wed, 27 Jul 2022 21:27:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZeYGqRBxresJr7kB4OLkVoUdJ65I40GFX2yR3pShMxHydFUx/SfTZJbw7f8RStym9bzsG7bbxVdCPhRohULi3DAMr5gCrQPchIeZH4a1VMZKg/zSgT1758xtsq0ZZK8ZDjiwluexNpuNA+0gmO+P5zc9D/aW8g1aMZSZNv/bqWQkJq0ayWjVT9s7xJLGV63jzXQKv5N0rA3xqK7aGLfwZVZErnqJIrCbtkH+shNUdioAE7BgmsdBdMQ6qvjjfQIUvGK7AIkgDf0DIh+P+S7v3Y3R2cZHb5p1cHPj+Q9fVc4GdEsZbBeWuE4V3KJ1Pc6cEmZsPcYlqr9dqePa1efgNQ== 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=FN6zgyLOFm4gwtn25ImSyB7ndtrd3/zaQz6jHcf8zrQ=; b=WP4vi+X1B13LLp1NK7uakLo2dSTCdLCYO3XvwNLce7DFLh+Ez84enhvz83XdbCqkOvrauOoTkiD90vsrY/YZDGqE9YHRaWxTqO396UdI/O/WDw9d86bLIXEPAkuaHAGoX0D4O5XQ0EjzAesL/cfXad1oFEsUgRMdAZ89chuaLZeSHLDwZIsiVW3W2AD58LqwepOrosrR0IrUkeKMkloFH7aiOVECpsNh1x3wRWvxWr/Rq2t0ukjBSfr3FZHm6IGooWZXSO4G7ArSr7p/SMpM7gzJTCXdirDZ0Ti79Ar1VptqJKJ+xpEjxQqWa6Bhvt0qiI2CukCITpqDvP4uDHTE2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xsightlabs.com; dmarc=pass action=none header.from=xsightlabs.com; dkim=pass header.d=xsightlabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xsightlabs.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FN6zgyLOFm4gwtn25ImSyB7ndtrd3/zaQz6jHcf8zrQ=; b=V1up8ng8ZcB2Zg513cDE6PcqXv88kn3D5JlruFQYmGdjuqATfr8rKuVLPF7GeXZviRUHivSctNf1LKEsa8HyW5VU5oM3PElxMDamhNYVtU0+4xaGtRKMLMz9B25j69N9KV+jUpCrqTDx7B/TyrF/WaYhU8Q4+8nHzKWzqFGJOKU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=xsightlabs.com; Received: from DB9P193MB1482.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:2a6::7) by AM9P193MB1810.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:3ed::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19; Wed, 27 Jul 2022 19:27:11 +0000 Received: from DB9P193MB1482.EURP193.PROD.OUTLOOK.COM ([fe80::d09a:72e6:a61d:ce90]) by DB9P193MB1482.EURP193.PROD.OUTLOOK.COM ([fe80::d09a:72e6:a61d:ce90%7]) with mapi id 15.20.5458.025; Wed, 27 Jul 2022 19:27:11 +0000 Message-ID: <9b885e57-0ed9-ec28-314e-04397892027c@xsightlabs.com> Date: Wed, 27 Jul 2022 15:27:06 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC] EAL: legacy memory fixed address translations To: Stephen Hemminger Cc: Dmitry Kozlyuk , "dev@dpdk.org" References: <256b5409-ddaf-d7cc-00c1-273ca76dbf71@xsightlabs.com> <6aaa04d8-2ac5-ced6-ec25-d42bc52a3e2f@xsightlabs.com> <20220726225910.26159820@sovereign> <20220727121024.29829f3e@hermes.local> From: Don Wallwork In-Reply-To: <20220727121024.29829f3e@hermes.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: ZR0P278CA0053.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::22) To DB9P193MB1482.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:2a6::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f9c5e2df-e127-4ca3-9c53-08da700600f9 X-MS-TrafficTypeDiagnostic: AM9P193MB1810:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HPQaCT9c9wFmGvHbcAacCjuy0/i0tfpYNnghIkaFj041VBotYCF1SDZ/PhujKwid93EUzwfeT+oh9KfroMR7u4BN7KKQijRbK9z2fd3NQVJM5yjOIWQvDH+iiLS+QgWfAchLTXgndbvz150eyaO62rgR5/slCoy2SIeqz7Bn84SVewZI2mUxMZzMpfkyMlykcmFIxZy6QonDElspmXlvDMjbxyEq+DivC9pvaI4k3VgZ6Dh95e0dj7a09Paw9Xc/CTRzbP8Y5Xno4QxJ4195RFpXX8idjQlfiwSPOA7IJHAIQssTriwgdyWRXgk/ju10RQ0yM1qD2eZLcn9iEr0phZ3nz2e0m24/zAhJYp7xaddxB8wb1Q2MppZYkvpaswMLTZPTk1bbY31bgVC8EVss0PNQGl76lDQP+cOs9SiXQhLDFr9/DOExgdeMSg7i6qXehvDkDg8hV05tpNwCqVMs2utOKE9dj7b1LA9+1rmyRL6t6apoYMHPiuSTgqfsPLUl+/yF53QEUsnSj3kxlvm/jKSAVyyVxq7qdphthbYjkFu/BdNvM8OEOQ7YpM0v1Gw+gNxQFivjRiJxsJrOc1dMmtazBXLEadpsBYu16z15JCYCt6GzP044iyuhIo8GP3y0IGGCLWgptBS25sb3lk/GDgYEORpIzubXfzV2OQdnHvbeH8B6M5GjmAy1WxxUuftKakrVF3qFoKX5DJo/x5M+EBU148ngAoKBPUJOtGF1hkrcPVMj1ot5zyISFMXHbnE1BmEMGu3h9slPWfwOP8aWvkeXM9k+atF3RxGj20gep+x6STWXmgw+Ru9hYeTGTNjNi+GteQ8NuaUYwpPM/21dOCwekRlzN8KImFUg+Vk7SHk= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9P193MB1482.EURP193.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(376002)(346002)(39850400004)(366004)(136003)(396003)(8676002)(4326008)(52116002)(66946007)(66556008)(66476007)(41300700001)(478600001)(186003)(8936002)(5660300002)(86362001)(6486002)(31696002)(6512007)(4744005)(2616005)(54906003)(53546011)(6506007)(316002)(26005)(6916009)(2906002)(83380400001)(6666004)(38100700002)(36756003)(31686004)(38350700002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b0NVTlhFb3dhaXlHbTZMN2RkdmxGbHFMYVJSdUdEcjlBZGJoWExOK0QrRE9i?= =?utf-8?B?ZmFCTUNGK0tUU0U0ZVp6MGhsVmw2THNEU2hGVnVPK0p3R3pMd0NtaE5zTjc0?= =?utf-8?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UFwb1NUd0JkaUpPdUpPOWkw?= =?utf-8?B?VDc3V3pqR2VyK3c0OVVwZmQ3eVJ6UWNiSk8yUDVKNi8yYXpYd1dBR3VZeTJK?= =?utf-8?B?L1J4SnlDK29WMXM5MmlJNyt4TWgvUkNDT1ZyWE1jR0Vad1FsZ1AyQTBCRGVn?= =?utf-8?B?WkphVjl6bzR2S2RDOTFSRXhQdFR6NS9TalJoNFlBTVJvei9RU3BLOEh2MDhS?= =?utf-8?Q?3CSK27yAO5VjOkHF3uAIWWoRt?= X-OriginatorOrg: xsightlabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9c5e2df-e127-4ca3-9c53-08da700600f9 X-MS-Exchange-CrossTenant-AuthSource: DB9P193MB1482.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2022 19:27:11.6225 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 646a3e34-83ea-4273-9177-ab01923abaa9 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LcMRaZoZMDq+WaE6vY0QP4h9CxANOCojDNXkIYUtzZX7NpE6ljrJ995fuMGgk6JzNb3ST33XZSz0qQawgRlBTg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P193MB1810 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/27/2022 3:12 PM, Stephen Hemminger wrote: > On Wed, 27 Jul 2022 13:20:22 -0400 > Don Wallwork wrote: > >>> When drivers need to process a large number of memory blocks, >>> these are typically packets in the form of mbufs, >>> which already have IOVA attached, so there is no translation. >>> Does translation of mbuf VA to PA with the proposed method >>> show significant improvement over reading mbuf->iova? >> This proposal does not relate to mbufs.  As you say, there is >> already an efficient VA to PA mechanism in place for those. > > If the only user of this would be your out of tree code, > then it would never get tested by normal process. > Therefore it would be regularly broken by other changes. While we're not yet ready to upstream our drivers, we are actively working to get our code ready for that.  It is expected that other devices may be able to take advantage of this capability.  In the meantime, tests could be added to prevent such breakage.