Spdk/scripts
tone.zhang 3624703196 setup.sh: Enable users select kernel driver for identified PCI deivces
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 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448446
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2019-03-21 12:24:27 +00:00
..
ceph test/rbd: add configurable monitoring IP address for ceph 2018-04-17 13:55:44 -04:00
perf scripts/perf: fix nvme perf scripts 2018-10-11 20:46:18 +00:00
rpc scripts/rpc.py: add method "get_nvme_controllers" 2018-10-25 17:26:25 +00:00
spdkcli test/spdkcli: Add load and save config commands. 2018-10-15 17:32:09 +00:00
vagrant autotest: introduce SPDK_RUN_FUNCTIONAL_TEST 2019-03-21 12:24:27 +00:00
check_format.sh scripts/check_format: fix an escaping issue. 2018-10-09 04:45:00 +00:00
common.sh scripts: factor out iter_pci helper functions 2018-01-03 14:09:22 -05:00
config_converter.py scripts: add config converter 2018-09-18 15:24:40 +00:00
detect_cc.sh build: use conditional CC/CXX assignment for generated mk/cc.mk 2018-02-12 12:10:49 -05:00
eofnl scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
fio.py scripts: use python3 in all scripts 2018-09-14 22:24:30 +00:00
gen_crypto.sh test/bdev: change crypto device conf based on environment 2018-10-24 23:29:28 +00:00
gen_nvme.sh test/vhost: load json configuration to vhost in spdk_vhost_run. 2018-05-30 00:53:12 +00:00
gen_rbd.sh test/bdev: add Ceph RBD bdev to bdev tests 2018-02-26 11:12:35 -05:00
genconfig.py configure: remove CONFIG.local symlink 2018-10-19 14:26:14 +00:00
pkgdep.sh pkgdep: Prefer make -C to cd 2018-10-17 15:16:15 +00:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh scripts: Add reset option to prep_benchmarks.sh 2018-01-09 13:40:59 -05:00
qat_setup.sh scripts: add a qat card setup script 2018-10-22 22:33:13 +00:00
rpc_http_proxy.py scripts: Remote RPC access with authentication 2018-10-31 16:49:17 +00:00
rpc.py scripts/rpc.py: add method "get_nvme_controllers" 2018-10-25 17:26:25 +00:00
setup.sh setup.sh: Enable users select kernel driver for identified PCI deivces 2019-03-21 12:24:27 +00:00
spdkcli.py scripts/spdkcli: override configshell init 2018-10-01 15:04:05 +00:00