ice: add additional E830 device ids
Subsystems (2)
PATCH 1/2 ice: add additional E830 device ids
Add support for additional E830 device ids which are supported by the driver:
- 0x12D5: Intel(R) Ethernet Controller E830-C for backplane
- 0x12D8: Intel(R) Ethernet Controller E830-C for QSFP
- 0x12DA: Intel(R) Ethernet Controller E830-C for SFP
- 0x12DC: Intel(R) Ethernet Controller E830-XXV for backplane
- 0x12DD: Intel(R) Ethernet Controller E830-XXV for QSFP
- 0x12DE: Intel(R) Ethernet Controller E830-XXV for SFP
--- drivers/net/ethernet/intel/ice/ice_common.c | 6 ++++++ drivers/net/ethernet/intel/ice/ice_devids.h | 12 ++++++++++++ drivers/net/ethernet/intel/ice/ice_main.c | 6 ++++++ 3 files changed, 24 insertions(+)
drivers/net/ethernet/intel/ice/ice_common.c +6 -0
@@ -164,6 +164,12 @@ static int ice_set_mac_type(struct ice_hw *hw)case ICE_DEV_ID_E830_QSFP56 :case ICE_DEV_ID_E830_SFP :case ICE_DEV_ID_E830_SFP_DD : +case ICE_DEV_ID_E830C_BACKPLANE : +case ICE_DEV_ID_E830_XXV_BACKPLANE : +case ICE_DEV_ID_E830C_QSFP : +case ICE_DEV_ID_E830_XXV_QSFP : +case ICE_DEV_ID_E830C_SFP : +case ICE_DEV_ID_E830_XXV_SFP : hw->mac_type =ICE_MAC_E830 ;break ;default :
drivers/net/ethernet/intel/ice/ice_devids.h +12 -0
@@ -24,6 +24,18 @@#define ICE_DEV_ID_E830_SFP 0x12D3/* Intel(R) Ethernet Controller E830-C for SFP-DD */ #define ICE_DEV_ID_E830_SFP_DD 0x12D4 +/* Intel(R) Ethernet Controller E830-C for backplane */ +#define ICE_DEV_ID_E830C_BACKPLANE 0x12D5 +/* Intel(R) Ethernet Controller E830-C for QSFP */ +#define ICE_DEV_ID_E830C_QSFP 0x12D8 +/* Intel(R) Ethernet Controller E830-C for SFP */ +#define ICE_DEV_ID_E830C_SFP 0x12DA +/* Intel(R) Ethernet Controller E830-XXV for backplane */ +#define ICE_DEV_ID_E830_XXV_BACKPLANE 0x12DC +/* Intel(R) Ethernet Controller E830-XXV for QSFP */ +#define ICE_DEV_ID_E830_XXV_QSFP 0x12DD +/* Intel(R) Ethernet Controller E830-XXV for SFP */ +#define ICE_DEV_ID_E830_XXV_SFP 0x12DE/* Intel(R) Ethernet Controller E810-C for backplane */ #define ICE_DEV_ID_E810C_BACKPLANE 0x1591/* Intel(R) Ethernet Controller E810-C for QSFP */
drivers/net/ethernet/intel/ice/ice_main.c +6 -0
@@ -5695,6 +5695,12 @@ static const struct pci_device_id ice_pci_tbl[] = { { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_QSFP56) }, { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_SFP) }, { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_SFP_DD) }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830C_BACKPLANE), }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_XXV_BACKPLANE), }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830C_QSFP), }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_XXV_QSFP), }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830C_SFP), }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_XXV_SFP), }, /* required last entry */ {} };
Signature · 1 line
2.41.0
PATCH 2/2 ice: update E830 device ids and comments
Update existing E830 device ids and comments to align with new naming 'C' for 100G and 'CC' for 200G.
--- drivers/net/ethernet/intel/ice/ice_common.c | 8 ++++---- drivers/net/ethernet/intel/ice/ice_devids.h | 16 ++++++++-------- drivers/net/ethernet/intel/ice/ice_main.c | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-)
drivers/net/ethernet/intel/ice/ice_common.c +4 -4
@@ -160,10 +160,10 @@ static int ice_set_mac_type(struct ice_hw *hw)case ICE_DEV_ID_E825C_SGMII : hw->mac_type =ICE_MAC_GENERIC_3K_E825 ;break ; -case ICE_DEV_ID_E830_BACKPLANE : -case ICE_DEV_ID_E830_QSFP56 : -case ICE_DEV_ID_E830_SFP : -case ICE_DEV_ID_E830_SFP_DD : +case ICE_DEV_ID_E830CC_BACKPLANE : +case ICE_DEV_ID_E830CC_QSFP56 : +case ICE_DEV_ID_E830CC_SFP : +case ICE_DEV_ID_E830CC_SFP_DD :case ICE_DEV_ID_E830C_BACKPLANE :case ICE_DEV_ID_E830_XXV_BACKPLANE :case ICE_DEV_ID_E830C_QSFP :
drivers/net/ethernet/intel/ice/ice_devids.h +8 -8
@@ -16,14 +16,14 @@#define ICE_DEV_ID_E823L_1GBE 0x124F/* Intel(R) Ethernet Connection E823-L for QSFP */ #define ICE_DEV_ID_E823L_QSFP 0x151D -/* Intel(R) Ethernet Controller E830-C for backplane */ -#define ICE_DEV_ID_E830_BACKPLANE 0x12D1 -/* Intel(R) Ethernet Controller E830-C for QSFP */ -#define ICE_DEV_ID_E830_QSFP56 0x12D2 -/* Intel(R) Ethernet Controller E830-C for SFP */ -#define ICE_DEV_ID_E830_SFP 0x12D3 -/* Intel(R) Ethernet Controller E830-C for SFP-DD */ -#define ICE_DEV_ID_E830_SFP_DD 0x12D4 +/* Intel(R) Ethernet Controller E830-CC for backplane */ +#define ICE_DEV_ID_E830CC_BACKPLANE 0x12D1 +/* Intel(R) Ethernet Controller E830-CC for QSFP */ +#define ICE_DEV_ID_E830CC_QSFP56 0x12D2 +/* Intel(R) Ethernet Controller E830-CC for SFP */ +#define ICE_DEV_ID_E830CC_SFP 0x12D3 +/* Intel(R) Ethernet Controller E830-CC for SFP-DD */ +#define ICE_DEV_ID_E83CC0_SFP_DD 0x12D4/* Intel(R) Ethernet Controller E830-C for backplane */ #define ICE_DEV_ID_E830C_BACKPLANE 0x12D5/* Intel(R) Ethernet Controller E830-C for QSFP */
drivers/net/ethernet/intel/ice/ice_main.c +4 -4
@@ -5691,10 +5691,10 @@ static const struct pci_device_id ice_pci_tbl[] = { { PCI_VDEVICE(INTEL, ICE_DEV_ID_E825C_QSFP), }, { PCI_VDEVICE(INTEL, ICE_DEV_ID_E825C_SFP), }, { PCI_VDEVICE(INTEL, ICE_DEV_ID_E825C_SGMII), }, - { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_BACKPLANE) }, - { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_QSFP56) }, - { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_SFP) }, - { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_SFP_DD) }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830CC_BACKPLANE) }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830CC_QSFP56) }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830CC_SFP) }, + { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830CC_SFP_DD) }, { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830C_BACKPLANE), }, { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830_XXV_BACKPLANE), }, { PCI_VDEVICE(INTEL, ICE_DEV_ID_E830C_QSFP), },
Signature · 1 line
2.41.0
Tony Nguyen
maintainerRe: [Intel-wired-lan] [PATCH iwl-next v1 2/2] ice: update E830 device ids and comments
Quoted 6 lines · Paul Greenwalt
Update existing E830 device ids and comments to align with new naming 'C' for 100G and 'CC' for 200G.
Reviewed-by Wojciech Drewek <[email protected]>Signed-off-by Paul Greenwalt <[email protected]>---
...
Quoted 14 lines
drivers/net/ethernet/intel/ice/ice_devids.h +0
-6@@ -16,14 +16,14 @@#define ICE_DEV_ID_E823L_1GBE 0x124F/* Intel(R) Ethernet Connection E823-L for QSFP */ #define ICE_DEV_ID_E823L_QSFP 0x151D -/* Intel(R) Ethernet Controller E830-C for backplane */ -#define ICE_DEV_ID_E830_BACKPLANE 0x12D1 -/* Intel(R) Ethernet Controller E830-C for QSFP */ -#define ICE_DEV_ID_E830_QSFP56 0x12D2 -/* Intel(R) Ethernet Controller E830-C for SFP */ -#define ICE_DEV_ID_E830_SFP 0x12D3
drivers/net/ethernet/intel/ice/ice_devids.h line 26
Quoted 10 lines
drivers/net/ethernet/intel/ice/ice_devids.h +8
-2-/* Intel(R) Ethernet Controller E830-C for SFP-DD */ -#define ICE_DEV_ID_E830_SFP_DD 0x12D4 +/* Intel(R) Ethernet Controller E830-CC for backplane */ +#define ICE_DEV_ID_E830CC_BACKPLANE 0x12D1 +/* Intel(R) Ethernet Controller E830-CC for QSFP */ +#define ICE_DEV_ID_E830CC_QSFP56 0x12D2 +/* Intel(R) Ethernet Controller E830-CC for SFP */ +#define ICE_DEV_ID_E830CC_SFP 0x12D3 +/* Intel(R) Ethernet Controller E830-CC for SFP-DD */ +#define ICE_DEV_ID_E83CC0_SFP_DD 0x12D4
This doesn't compile; there's a stray '0' here.
../drivers/net/ethernet/intel/ice/ice_common.c:166:14: error: ‘ICE_DEV_ID_E830CC_SFP_DD’ undeclared (first use in this function); did you mean ‘ICE_DEV_ID_E83CC0_SFP_DD’?
166 | case ICE_DEV_ID_E830CC_SFP_DD:
| ^~~~~~~~~~~~~~~~~~~~~~~~
| ICE_DEV_ID_E83CC0_SFP_DD...
Quoted 3 lines
drivers/net/ethernet/intel/ice/ice_devids.h +0
-0/* Intel(R) Ethernet Controller E830-C for backplane */ #define ICE_DEV_ID_E830C_BACKPLANE 0x12D5/* Intel(R) Ethernet Controller E830-C for QSFP */
Re: [Intel-wired-lan] [PATCH iwl-next v1 2/2] ice: update E830 device ids and comments
Quoted 6 lines · Tony Nguyen
drivers/net/ethernet/intel/ice/ice_devids.h line 26
Quoted 3 lines
drivers/net/ethernet/intel/ice/ice_devids.h +2
-0+/* Intel(R) Ethernet Controller E830-CC for SFP-DD */ +#define ICE_DEV_ID_E83CC0_SFP_DD 0x12D4This doesn't compile; there's a stray '0' here.
Not stray, just mispositioned in the definition above.
Quoted 6 lines
../drivers/net/ethernet/intel/ice/ice_common.c:166:14: error: ‘ICE_DEV_ID_E830CC_SFP_DD’ undeclared (first use in this function); did you mean ‘ICE_DEV_ID_E83CC0_SFP_DD’?166 | case ICE_DEV_ID_E830CC_SFP_DD: | ^~~~~~~~~~~~~~~~~~~~~~~~ | ICE_DEV_ID_E83CC0_SFP_DD...
Signature · 1 line
Mark Rustad (he/him), Ethernet Products Group, Intel Corporation
Tony Nguyen
maintainerRe: [Intel-wired-lan] [PATCH iwl-next v1 2/2] ice: update E830 device ids and comments
Quoted 8 lines · Mark D
Quoted 6 lines · Tony Nguyen
drivers/net/ethernet/intel/ice/ice_devids.h line 26
Quoted 3 lines
drivers/net/ethernet/intel/ice/ice_devids.h +2
-0+/* Intel(R) Ethernet Controller E830-CC for SFP-DD */ +#define ICE_DEV_ID_E83CC0_SFP_DD 0x12D4This doesn't compile; there's a stray '0' here.
Not stray, just mispositioned in the definition above.
Missed the missing 0. Yea, mispositioned. Thanks Mark :)
Quoted 8 lines
Quoted 7 lines
../drivers/net/ethernet/intel/ice/ice_common.c:166:14: error: ‘ICE_DEV_ID_E830CC_SFP_DD’ undeclared (first use in this function); did you mean ‘ICE_DEV_ID_E83CC0_SFP_DD’?166 | case ICE_DEV_ID_E830CC_SFP_DD: | ^~~~~~~~~~~~~~~~~~~~~~~~ | ICE_DEV_ID_E83CC0_SFP_DD...