ixgbevf: Add support for Intel(R) E610 device
Subsystems (4)
v3 cover ixgbevf: Add support for Intel(R) E610 device
Add support for Intel(R) E610 Series of network devices. The E610 is based on X550 but adds firmware managed link, enhanced security capabilities and support for updated server manageability.
Piotr Kwapulinski (2):
PCI: Add PCI_VDEVICE_SUB helper macro
ixgbevf: Add support for Intel(R) E610 device
drivers/net/ethernet/intel/ixgbevf/defines.h | 5 ++++- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 6 +++++- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 12 ++++++++++-- drivers/net/ethernet/intel/ixgbevf/vf.c | 12 +++++++++++- drivers/net/ethernet/intel/ixgbevf/vf.h | 4 +++- include/linux/pci.h | 14 ++++++++++++++ 6 files changed, 47 insertions(+), 6 deletions(-)
Signature · 7 lines
v1 -> v2
allow specifying the subvendor ("Subsystem Vendor ID" in the spec) in
the PCI_VDEVICE_SUB macro
v2 -> v3
update IXGBE_SUBDEV_ID_E610_VF_HV to 0x00FF
2.43.0PATCH v3 1/2 PCI: Add PCI_VDEVICE_SUB helper macro
PCI_VDEVICE_SUB generates the pci_device_id struct layout for the specific PCI device/subdevice. Private data may follow the output.
--- include/linux/pci.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
include/linux/pci.h +14 -0
@@ -1046,6 +1046,20 @@ struct pci_driver { .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \ .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0 +/** +* PCI_VDEVICE_SUB - describe a specific PCI device/subdevice in a short form +* @vend: the vendor name +* @dev: the 16 bit PCI Device ID +* @subvend: the 16 bit PCI Subvendor ID +* @subdev: the 16 bit PCI Subdevice ID +* +* Generate the pci_device_id struct layout for the specific PCI +* device/subdevice. Private data may follow the output. +*/ +#define PCI_VDEVICE_SUB (vend, dev, subvend, subdev) \ + .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \ + .subvendor = (subvend), .subdevice = (subdev), 0, 0 +/** * PCI_DEVICE_DATA - macro used to describe a specific PCI device in very short form * @vend: the vendor name (without PCI_VENDOR_ID_ prefix)
Signature · 1 line
2.43.0
RE: [Intel-wired-lan] [PATCH iwl-next v3 1/2] PCI: Add PCI_VDEVICE_SUB helper macro
Quoted 46 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Piotr Kwapulinski
Sent: Wednesday, December 18, 2024 2:13 PM
To: [email protected]
Cc: [email protected]; Kwapulinski, Piotr <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Bjorn Helgaas <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-next v3 1/2] PCI: AddPCI_VDEVICE_SUBhelper macro
PCI_VDEVICE_SUBgenerates thepci_device_idstruct layout for the specific PCI device/subdevice. Private data may follow the output.Reviewed-by Przemek Kitszel <[email protected]>Signed-off-by Piotr Kwapulinski <[email protected]>Acked-by Bjorn Helgaas <[email protected]>--- include/linux/pci.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)include/linux/pci.h index db9b47c..414ee5f renamed from include/linux/pci.h +0
-0100644
include/linux/pci.h +15
-0@@ -1046,6 +1046,20 @@ struct pci_driver { .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \ .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0 +/** +* PCI_VDEVICE_SUB - describe a specific PCI device/subdevice in a +short form +* @vend: the vendor name +* @dev: the 16 bit PCI Device ID +* @subvend: the 16 bit PCI Subvendor ID +* @subdev: the 16 bit PCI Subdevice ID +* +* Generate the pci_device_id struct layout for the specific PCI +* device/subdevice. Private data may follow the output. +*/ +#define PCI_VDEVICE_SUB (vend, dev, subvend, subdev) \ + .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \ + .subvendor = (subvend), .subdevice = (subdev), 0, 0 +/** * PCI_DEVICE_DATA - macro used to describe a specific PCI device in very short
Quoted 4 lines
form
* @vend: the vendor name (withoutPCI_VENDOR_ID_prefix)
--
2.43.0
PATCH v3 2/2 ixgbevf: Add support for Intel(R) E610 device
In reply to Piotr KwapulinskiAdd support for Intel(R) E610 Series of network devices. The E610 is based on X550 but adds firmware managed link, enhanced security capabilities and support for updated server manageability
--- drivers/net/ethernet/intel/ixgbevf/defines.h | 5 ++++- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 6 +++++- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 12 ++++++++++-- drivers/net/ethernet/intel/ixgbevf/vf.c | 12 +++++++++++- drivers/net/ethernet/intel/ixgbevf/vf.h | 4 +++- 5 files changed, 33 insertions(+), 6 deletions(-)
drivers/net/ethernet/intel/ixgbevf/defines.h +4 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -/* Copyright(c) 1999 - 2018 Intel Corporation. */ +/* Copyright(c) 1999 - 2024 Intel Corporation. */ #ifndef _IXGBEVF_DEFINES_H_#define _IXGBEVF_DEFINES_H_
@@ -16,6 +16,9 @@#define IXGBE_DEV_ID_X550_VF_HV 0x1564#define IXGBE_DEV_ID_X550EM_X_VF_HV 0x15A9 +#define IXGBE_DEV_ID_E610_VF 0x57AD +#define IXGBE_SUBDEV_ID_E610_VF_HV 0x00FF +#define IXGBE_VF_IRQ_CLEAR_MASK 7#define IXGBE_VF_MAX_TX_QUEUES 8#define IXGBE_VF_MAX_RX_QUEUES 8
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +5 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -/* Copyright(c) 1999 - 2018 Intel Corporation. */ +/* Copyright(c) 1999 - 2024 Intel Corporation. */ #ifndef _IXGBEVF_H_#define _IXGBEVF_H_
@@ -418,6 +418,8 @@ enum ixgbevf_boards { board_X550EM_x_vf, board_X550EM_x_vf_hv, board_x550em_a_vf, + board_e610_vf, + board_e610_vf_hv, }; enum ixgbevf_xcast_modes {
@@ -434,11 +436,13 @@ extern const struct ixgbevf_info ixgbevf_X550EM_x_vf_info;extern const struct ixgbe_mbx_operations ixgbevf_mbx_ops;extern const struct ixgbe_mbx_operations ixgbevf_mbx_ops_legacy;extern const struct ixgbevf_info ixgbevf_x550em_a_vf_info; +extern const struct ixgbevf_info ixgbevf_e610_vf_info;extern const struct ixgbevf_info ixgbevf_82599_vf_hv_info;extern const struct ixgbevf_info ixgbevf_X540_vf_hv_info;extern const struct ixgbevf_info ixgbevf_X550_vf_hv_info;extern const struct ixgbevf_info ixgbevf_X550EM_x_vf_hv_info; +extern const struct ixgbevf_info ixgbevf_e610_vf_hv_info;extern const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops;/* needed by ethtool.c */
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +10 -2
@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/* Copyright(c) 1999 - 2018 Intel Corporation. */ +/* Copyright(c) 1999 - 2024 Intel Corporation. */ /****************************************************************************** Copyright (c)2006 - 2007 Myricom, Inc. for some LRO specific code
@@ -39,7 +39,7 @@ static const char ixgbevf_driver_string[] ="Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver" ;static char ixgbevf_copyright[] = -"Copyright (c) 2009 - 2018 Intel Corporation." ; +"Copyright (c) 2009 - 2024 Intel Corporation." ;static const struct ixgbevf_info *ixgbevf_info_tbl[] = { [board_82599_vf] = &ixgbevf_82599_vf_info,
@@ -51,6 +51,8 @@ static const struct ixgbevf_info *ixgbevf_info_tbl[] = { [board_X550EM_x_vf] = &ixgbevf_X550EM_x_vf_info, [board_X550EM_x_vf_hv] = &ixgbevf_X550EM_x_vf_hv_info, [board_x550em_a_vf] = &ixgbevf_x550em_a_vf_info, + [board_e610_vf] = &ixgbevf_e610_vf_info, + [board_e610_vf_hv] = &ixgbevf_e610_vf_hv_info, };/* ixgbevf_pci_tbl - PCI Device ID Table
@@ -71,6 +73,9 @@ static const struct pci_device_id ixgbevf_pci_tbl[] = { {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_X550EM_X_VF), board_X550EM_x_vf }, {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_X550EM_X_VF_HV), board_X550EM_x_vf_hv}, {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_X550EM_A_VF), board_x550em_a_vf }, + {PCI_VDEVICE_SUB(INTEL, IXGBE_DEV_ID_E610_VF, PCI_ANY_ID, + IXGBE_SUBDEV_ID_E610_VF_HV), board_e610_vf_hv}, + {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_E610_VF), board_e610_vf},/* required last entry */ {0, } };
@@ -4693,6 +4698,9 @@ static int ixgbevf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)case ixgbe_mac_X540_vf:dev_info (&pdev->dev,"Intel(R) X540 Virtual Function\n" );break ; +case ixgbe_mac_e610_vf: +dev_info (&pdev->dev,"Intel(R) E610 Virtual Function\n" ); +break ;case ixgbe_mac_82599_vf:default :dev_info (&pdev->dev,"Intel(R) 82599 Virtual Function\n" );
drivers/net/ethernet/intel/ixgbevf/vf.c +11 -1
@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/* Copyright(c) 1999 - 2018 Intel Corporation. */ +/* Copyright(c) 1999 - 2024 Intel Corporation. */ #include "vf.h" #include "ixgbevf.h"
@@ -1076,3 +1076,13 @@ const struct ixgbevf_info ixgbevf_x550em_a_vf_info = { .mac = ixgbe_mac_x550em_a_vf, .mac_ops = &ixgbevf_mac_ops, }; + +const struct ixgbevf_info ixgbevf_e610_vf_info = { + .mac = ixgbe_mac_e610_vf, + .mac_ops = &ixgbevf_mac_ops, +}; + +const struct ixgbevf_info ixgbevf_e610_vf_hv_info = { + .mac = ixgbe_mac_e610_vf, + .mac_ops = &ixgbevf_hv_mac_ops, +};
drivers/net/ethernet/intel/ixgbevf/vf.h +3 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -/* Copyright(c) 1999 - 2018 Intel Corporation. */ +/* Copyright(c) 1999 - 2024 Intel Corporation. */ #ifndef __IXGBE_VF_H__#define __IXGBE_VF_H__
@@ -54,6 +54,8 @@ enum ixgbe_mac_type { ixgbe_mac_X550_vf, ixgbe_mac_X550EM_x_vf, ixgbe_mac_x550em_a_vf, + ixgbe_mac_e610, + ixgbe_mac_e610_vf, ixgbe_num_macs };
Signature · 1 line
2.43.0
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
Quoted 54 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Piotr Kwapulinski
Sent: Wednesday, December 18, 2024 2:13 PM
To: [email protected]
Cc: [email protected]; Kwapulinski, Piotr <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Simon Horman <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-next v3 2/2] ixgbevf: Add support for Intel(R) E610 deviceAdd support for Intel(R) E610 Series of network devices. The E610 is based on X550 but adds firmware managed link, enhanced security capabilities and support for updated server manageability
Reviewed-by Przemek Kitszel <[email protected]>Signed-off-by Piotr Kwapulinski <[email protected]>Reviewed-by Simon Horman <[email protected]>--- drivers/net/ethernet/intel/ixgbevf/defines.h | 5 ++++- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 6 +++++- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 12 ++++++++++-- drivers/net/ethernet/intel/ixgbevf/vf.c | 12 +++++++++++- drivers/net/ethernet/intel/ixgbevf/vf.h | 4 +++- 5 files changed, 33 insertions(+), 6 deletions(-)drivers/net/ethernet/intel/ixgbevf/defines.h +4
-1@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -/* Copyright(c) 1999 - 2018 Intel Corporation. */ +/* Copyright(c) 1999 - 2024 Intel Corporation. */ #ifndef _IXGBEVF_DEFINES_H_#define _IXGBEVF_DEFINES_H_@@ -16,6 +16,9 @@#define IXGBE_DEV_ID_X550_VF_HV 0x1564#define IXGBE_DEV_ID_X550EM_X_VF_HV 0x15A9 +#define IXGBE_DEV_ID_E610_VF 0x57AD +#define IXGBE_SUBDEV_ID_E610_VF_HV 0x00FF +#define IXGBE_VF_IRQ_CLEAR_MASK 7#define IXGBE_VF_MAX_TX_QUEUES 8#define IXGBE_VF_MAX_RX_QUEUES 8drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +0
-0@@ -1,5 +1,5 @@
Quoted 25 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Piotr Kwapulinski
Sent: Wednesday, December 18, 2024 2:13 PM
To: [email protected]
Cc: [email protected]; Kwapulinski, Piotr <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-next v3 0/2] ixgbevf: Add support for Intel(R) E610 deviceAdd support for Intel(R) E610 Series of network devices. The E610 is based on X550 but adds firmware managed link, enhanced security capabilities and support for updated server manageability.
Piotr Kwapulinski (2):
PCI: AddPCI_VDEVICE_SUBhelper macro
ixgbevf: Add support for Intel(R) E610 devicedrivers/net/ethernet/intel/ixgbevf/defines.h | 5 ++++- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 6 +++++- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 12 ++++++++++-- drivers/net/ethernet/intel/ixgbevf/vf.c | 12 +++++++++++- drivers/net/ethernet/intel/ixgbevf/vf.h | 4 +++- include/linux/pci.h | 14 ++++++++++++++ 6 files changed, 47 insertions(+), 6 deletions(-)
Quoted 8 lines
--
v1 -> v2
allow specifying the subvendor ("Subsystem Vendor ID" in the spec) in thePCI_VDEVICE_SUBmacro
v2 -> v3
updateIXGBE_SUBDEV_ID_E610_VF_HVto0x00FF2.43.0