OFS/opae-sdk

`fpgainfo errors -c port` returns errno 70 if one or more functions are bound to vfio-pci

peturingi opened this issue · 2 comments

fpgainfo errors -c port returns errno 70 if one or more functions are bound to vfio-pci.

Reproduction:

  1. execute opae.io ls, confirm by inspection of the output that no function is bound to vfio-pci.
  2. execute fpgainfo errors -c port; echo $? and confirm the errno to be 0.
  3. execute either of the two:
    a. opae.io init -d <S:B:D:F> root:
    b. pci_device <S:B:D.F> vf n, where n is the number of virtual functions supported by the device.
  4. execute fpgainfo errors -c port; echo $? and confirm the errno to be 70.

Suggested solution:

  • Document what error 70 is and in which cases it can occur.
  • Update fpgainfo such that it reports the error to stderr.

Hi @peturingi, could you please try again with the latest code from master?

@tswhison This issue has been solved in latest code from master. Thank you.