changeset 13696:7b5944437191

2654 add ixgbe support for new x520 models Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Reviewed by: Keith Wesolowski <keith.wesolowski@joyent.com> Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Milan Jurik <milan.jurik@xylab.cz> Approved by: Richard Lowe <richlowe@richlowe.net>
author Robert Mustacchi <rm@joyent.com>
date Wed, 16 May 2012 09:00:21 -0700
parents 2d025fa9b1e1
children e2d77ee5f4aa
files usr/src/pkg/manifests/driver-network-ixgbe.mf usr/src/uts/common/io/ixgbe/ixgbe_82599.c usr/src/uts/common/io/ixgbe/ixgbe_api.c usr/src/uts/common/io/ixgbe/ixgbe_type.h
diffstat 4 files changed, 38 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/pkg/manifests/driver-network-ixgbe.mf	Tue May 15 12:48:44 2012 -0700
+++ b/usr/src/pkg/manifests/driver-network-ixgbe.mf	Wed May 16 09:00:21 2012 -0700
@@ -59,7 +59,9 @@
     alias=pciex8086,150b \
     alias=pciex8086,1514 \
     alias=pciex8086,1517 \
-    alias=pciex8086,151c
+    alias=pciex8086,151c \
+    alias=pciex8086,154d \
+    alias=pciex8086,1557
 file path=kernel/drv/$(ARCH64)/ixgbe group=sys
 $(i386_ONLY)file path=kernel/drv/ixgbe group=sys
 file path=kernel/drv/ixgbe.conf group=sys \
--- a/usr/src/uts/common/io/ixgbe/ixgbe_82599.c	Tue May 15 12:48:44 2012 -0700
+++ b/usr/src/uts/common/io/ixgbe/ixgbe_82599.c	Wed May 16 09:00:21 2012 -0700
@@ -1,6 +1,6 @@
 /******************************************************************************
 
-  Copyright (c) 2001-2010, Intel Corporation 
+  Copyright (c) 2001-2012, Intel Corporation 
   All rights reserved.
   
   Redistribution and use in source and binary forms, with or without 
@@ -423,6 +423,7 @@
 	case IXGBE_DEV_ID_82599_KX4:
 	case IXGBE_DEV_ID_82599_KX4_MEZZ:
 	case IXGBE_DEV_ID_82599_COMBO_BACKPLANE:
+	case IXGBE_DEV_ID_82599_KR:
 	case IXGBE_DEV_ID_82599_BACKPLANE_FCOE:
 	case IXGBE_DEV_ID_82599_XAUI_LOM:
 		/* Default device ID is mezzanine card KX/KX4 */
@@ -430,6 +431,9 @@
 		break;
 	case IXGBE_DEV_ID_82599_SFP:
 	case IXGBE_DEV_ID_82599_SFP_FCOE:
+	case IXGBE_DEV_ID_82599_SFP_EM:
+	case IXGBE_DEV_ID_82599_SFP_SF2:
+	case IXGBE_DEV_ID_82599EN_SFP:
 		media_type = ixgbe_media_type_fiber;
 		break;
 	case IXGBE_DEV_ID_82599_CX4:
--- a/usr/src/uts/common/io/ixgbe/ixgbe_api.c	Tue May 15 12:48:44 2012 -0700
+++ b/usr/src/uts/common/io/ixgbe/ixgbe_api.c	Wed May 16 09:00:21 2012 -0700
@@ -1,6 +1,6 @@
 /******************************************************************************
 
-  Copyright (c) 2001-2010, Intel Corporation 
+  Copyright (c) 2001-2012, Intel Corporation 
   All rights reserved.
   
   Redistribution and use in source and binary forms, with or without 
@@ -109,9 +109,13 @@
 		case IXGBE_DEV_ID_82599_KX4_MEZZ:
 		case IXGBE_DEV_ID_82599_XAUI_LOM:
 		case IXGBE_DEV_ID_82599_COMBO_BACKPLANE:
+		case IXGBE_DEV_ID_82599_KR:
 		case IXGBE_DEV_ID_82599_SFP:
 		case IXGBE_DEV_ID_82599_BACKPLANE_FCOE:
 		case IXGBE_DEV_ID_82599_SFP_FCOE:
+		case IXGBE_DEV_ID_82599_SFP_EM:
+		case IXGBE_DEV_ID_82599_SFP_SF2:
+		case IXGBE_DEV_ID_82599EN_SFP:
 		case IXGBE_DEV_ID_82599_CX4:
 		case IXGBE_DEV_ID_82599_T3_LOM:
 			hw->mac.type = ixgbe_mac_82599EB;
--- a/usr/src/uts/common/io/ixgbe/ixgbe_type.h	Tue May 15 12:48:44 2012 -0700
+++ b/usr/src/uts/common/io/ixgbe/ixgbe_type.h	Wed May 16 09:00:21 2012 -0700
@@ -1,6 +1,6 @@
 /******************************************************************************
 
-  Copyright (c) 2001-2010, Intel Corporation 
+  Copyright (c) 2001-2012, Intel Corporation 
   All rights reserved.
   
   Redistribution and use in source and binary forms, with or without 
@@ -41,30 +41,34 @@
 #define IXGBE_INTEL_VENDOR_ID   0x8086
 
 /* Device IDs */
