[BUS] Reduce the reset time. Now we wait 100 ms and poll for 5 more seconds. [mlnx...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Oct 2008 14:11:46 +0000 (14:11 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Oct 2008 14:11:46 +0000 (14:11 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1692 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/bus/drv/pci.c

index c561b4d..d007fd5 100644 (file)
@@ -342,14 +342,14 @@ pci_hca_reset(
                MmUnmapIoSpace( p_reset, MLX4_RESET_SIZE );\r
 \r
                /* Wait a second. */\r
-               cl_thread_suspend( 1000 );\r
+               cl_thread_suspend( 100 );\r
        }\r
 \r
        /* Read the configuration register until it doesn't return 0xFFFFFFFF */\r
        {\r
                ULONG                                   data, i, reset_failed = 1;\r
                MLX4_PRINT( TRACE_LEVEL_INFORMATION     ,MLX4_DBG_PNP  ,("Read the configuration register \n"));\r
-               for( i = 0; i < 100; i++ ) {\r
+               for( i = 0; i < 500; i++ ) {\r
                        if (4 != p_ifc->GetBusData( p_ifc->Context,\r
                                PCI_WHICHSPACE_CONFIG, &data, 0, 4)) {\r
                                MLX4_PRINT( TRACE_LEVEL_ERROR, MLX4_DBG_PNP, \r
@@ -363,7 +363,7 @@ pci_hca_reset(
                                break;\r
                        }\r
                \r
-                       cl_thread_suspend( 100 );\r
+                       cl_thread_suspend( 10 );\r
                }       \r
 \r
                if (reset_failed) {\r