[WinOF] detect possible ConnectX HCA driver load failure and suggest examination...
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 18 Sep 2009 21:24:01 +0000 (21:24 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 18 Sep 2009 21:24:01 +0000 (21:24 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2447 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

WinOF/WIX/CustomActions.vbs

index 60fe506..e59eec8 100644 (file)
@@ -819,6 +819,23 @@ Function DriverInstall()
                End If\r
        End If\r
 \r
+       ' HCA load failure?\r
+       ' Check for [SystemFolder]\complib.dll. If not preset then ConnectX HCA\r
+       ' driver failed to install; see mlx4_hca.inf. Complib.dll absence occurs\r
+       ' when ConnectX bus driver detects invalid Firmware hence does not create\r
+       ' the PDO for the ConnectX HCA device so PNP never loads the HCA driver and\r
+       ' complib.dll never gets installed.\r
+\r
+       If Not fso.FileExists(PropArray(1) & "complib.dll") Then\r
+               ' 10 sec timeout warning box.\r
+               WshShell.Popup "WARNING: Possible HCA Driver Startup Failure." _\r
+                       & vbCrLf & "  Consult the Windows System Event log! (mlx4_bus)",_\r
+                       10,"WinOF DriverInstall",vbInformation+vbSystemModal\r
+\r
+               MsiLogInfo "[DriverInstall] *** Possible HCA Driver Startup Failure" & _\r
+                                       vbCrLf & "[DriverInstall] ***   Consult System Event Log."\r
+       End If\r
+\r
        DriverInstall = 0\r
 \r
 End Function\r