[MTHCA] mthca wpp debug use the same format .
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 19 Oct 2006 11:48:17 +0000 (11:48 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 19 Oct 2006 11:48:17 +0000 (11:48 +0000)
fix race between KeCancelTimre to iounmap in mthca catastrophic error flow

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@528 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/hca_debug.h
hw/mthca/kernel/mthca_catas.c

index 8e737a5..7ecfed4 100644 (file)
@@ -96,9 +96,11 @@ static void _build_str( const char * format, ... )
 // begin_wpp config\r
 // HCA_ENTER(FLAG);\r
 // HCA_EXIT(FLAG);\r
-// USEPREFIX(HCA_PRINT, "%!STDPREFIX! %!FUNC!() :");\r
-// USESUFFIX(HCA_ENTER, " %!FUNC!()===>");\r
-// USESUFFIX(HCA_EXIT, " %!FUNC!()<===");\r
+// USEPREFIX(HCA_PRINT, "%!STDPREFIX! [MTHCA] :%!FUNC!() :");\r
+// USEPREFIX(HCA_PRINT_EXIT, "%!STDPREFIX! [MTHCA] :%!FUNC!() :");\r
+// USESUFFIX(HCA_PRINT_EXIT, "[MTHCA] :%!FUNC!():]");\r
+// USESUFFIX(HCA_ENTER, " [MTHCA] :%!FUNC!()[");\r
+// USESUFFIX(HCA_EXIT, " [MTHCA] :%!FUNC!()]");\r
 // end_wpp\r
 \r
 \r
@@ -158,10 +160,10 @@ static void _build_str( const char *      format, ... )
        }\r
 \r
 #define HCA_ENTER(flags)\\r
-       HCA_PRINT(TRACE_LEVEL_VERBOSE, flags,("===>\n"));\r
+       HCA_PRINT(TRACE_LEVEL_VERBOSE, flags,("[\n"));\r
 \r
 #define HCA_EXIT(flags)\\r
-       HCA_PRINT(TRACE_LEVEL_VERBOSE, flags, ("<===\n" ));\r
+       HCA_PRINT(TRACE_LEVEL_VERBOSE, flags, ("]\n" ));\r
 \r
 \r
 #define HCA_PRINT_EXIT(_level_,_flag_,_msg_)   \\r
index fc7e90c..0c91518 100644 (file)
@@ -158,6 +158,7 @@ void mthca_stop_catas_poll(struct mthca_dev *dev)
        spin_unlock_irq(&lh);
 
        KeCancelTimer(&dev->catas_err.timer);
+       KeFlushQueuedDpcs();
 
        if (dev->catas_err.map) {
                iounmap(dev->catas_err.map, dev->catas_err.map_size);