`fpgainfo errors -c port` returns errno 70 if one or more functions are bound to vfio-pci
peturingi opened this issue · 2 comments
peturingi commented
fpgainfo errors -c port
returns errno 70 if one or more functions are bound to vfio-pci.
Reproduction:
- execute
opae.io ls
, confirm by inspection of the output that no function is bound to vfio-pci. - execute
fpgainfo errors -c port; echo $?
and confirm the errno to be 0. - 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. - 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.
tswhison commented
Hi @peturingi, could you please try again with the latest code from master?