Skip to contentSkip to conversation

net/axgbe: add a HW quirk for register definitions

PATCH Applied Selwin Sebastian 2 participants 2 messages Jan 20, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 net/axgbe: add a HW quirk for register definitions

V1000/R1000 processors are using the same PCI ids for the network device as SNOWYOWL processor but has altered register definitions for determining the window settings for the indirect PCS access. Add support to check for this hardware and if found use the new register values.

---
 drivers/net/axgbe/axgbe_common.h |  2 ++
 drivers/net/axgbe/axgbe_ethdev.c | 41 +++++++++++++++++++++++++++++---
 2 files changed, 40 insertions(+), 3 deletions(-)
drivers/net/axgbe/axgbe_common.h +2 -0
index 34f60f156..4a3fbac16 100644
@@ -841,6 +841,8 @@
 #define PCS_V1_WINDOW_SELECT		0x03fc
 #define PCS_V2_WINDOW_DEF		0x9060
 #define PCS_V2_WINDOW_SELECT		0x9064
+#define PCS_V2_RV_WINDOW_DEF		0x1060
+#define PCS_V2_RV_WINDOW_SELECT		0x1064
 
 /* PCS register entry bit positions and sizes */
 #define PCS_V2_WINDOW_DEF_OFFSET_INDEX	6
drivers/net/axgbe/axgbe_ethdev.c +38 -3

70 lines not on this page · raw message

Signature · 1 line
2.17.1
Reviewed-by on v5 1/1 Applied
#1 lore raw
Quoted 7 lines · Selwin Sebastian

V1000/R1000 processors are using the same PCI ids for the network device as SNOWYOWL processor but has altered register definitions for determining the window settings for the indirect PCS access. Add support to check for this hardware and if found use the new register values.

Applied to dpdk-next-net/master, thanks.