Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PF
Hi DPDK devs,
A while back I've submitted this bug: https://bugs.dpdk.org/show_bug.cgi?id=578 and now we have a pretty good idea where the issue stems from. TL;DL: it seems to be in either XL710 firmware or i40e driver, with downstream effects which we may need to address in DPDK.
What is the issue?
We're using an XL710 NIC with SR-IOV setup with multiple virtual functions (VFs) that belong to the same physical function (PF). We're observing intermittent failures when multiple DPDK EAL instances are trying to initialize different VFs from the PF. One of the failures looks like this:i40evf_check_api_version(): PF/VF API version mismatch:(0.0)-(1.1)
This results in VPP (which uses DPDK to initialize these VFs) not being able to use the VFs. There an associated syslog:
[Thu Dec 3 02:30:56 2020] i40e 0000:05:00.1: Unable to send the message to VF 49 aq_err 12
Digging in the sources we've found that this is the error message:
https://elixir.bootlin.com/linux/v4.15/source/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h#L115
This suggests it's an issue with either the driver or firmware and that leads us to two questions:
1) Is this an expected condition to happen? What is the reason for this contention and is it normal to have it, and what is the expected correct behavior of the calling code?
2) If "yes" to the previous question - then, since the caller in this case initialization code of DPDK, should we address it there (e.g. some retries or a lock)?
Are there any Intel (or SR-IOV) experts who could help with answering the first question? Or is it possible that no matter what the expected behavior is should we address it in DPDK?
This is just a short description, there's more information in Bugzilla.
Thanks,
Juraj
Quoted 13 lines · Juraj Linkeš
Hi DPDK devs,
A while back I've submitted this bug: https://bugs.dpdk.org/show_bug.cgi?id=578 and now we have a pretty good idea where the issue stems from. TL;DL: it seems to be in either XL710 firmware or i40e driver, with downstream effects which we may need to address in DPDK.
What is the issue?
We're using an XL710 NIC with SR-IOV setup with multiple virtual functions (VFs) that belong to the same physical function (PF). We're observing intermittent failures when multiple DPDK EAL instances are trying to initialize different VFs from the PF. One of the failures looks like this:i40evf_check_api_version(): PF/VF API version mismatch:(0.0)-(1.1)This results in VPP (which uses DPDK to initialize these VFs) not being able to use the VFs. There an associated syslog:
[Thu Dec 3 02:30:56 2020] i40e 0000:05:00.1: Unable to send the message to VF 49 aq_err 12
Quoted 8 lines
Digging in the sources we've found that this is the error message:
https://elixir.bootlin.com/linux/v4.15/source/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h#L115This suggests it's an issue with either the driver or firmware and that leads us to two questions:
1) Is this an expected condition to happen? What is the reason for this contention and is it normal to have it, and what is the expected correct behavior of the calling code?
2) If "yes" to the previous question - then, since the caller in this case initialization code of DPDK, should we address it there (e.g. some retries or a lock)?Are there any Intel (or SR-IOV) experts who could help with answering the first question? Or is it possible that no matter what the expected behavior is should we address it in DPDK?
Added i40e maintainers.
Signature · 1 line
David Marchand
Quoted 38 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of David Marchand
Sent: Monday, December 7, 2020 6:55 PM
To: Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko (ayourtch) <[email protected]>; Juraj Linkeš <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: Re: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 4 lines · Juraj Linkeš
Hi DPDK devs,
A while back I've submitted this bug:
https://bugs.dpdk.org/show_bug.cgi?id=578 and now we have a pretty good idea where the issue stems from. TL;DL: it seems to be in either XL710 firmware or i40e driver, with downstream effects which we may need to address in DPDK.
Quoted 3 lines
What is the issue?
We're using an XL710 NIC with SR-IOV setup with multiple virtual functions(VFs) that belong to the same physical function (PF). We're observing intermittent failures when multiple DPDK EAL instances are trying to initialize different VFs from the PF. One of the failures looks like this:
Quoted 3 lines
i40evf_check_api_version(): PF/VF API version mismatch:(0.0)-(1.1)This results in VPP (which uses DPDK to initialize these VFs) not being able to
use the VFs. There an associated syslog:
Quoted 2 lines
[Thu Dec 3 02:30:56 2020] i40e 0000:05:00.1: Unable to send the message toVF 49
aq_err12Quoted 3 lines
Digging in the sources we've found that this is the error message:
Quoted 8 lines
https://elixir.bootlin.com/linux/v4.15/source/drivers/net/ethernet/intel/i40ev
f/i40e_adminq_cmd.h#L115Quoted 2 lines
This suggests it's an issue with either the driver or firmware and that leads us
to two questions:
Quoted 1 line
1) Is this an expected condition to happen? What is the reason for this
contention and is it normal to have it, and what is the expected correct behavior of the calling code?
aq_err 12 is I40E_AQ_RC_EBUSY, which is returned by firmware. It indicates mailbox is full and device is too busy to handle other requests. So when multiple DPDK instances are trying to initialize different VFs from the PF, there'll be many requirements from PF to firmware, it will be easy to full the mailbox.
Quoted 3 lines
Quoted 1 line
2) If "yes" to the previous question - then, since the caller in this case
initialization code of DPDK, should we address it there (e.g. some retries or a lock)?
I agree to use retry or lock to address it, but it should be addressed in kernel driver not DPDK, since the kernel PF is responsible for communicating with firmware. When there's aq_err 12 returned, PF should retry to send the AQ command to firmware.
Quoted 10 lines
Quoted 2 lines
Are there any Intel (or SR-IOV) experts who could help with answering the
first question? Or is it possible that no matter what the expected behavior is should we address it in DPDK?
Added i40e maintainers.
--
David Marchand
Quoted 74 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Tuesday, December 8, 2020 8:14 AM
To: David Marchand <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko (ayourtch) <[email protected]>; Juraj Linkeš <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: RE: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 44 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of David Marchand
Sent: Monday, December 7, 2020 6:55 PM
To: Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko (ayourtch) <[email protected]>; Juraj Linkeš <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: Re: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 4 lines · Juraj Linkeš
Hi DPDK devs,
A while back I've submitted this bug:
https://bugs.dpdk.org/show_bug.cgi?id=578 and now we have a pretty good idea where the issue stems from. TL;DL: it seems to be in either XL710 firmware or i40e driver, with downstream effects which we may need to address in DPDK.
Quoted 4 lines
What is the issue?
We're using an XL710 NIC with SR-IOV setup with multiple virtual functions(VFs) that belong to the same physical function (PF). We're observing intermittent failures when multiple DPDK EAL instances are trying to initialize different VFs from the PF. One of the failures looks like this:
Quoted 4 lines
i40evf_check_api_version(): PF/VF API version mismatch:(0.0)-(1.1)This results in VPP (which uses DPDK to initialize these VFs) not being able to
use the VFs. There an associated syslog:
Quoted 3 lines
[Thu Dec 3 02:30:56 2020] i40e 0000:05:00.1: Unable to send themessage to
VF 49
aq_err12Quoted 3 lines
Digging in the sources we've found that this is the error message:
https://elixir.bootlin.com/linux/v4.15/source/drivers/net/ethernet/int
el/i40ev
f/i40e_adminq_cmd.h#L115Quoted 1 line
Quoted 7 lines
Quoted 2 lines
This suggests it's an issue with either the driver or firmware and that leads us
to two questions:
Quoted 2 lines
1) Is this an expected condition to happen? What is the reason for this
contention and is it normal to have it, and what is the expected correct behavior of the calling code?
aq_err12 isI40E_AQ_RC_EBUSY, which is returned by firmware. It indicates mailbox is full and device is too busy to handle other requests. So when multiple DPDK instances are trying to initialize different VFs from the PF, there'll be many requirements from PF to firmware, it will be easy to full the mailbox.Quoted 2 lines
Quoted 2 lines
2) If "yes" to the previous question - then, since the caller in this case
Quoted 8 lines
Quoted 2 lines
initialization code of DPDK, should we address it there (e.g. some retries or a lock)?
I agree to use retry or lock to address it, but it should be addressed in kernel driver not DPDK, since the kernel PF is responsible for communicating with firmware. When there's
aq_err12 returned, PF should retry to send the AQ command to firmware.
Thanks, Beilei, for the clarification. Do you know how/where should I raise the bug with the i40e driver? The kernel bugzilla [0]?
[0] https://bugzilla.kernel.org/
Quoted 11 lines
Quoted 11 lines
Quoted 3 lines
Are there any Intel (or SR-IOV) experts who could help with answering the
first question? Or is it possible that no matter what the expected behavior is should we address it in DPDK?
Added i40e maintainers.
--
David Marchand
Quoted 102 lines
-----Original Message-----
From: Juraj Linkeš <[email protected]>
Sent: Tuesday, December 8, 2020 5:27 PM
To: Xing, Beilei <[email protected]>; David Marchand <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko (ayourtch) <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: RE: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 44 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Tuesday, December 8, 2020 8:14 AM
To: David Marchand <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko
(ayourtch) <[email protected]>; Juraj Linkeš <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: RE: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 30 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of David Marchand
Sent: Monday, December 7, 2020 6:55 PM
To: Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko (ayourtch) <[email protected]>; Juraj Linkeš <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: Re: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 4 lines · Juraj Linkeš
Hi DPDK devs,
A while back I've submitted this bug:
https://bugs.dpdk.org/show_bug.cgi?id=578 and now we have a pretty good idea where the issue stems from. TL;DL: it seems to be in either
XL710 firmware or i40e driver, with downstream effects which we may need to address in DPDK.Quoted 4 lines
What is the issue?
We're using an XL710 NIC with SR-IOV setup with multiple virtual functions(VFs) that belong to the same physical function (PF). We're observing intermittent failures when multiple DPDK EAL instances are trying to initialize different VFs from the PF. One of the failures looks like
this:
Quoted 22 lines
Quoted 22 lines
Quoted 4 lines
i40evf_check_api_version(): PF/VF API version mismatch:(0.0)-(1.1)This results in VPP (which uses DPDK to initialize these VFs) not being able to
use the VFs. There an associated syslog:
Quoted 3 lines
[Thu Dec 3 02:30:56 2020] i40e 0000:05:00.1: Unable to send themessage to
VF 49
aq_err12Quoted 3 lines
Digging in the sources we've found that this is the error message:
https://elixir.bootlin.com/linux/v4.15/source/drivers/net/ethernet/i
nt
el/i40ev
f/i40e_adminq_cmd.h#L115Quoted 3 lines
This suggests it's an issue with either the driver or firmware and that leads us
to two questions:
Quoted 2 lines
1) Is this an expected condition to happen? What is the reason for this
Quoted 7 lines
Quoted 2 lines
contention and is it normal to have it, and what is the expected correct behavior of the calling code?
aq_err12 isI40E_AQ_RC_EBUSY, which is returned by firmware. It indicates mailbox is full and device is too busy to handle other requests. So when multiple DPDK instances are trying to initialize different VFs from the PF, there'll be many requirements from PF to firmware,it will be easy to full the mailbox.
Quoted 11 lines
Quoted 5 lines
Quoted 3 lines
2) If "yes" to the previous question - then, since the caller in this case
initialization code of DPDK, should we address it there (e.g. some retries or a lock)?
I agree to use retry or lock to address it, but it should be addressed in kernel driver not DPDK, since the kernel PF is responsible for communicating with firmware. When there's
aq_err12 returned, PF should retry to send the AQ command to firmware.
Quoted 5 lines
Thanks, Beilei, for the clarification. Do you know how/where should I raise the bug with the i40e driver? The kernel bugzilla [0]?
I think so, you should report it in kernel community or report to Intel PAE.
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 3 lines
Are there any Intel (or SR-IOV) experts who could help with answering the
first question? Or is it possible that no matter what the expected behavior is should we address it in DPDK?
Added i40e maintainers.
--
David Marchand
Quoted 120 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Wednesday, December 9, 2020 1:45 AM
To: Juraj Linkeš <[email protected]>; David Marchand <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko (ayourtch) <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: RE: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 106 lines
-----Original Message-----
From: Juraj Linkeš <[email protected]>
Sent: Tuesday, December 8, 2020 5:27 PM
To: Xing, Beilei <[email protected]>; David Marchand <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko (ayourtch) <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: RE: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 47 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Tuesday, December 8, 2020 8:14 AM
To: David Marchand <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko
(ayourtch) <[email protected]>; Juraj Linkeš <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: RE: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 33 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of David Marchand
Sent: Monday, December 7, 2020 6:55 PM
To: Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Kinsella, Ray <[email protected]>; Andrew Yourtchenko (ayourtch) <[email protected]>; Juraj Linkeš <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: Re: [dpdk-dev] Faulty VF initialization during DPDK startup when multiple DPDK instances use different VFs with the same PFQuoted 4 lines · Juraj Linkeš
Hi DPDK devs,
A while back I've submitted this bug:
https://bugs.dpdk.org/show_bug.cgi?id=578 and now we have a pretty good idea where the issue stems from. TL;DL: it seems to be in either
XL710 firmware or i40e driver, with downstream effects which we may need to address in DPDK.Quoted 4 lines
What is the issue?
We're using an XL710 NIC with SR-IOV setup with multiple virtual functions(VFs) that belong to the same physical function (PF). We're observing intermittent failures when multiple DPDK EAL instances are trying to initialize different VFs from the PF. One of the failures looks like
this:
Quoted 24 lines
Quoted 24 lines
Quoted 5 lines
i40evf_check_api_version(): PF/VF API version
mismatch:(0.0)-(1.1)This results in VPP (which uses DPDK to initialize these VFs) not being able to
use the VFs. There an associated syslog:
Quoted 3 lines
[Thu Dec 3 02:30:56 2020] i40e 0000:05:00.1: Unable to send themessage to
VF 49
aq_err12Quoted 3 lines
Digging in the sources we've found that this is the error message:
https://elixir.bootlin.com/linux/v4.15/source/drivers/net/ethernet
/i
nt
el/i40ev
f/i40e_adminq_cmd.h#L115Quoted 3 lines
This suggests it's an issue with either the driver or firmware and that leads us
to two questions:
Quoted 2 lines
1) Is this an expected condition to happen? What is the reason for this
Quoted 8 lines
Quoted 2 lines
contention and is it normal to have it, and what is the expected correct behavior of the calling code?
aq_err12 isI40E_AQ_RC_EBUSY, which is returned by firmware. It indicates mailbox is full and device is too busy to handle other requests. So when multiple DPDK instances are trying to initialize different VFs from the PF, there'll be many requirements from PF to firmware,it will be easy to full the mailbox.
Quoted 11 lines
Quoted 5 lines
Quoted 3 lines
2) If "yes" to the previous question - then, since the caller in this case
initialization code of DPDK, should we address it there (e.g. some retries or a lock)?
I agree to use retry or lock to address it, but it should be addressed in kernel driver not DPDK, since the kernel PF is responsible for communicating with firmware. When there's
aq_err12 returned, PF should retry to send the AQ command to firmware.
Quoted 8 lines
Quoted 5 lines
Thanks, Beilei, for the clarification. Do you know how/where should I raise the bug with the i40e driver? The kernel bugzilla [0]?
I think so, you should report it in kernel community or report to Intel PAE.
Thanks.
I don't know what an Intel PAE is, so I've submitted the bug here: https://bugzilla.kernel.org/show_bug.cgi?id=210627
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 3 lines
Are there any Intel (or SR-IOV) experts who could help with answering the
first question? Or is it possible that no matter what the expected behavior is should we address it in DPDK?
Added i40e maintainers.
--
David Marchand