On Fri, Dec 1, 2017 at 12:48 AM, Hemant Agrawal <hemant.agra...@nxp.com> wrote:
> On 11/30/2017 8:27 AM, Chas Williams wrote: > >> From: Chas Williams <ch...@att.com> >> >> The IOMMU in some machines report that they can only support >> limited widths. IOVA virtual addresses may exceed this width >> making the use of IOVA virtual addresses difficult. The option >> CONFIG_RTE_LIBRTE_USE_PHYS_IOVA can used to force IOVA physical >> address usage. >> >> > Is it possible to dynamically detect the machine limitation in bus iova > code instead of compile time option? > > Yes, I think you can examine the "cap" of the IOMMU group in /sys and determine the bit width. I will have to check on that.