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 0663AA00C3; Tue, 18 Jan 2022 06:29:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8CEB6426DE; Tue, 18 Jan 2022 06:29:24 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id E809F4067E for ; Tue, 18 Jan 2022 06:29:22 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20I2UA6T021237; Mon, 17 Jan 2022 21:29:19 -0800 Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2177.outbound.protection.outlook.com [104.47.59.177]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3dnmttrepm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Jan 2022 21:29:18 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mr+aZEGxFCN39rURUYniCrCx/mm1WvfpeSNF1lOax0nFCxeBUBjephnkACV2Ja9NiTAW40J2LuRAPIMo/8O2Nvi0cRHi8yr7isALyiX3r/2xnsuUGZMzdGedTXhW++EHum36EYgxfoQnQlr2tEJ4+g3/lK7EmiQuPnGaaLmCDPBCu0QpAb4kBfeXRTOPTfO52I3oEbRehWHf4oEB8lo5bS8PA4Qp55pxqnNLChQEr5lZrZZICPTPRp2an/RN5XEETtDgSLzazJbM+IIxR86sN7yiZui/8VwjeXm/rFdj02+gWPwFdbRy3ljPRR+UwMyasYEaHKh5OI46M8+hEoEj5g== 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=QOMNbYjWxvVPFegz8+aBw9tqT/lSgrn/DNPPXCulYXU=; b=SgQX/c2YIEky91JDZ+XzF9Hpo68T+kW1st8Jws/Xu+wH3lGlNLE+d2Wfql9GoQj3IRRHp2lowBACSqRYZcaWO9Vh0KH7sdQ6C5HrdDYpV8jvcVdc+9RchKwerzstbZqi4tCc6PxYQIEeJHwvV+iphfIADOP3Zm8Qk7nfS/W0i3eL+xh+oIwC9cQ1BEuFbVdui3pO0NFbcdKrA6LR6leBWetOLEeUxzOK4whLAUMEi3jSqqFOu8Zz3tZFXsxWUMvhcAL73ERS4gGuq+Q17bAFuip86/TZDuKgx+5ugE0BcitoZsurC2cyUUPLdrOfevuEx01IW1IlhqxgbM0bngCgtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QOMNbYjWxvVPFegz8+aBw9tqT/lSgrn/DNPPXCulYXU=; b=OtDp+IUEV6QABiRPdyfMzERA8qvX7rkHp/sowqnU5wBQv7J9xwa4Xlar89IuROfzR42qyuyh1PZUe4PkfWcrSPrWQrdxySoywSx0Hjaf8h6gfz1J8mES9u3UCA6+pOLrDslgJ/U2CoIiJJnPs6eTPyXE16NJZD8W4O2BmPIhHmU= Received: from CO6PR18MB3939.namprd18.prod.outlook.com (2603:10b6:5:34d::18) by SN6PR18MB3759.namprd18.prod.outlook.com (2603:10b6:805:eb::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.12; Tue, 18 Jan 2022 05:29:15 +0000 Received: from CO6PR18MB3939.namprd18.prod.outlook.com ([fe80::dc47:d030:6448:c36b]) by CO6PR18MB3939.namprd18.prod.outlook.com ([fe80::dc47:d030:6448:c36b%5]) with mapi id 15.20.4888.014; Tue, 18 Jan 2022 05:29:15 +0000 From: Srikanth Yalavarthi To: Dmitry Kozlyuk CC: Ray Kinsella , "dev@dpdk.org" , Jerin Jacob Kollanukkaran , Shivah Shankar Shankar Narayan Rao , Srikanth Yalavarthi Subject: RE: [EXT] Re: [PATCH v4 1/1] eal: add internal function to get base address Thread-Topic: [EXT] Re: [PATCH v4 1/1] eal: add internal function to get base address Thread-Index: AQHYC6gciQ5cfhXeSEGwdZQhve5Px6xnSfwAgAD3CYA= Date: Tue, 18 Jan 2022 05:29:15 +0000 Message-ID: References: <20220117112228.32572-1-syalavarthi@marvell.com> <20220117134239.1773-1-syalavarthi@marvell.com> <20220117174354.19c62670@sovereign> In-Reply-To: <20220117174354.19c62670@sovereign> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6f85ca90-0ed9-4fee-3f05-08d9da4377eb x-ms-traffictypediagnostic: SN6PR18MB3759:EE_ 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: 9S8m8FO3CT6k67KfW5cCL2sCO1kngn7GKafZf6CdHEIaCK1nW0HLiJV/SDa/MX+MdtoAOP3id7Z7jYEB7oyy3MZh9JgLn4NYB95sYFU4/nLLHpqPBrcc0Celey/sU7uCY6PaCunRemzMIavAXDiWk28RzqydbTzykL21P9uTMfYaKnuS0v7pVGSZZG42ZZOBnUVWxI4ESXHk/R2TCugo/Jt8aqNRgAXKQPjmZeFac2Z7sZFs7tX470DHbT0QIaw6jQsqe5u+8nboC0aCu4vG0LrSdz/aJ2a6JTduss49D+7cBS/iSl0FFp9GToKQepIEeLYdSB7XfR6GHti+TiDZgLwKgJWGoP+wIRQG56yBGU+yN5rs1ZcPZFr/aTLgnVfRLjgE55MxONKcUnI61G1Y3zJF0X1ROyY4pGRoFzA8c8/9RBKVijwS9/Ac/hs2uWCMc+hxEPhRQfgRykvur/7qMeqEJXAKNFOppHuKguF+XRhVou/AS36QuGTdIowbGtGk+OS7w3S+E5YQpWXJ5rJnyZE6hb0FcITWUCnWaJBQ3w+8DHn1pz8rSkAawgVBLkJxw4JAaZzW2p1MCWf8YJouUHQqre7f4eNHatDQe+KOiqjXWEGezgbgvB2W0bhgh9JVKYKPHDeIx5pyHy3Mb4QQc5E5l0MZtUu3kuCGatNW0U0zjaVSf61ZgMONVsqwGkGW2i7wtSIkiu5fswZVZQFEGw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB3939.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(54906003)(508600001)(66446008)(64756008)(66556008)(66476007)(66946007)(6506007)(53546011)(2906002)(7696005)(76116006)(107886003)(186003)(122000001)(9686003)(71200400001)(316002)(52536014)(4326008)(6916009)(8936002)(33656002)(5660300002)(55016003)(38100700002)(26005)(38070700005)(83380400001)(8676002)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?aG9QZdES0ubDixmEoUsAYPZFyFHv+cq0VCe+yrY+YRWjIsn4owgK+JDvGC96?= =?us-ascii?Q?W3yi4QIykp5JjiV290sQUIsuWlyz2klQX3P8kZ19nmoShGwduY7d7NBuZ7V+?= =?us-ascii?Q?0JJufajirSMYMLkFV9U1lgD2nExnk8KlgWMWJJ0oIjTmeBXRK4QKifbe16/n?= =?us-ascii?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JGs1Q?= =?us-ascii?Q?TW4iJ+RUKsXdbjikT2ii2ib3v+GQlYxvNsf9HK45V1zFQqSxcVHudrScVqdf?= =?us-ascii?Q?Ic/C7RF7F1MjZJpJYuHbYA0l3G3iwH2iTYETRau+jI7I+j1s/7PGU01FK46U?= =?us-ascii?Q?4pgEr3+P3trYd9V9rxCct+jiGLEMUQ5yMq5igscy2CS2qdsNdiVHh9VDTj8x?= =?us-ascii?Q?Y3CL5VPwkJjalU6p9DtsPNA5nL6OenL2ru7ryPNlRuj3Cr/KZtRvEcg5togB?= =?us-ascii?Q?cz8FZaIJ6eYyZ11DhlrFo2f6zZ6k53jJRs0fl6VmQhO4i/vvt/xc3/V3EVcI?= =?us-ascii?Q?G+qlVVJpsIDIEaPZcZ+Cd1E7BCJGbsYiyk9Maua/aFQd29tsaqdqmdvpeAMT?= =?us-ascii?Q?6QlSWDbtrwBzBKLu5LatD4P9DsY+5PMyuq/QqQaL6bUs+Bm5/ibS0LfhrekJ?= =?us-ascii?Q?5wALzl9fq5O/z8GbXLztnshyW91I2Z2A6iXr1SDwyxNC8VCpbN+GBHV/KGBV?= =?us-ascii?Q?I5ZL4ZiBoh5VNyhchEIhHx7tBhn3Dl648TpLBj423z176oY+qYF4yQaLLRIV?= =?us-ascii?Q?2g=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB3939.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f85ca90-0ed9-4fee-3f05-08d9da4377eb X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2022 05:29:15.8268 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: otVhFJ01gFRDJryuUWVZ63BzokNz5rqCstiJXRN4lg36AOAY/DuoebsoAp2hHnUPgu40YuxMaNchEy2W8POUJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR18MB3759 X-Proofpoint-GUID: 00NxXlvCDfxyLSDixXlBYJ5CWVpgwxtR X-Proofpoint-ORIG-GUID: 00NxXlvCDfxyLSDixXlBYJ5CWVpgwxtR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-18_01,2022-01-14_01,2021-12-02_01 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 Hi Dmitry, This is to cater to use cases where chunks of memory are allocated by the h= ost / application, and would like to represent it as an offset from the Lin= ux virtual base address. One use case is for a firmware running on an accel= erator, this can be used as reference address to access host memory. Another situation can be to use the offset as an identifier for the memory = using smaller data types Srikanth -----Original Message----- From: Dmitry Kozlyuk =20 Sent: 17 January 2022 20:14 To: Srikanth Yalavarthi Cc: Ray Kinsella ; dev@dpdk.org; Jerin Jacob Kollanukkaran <= jerinj@marvell.com>; Shivah Shankar Shankar Narayan Rao Subject: [EXT] Re: [PATCH v4 1/1] eal: add internal function to get base ad= dress External Email ---------------------------------------------------------------------- 2022-01-17 05:42 (UTC-0800), Srikanth Yalavarthi: > Added an internal helper to get OS-specific EAL mapping base address >=20 > This helper can be used by the drivers to map host address range with=20 > offload devices and would be need for device specific operations like=20 > firmware load Hello Srikanth, Please elaborate on the intended usage of the new API and how it will corre= late with the EAL usage of the same VA ranges. Note that on Windows eal_get_baseaddr() returns 0 which does not imply anyt= hing about where EAL mappings will reside.