Skip to contentSkip to conversation

Question about unsupported transceivers

DISCUSSION Alex Forster 2 participants 6 messages Oct 13, 2015 – Oct 15, 2015

lore
Share & tools
lore
#0 lore raw

Hi everybody, apologies for coming to this list with a tech support question.

I'm completely stumped about using non-Intel transceivers with DPDK. testpmd is bailing here: PMD: eth_ixgbe_dev_init(): Unsupported SFP+ Module / PMD: eth_ixgbe_dev_init(): Hardware Initialization Failure: -19

My box is an x64 server running Debian 8 (Jessie) with two X520-Q1 cards using Finisar QSFP transceivers. Here are the things that I've tried so far, unsuccessfully-

  *   Added CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y to config/defconfig_x86_64-native-linuxapp-gcc and rebuilt/reinstalled/rebooted
  *   Tried various incantations of modprobe/insmod with allow_unsupported_sfp=1 appended
  *   Added options ixgbe allow_unsupported_sfp=1 to /etc/modprobe.d/dpdk.conf and rebuilt the initrd

Can anybody lead me in the right direction here? It seems like a lot of the information floating around about this issue may be out of date.

Alex Forster

#1 lore raw

I believe I've discovered my problem: https://gist.github.com/AlexForster/0fb4699bcdf196cf5462

As mentioned previously, I have two X520-Q1 cards installed. It appears that initialization of the first card obeys allow_unsupported_sfp=1, but initialization of the second card does not.

Is this a bug, or is there a way to work around this that I'm not aware of?

Alex Forster

#2 lore raw
Quoted 7 lines · Alex Forster

I believe I've discovered my problem: https://gist.github.com/AlexForster/0fb4699bcdf196cf5462

As mentioned previously, I have two X520-Q1 cards installed. It appears that initialization of the first card obeys allow_unsupported_sfp=1, but initialization of the second card does not.

Is this a bug, or is there a way to work around this that I'm not aware of?

Alex Forster

If you are using Intel's out-of-tree ixgbe driver I believe the module parameters are comma separated with one index per port. So if you have two ports you should be passing "allow_unsupported_sfp=1,1", and for 4 you would need four '1's.

- Alex

#3 lore raw
Quoted 4 lines · Alexander Duyck

If you are using Intel's out-of-tree ixgbe driver I believe the module parameters are comma separated with one index per port. So if you have two ports you should be passing "allow_unsupported_sfp=1,1", and for 4 you would need four '1's.

This seemed very promising. I compiled and installed the out of tree ixgbe driver and set the option in /etc/modprobe.d/ixgbe.conf. dmesg shows all eight "allow_unsupported_sfp enabled" messages but the last four ports still error out with the unsupported SFP message when running the tests.

Before I start arbitrarily trying to patch out parts of the SFP verification code in ixgbe, are there any other tips I should know?

Alex Forster

#4 lore raw
Quoted 7 lines · Alex Forster
Quoted 4 lines · Alexander Duyck

If you are using Intel's out-of-tree ixgbe driver I believe the module parameters are comma separated with one index per port. So if you have two ports you should be passing "allow_unsupported_sfp=1,1", and for 4 you would need four '1's.

Quoted 7 lines

This seemed very promising. I compiled and installed the out of tree ixgbe driver and set the option in /etc/modprobe.d/ixgbe.conf. dmesg shows all eight "allow_unsupported_sfp enabled" messages but the last four ports still error out with the unsupported SFP message when running the tests.

Before I start arbitrarily trying to patch out parts of the SFP verification code in ixgbe, are there any other tips I should know?

Can you send me the command you used to load the module, and the exact number of ixgbe ports you have in the system? With that I could then verify that the command was entered correctly as it is possible there could still be an issue in the way the command was entered.

One other possibility is that when the driver loads each load counts as an instance in the module parameter array. So if for example you unbind the driver on one port and then later rebind it you will have consumed one of the values in the array. Do it enough times and you exceed the bounds of the array as you entered it and it will simply use the default value of 0.

Also the output of "ethtool -i <ethX>" would be useful to verify that you have the out-of-tree driver loaded and not the in kernel.

- Alex

#5 lore raw
Quoted 30 lines · Alexander Duyck
Quoted 8 lines · Alex Forster
Quoted 4 lines · Alexander Duyck

If you are using Intel's out-of-tree ixgbe driver I believe the module parameters are comma separated with one index per port. So if you have two ports you should be passing "allow_unsupported_sfp=1,1", and for 4 you would need four '1's.

Quoted 8 lines

This seemed very promising. I compiled and installed the out of tree ixgbe
driver and set the option in /etc/modprobe.d/ixgbe.conf. dmesg shows all eight "allow_unsupported_sfp enabled" messages but the last four ports still error out with the unsupported SFP message when running the tests.

Before I start arbitrarily trying to patch out parts of the SFP verification code in ixgbe, are there any other tips I should know?

Can you send me the command you used to load the module, and the exact number of ixgbe ports you have in the system? With that I could then verify that the command was entered correctly as it is possible there could still be an issue in the way the command was entered.

One other possibility is that when the driver loads each load counts as an instance in the module parameter array. So if for example you unbind the driver on one port and then later rebind it you will have consumed one of the values in the array. Do it enough times and you exceed the bounds of the array as you entered it and it will simply use the default value of 0.

Quoted 5 lines

Also the output of "ethtool -i <ethX>" would be useful to verify that you have the out-of-tree driver loaded and not the in kernel.

- Alex

Alex Forster