[EXT] Re: [PATCH v4 1/1] eal: add internal function to get base address

Srikanth Yalavarthi syalavarthi at marvell.com
Tue Jan 18 06:29:15 CET 2022


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

Srikanth

-----Original Message-----
From: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com> 
Sent: 17 January 2022 20:14
To: Srikanth Yalavarthi <syalavarthi at marvell.com>
Cc: Ray Kinsella <mdr at ashroe.eu>; dev at dpdk.org; Jerin Jacob Kollanukkaran <jerinj at marvell.com>; Shivah Shankar Shankar Narayan Rao <sshankarnara at marvell.com>
Subject: [EXT] Re: [PATCH v4 1/1] eal: add internal function to get base address

External Email

----------------------------------------------------------------------
2022-01-17 05:42 (UTC-0800), Srikanth Yalavarthi:
> Added an internal helper to get OS-specific EAL mapping base address
> 
> This helper can be used by the drivers to map host address range with 
> offload devices and would be need for device specific operations like 
> firmware load

Hello Srikanth,

Please elaborate on the intended usage of the new API and how it will correlate with the EAL usage of the same VA ranges.
Note that on Windows eal_get_baseaddr() returns 0 which does not imply anything about where EAL mappings will reside.


More information about the dev mailing list