-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FPGA SRIO-V is not supportted by the FPGA device plugin #372
Comments
Which model of the Arria10 card do you use? Which kernel driver(DFL or OPAE) do you use? Please, show the output of |
Here are my outputs:
|
@xxinran looks good so far. Next two things I'd like to see are the output of these 2 commands: |
@bart0sh Thanks for your quick reply, here is my outputs:
|
@xxinran thanks for the info. It looks incorrect from plugin point of view. It should be intel-fpga-fme.1 directory under /sys/class/fpga/intel-fpga-dev.1/. Plugin expects it to be present. Here is an example from my system:
I'd suggest to investigate why does it happen by looking at the |
@bart0sh It seems that you can 2 physical FPGA card, not one vf and one pf. Did you enable SRIOV and virtualize the FPGA into VFs. If I disabled SRIOV, it will be only one fme and one port in intel-fpga-dev-0, and there is no intel-fpga-dev-1 repo, and the FPGA device plugin will report correctly. |
@xxinran can you please show output of |
@xxinran The plugin doesn't support SRIO-V setup at the moment. However, this is just because we didn't test this configuration. We'll work on this issue and report here when it's fixed. |
@bart0sh Ah, got it. Thanks for your explaination :) |
@xxinran can you still reply with output of fpgatool in your system, so we can validate that at least part of functionality working in such setups? |
Sure.
|
Thanks @xxinran, so it is only discovery phase of the plugin will require fix. |
Reimplemented discovering of the FPGA devices using APIs from pkg/fpga/intel_fpga_linux. The APis are also used in the fpga_tool utility. The API is more advanced and supports SR-IOV among other things. Fixes: intel#372 Signed-off-by: Ed Bartosh <[email protected]>
I am trying FPGA device plugin in my local env with SRIOV-enabled A10 FPGA. It has 1 VF and 1 PF.
The FPGA device plugin is always in CrashLoopBackOff status.
The output of k logs intel-fpga-plugin-kgnz7 --namespace kube-system is the following:
FPGA device plugin (OPAE) started in af mode
Device scan failed: intel-fpga-dev.1: AFU without corresponding FME found
main.(*devicePlugin).scanFPGAs
/intel-device-plugins-for-kubernetes/cmd/fpga_plugin/fpga_plugin.go:296
main.(*devicePlugin).Scan
/intel-device-plugins-for-kubernetes/cmd/fpga_plugin/fpga_plugin.go:204
github.com/intel/intel-device-plugins-for-kubernetes/pkg/deviceplugin.(*Manager).Run.func1
/intel-device-plugins-for-kubernetes/pkg/deviceplugin/manager.go:96
runtime.goexit
/usr/lib/golang/src/runtime/asm_amd64.s:1357
Thanks in advance.
The text was updated successfully, but these errors were encountered: