Re: [lng-odp] [API-NEXT PATCHv2 1/2] linux-gen: _ishmphy: adding function for physical address query

2016-11-17 Thread Christophe Milard
Th page must be locked, indeed: if the page is swapped out its physical address does not exist... _ishm (the internal ODP memory allocator has a flag to lock memory: _ODP_ISHM_LOCK On the north API (odp_*), any memory reserved is locked anyway. This was a requirement from Petri: that is any

Re: [lng-odp] [API-NEXT PATCHv2 1/2] linux-gen: _ishmphy: adding function for physical address query

2016-11-17 Thread Yi He
One comment inline: On 11 November 2016 at 22:50, Christophe Milard < christophe.mil...@linaro.org> wrote: > The function _odp_ishmphy_virt_to_phys() is added to query for physical > addresses (given a virtual address) > This function is meant to be used to populate the physical address > of

[lng-odp] [API-NEXT PATCHv2 1/2] linux-gen: _ishmphy: adding function for physical address query

2016-11-11 Thread Christophe Milard
The function _odp_ishmphy_virt_to_phys() is added to query for physical addresses (given a virtual address) This function is meant to be used to populate the physical address of packet segments which are to be used by drivers (without iommu). The function _odp_ishmphy_can_virt_to_phys(), also