Patch "i40e: fix ethtool to get EEPROM data from X722 interface" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
i40e: fix ethtool to get EEPROM data from X722 interface
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
i40e-fix-ethtool-to-get-eeprom-data-from-x722-interface.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Sun Mar 18 16:55:33 CET 2018
From: Lihong Yang <[email protected]>
Date: Mon, 30 Jan 2017 12:29:32 -0800
Subject: i40e: fix ethtool to get EEPROM data from X722 interface
From: Lihong Yang <[email protected]>
[ Upstream commit c271dd6c391b535226cf1a81aaad9f33cb5899d3 ]
Currently ethtool -e will error out with a X722 interface as its EEPROM has a scope limit at offset 0x5B9FFF. This patch fixes the issue by setting the EEPROM length to the scope limit to avoid NVM read failure beyond that.
--- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +5 -0
@@ -1135,6 +1135,11 @@ static int i40e_get_eeprom_len(struct nestruct i40e_hw *hw = &np->vsi->back->hw;u32 val; +#define X722_EEPROM_SCOPE_LIMIT 0x5B9FFF +if (hw->mac.type ==I40E_MAC_X722 ) { + val =X722_EEPROM_SCOPE_LIMIT +1 ; +return val; + } val = (rd32 (hw,I40E_GLPCI_LBARCTRL ) &I40E_GLPCI_LBARCTRL_FL_SIZE_MASK ) >>I40E_GLPCI_LBARCTRL_FL_SIZE_SHIFT ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/i40e-fix-ethtool-to-get-eeprom-data-from-x722-interface.patch