+13
−5
Loading
The PCI devices used for SPDK are bound with vfio-pci or uio_pci_generic kernel drivers. In setup.sh, if the path /sys/kernel /iommu_groups is not empty, vfio-pci kernel driver is the only choice; otherwise uio_pci_generic is selected. In system, IOMMU can be enabled but set to pass through. It means IOMMU will not affect the DMA transmission although IOMMU groups has been configured. In this case both two kernel drivers are workable. The script cannot deal with the case now. The new option DRIVER_OVERRIDE is introduced in the patch and allow user selects the kernel driver for PCI devices. With the patch the above case can be handled correctly. Change-Id: I540d8750bf837ce67b8bc8b516a1a3acb72c502c Signed-off-by:tone.zhang <tone.zhang@arm.com> Reviewed-on: https://review.gerrithub.io/427297 Reviewed-by:
Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>