Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Community Manager
1,393 Views

How to make FM10420 work with Linux

Hello FM10k experts,

I need to make the FM10420 card work with Linux 4.4 and everything I tried failed.

The card embeds a switch that apparently needs its own driver, which I found nowhere.

According to DPDK website http://dpdk.org/doc/guides-2.2/nics/fm10k.html 5. FM10K Poll Mode Driver — Data Plane Development Kit 2.2.0 documentation "For the switch component another switch driver has to be loaded prior to to the FM10000 PMD driver. The switch driver can be acquired for Intel support or from the Match Interface project."

I'm pretty sure I'm close with these:

- the Focalpoint library seems to provide the API to configure the internal switch (inside FM10420): https://github.com/andriymoroz/IES.git GitHub - andriymoroz/IES: Intel Ethernet Switch (IES) software

- the matchd daemon seems to drive the internal switch via the above library: https://github.com/monicashete/match.git GitHub - monicashete/match: Match is a runtime interface for configuring and populating match-action tables in an underl…

- the FM10K driver to be used seems to be the one from sourceforge, not the one in Linux kernel tree: https://netix.dl.sourceforge.net/project/e1000/fm10k%20stable/0.21.7/fm10k-0.21.7.tar.gz https://netix.dl.sourceforge.net/project/e1000/fm10k%20stable/0.21.7/fm10k-0.21.7.tar.gz

However, I'm unable to get the link up on the 2 external ports of the card.

Matchd spits these errors:

i2c error=230 (sw=0 devAddr 50)

ERROR:matchd:fmPlatformPortInitialize:1691:Error setting port 1 into Ethernet mode AN-73!

It is possible the transceiver / cable are not accepted - I tried Mellanox and Finisar.

I'd be grateful if someone can shed some light how to debug and what should be the right way to set up this card.

Thanks in advance,

Robert

0 Kudos
6 Replies
Highlighted
Community Manager
64 Views

Never mind, I debugged it and found the root cause:

For ports 1 and 2 (corresponding to the 2 host NICs), this function fm10000MapEplLaneToPhysicalPort gets called eventually.

The function chain is initiated by the function fm10000ConfigureEthMode.

The issue is this: the function is supposed to return data from this array fabricToPhysicalMap[fabricPort] = {-1, -1, -1, -1, 1, -1 , 2, -1 , 3, -1, -1, -1, 4, -1 , 0};

For port 1, it is supposed to return data at index 5, which is "-1"; since it is < 0, the function returns error.

My guess is the array was incorrectly initialized.

It would be nice if someone from Intel could confirm / dive in.

I implemented a hack and presto, the ports 1 and 2 now get the link up correctly. I used a Mellanox 100G cable.

Now I can send packets between 2 PCs each equipped with FM10420 at 100Gb. :-)

0 Kudos
Highlighted
Community Manager
64 Views

Hi Mradam,

 

 

Thank you for the post. For inquiries regarding FM10420, please access our Intel Premier support, you must create an account in case you do not have one and then create a ticket in the Intel premier support to share you debug information. They will further assist you from there.

 

 

Here are some website for your reference about Intel Premier support

 

 

http://www.intel.com/content/www/us/en/design/support/ips/training/access-and-login.html

 

 

https://www.intel.com/content/www/us/en/design/support/ips/training/welcome.html

 

 

Thanks,

 

wb

 

0 Kudos
Highlighted
Community Manager
64 Views

Hi Mradam,

 

 

 

Please feel free to update me if you are able to access to Intel Premier support already?

 

 

Do let me know if further assistance needed.

 

 

rgds,

 

wb

 

0 Kudos
Highlighted
Community Manager
64 Views

Hi wb,

Thanks for the pointer but this path does not look promising for several reasons:

 

- it poses restrictions: seems to involve costs; seems to involve confidentiality statements

- it is not open - i.e. others cannot benefit from the fix

- it implies bureaucracy (New customers: "Work with your Intel representative to be granted access")

As I described in a former answer to my own question, I managed to work around the issue.

 

Still, an Intel backed solution to make the FM10K card work would be in the interest of all entities involved in working with that card.

Best regards,

Robert

0 Kudos
Highlighted
Community Manager
64 Views

Hi Robert,

 

 

Thank you for the update and feedback.

 

 

Rgds,

 

wb

 

0 Kudos
Highlighted
Beginner
42 Views

你能告诉我如何配置fm10420使其像其他适配器一样工作吗.

0 Kudos