[dpdk-dev] [PATCH v2 1/6] mem: add function for checking memsegs IOVAs addresses

Burakov, Anatoly anatoly.burakov at intel.com
Fri Oct 5 14:20:45 CEST 2018


On 05-Oct-18 1:19 PM, Alejandro Lucero wrote:
> 
> 
> On Fri, Oct 5, 2018 at 1:15 PM Burakov, Anatoly 
> <anatoly.burakov at intel.com <mailto:anatoly.burakov at intel.com>> wrote:
> 
>     On 05-Oct-18 1:06 PM, Alejandro Lucero wrote:
>      > A device can suffer addressing limitations. This function checks
>      > memsegs have iovas within the supported range based on dma mask.
>      >
>      > PMDs should use this function during initialization if device
>      > suffers addressing limitations, returning an error if this function
>      > returns memsegs out of range.
>      >
>      > Another usage is for emulated IOMMU hardware with addressing
>      > limitations.
>      >
>      > It is necessary to save the most restricted dma mask for checking out
>      > memory allocated dynamically after initialization.
>      >
>      > Signed-off-by: Alejandro Lucero <alejandro.lucero at netronome.com
>     <mailto:alejandro.lucero at netronome.com>>
>      > ---
> 
>     Reviewed-by: Anatoly Burakov <anatoly.burakov at intel.com
>     <mailto:anatoly.burakov at intel.com>>
> 
> 
> Thanks Anatoly.
> 
> I have just noticed I did not remove the previous keeping of the dma mask.
> 
> I will send another version just with this change and will add you 
> review if you are happy if I do so.
> 

Sure :)

-- 
Thanks,
Anatoly


More information about the dev mailing list