Re: [lng-odp] [EXT] Re: Get Physical address

2018-10-22 Thread Maxim Uvarov
It looks like to get address is not so complex, just read /proc/$pid/pagemap https://stackoverflow.com/questions/5748492/is-there-any-api-for-determining-the-physical-address-from-virtual-address-in-li But for linux-generic it's not clear why do we need this. Maybe AF_XDP require physical address.

Re: [lng-odp] [EXT] Re: Get Physical address

2018-10-22 Thread Bill Fischofer
On Mon, Oct 22, 2018 at 3:17 PM Liron Himi wrote: > Hi, > > > > I was not looking for a "standardized" set of internal API. > > I want to use the linux-generic implementation of odp-shared-memory, and > just request for additional linux-generic internal API to retrieve the > physical address of t

Re: [lng-odp] [EXT] Re: Get Physical address

2018-10-22 Thread Liron Himi
Hi, I was not looking for a "standardized" set of internal API. I want to use the linux-generic implementation of odp-shared-memory, and just request for additional linux-generic internal API to retrieve the physical address of the buffer. Those internal APIs can be part of either of the odp_ish

Re: [lng-odp] [EXT] Re: Get Physical address

2018-10-22 Thread Bill Fischofer
On Mon, Oct 22, 2018 at 1:40 PM Liron Himi wrote: > Hi, > > > > It is for implementing ODP itself on our platform. So yes, we need > internal APIs to get physical address. > > Do you have plans to add such internal APIs? > We do not have a "standardized" set of internal APIs because these would

Re: [lng-odp] [EXT] Re: Get Physical address

2018-10-22 Thread Liron Himi
Hi, It is for implementing ODP itself on our platform. So yes, we need internal APIs to get physical address. Do you have plans to add such internal APIs? Liron From: Bill Fischofer Sent: Monday, October 22, 2018 21:32 To: Liron Himi Cc: Elo, Matias (Nokia - FI/Espoo) ; lng-odp-forward Subj

Re: [lng-odp] [EXT] Re: Get Physical address

2018-10-22 Thread Bill Fischofer
On Mon, Oct 22, 2018 at 12:41 PM Liron Himi wrote: > Hi Bill, > > > > We would like to use the linux-generic’s memory management especially with > the huge-pages support. > > This way we can refer to the above as a “infrastructure service” for > memory management. And we only need to get the phys

Re: [lng-odp] [EXT] Re: Get Physical address

2018-10-22 Thread Liron Himi
Hi Bill, We would like to use the linux-generic’s memory management especially with the huge-pages support. This way we can refer to the above as a “infrastructure service” for memory management. And we only need to get the physical address of the buffers and pass them to our HW pools. Having t