Intel Wired LAN Driver Updates, ixgbe: Add LER support
Get series with b4
b4 am [email protected]Versions newest first
- v4 Latest7 patches 3 repliesIn review
Changes in v4 from the cover letter
- Change __IXGBE_REMOVE to __IXGBE_REMOVING, per Scott Feldman's comment
- Add #define writeq writeq, per Alexander Duyck
- Change static inline functions to lower case, per David Miller
- Use new lower case names in added and modified register accesses
- Provide temporary upper case macros for register access functions
- Change IXGBE_REMOVED from macro to static inline and change references
- Correct IXGBE_WRITE_FLUSH to properly enclose parameter expansion
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | ixgbe: Indicate removal state explicitlydrivers/ drivers/ | +9 | 0 replies | |
| 2/7 | ixbge: Protect ixgbe_down with __IXGBE_DOWN bitdrivers/ | +3 | 0 replies | |
| 3/7 | ixgbe: Use static inlines instead of macrosdrivers/ drivers/ drivers/ | +33 | 2 replies | |
| 4/7 | ixgbe: Make ethtool register test use accessorsdrivers/ | +47 | 0 replies | |
| 5/7 | ixgbe: Check register reads for adapter removaldrivers/ drivers/ drivers/ | +53 | 0 replies | |
| 6/7 | ixgbe: Check for adapter removal on register writesdrivers/ drivers/ drivers/ | +12 | 0 replies | |
| 7/7 | ixgbe: Additional adapter removal checksdrivers/ drivers/ | +38 | 0 replies |
Reviews trailers per patch
None of the 7 patches has a Reviewed-by or Acked-by.
| Patch | Phil Schmitt |
|---|---|
| 1/7 | T-b |
| 2/7 | T-b |
| 3/7 | T-b |
| 4/7 | T-b |
| 5/7 | T-b |
| 6/7 | T-b |
| 7/7 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [net-next v4 0/7] Intel Wired LAN Driver Updates, ixgbe: Add LER support
The following patches add Live Error Recovery (LER) support to the ixgbe driver. This support also improves behavior in Thunderbolt environments. This involves checking all register reads for a value of all ones and when that is seen, to read the status register, which should never properly return all ones, to confirm whether the received value was correct. When this detects a removal, the hw_addr field is cleared to indicate the removal. This then blocks subsequent access to the device registers.
All register access macros have been changed to static inline functions and all register accesses now use them.· Macro versions are temporarily provided.
The __IXGBE_DOWN bit is no longer overloaded to also mean that device removal has been initiated. Now the bit can be used to protect ixgbe_down from multiple entry via test_and_set_bit. A needed smp_mb__before_clear_bit was also added.
V2 Changes:
- Use ACCESS_ONCE where needed, thanks to Ben Hutchings
- Fix crash on module removal
- Use boolean values for boolean returns instead of 0 and 1
- Reword Kconfig help text
V3 Changes:
- Drop config option, per David Miller
- Drop tail register write checks, per Alexander Duyck
- Change writeq implementation to a static inline, thanks to Joe Perches
V4 Changes:
- Change __IXGBE_REMOVE to __IXGBE_REMOVING, per Scott Feldman's comment
- Add #define writeq writeq, per Alexander Duyck
- Change static inline functions to lower case, per David Miller
- Use new lower case names in added and modified register accesses
- Provide temporary upper case macros for register access functions
- Change IXGBE_REMOVED from macro to static inline and change references
- Correct IXGBE_WRITE_FLUSH to properly enclose parameter expansion
Mark Rustad (7):
ixgbe: Indicate removal state explicitly
ixbge: Protect ixgbe_down with __IXGBE_DOWN bit
ixgbe: Use static inlines instead of macros
ixgbe: Make ethtool register test use accessors
ixgbe: Check register reads for adapter removal
ixgbe: Check for adapter removal on register writes
ixgbe: Additional adapter removal checks
drivers/net/ethernet/intel/ixgbe/ixgbe.h | 7 ++ drivers/net/ethernet/intel/ixgbe/ixgbe_common.h | 65 +++++++++--- drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 120 +++++++++++++---------- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 74 +++++++++++--- drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c | 3 +- drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c | 2 +- 6 files changed, 194 insertions(+), 77 deletions(-)
Signature · 1 line
1.8.5.GIT