RE: [PATCH v2 3/7] net/ixgbe: Check that SFF-8472 soft rate select is supported before write
From: Morten Brørup <hidden>
Date: 2021-12-22 19:14:00
From: Wang, Haiyue [mailto:haiyue.wang@intel.com] Sent: Wednesday, 22 December 2021 17.03quoted
-----Original Message----- From: Morten Brørup <redacted> Sent: Wednesday, December 22, 2021 18:44quoted
From: Wang, Haiyue [mailto:haiyue.wang@intel.com] Sent: Wednesday, 22 December 2021 02.24quoted
-----Original Message----- From: Morten Brørup <redacted> Sent: Tuesday, December 21, 2021 16:58quoted
From: Wang, Haiyue [mailto:haiyue.wang@intel.com] Sent: Tuesday, 21 December 2021 02.15quoted
-----Original Message----- From: Stephen Douthit <redacted> Sent: Tuesday, December 21, 2021 05:33 On 12/20/21 02:53, Wang, Haiyue wrote:quoted
quoted
-----Original Message----- From: Stephen Douthit <redacted> Sent: Tuesday, December 7, 2021 06:19 Make sure an SFP is really a SFF-8472 device that supportsthequoted
quoted
quoted
quoted
optionalquoted
quoted
quoted
soft rate select feature before just blindly poking thoseI2Cquoted
quoted
quoted
quoted
registers.quoted
quoted
quoted
Skip all I2C traffic if we know there's no SFP. Fixes: f3430431aba ("ixgbe/base: add SFP+ dual-speedsupport")quoted
quoted
quoted
quoted
quoted
quoted
quoted
Cc: stable@dpdk.org Signed-off-by: Stephen Douthit <redacted> ---quoted
quoted
Normally, DPDK keeps sync with this kind of release.Working with the Linux kernel mainline drivers is good advice. The official Intel Linux drivers seem to be ages behind theKernelquoted
quoted
mainline, and they don't fully No, the "ixgbe" drivers is updated on "7/8/2021". https://www.intel.com/content/www/us/en/download/14302/14687/intel- network-adapter-driver-for-pcie-intel-10-gigabit-ethernet-network- connections-under-linux.htmlSo you can imagine my surprise that they didn't work on the C3338 SoClaunched by Intel in Q1'17. Thequoted
web page says that the drivers supports kernel versions 2.6.18 to5.12, so we expected them to workquoted
with kernel 3.19. Perhaps they haven't been tested with the C3338SoC. Also, the test section on thequoted
web page only mentions 64 bit distributions, so perhaps they haven'tbeen tested with a 32 bit kernel.quoted
There is no test report available, so I can only speculate. I am sorry if I came off as badmouthing the Intel out-of-tree driver.I was only trying to convey toquoted
the good folks at Silicom that kernel.org is a better source ofinspiration than the Intel out-of-treequoted
driver, which is not as up-to-date as the kernel.org driver, and thusnot the optimal source ofquoted
inspiration for driver development. The out-of-tree drivers serve adifferent purpose, where they arequoted
extremely valuable: In normal production environments where it is notan option to compile and deployquoted
a kernel from scratch.quoted
quoted
quoted
support the C3000 NICs, so don’t waste any time there! Werecentlyquoted
quoted
tried using the official Intelquoted
Linux drivers for a C3338 based project (using Kernel 3.19 in 32bitquoted
quoted
mode with x2APIC disabled), andquoted
they didn't work at all. We ended up backporting the necessarychanges from the kernel mainlinequoted
instead.From Steve's response: ME: "I guess this is just in C3000 reference board SDK ?" Steve: "It's the board covered by Intel Doc # 574437." I check the doc "Last Updated: 11/07/2018".... It should be somekindquoted
quoted
of customer release, that's why they are not in the official *open source* Linux driver, so keepyourquoted
quoted
patch set as private.I didn't mention it explicitly, but I'm not involved with Silicom,and was not referring to theirquoted
hardware. The hardware board we had problems with is currently involume production at a major ODM.quoted
But I guess that it is usually being deployed with a 64 bit kernel,as opposed to the 32 bit kernel wequoted
were using.I understood, but we need to follow the open source vs customer release policy, so not everything is upstream. The ixgbe (especially in base directory) code is so stable, so in other words, this patch set can be rebased easily. ;-) If the patch is about ixgbe ethdev part (vs kernel netdev), it will be welcomed, since our team mainly work on this (And the base code is mainly developed by the kernel team, that's why I recommend to send it to https://lists.osuosl.org/mailman/listinfo/intel-wired-lan). Hope this will make things clear. ;-)
ACK. :-)