[Openib-windows] [PATCH] PNP dbg flag

Yossi Leybovich sleybo at mellanox.co.il
Tue Sep 12 03:46:12 PDT 2006


Fab
 
Complib assume that the DBG_PNP = (1<<1) ,this patch convert all units
to use (1<<1) for the PNP flag
This patch also pass 0 as the debug flags of IOU ,this because  complib
still use the old version of debug levels ( not levels and flags that we
insert lately).
 
I will work on patch to convert complib to support WPP and the new flags
and level mechanism.
 
 
10x
Yossi 


Singed-off-by: Yossi Leybovich (sleybo at mellanox.co.il)
Index: core/al/al_debug.h
===================================================================
--- core/al/al_debug.h	(revision 1682)
+++ core/al/al_debug.h	(working copy)
@@ -53,13 +53,15 @@
 #define WPP_CONTROL_GUIDS \
 
WPP_DEFINE_CONTROL_GUID(ALCtlGuid1,(B199CE55,F8BF,4147,B119,DACD1E5987A6
),  \
 	WPP_DEFINE_BIT( AL_DBG_ERROR) \
+	WPP_DEFINE_BIT( AL_DBG_PNP) \
+	WPP_DEFINE_BIT( AL_DBG_HDL) \
 	WPP_DEFINE_BIT( AL_DBG_AL_OBJ) \
-	WPP_DEFINE_BIT( AL_DBG_HDL) \
 	WPP_DEFINE_BIT( AL_DBG_SMI) \
 	WPP_DEFINE_BIT( AL_DBG_SMI_CB) \
+	WPP_DEFINE_BIT( AL_DBG_RES1) \
 	WPP_DEFINE_BIT( AL_DBG_MAD_POOL) \
 	WPP_DEFINE_BIT( AL_DBG_MAD_SVC) \
-	WPP_DEFINE_BIT( AL_DBG_PNP) \
+	WPP_DEFINE_BIT( AL_DBG_RES2) \
 	WPP_DEFINE_BIT( AL_DBG_CM) \
 	WPP_DEFINE_BIT( AL_DBG_CA) \
 	WPP_DEFINE_BIT( AL_DBG_MR) \
@@ -70,7 +72,9 @@
 	WPP_DEFINE_BIT( AL_DBG_AV)\
 	WPP_DEFINE_BIT( AL_DBG_CQ)\
 	WPP_DEFINE_BIT( AL_DBG_QP)\
+	WPP_DEFINE_BIT( AL_DBG_RES3) \
 	WPP_DEFINE_BIT( AL_DBG_MW)\
+	WPP_DEFINE_BIT( AL_DBG_RES4) \
 	WPP_DEFINE_BIT( AL_DBG_PROXY_CB)\
 	WPP_DEFINE_BIT( AL_DBG_UAL)\
 	WPP_DEFINE_BIT( AL_DBG_QUERY)\
@@ -84,13 +88,15 @@
 #define WPP_CONTROL_GUIDS \
 
WPP_DEFINE_CONTROL_GUID(ALCtlGuid2,(99DC84E3,B106,431e,88A6,4DD20C9BBDE3
),  \
 	WPP_DEFINE_BIT( AL_DBG_ERROR) \
+	WPP_DEFINE_BIT( AL_DBG_PNP) \
+	WPP_DEFINE_BIT( AL_DBG_HDL) \
 	WPP_DEFINE_BIT( AL_DBG_AL_OBJ) \
-	WPP_DEFINE_BIT( AL_DBG_HDL) \
 	WPP_DEFINE_BIT( AL_DBG_SMI) \
 	WPP_DEFINE_BIT( AL_DBG_SMI_CB) \
+	WPP_DEFINE_BIT( AL_DBG_RES1) \
 	WPP_DEFINE_BIT( AL_DBG_MAD_POOL) \
 	WPP_DEFINE_BIT( AL_DBG_MAD_SVC) \
-	WPP_DEFINE_BIT( AL_DBG_PNP) \
+	WPP_DEFINE_BIT( AL_DBG_RES2) \
 	WPP_DEFINE_BIT( AL_DBG_CM) \
 	WPP_DEFINE_BIT( AL_DBG_CA) \
 	WPP_DEFINE_BIT( AL_DBG_MR) \
@@ -101,7 +107,9 @@
 	WPP_DEFINE_BIT( AL_DBG_AV)\
 	WPP_DEFINE_BIT( AL_DBG_CQ)\
 	WPP_DEFINE_BIT( AL_DBG_QP)\
+	WPP_DEFINE_BIT( AL_DBG_RES3) \
 	WPP_DEFINE_BIT( AL_DBG_MW)\
+	WPP_DEFINE_BIT( AL_DBG_RES4) \
 	WPP_DEFINE_BIT( AL_DBG_PROXY_CB)\
 	WPP_DEFINE_BIT( AL_DBG_UAL)\
 	WPP_DEFINE_BIT( AL_DBG_QUERY)\
@@ -141,13 +149,13 @@
 
 /* Debug message source */
 #define AL_DBG_ERR	(1 << 0)
-#define AL_DBG_AL_OBJ	(1 << 1)
+#define AL_DBG_PNP		(1 << 1)
 #define AL_DBG_HDL		(1 << 2)
+#define AL_DBG_AL_OBJ	(1 << 3)
 #define AL_DBG_SMI		(1 << 4)
 #define AL_DBG_SMI_CB	(1 << 5)
 #define AL_DBG_MAD_POOL	(1 << 7)
 #define AL_DBG_MAD_SVC	(1 << 8)
-#define AL_DBG_PNP		(1 << 9)
 #define AL_DBG_CM		(1 << 10)
 #define AL_DBG_CA		(1 << 11)
 #define AL_DBG_MR		(1 << 12)
Index: core/iou/kernel/iou_driver.h
===================================================================
--- core/iou/kernel/iou_driver.h	(revision 1682)
+++ core/iou/kernel/iou_driver.h	(working copy)
@@ -99,8 +99,8 @@
 
 
 #define IOU_DBG_ERR		(1 << 0)
-#define IOU_DBG_DRV		(1 << 1)
-#define IOU_DBG_PNP		(1 << 2)
+#define IOU_DBG_PNP		(1 << 1)
+#define IOU_DBG_DRV		(1 << 2)
 #define IOU_DBG_POWER	(1 << 3)
 #define IOU_DBG_PORT	(1 << 4)
 #define IOU_DBG_IOU		(1 << 5)
Index: core/iou/kernel/iou_ioc_mgr.c
===================================================================
--- core/iou/kernel/iou_ioc_mgr.c	(revision 1682)
+++ core/iou/kernel/iou_ioc_mgr.c	(working copy)
@@ -527,7 +527,7 @@
 	}
 
 	/* Initialize the device extension. */
-	cl_init_pnp_po_ext( p_pdo, NULL, p_pdo, g_iou_dbg_flags,
+	cl_init_pnp_po_ext( p_pdo, NULL, p_pdo, 0,
 		&vfptr_ioc_pnp, &vfptr_iou_query_txt );
 
 	/* Set the DO_BUS_ENUMERATED_DEVICE flag to mark it as a PDO. */
Index: core/iou/kernel/iou_pnp.c
===================================================================
--- core/iou/kernel/iou_pnp.c	(revision 1682)
+++ core/iou/kernel/iou_pnp.c	(working copy)
@@ -186,7 +186,7 @@
 		return STATUS_NO_SUCH_DEVICE;
 	}
 
-	cl_init_pnp_po_ext( p_dev_obj, p_next_do, p_pdo,
g_iou_dbg_flags,
+	cl_init_pnp_po_ext( p_dev_obj, p_next_do, p_pdo, 0 ,
 		&vfptr_fdo_pnp, NULL );
 
 	IOU_EXIT( IOU_DBG_PNP );
Index: hw/mthca/kernel/hca_debug.h
===================================================================
--- hw/mthca/kernel/hca_debug.h	(revision 1682)
+++ hw/mthca/kernel/hca_debug.h	(working copy)
@@ -73,8 +73,8 @@
 #define WPP_CONTROL_GUIDS \
 
WPP_DEFINE_CONTROL_GUID(HCACtlGuid,(8BF1F640,63FE,4743,B9EF,FA38C695BFDE
),  \
 	WPP_DEFINE_BIT( HCA_DBG_DEV) \
+	WPP_DEFINE_BIT( HCA_DBG_PNP) \
 	WPP_DEFINE_BIT( HCA_DBG_INIT) \
-	WPP_DEFINE_BIT( HCA_DBG_PNP) \
 	WPP_DEFINE_BIT( HCA_DBG_MAD) \
 	WPP_DEFINE_BIT( HCA_DBG_PO) \
 	WPP_DEFINE_BIT( HCA_DBG_CQ) \
@@ -121,8 +121,8 @@
 
 
 #define HCA_DBG_DEV	(1 << 0)
-#define HCA_DBG_INIT	(1<<1)
-#define HCA_DBG_PNP	(1 << 2)
+#define HCA_DBG_PNP	(1<<1)
+#define HCA_DBG_INIT	(1 << 2)
 #define HCA_DBG_MAD	(1 << 3)
 #define HCA_DBG_PO	(1 << 4)
 #define HCA_DBG_QP	(1 << 5)
Index: ulp/ipoib/kernel/ipoib_debug.h
===================================================================
--- ulp/ipoib/kernel/ipoib_debug.h	(revision 1682)
+++ ulp/ipoib/kernel/ipoib_debug.h	(working copy)
@@ -57,8 +57,8 @@
 	WPP_DEFINE_CONTROL_GUID( \
 		IPOIBCtlGuid,(3F9BC73D, EB03, 453a, B27B, 20F9A664211A),
\
 	WPP_DEFINE_BIT(IPOIB_DBG_ERROR) \
+	WPP_DEFINE_BIT(IPOIB_DBG_PNP) \
 	WPP_DEFINE_BIT(IPOIB_DBG_INIT) \
-	WPP_DEFINE_BIT(IPOIB_DBG_PNP) \
 	WPP_DEFINE_BIT(IPOIB_DBG_SEND) \
 	WPP_DEFINE_BIT(IPOIB_DBG_RECV) \
 	WPP_DEFINE_BIT(IPOIB_DBG_ENDPT) \
@@ -100,8 +100,8 @@
  * Debug macros
  */
 #define IPOIB_DBG_ERR	(1 << 0)
-#define IPOIB_DBG_INIT	(1 << 1)
-#define IPOIB_DBG_PNP	(1 << 2)
+#define IPOIB_DBG_PNP	(1 << 1)
+#define IPOIB_DBG_INIT	(1 << 2)
 #define IPOIB_DBG_SEND	(1 << 3)
 #define IPOIB_DBG_RECV	(1 << 4)
 #define IPOIB_DBG_ENDPT	(1 << 5)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pnp_debug.patch
Type: application/octet-stream
Size: 5721 bytes
Desc: pnp_debug.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060912/2fd07052/attachment.obj>


More information about the ofw mailing list