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 03B83A00C5; Tue, 26 Jul 2022 20:18:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9EC7B40E25; Tue, 26 Jul 2022 20:18:28 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2077.outbound.protection.outlook.com [40.107.104.77]) by mails.dpdk.org (Postfix) with ESMTP id BFE5040E0F for ; Tue, 26 Jul 2022 20:18:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cabnd+53ZJMb+PIN7zrlmp9/KuMmiQSIdeZ+0J4rpv0Y67uyZKdwLoYPkuyhYM8JksEdVhgzXYPrdIEew/1zS5dFnN9rFe+8TdeL9YwfDOm35wV67xLB+tR3Z++2sjvEs2ftuUPYDvwyXAmou7YvNXTJeY7NxDHWsal5Lw26CJGHa1e3k0IvYjKrB65tYUD4oNZfLISCt728liQWPBeBX7eA+ydKq/DTb0OA8Lg6N5Fraox7nMd2FwPvy9Z4QqPRpwggAJrtE2R5Tj+6wMlOQFsrFaXo2SH+KqoQuF1t+megPz7z/S842jcNuYn7zsyLg1F/lbxkTCs9TBDZGASjHw== 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=4JcU5lxcxvXghwJmn95xk+zcfoLB/w+ww+L58yb1J3o=; b=Xi+olUgW11uBo8cIh0fJwctnTxl5s3f8EUai0AN84M1R4PqoVuB+oRwzEBQ/S7jdYO161qOVT5ijfyHSPEbDhtgGDoraEiiTJvVT2DJNZ41cyboPzpcXyE0jQV+paxNrBmoL6K1V7kDgcNHjfSK2wdLUWaHS+UAIlxDXWjy2hca+HB74nIlH6+L1/Pn++xqUgnQE3YarDkmnLQ0njEwyyiv3GxeXaJkxo+qO3iTzcB6eSkPoCn8NQsjd8BB/7T1x+IesUFTr8Hk+ULnuBLcXPY2yAE8dTBRvb/z559a2BRc1ok2JiGiC/9Fi1fYi6EC85h/XaTGlYBdEKRLG4+3+Hg== 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=4JcU5lxcxvXghwJmn95xk+zcfoLB/w+ww+L58yb1J3o=; b=Rnkj+WvDOhkCte+F8fCjkeDG/29coamfxP+wzz8CZQTC+Hj9Ck1FEboaOXDEm//3W+XTaBlsGNTQR0HfB76RfVTjoksTjZPN6zuqrdI2A876mkhOvWCd1z9wsmJeuT8yUyCitzjwpRzFT0XYIbA8x2ORpMIz4Xy/r+LMqJ4OgqM= 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 AM9P193MB0855.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:1ce::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19; Tue, 26 Jul 2022 18:18:26 +0000 Received: from DB9P193MB1482.EURP193.PROD.OUTLOOK.COM ([fe80::61af:58cb:6533:1aaf]) by DB9P193MB1482.EURP193.PROD.OUTLOOK.COM ([fe80::61af:58cb:6533:1aaf%9]) with mapi id 15.20.5458.025; Tue, 26 Jul 2022 18:18:26 +0000 Message-ID: <256b5409-ddaf-d7cc-00c1-273ca76dbf71@xsightlabs.com> Date: Tue, 26 Jul 2022 14:18:22 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 To: "dev@dpdk.org" From: Don Wallwork Subject: RFC: EAL legacy memory fixed address translations Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR0302CA0001.eurprd03.prod.outlook.com (2603:10a6:800:e9::11) 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: cf3a1da4-b4c2-4b8b-b2db-08da6f333ba6 X-MS-TrafficTypeDiagnostic: AM9P193MB0855:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lWhg+ccbdfnLRQSxZbQAFvmKE7MtGqoR8uvIoVgWcBt8gOM39metbUDYcW/BDN4yzvnLfgW79pMObsTOrNU262OlRrFIWtQRFKSXR741qOC1DnJ1xyoIP0e4fK2Fv8kts7MoQNdLosPwu6kJCyoy7iXg0T2jum0BLZOvsxWQxhQdDnZQh0X4IFGdb/2A4/yWvFimJEknrOJfYpyOT9s9YwXGx9qZRXTA3HLfWDIE/udRecXl0vEPyll/CnVDv1pJ5oFGBv7IumRU4YsPuigoh8m/m+XGwG8hurkb9mkBLdJh4GqU5gpIt5Oh4NAPePj1u24CWEKXrnEYHYr7Oqfc6M0PyJOiK3goLUieAp1QpCDwBSs+BgVEygCXO2ldSMw80CBOWz7JwcgArhAVh9FDJoEydtoV8+o63D7s6gH159PT+yFFfL+hUorA6Ir+Vm9v9MdSkzA/I72je9IHxXfw1sJ2juiJ7pFldNT/ImRBX8CNlF3FDHwAsNtwphW9H1u1x7kKQKwWrpzEqXmVYU5zq8AmaoRA3nU4eS4GT0lMNZgKMTLNd9QSN0oHok7+EnBDLJTLI7ZcPErIhWER6pZsTusjc5JP07hct7ikSOc5fmQp/mp00u9ySIsOmCRJ7WJb5VVqujnRGX5o486bpqj3sYAMJWz2DR7k+3jPKPNCwHanmT64HFOJBlOnGQk1GINslAbXH89Nzq/QLIEARowKXlDUE2xv7jSXLrl6F6YIkxXpjdVvDVUC5F+PevLa4OzQdkENX3eut/rvWL5cNr7uEAX2jw3ksrlBb6JztksEWigvKVOJiWRqlksDO/hBK2lmCvEPRNRKKFsB2Vae2T5hhoiuKmECx2sSDHKTHZgPNpo= 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)(396003)(136003)(346002)(376002)(366004)(39850400004)(8936002)(66946007)(66476007)(5660300002)(66556008)(8676002)(6486002)(41300700001)(478600001)(31696002)(186003)(86362001)(6512007)(52116002)(2616005)(6916009)(6506007)(6666004)(2906002)(83380400001)(26005)(38350700002)(31686004)(316002)(38100700002)(36756003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZFBHa0IrbHhua0w5VlFzQ0dzWW1RMzJoclVNZkplZlk3dXpyY1dWM3NlODcw?= =?utf-8?B?K3NDQmEvazF3SlZOV0JaWm5wNjFUQ1VQdUk4RzEwWHU5OVRMNUp4R0JhKzRE?= =?utf-8?B?UTVzOU1ycURqcERyMnE1MDVWMGVkcFVRZlNQNU9TdzNMSklQY3JJeFpvUVBz?= =?utf-8?B?amFwaFJXTlR6YURHTWpwaS9lSFdTaXZ5ZWVEdWNUbW0xTktJWXE3Q2N1SVhi?= =?utf-8?B?emVraThrTHNEU3lDbjk2NW1ISTg4WjdFbEdiVTNjT29TTVNUaH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T2hGUVRnS1NhNS96TzVXYklTY1krNGlpWW1jSGt0TEp4dkxuMG5iYjZKWGZw?= =?utf-8?Q?7jNQBOprC6CqdTdQJbxiDdOyE?= X-OriginatorOrg: xsightlabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf3a1da4-b4c2-4b8b-b2db-08da6f333ba6 X-MS-Exchange-CrossTenant-AuthSource: DB9P193MB1482.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2022 18:18:26.2860 (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: N8fnv5Hhsljohv4naX+4mF2a9YAMjCbMgTnjQy4xKe+9lnO0r4eCsy43uiQVNLUgEVQQkf1b/CC+4FmqBunWzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P193MB0855 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 This proposal describes a method for translating any huge page address from virtual to physical or vice versa using simple addition or subtraction of a single fixed value. This allows devices to efficiently access arbitrary huge page memory, even stack data when worker stacks are in huge pages. When legacy memory mode is used, it is possible to map a single virtual memory region large enough to cover all huge pages. During legacy hugepage init, each hugepage is mapped into that region. Once all pages have been mapped, any unused holes in that memory region are unmapped. This feature is applicable when rte_eal_iova_mode() == RTE_IOVA_PA and could be enabled either by default when the legacy memory EAL option is given, or a new EAL option could be added to specifically enable this feature. It may be desirable to set a capability bit when this feature is enabled to allow drivers to behave differently depending on the state of that flag. We have been working for some time with an internal patch that implements this functionality. While this patch works for us, it is not ready to be submitted upstream and we are open to suggested improvements. We would like to know whether this feature may be of interest to the wider DPDK community.