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 9B06FA00C3; Tue, 18 Jan 2022 10:40:31 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C2FD426F8; Tue, 18 Jan 2022 10:40:31 +0100 (CET) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by mails.dpdk.org (Postfix) with ESMTP id 6AD274068E for ; Tue, 18 Jan 2022 10:40:29 +0100 (CET) Received: by mail-lf1-f50.google.com with SMTP id x7so68224481lfu.8 for ; Tue, 18 Jan 2022 01:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HZrEoWZn7CgZauiPdiXhapxtUUMZgZZC9JbjqdNA4XQ=; b=aRl9jOL20Y0Cf6zNFjDTxGh5zrwbe8cQLZzf/ShNqXU1BDvs6LkHlmMvPwOzZ5pWzs dcWsGTcf1WwJQhDjYBp95qDCcfH/YA5g2TDKdz2zN2KGNHdmghxjY4dzmifX4AQkjh9T 2Q2qaUtOzo0jgSXG5mw5tKzDzGek17uoIGfXs0ZjjYvlUcGLFCCZsfoRyyu9uYxh5KEZ XYmnyaP4nEnkHXzSRcoORUmIjeyvw7rA4/5wD8Ly9bnDVFsT9EnQY0S0qP4tSZTxpCR6 dEgvAj1I2lN9ZCvJQ6MUiPp1mbyjOo94iXeybOzq6UDwh9afvkiI7AeZWkAJBPFn/yzx 4/JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HZrEoWZn7CgZauiPdiXhapxtUUMZgZZC9JbjqdNA4XQ=; b=TPaKYyVeWHZ3Hmv6Yjq8VWsrx2Rdp4UjBQjGeACStBoq5fT8a1RG54MyniI90veKs8 OVsZml3UQ7FFWpVUoKujKXENOEeMc8AJ9pErQDImOETfmkrbpZP61mn2NB+YFi+6cqN9 yknLMBmSDn+qaBOSly6lV0/WWqw4O7j0EkOLVaA+I5FvIvwnzw0i8FIwquuKkRp8oUrl BxSBZfkEhbdZC5KFDgAxEQSLQqTaHeoIVO2OTmgy4qVnjfKaz7s3KoDXvxw0zNdZh1Ei PbwddXm3f9mWtrMSH/33IM2f3lh4ilarvaiqGsKl+sn7cjqtFGa4NWF9VhDUFlxYkiGr gCUA== X-Gm-Message-State: AOAM5315mzBSCOGZV/aESxcQo1RsVUcubaukiy4yjyFfZp/qbAx1fuSS vpfgvL3Os4Pu4yuhEuYG5pU= X-Google-Smtp-Source: ABdhPJwXwJXum9Lcw2OSpPjDzKKAMwwAHY+Py/FLenBF9gAgVgDEbT7Js51V8snktzlzICSQ2XLqvg== X-Received: by 2002:a05:6512:104e:: with SMTP id c14mr15158651lfb.646.1642498828848; Tue, 18 Jan 2022 01:40:28 -0800 (PST) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id 134sm934023ljj.11.2022.01.18.01.40.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 01:40:28 -0800 (PST) Date: Tue, 18 Jan 2022 12:40:27 +0300 From: Dmitry Kozlyuk To: Srikanth Yalavarthi Cc: Ray Kinsella , "dev@dpdk.org" , Jerin Jacob Kollanukkaran , Shivah Shankar Shankar Narayan Rao Subject: Re: [EXT] Re: [PATCH v4 1/1] eal: add internal function to get base address Message-ID: <20220118124027.1ad3a38f@sovereign> In-Reply-To: References: <20220117112228.32572-1-syalavarthi@marvell.com> <20220117134239.1773-1-syalavarthi@marvell.com> <20220117174354.19c62670@sovereign> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 2022-01-18 05:29 (UTC+0000), Srikanth Yalavarthi: > Hi Dmitry, > > This is to cater to use cases where chunks of memory are allocated by the host / application, and would like to represent it as an offset from the Linux virtual base address. One use case is for a firmware running on an accelerator, 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 Thank you, the intent is clear now. It is worth adding to the commit log. On the implementation: eal_get_baseaddr() does not respect --base-virtaddr, you probably want something like what eal_get_virtual_area() uses: internal_conf->base_virtaddr != 0 ? internal_conf->base_virtaddr : eal_get_baseaddr() P.S. Please avoid top-posting.