On Wednesday 01 November 2017 06:37 AM, Ferruh Yigit wrote: > Fix kernel crash with KNI because KNI requires physical addresses. > > A config option introduced to disable IOVA mode detection and to set it > to physical address by default. Disabling config option will enable IOVA > mode detection. > > When there is no intension to use KNI, it is safe to enable detection. > > Config option disable IOVA mode detection by default to be sure only who > is aware of result enable it. > > Fixes: 72d013644bd6 ("mem: honor IOVA mode in malloc virt2phy") > > Signed-off-by: Ferruh Yigit <ferruh.yi...@intel.com> > ---
Disabling _IOVA in config (static-way) defeats the dynamic iova autodetect purpose. HW facilitates iova=pa/va address space so pmd's should able to adapt for both the programming mode.. meaning Perhaps phy2virt style translation might address the KNI crash. For that KNI could check iova mode by referring to api rte_eal_iova_mode() and then do the phy2virt translation.