ixgbe/base: Manual AN-37 for troublesome link partners for X550 SFI
PATCH 1/1 ixgbe/base: Manual AN-37 for troublesome link partners for X550 SFI
Some SFP link partners exhibit a disinclination to autonegotiate with X550 configured in SFI mode. This patch enables a manual AN-37 restart to work around the problem.
--- drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 51 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+)
drivers/net/ixgbe/base/ixgbe_type.h +1 -0
@@ -4260,6 +4260,7 @@ struct ixgbe_hw {#define IXGBE_KRM_PMD_FLX_MASK_ST20 (P ) ((P) ? 0x9054 : 0x5054)#define IXGBE_KRM_TX_COEFF_CTRL_1 (P ) ((P) ? 0x9520 : 0x5520)#define IXGBE_KRM_RX_ANA_CTL (P ) ((P) ? 0x9A00 : 0x5A00) +#define IXGBE_KRM_FLX_TMRS_CTRL_ST31 (P ) ((P) ? 0x9180 : 0x5180)#define IXGBE_KRM_PMD_FLX_MASK_ST20_SFI_10G_DA ~(0x3 << 20)#define IXGBE_KRM_PMD_FLX_MASK_ST20_SFI_10G_SR (1u << 20)
drivers/net/ixgbe/base/ixgbe_x550.c +51 -0
57 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v2 1/1 ixgbe/base: Manual AN-37 for troublesome link partners for X550 SFI
Some SFP link partners exhibit a disinclination to autonegotiate with X550 configured in SFI mode. This patch enables a manual AN-37 restart to work around the problem.
--
v2 fixed whitespace
--- drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 50 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+)
drivers/net/ixgbe/base/ixgbe_type.h +1 -0
@@ -4260,6 +4260,7 @@ struct ixgbe_hw {#define IXGBE_KRM_PMD_FLX_MASK_ST20 (P ) ((P) ? 0x9054 : 0x5054)#define IXGBE_KRM_TX_COEFF_CTRL_1 (P ) ((P) ? 0x9520 : 0x5520)#define IXGBE_KRM_RX_ANA_CTL (P ) ((P) ? 0x9A00 : 0x5A00) +#define IXGBE_KRM_FLX_TMRS_CTRL_ST31 (P ) ((P) ? 0x9180 : 0x5180)#define IXGBE_KRM_PMD_FLX_MASK_ST20_SFI_10G_DA ~(0x3 << 20)#define IXGBE_KRM_PMD_FLX_MASK_ST20_SFI_10G_SR (1u << 20)
drivers/net/ixgbe/base/ixgbe_x550.c +50 -0
56 lines not on this page · raw message
Signature · 1 line
2.25.1
Jeff:
Quoted 11 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Thursday, March 17, 2022 2:59 AM
To: [email protected]
Cc: Wang, Haiyue <[email protected]>
Subject: [PATCH v2] ixgbe/base: Manual AN-37 for troublesome link partners for X550 SFISome SFP link partners exhibit a disinclination to autonegotiate with X550 configured in SFI mode. This patch enables a manual AN-37 restart to work around the problem.
This fix for some specific hardware in base code, unfortunately Intel DPDK team don't have the device and the knowledge to approve this, the base code is delivered by our kernel software team, I will suggest you can send this to the kernel community to get the right expert to review.
Thanks
Qi
18/05/2022 02:03, Zhang, Qi Z:
Quoted 9 lines
From: Jeff Daly <[email protected]>
Quoted 4 lines
Some SFP link partners exhibit a disinclination to autonegotiate with X550 configured in SFI mode. This patch enables a manual AN-37 restart to work around the problem.
This fix for some specific hardware in base code, unfortunately Intel DPDK team don't have the device and the knowledge to approve this,
That's why the work is collaborative.
You should get and trust knowledge from partners.
The only concerns of a maintainer should be:
- good feature design
- good code quality
- no regression in known cases
Quoted 3 lines
the base code is delivered by our kernel software team, I will suggest you can send this to the kernel community to get the right expert to review.
Which kind of expert do you imagine to review?
Intel team or Silicom people who are pushing these improvements?
There is another problem with asking Linux kernel change first:
the patch will land in GPL code, bringing difficulties to move in BSD-licensed base code.
I suggest we make this process more flexible:
1/ a contributor sends a patch for DPDK base code
with an explicit grant for backporting in any license.
2/ Intel checks that there is no DPDK regression 3/ patch is merged in DPDK
4/ Intel merges it in the internal base code
5/ Linux kernel team can backport the fix to Linux 6/ Any other OS can backport the fix in its driver
Let's make the DPDK process open for everybody.
Quoted 20 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, May 24, 2022 6:43 PM
To: Zhang, Qi Z <[email protected]>
Cc: Daly, Jeff <[email protected]>; [email protected]; Wang, Haiyue <[email protected]>; [email protected]; [email protected]; Richardson, Bruce <[email protected]>
Subject: Re: [PATCH v2] ixgbe/base: Manual AN-37 for troublesome link partners for X550 SFI18/05/2022 02:03, Zhang, Qi Z:
Quoted 6 lines
From: Jeff Daly <[email protected]>
Quoted 4 lines
Some SFP link partners exhibit a disinclination to autonegotiate with X550 configured in SFI mode. This patch enables a manual AN-37 restart to work around the problem.
Quoted 8 lines
Quoted 2 lines
This fix for some specific hardware in base code, unfortunately Intel DPDK team don't have the device and the knowledge to approve this,
That's why the work is collaborative.
You should get and trust knowledge from partners.
The only concerns of a maintainer should be:
- good feature design
- good code quality
These are the questions we can't answer, we don't understand the design, what is " change mode enforcement rules to hybrid " means, what is manual AN-37 here and what those numbers in the patch means. Of cause we trust knowledge from our partners, but anyway this is an Intel product, only Intel have the right to authenticate this. unfortunately none of the active ixgbe DPDK maintainers and I have the knowledge Meanwhile if this is an issue on DPDK, it could also be an issue on kernel driver that's why we suggest to submit to Linux community first where will be right people to answer above questions.
Quoted 7 lines
- no regression in known cases
Quoted 3 lines
the base code is delivered by our kernel software team, I will suggest you can send this to the kernel community to get the right expert to review.
Quoted 7 lines
Which kind of expert do you imagine to review?
Intel team or Silicom people who are pushing these improvements?There is another problem with asking Linux kernel change first:
the patch will land in GPL code, bringing difficulties to move in BSD-licensed base code.
Only if the author agree to share the copy right to Intel, so Intel is able to re-license it to BSD as same as other base code.
Quoted 9 lines
I suggest we make this process more flexible:
1/ a contributor sends a patch for DPDK base code
with an explicit grant for backporting in any license.
2/ Intel checks that there is no DPDK regression 3/ patch is merged in DPDK
4/ Intel merges it in the internal base code
5/ Linux kernel team can backport the fix to Linux 6/ Any other OS can backport the fix in its driver
Right now, our base code in kernel is GPL license only, code with BSD-3-clause can't be distrusted without change our license strategy, so it's the same effort if someone want to backport DPDK changes to kernel ( shared the copy right to Intel)
but I like your suggestion (if I understand correctly), have a dual licenses in kernel base code make things smoothly to backport from DPDK to kernel, I will feedback this.
Quoted 2 lines
Let's make the DPDK process open for everybody.
For sure, we should.
Quoted 1 line
24/05/2022 15:42, Zhang, Qi Z:
Quoted 17 lines
From: Thomas Monjalon <[email protected]>
Quoted 7 lines
18/05/2022 02:03, Zhang, Qi Z:
Quoted 6 lines
From: Jeff Daly <[email protected]>
Quoted 4 lines
Some SFP link partners exhibit a disinclination to autonegotiate with X550 configured in SFI mode. This patch enables a manual AN-37 restart to work around the problem.
Quoted 8 lines
Quoted 2 lines
This fix for some specific hardware in base code, unfortunately Intel DPDK team don't have the device and the knowledge to approve this,
That's why the work is collaborative.
You should get and trust knowledge from partners.
The only concerns of a maintainer should be:
- good feature design
- good code quality
Quoted 4 lines
These are the questions we can't answer,
we don't understand the design,
what is " change mode enforcement rules to hybrid " means, what is manual AN-37 here and what those numbers in the patch means.
So these are the basic questions you should ask to be made clear in the patch. That's the same for everybody: we must understand the reason and the intent of any change.
Quoted 2 lines
Of cause we trust knowledge from our partners,
but anyway this is an Intel product,
The DPDK driver is not an Intel product.
This a community effort where anyone should be able to participate.
Quoted 1 line
only Intel have the right to authenticate this.
What do you mean by "authenticate"?
Quoted 5 lines
unfortunately none of the active ixgbe DPDK maintainers and I have the knowledge Meanwhile if this is an issue on DPDK,
it could also be an issue on kernel driver
that's why we suggest to submit to Linux community first
where will be right people to answer above questions.
Why Linux community is more able to review than DPDK, or FreeBSD, or Windows, or any other community?
Quoted 9 lines
Quoted 8 lines
- no regression in known cases
Quoted 3 lines
the base code is delivered by our kernel software team, I will suggest you can send this to the kernel community to get the right expert to review.
Which kind of expert do you imagine to review?
Intel team or Silicom people who are pushing these improvements?
Quoted 6 lines
Quoted 3 lines
There is another problem with asking Linux kernel change first:
the patch will land in GPL code, bringing difficulties to move in BSD-licensed base code.Only if the author agree to share the copy right to Intel, so Intel is able to re-license it to BSD as same as other base code.
Yes we should be able to grant such copyright in the commit message.
Quoted 21 lines
Quoted 8 lines
I suggest we make this process more flexible:
1/ a contributor sends a patch for DPDK base code
with an explicit grant for backporting in any license.
2/ Intel checks that there is no DPDK regression 3/ patch is merged in DPDK
4/ Intel merges it in the internal base code
5/ Linux kernel team can backport the fix to Linux 6/ Any other OS can backport the fix in its driverRight now, our base code in kernel is GPL license only,
code with BSD-3-clause can't be distrusted without change our license strategy, so it's the same effort if someone want to backport DPDK changes to kernel (shared the copy right to Intel)but I like your suggestion (if I understand correctly), have a dual licenses in kernel base code make things smoothly to backport from DPDK to kernel, I will feedback this.
Quoted 1 line
Let's make the DPDK process open for everybody.
For sure, we should.
Quoted 41 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, May 24, 2022 11:55 PM
To: Zhang, Qi Z <[email protected]>
Cc: Daly, Jeff <[email protected]>; [email protected]; Wang, Haiyue <[email protected]>; [email protected]; [email protected]; Richardson, Bruce <[email protected]>; Mcnamara, John <[email protected]>
Subject: Re: [PATCH v2] ixgbe/base: Manual AN-37 for troublesome link partners for X550 SFI24/05/2022 15:42, Zhang, Qi Z:
Quoted 18 lines
From: Thomas Monjalon <[email protected]>
Quoted 11 lines
18/05/2022 02:03, Zhang, Qi Z:
Quoted 9 lines
From: Jeff Daly <[email protected]>
Quoted 4 lines
Some SFP link partners exhibit a disinclination to autonegotiate with X550 configured in SFI mode. This patch enables a manual AN-37 restart to work around the problem.
This fix for some specific hardware in base code, unfortunately Intel DPDK team don't have the device and the knowledge to approve this,
Quoted 5 lines
That's why the work is collaborative.
You should get and trust knowledge from partners.
The only concerns of a maintainer should be:
- good feature design
- good code qualityQuoted 3 lines
These are the questions we can't answer, we don't understand the design, what is " change mode enforcement rules to hybrid " means, what is manual AN-37 here and what those numbers in the patch means.
So these are the basic questions you should ask to be made clear in the patch. That's the same for everybody: we must understand the reason and the intent of any change.
Quoted 5 lines
Quoted 2 lines
Of cause we trust knowledge from our partners, but anyway this is an Intel product,
The DPDK driver is not an Intel product.
This a community effort where anyone should be able to participate.
I'm taking about the hardware not the driver.
Quoted 5 lines
Quoted 2 lines
only Intel have the right to authenticate this.
What do you mean by "authenticate"?
Quoted 7 lines
Quoted 4 lines
unfortunately none of the active ixgbe DPDK maintainers and I have the knowledge Meanwhile if this is an issue on DPDK, it could also be an issue on kernel driver that's why we suggest to submit to Linux community first where will be right people to answer above questions.
Why Linux community is more able to review than DPDK, or FreeBSD, or Windows, or any other community?
Of cause DPDK could be able to, if the people have the corresponding knowledge that works on it I would say on this very specific domain, DPDK community has the gap that depends on Intel, Nothing else, we just try to provide workable suggestion based on current situation, meanwhile we will escalate.
Quoted 42 lines
Quoted 10 lines
Quoted 9 lines
- no regression in known cases
Quoted 3 lines
the base code is delivered by our kernel software team, I will suggest you can send this to the kernel community to get the right expert to review.
Which kind of expert do you imagine to review?
Intel team or Silicom people who are pushing these improvements?Quoted 6 lines
Quoted 3 lines
There is another problem with asking Linux kernel change first:
the patch will land in GPL code, bringing difficulties to move in BSD-licensed base code.Only if the author agree to share the copy right to Intel, so Intel is able to re-license it to BSD as same as other base code.
Yes we should be able to grant such copyright in the commit message.
Quoted 21 lines
Quoted 8 lines
I suggest we make this process more flexible:
1/ a contributor sends a patch for DPDK base code
with an explicit grant for backporting in any license.
2/ Intel checks that there is no DPDK regression 3/ patch is merged in DPDK
4/ Intel merges it in the internal base code
5/ Linux kernel team can backport the fix to Linux 6/ Any other OS can backport the fix in its driverRight now, our base code in kernel is GPL license only, code with BSD-3-clause can't be distrusted without change our license strategy, so it's the same effort if someone want to backport DPDK changes to kernel (shared the copy right to Intel)
but I like your suggestion (if I understand correctly), have a dual licenses in kernel base code make things smoothly to backport from DPDK to kernel, I will feedback this.
Quoted 1 line
Let's make the DPDK process open for everybody.
For sure, we should.
25/05/2022 02:11, Zhang, Qi Z:
Quoted 28 lines
From: Thomas Monjalon <[email protected]>
Quoted 27 lines
24/05/2022 15:42, Zhang, Qi Z:
Quoted 18 lines
From: Thomas Monjalon <[email protected]>
Quoted 11 lines
18/05/2022 02:03, Zhang, Qi Z:
Quoted 9 lines
From: Jeff Daly <[email protected]>
Quoted 4 lines
Some SFP link partners exhibit a disinclination to autonegotiate with X550 configured in SFI mode. This patch enables a manual AN-37 restart to work around the problem.
This fix for some specific hardware in base code, unfortunately Intel DPDK team don't have the device and the knowledge to approve this,
Quoted 5 lines
That's why the work is collaborative.
You should get and trust knowledge from partners.
The only concerns of a maintainer should be:
- good feature design
- good code qualityQuoted 3 lines
These are the questions we can't answer, we don't understand the design, what is " change mode enforcement rules to hybrid " means, what is manual AN-37 here and what those numbers in the patch means.
So these are the basic questions you should ask to be made clear in the patch. That's the same for everybody: we must understand the reason and the intent of any change.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Of cause we trust knowledge from our partners, but anyway this is an Intel product,
The DPDK driver is not an Intel product.
This a community effort where anyone should be able to participate.I'm taking about the hardware not the driver.
The SFP is not an Intel product.
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
only Intel have the right to authenticate this.
What do you mean by "authenticate"?
You forgot this question.
What do you mean by "authenticate"?
Quoted 11 lines
Quoted 7 lines
Quoted 4 lines
unfortunately none of the active ixgbe DPDK maintainers and I have the knowledge Meanwhile if this is an issue on DPDK, it could also be an issue on kernel driver that's why we suggest to submit to Linux community first where will be right people to answer above questions.
Why Linux community is more able to review than DPDK, or FreeBSD, or Windows, or any other community?
Of cause DPDK could be able to, if the people have the corresponding knowledge that works on it I would say on this very specific domain, DPDK community has the gap that depends on Intel, Nothing else, we just try to provide workable suggestion based on current situation, meanwhile we will escalate.
You can get the knowledge by asking the right questions.
Quoted 39 lines
Quoted 39 lines
Quoted 9 lines
Quoted 8 lines
- no regression in known cases
Quoted 3 lines
the base code is delivered by our kernel software team, I will suggest you can send this to the kernel community to get the right expert to review.
Which kind of expert do you imagine to review?
Intel team or Silicom people who are pushing these improvements?Quoted 6 lines
Quoted 3 lines
There is another problem with asking Linux kernel change first:
the patch will land in GPL code, bringing difficulties to move in BSD-licensed base code.Only if the author agree to share the copy right to Intel, so Intel is able to re-license it to BSD as same as other base code.
Yes we should be able to grant such copyright in the commit message.
Quoted 21 lines
Quoted 8 lines
I suggest we make this process more flexible:
1/ a contributor sends a patch for DPDK base code
with an explicit grant for backporting in any license.
2/ Intel checks that there is no DPDK regression 3/ patch is merged in DPDK
4/ Intel merges it in the internal base code
5/ Linux kernel team can backport the fix to Linux 6/ Any other OS can backport the fix in its driverRight now, our base code in kernel is GPL license only, code with BSD-3-clause can't be distrusted without change our license strategy, so it's the same effort if someone want to backport DPDK changes to kernel (shared the copy right to Intel)
but I like your suggestion (if I understand correctly), have a dual licenses in kernel base code make things smoothly to backport from DPDK to kernel, I will feedback this.
Quoted 1 line
Let's make the DPDK process open for everybody.
For sure, we should.
Quoted 48 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, May 25, 2022 3:56 PM
To: Zhang, Qi Z <[email protected]>
Cc: Daly, Jeff <[email protected]>; [email protected]; Wang, Haiyue <[email protected]>; [email protected]; [email protected]; Richardson, Bruce <[email protected]>; Mcnamara, John <[email protected]>
Subject: Re: [PATCH v2] ixgbe/base: Manual AN-37 for troublesome link partners for X550 SFI25/05/2022 02:11, Zhang, Qi Z:
Quoted 26 lines
From: Thomas Monjalon <[email protected]>
Quoted 25 lines
24/05/2022 15:42, Zhang, Qi Z:
Quoted 19 lines
From: Thomas Monjalon <[email protected]>
Quoted 12 lines
18/05/2022 02:03, Zhang, Qi Z:
Quoted 10 lines
From: Jeff Daly <[email protected]>
Quoted 5 lines
Some SFP link partners exhibit a disinclination to autonegotiate with X550 configured in SFI mode. This patch enables a manual
AN-37 restart to work around the problem.This fix for some specific hardware in base code, unfortunately Intel DPDK team don't have the device and the knowledge to approve this,
Quoted 5 lines
That's why the work is collaborative.
You should get and trust knowledge from partners.
The only concerns of a maintainer should be:
- good feature design
- good code qualityQuoted 3 lines
These are the questions we can't answer, we don't understand the design, what is " change mode enforcement rules to hybrid " means, what is manual AN-37 here and what those numbers in the patch means.
So these are the basic questions you should ask to be made clear in the
patch.
Quoted 6 lines
Quoted 6 lines
That's the same for everybody: we must understand the reason and the intent of any change.
Quoted 2 lines
Of cause we trust knowledge from our partners, but anyway this is an Intel product,
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
The DPDK driver is not an Intel product.
This a community effort where anyone should be able to participate.I'm taking about the hardware not the driver.
The SFP is not an Intel product.
I'm talking about supported ixgbe NICs , that's patch will impact.
https://doc.dpdk.org/guides/nics/ixgbe.html
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
only Intel have the right to authenticate this.
What do you mean by "authenticate"?
You forgot this question.
What do you mean by "authenticate"?
I mean a hardware vendor to judge if a configure is correct or not on its own product. Btw, I may not express this clearly in previous, I would say "responsibility" but not the "right"
Quoted 59 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
unfortunately none of the active ixgbe DPDK maintainers and I have the knowledge Meanwhile if this is an issue on DPDK, it could also be an issue on kernel driver that's why we suggest to submit to Linux community first where will be right people to answer above
questions.
Quoted 7 lines
Quoted 3 lines
Why Linux community is more able to review than DPDK, or FreeBSD, or Windows, or any other community?
Of cause DPDK could be able to, if the people have the corresponding knowledge that works on it I would say on this very specific domain, DPDK community has the gap that depends on Intel, Nothing else, we just
try to provide workable suggestion based on current situation, meanwhile we will escalate.
You can get the knowledge by asking the right questions.
Quoted 39 lines
Quoted 39 lines
Quoted 9 lines
Quoted 8 lines
- no regression in known cases
Quoted 3 lines
the base code is delivered by our kernel software team, I will suggest you can send this to the kernel community to get the right expert to review.
Which kind of expert do you imagine to review?
Intel team or Silicom people who are pushing these improvements?Quoted 6 lines
Quoted 3 lines
There is another problem with asking Linux kernel change first:
the patch will land in GPL code, bringing difficulties to move in BSD-licensed base code.Only if the author agree to share the copy right to Intel, so Intel is able to re-license it to BSD as same as other base code.
Yes we should be able to grant such copyright in the commit message.
Quoted 21 lines
Quoted 8 lines
I suggest we make this process more flexible:
1/ a contributor sends a patch for DPDK base code
with an explicit grant for backporting in any license.
2/ Intel checks that there is no DPDK regression 3/ patch is merged in DPDK
4/ Intel merges it in the internal base code
5/ Linux kernel team can backport the fix to Linux 6/ Any other OS can backport the fix in its driverRight now, our base code in kernel is GPL license only, code with BSD-3-clause can't be distrusted without change our license strategy, so it's the same effort if someone want to backport DPDK changes to kernel (shared the copy right to Intel)
but I like your suggestion (if I understand correctly), have a dual licenses in kernel base code make things smoothly to backport from DPDK to kernel, I will feedback this.
Quoted 1 line
Let's make the DPDK process open for everybody.
For sure, we should.