Intel Acceleration Stack Quick Start Guide for Intel® Programmable Acceleration Card with Intel® Arria® 10 GX FPGA

ID 683633
Date 12/04/2020
Public
Document Table of Contents

8.3.1. Disconnecting the VF from the VM and Reconnecting to the PF

  1. Uninstall the driver on the VM:
    sudo yum remove opae-intel-fpga-driver.x86_64
  2. Detach the VF from the VM.
    On the host machine, unbind the VF PCI device from the vfio-pci driver:
    sudo sh -c "echo -n 0000:04:00.1 > /sys/bus/pci/drivers/vfio-pci/unbind"
  3. Bind the VF to the intel-fpga driver:
    sudo sh -c "echo -n 0000:04:00.1 > \
      /sys/bus/pci/drivers/intel-fpga-pci/bind"
  4. To ensure you have the correct $pci_path for disconnection, type:
    export pci_path=/sys/class/fpga/intel-fpga-dev.*/device

    To target PCIe B:D.F (AF:00.0) and B:D.F (37:00.0) in the following commands, use instance id 1 and 0 instead of * respectively.

  5. Set to 0 VFs and disable SR-IOV:
    sudo sh -c "echo 0 > $pci_path/sriov_numvfs"
  6. Assign the port to the PF using the fpgaport tool:
    sudo fpgaport assign /dev/intel-fpga-fme.* 0 --numvfs 0