scripts/qat_setup: Remove VFs' pci id from the target bind driver
Do this before the attempt to bind these devices is made. This is to make sure script works on subsequent runs. Scripts itself executes the qat_service which disables potential VFs of the target PF. In case VFs were previously bound to one of the uio drivers (via new_id) the next write to that attr will fail not rebinding the devices again. To avoid that, remove the VFs' id first and then attempt to bind them to the uio driver. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I4818a2e3e663a4136084ce4bbb85ccfcfde1ae42 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15427 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
3bdb00199a
commit
5121b9a2fd
@ -136,6 +136,7 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -n "8086 37c9" > /sys/bus/pci/drivers/$driver_to_bind/remove_id 2> /dev/null
|
||||||
echo -n "8086 37c9" > /sys/bus/pci/drivers/$driver_to_bind/new_id
|
echo -n "8086 37c9" > /sys/bus/pci/drivers/$driver_to_bind/new_id
|
||||||
for vf in "${qat_vf_bdfs[@]}"; do
|
for vf in "${qat_vf_bdfs[@]}"; do
|
||||||
if ! ls -l /sys/bus/pci/devices/$vf/driver | grep -q $driver_to_bind; then
|
if ! ls -l /sys/bus/pci/devices/$vf/driver | grep -q $driver_to_bind; then
|
||||||
|
Loading…
Reference in New Issue
Block a user