[MLX4] changed severity level for informational messages about Soft Reset from ERROR...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 13 Jul 2009 18:29:54 +0000 (18:29 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 13 Jul 2009 18:29:54 +0000 (18:29 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2293 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/bus/core/ev_log.mc
hw/mlx4/kernel/bus/net/catas.c

index a00094a..b393917 100644 (file)
@@ -132,4 +132,15 @@ The adapter card is non-functional.%n
 Please increase the Registry LogNumQp parameter under HKLM\System\CurrentControlSet\Services\mlx4_bus\Parameters.\r
 .\r
 \r
+MessageId=0x000e Facility=MLX4 Severity=Informational SymbolicName=EVENT_MLX4_INFO_RESET_START\r
+Language=English\r
+Performing HCA restart ...\r
+.\r
+\r
+MessageId=0x000f Facility=MLX4 Severity=Informational SymbolicName=EVENT_MLX4_INFO_RESET_END\r
+Language=English\r
+HCA restart finished. Notifying the clients ...\r
+.\r
+\r
+\r
 \r
index 2c287aa..ddc70cd 100644 (file)
@@ -302,10 +302,10 @@ int mlx4_reset_execute( struct ib_event_handler *event_handler )
        get_event_handlers(ibdev, &tlist);
 
        // restart the device
-       mlx4_err(pdev->dev, "\n Performing HCA restart ... \n\n");
+       mlx4_info(pdev->dev, "\n Performing HCA restart ... \n\n");
+       WriteEventLogEntryData( pdev->p_self_do, (ULONG)EVENT_MLX4_INFO_RESET_START, 0, 0, 0 );
        err = mlx4_restart_one(pdev);
        if (err || mlx4_is_livefish(pdev->dev)) {
-               mlx4_err(pdev->dev, "\n HCA restart failed ! \n\n");
                event.event = IB_EVENT_RESET_FAILED;
                mlx4_err(pdev->dev, "\n HCa restart failed. \n\n");
        }
@@ -313,7 +313,8 @@ int mlx4_reset_execute( struct ib_event_handler *event_handler )
                // recreate interfaces
                fix_bus_ifc(pdev);
                event.event = IB_EVENT_RESET_END;
-               mlx4_err(pdev->dev, "\n HCA restart finished. Notifying the clients ... \n\n");
+               mlx4_info(pdev->dev, "\n HCA restart finished. Notifying the clients ... \n\n");
+               WriteEventLogEntryData( pdev->p_self_do, (ULONG)EVENT_MLX4_INFO_RESET_END, 0, 0, 0 );
        }
 
        // notify the clients