-#define IXGBE_DEV_ID_82598               0x10B6
-#define IXGBE_DEV_ID_82598_BX            0x1508
-#define IXGBE_DEV_ID_82598AF_DUAL_PORT   0x10C6
-#define IXGBE_DEV_ID_82598AF_SINGLE_PORT 0x10C7
-#define IXGBE_DEV_ID_82598AT             0x10C8
-#define IXGBE_DEV_ID_82598AT2            0x150B
-#define IXGBE_DEV_ID_82598EB_SFP_LOM     0x10DB
-#define IXGBE_DEV_ID_82598EB_CX4         0x10DD
-#define IXGBE_DEV_ID_82598_CX4_DUAL_PORT 0x10EC
-#define IXGBE_DEV_ID_82598_DA_DUAL_PORT  0x10F1
+#define IXGBE_DEV_ID_82598               	0x10B6
+#define IXGBE_DEV_ID_82598_BX            	0x1508
+#define IXGBE_DEV_ID_82598AF_DUAL_PORT   	0x10C6
+#define IXGBE_DEV_ID_82598AF_SINGLE_PORT 	0x10C7
+#define IXGBE_DEV_ID_82598AT             	0x10C8
+#define IXGBE_DEV_ID_82598AT2            	0x150B
+#define IXGBE_DEV_ID_82598EB_SFP_LOM     	0x10DB
+#define IXGBE_DEV_ID_82598EB_CX4         	0x10DD
+#define IXGBE_DEV_ID_82598_CX4_DUAL_PORT 	0x10EC
+#define IXGBE_DEV_ID_82598_DA_DUAL_PORT  	0x10F1
 #define IXGBE_DEV_ID_82598_SR_DUAL_PORT_EM      0x10E1
-#define IXGBE_DEV_ID_82598EB_XF_LR       0x10F4
-#define IXGBE_DEV_ID_82599_KX4  0x10F7
-#define IXGBE_DEV_ID_82599_KX4_MEZZ      0x1514
+#define IXGBE_DEV_ID_82598EB_XF_LR       	0x10F4
+#define IXGBE_DEV_ID_82599_KX4  		0x10F7
+#define IXGBE_DEV_ID_82599_KX4_MEZZ      	0x1514
+#define	IXGBE_DEV_ID_82599_KR			0x1517
 #define IXGBE_DEV_ID_82599_COMBO_BACKPLANE      0x10F8
 #define IXGBE_SUBDEV_ID_82599_KX4_KR_MEZZ       0x000C
-#define IXGBE_DEV_ID_82599_CX4  0x10F9
-#define IXGBE_DEV_ID_82599_SFP  0x10FB
-#define IXGBE_SUBDEV_ID_82599_SFP        0x11A9
+#define IXGBE_DEV_ID_82599_CX4			0x10F9
+#define IXGBE_DEV_ID_82599_SFP			0x10FB
+#define IXGBE_SUBDEV_ID_82599_SFP       	0x11A9
 #define IXGBE_DEV_ID_82599_BACKPLANE_FCOE       0x152A
-#define IXGBE_DEV_ID_82599_SFP_FCOE      0x1529
-#define IXGBE_DEV_ID_82599_XAUI_LOM      0x10FC
-#define IXGBE_DEV_ID_82599_T3_LOM        0x151C
-#define IXGBE_DEV_ID_82599_VF   0x10ED
+#define IXGBE_DEV_ID_82599_SFP_FCOE      	0x1529
+#define IXGBE_DEV_ID_82599_SFP_EM		0x1507
+#define	IXGBE_DEV_ID_82599_SFP_SF2		0x154D
+#define IXGBE_DEV_ID_82599EN_SFP		0x1557
+#define IXGBE_DEV_ID_82599_XAUI_LOM      	0x10FC
+#define IXGBE_DEV_ID_82599_T3_LOM        	0x151C
+#define IXGBE_DEV_ID_82599_VF   		0x10ED
 
 /* General Registers */
 #define IXGBE_CTRL      0x00000