[MLX4] added new Registry parameter for number of FC_EXCHs and added a sanity check...
[mirror/winof/.git] / hw / mlx4 / kernel / bus / drv / mlx4_bus.inx
index fa4fbca..2741df1 100644 (file)
@@ -48,15 +48,15 @@ HKR,,SilentInstall,,1
 \r
 [SourceDisksFiles.x86]\r
 mlx4_bus.sys = 1,,\r
-wdfcoinstaller01007.dll = 1,,\r
+wdfcoinstaller$KMDFCOINSTALLERVERSION$.dll = 1,,\r
 \r
 [SourceDisksFiles.amd64]\r
 mlx4_bus.sys = 1,,\r
-wdfcoinstaller01007.dll = 1,,\r
+wdfcoinstaller$KMDFCOINSTALLERVERSION$.dll = 1,,\r
 \r
 [SourceDisksFiles.ia64]\r
 mlx4_bus.sys = 1,,\r
-wdfcoinstaller01007.dll = 1,,\r
+wdfcoinstaller$KMDFCOINSTALLERVERSION$.dll = 1,,\r
 \r
 ;*****************************************\r
 ; Mlx4Bus  Install Section\r
@@ -71,28 +71,37 @@ wdfcoinstaller01007.dll = 1,,
 [MLX4BUS.DeviceSection.ntx86]\r
 %MT25408.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6340\r
 %MT25418.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_634A\r
-%MT25428.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6354\r
 %MT25448.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6368\r
+%MT25458.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6372\r
 %MT26418.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6732\r
 %MT26428.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_673c\r
+%MT26448.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6750\r
+%MT26458.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_675A\r
+%MT26468.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6764\r
 %MT00401.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_0191\r
 \r
 [MLX4BUS.DeviceSection.ntamd64]\r
 %MT25408.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6340\r
 %MT25418.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_634A\r
-%MT25428.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6354\r
-%MT26418.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6732\r
 %MT25448.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6368\r
+%MT25458.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6372\r
+%MT26418.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6732\r
 %MT26428.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_673c\r
+%MT26448.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6750\r
+%MT26458.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_675A\r
+%MT26468.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6764\r
 %MT00401.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_0191\r
 \r
 [MLX4BUS.DeviceSection.ntia64]\r
 %MT25408.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6340\r
 %MT25418.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_634A\r
-%MT25428.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6354\r
 %MT25448.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6368\r
+%MT25458.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6372\r
 %MT26418.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6732\r
 %MT26428.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_673c\r
+%MT26448.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6750\r
+%MT26458.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_675A\r
+%MT26468.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_6764\r
 %MT00401.DeviceDesc%=MLX4BUS.DDInstall, PCI\VEN_15B3&DEV_0191\r
 \r
 [MLX4BUS.DDInstall.ntx86.hw]\r
@@ -105,13 +114,13 @@ AddReg = MLX4BUS.HwReg
 AddReg = MLX4BUS.HwReg\r
 \r
 [MLX4BUS.HwReg]\r
-HKR,"Interrupt Management", 0x00000010\r
-HKR,"Interrupt Management\MessageSignaledInterruptProperties",0x00000010\r
+HKR,"Interrupt Management",,0x00000010\r
+HKR,"Interrupt Management\MessageSignaledInterruptProperties",,0x00000010\r
 \r
-; MSI/MSI-X support\r
-HKR,"Interrupt Management\MessageSignaledInterruptProperties",MSISupported,0x00010001,0\r
-HKR,"Interrupt Management\MessageSignaledInterruptProperties",MessageNumberLimit,0x00010001,8\r
-HKR,"Interrupt Management\Affinity Policy",0x00000010\r
+; MSI-X support\r
+HKR,"Interrupt Management\MessageSignaledInterruptProperties",MSISupported,0x00010001,1\r
+HKR,"Interrupt Management\MessageSignaledInterruptProperties",MessageNumberLimit,0x00010001,18\r
+HKR,"Interrupt Management\Affinity Policy",,0x00000010\r
 \r
 ; AssignmentSetOverride - processors KAFFINITY mask  \r
 HKR,"Interrupt Management\Affinity Policy",AssignmentSetOverride,0x00000001,0x0\r
@@ -121,22 +130,26 @@ HKR,"Interrupt Management\Affinity Policy",AssignmentSetOverride,0x00000001,0x0
 ; IrqPolicyOneCloseProcessor (2) - connect interrupts to one processor\r
 ; IrqPolicyAllProcessorsInMachine (3) - connect interrupts to all processors in the machine\r
 ; IrqPolicySpecifiedProcessors (4) - connects interrupts according to AssignmentSetOverride\r
-HKR,"Interrupt Management\Affinity Policy",DevicePolicy,0x00010001,0x0\r
+; IrqPolicySpreadMessagesAcrossAllProcessors (5) - assign different message-based interrupts to different processors\r
+HKR,"Interrupt Management\Affinity Policy",DevicePolicy,0x00010001,0x5\r
 \r
 ; IrqArbPriorityUndefined (0) - no interrupt priority policy. \r
 ; IrqArbPriorityLow (1) - device can tolerate low IRQL\r
 ; IrqArbPriorityNormal (2) - device expects normal interrupt latencies\r
 ; IrqArbPriorityHigh (3) - device requires the lowest possible interrupt latency\r
-HKR,"Interrupt Management\Affinity Policy",DevicePriority,0x00010001,0x0\r
+HKR,"Interrupt Management\Affinity Policy",DevicePriority,0x00010001,0x3\r
 \r
 [MLX4BUS.DDInstall.ntx86]\r
 CopyFiles = MLX4BUS.CopyFiles\r
+AddReg    = MLX4BUS.SoftwareReg\r
 \r
 [MLX4BUS.DDInstall.ntamd64]\r
 CopyFiles = MLX4BUS.CopyFiles\r
+AddReg    = MLX4BUS.SoftwareReg\r
 \r
 [MLX4BUS.DDInstall.ntia64]\r
 CopyFiles = MLX4BUS.CopyFiles\r
+AddReg    = MLX4BUS.SoftwareReg\r
 \r
 [MLX4BUS.DDInstall.ntx86.Services]\r
 AddService = mlx4_bus,%SPSVCINST_ASSOCSERVICE%,MLX4BUS.ServiceInstall,MLX4BUS.EventLog\r
@@ -158,10 +171,10 @@ mlx4_bus.sys
 [MLX4BUS.ServiceInstall]\r
 DisplayName     = %MLX4BUS.ServiceDesc%\r
 ServiceType     = %SERVICE_KERNEL_DRIVER%\r
-StartType       = %SERVICE_DEMAND_START%\r
+StartType       = %SERVICE_BOOT_START%\r
 ErrorControl    = %SERVICE_ERROR_NORMAL%\r
 ServiceBinary   = %12%\mlx4_bus.sys\r
-LoadOrderGroup  = extended base\r
+LoadOrderGroup  = NDIS\r
 AddReg          = MLX4BUS.ParamsReg\r
 \r
 [MLX4BUS.EventLog]\r
@@ -171,6 +184,9 @@ AddReg = MLX4BUS.AddEventLogReg
 HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\mlx4_bus.sys"\r
 HKR, , TypesSupported,   0x00010001, 7\r
 \r
+[MLX4BUS.SoftwareReg]\r
+HKR,"Parameters","PortType",%REG_SZ%,"ib,ib"\r
+\r
 [MLX4BUS.ParamsReg]\r
 HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens\r
 HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"      ; Allow generic-all access to Built-in administrators and Local system \r
@@ -183,14 +199,15 @@ HKR,"Parameters","LogNumCq",%REG_DWORD%,0x00000010
 HKR,"Parameters","LogNumMcg",%REG_DWORD%,0x0000000D\r
 HKR,"Parameters","LogNumMpt",%REG_DWORD%,0x00000012\r
 HKR,"Parameters","LogNumMtt",%REG_DWORD%,0x00000014\r
-HKR,"Parameters","EnableQoS",%REG_DWORD%,0x00000001\r
+HKR,"Parameters","EnableQoS",%REG_DWORD%,0x00000000\r
 HKR,"Parameters","BlockMcastLoopBack",%REG_DWORD%,0x00000000\r
 HKR,"Parameters","InterruptFromFirstPacket",%REG_DWORD%,0x00000001\r
 \r
-HKR,"Parameters","NumMac",%REG_DWORD%,0x00000001\r
+HKR,"Parameters","NumMac",%REG_DWORD%,0x00000000\r
 HKR,"Parameters","NumVlan",%REG_DWORD%,0x00000000\r
 HKR,"Parameters","UsePrio",%REG_DWORD%,0x00000000\r
-HKR,"Parameters","PortType",%REG_SZ%,"ib,ib"\r
+HKR,"Parameters","NumFcExch",%REG_DWORD%,0x00000000\r
+\r
 \r
 \r
 HKLM,"System\CurrentControlSet\Control\WMI\GlobalLogger\E51BB6E2-914A-4e21-93C0-192F4801BBFF","Flags",%REG_DWORD%,0xffff\r
@@ -213,10 +230,10 @@ AddReg=Wdf_CoInstaller_AddReg
 CopyFiles=Wdf_CoInstaller_CopyFiles\r
 \r
 [Wdf_CoInstaller_AddReg]\r
-HKR,,CoInstallers32,0x00010000, "wdfcoinstaller01007.dll,WdfCoInstaller"\r
+HKR,,CoInstallers32,0x00010000, "wdfcoinstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"\r
 \r
 [Wdf_CoInstaller_CopyFiles]\r
-wdfcoinstaller01007.dll\r
+wdfcoinstaller$KMDFCOINSTALLERVERSION$.dll\r
 \r
 [MLX4BUS.DDInstall.ntx86.Wdf]\r
 KmdfService = mlx4_bus, mlx4_bus_wdfsect\r
@@ -228,7 +245,7 @@ KmdfService = mlx4_bus, mlx4_bus_wdfsect
 KmdfService = mlx4_bus, mlx4_bus_wdfsect\r
 \r
 [mlx4_bus_wdfsect]\r
-KmdfLibraryVersion = 1.7\r
+KmdfLibraryVersion = $KMDFVERSION$\r
 \r
 \r
 ;*****************************************\r
@@ -240,15 +257,19 @@ MTL="Mellanox Technologies Ltd."
 MLX4BUS.ServiceDesc = "Mellanox ConnectX Bus Enumerator"\r
 MT25408.DeviceDesc="ConnectX (MT25408) - Mellanox ConnectX SDR Channel Adapter"\r
 MT25418.DeviceDesc="ConnectX (MT25418) - Mellanox ConnectX DDR Channel Adapter"\r
-MT25428.DeviceDesc="ConnectX (MT25428) - Mellanox ConnectX QDR Channel Adapter"\r
-MT25448.DeviceDesc="ConnectX (MT25448) - Mellanox ConnectX Condor Ethernet Adapter"\r
-MT26418.DeviceDesc="ConnectX (MT26418) - Mellanox ConnectX DDR_G2 Channel Adapter"\r
-MT26428.DeviceDesc="ConnectX (MT26428) - Mellanox ConnectX QDR_G2 Channel Adapter"\r
-MT00401.DeviceDesc="ConnectX (MT00401) - Mellanox ConnectX Channel Adapter in Burning Mode"\r
+MT25448.DeviceDesc="ConnectX (MT25448) - Mellanox ConnectX Ethernet Adapter"\r
+MT25458.DeviceDesc="ConnectX (MT25458) - Mellanox ConnectX Ethernet Adapter"\r
+MT26418.DeviceDesc="ConnectX (MT26418) - Mellanox ConnectX DDR PCI Gen2 Channel Adapter"\r
+MT26428.DeviceDesc="ConnectX (MT26428) - Mellanox ConnectX QDR PCI Gen2 Channel Adapter"\r
+MT26448.DeviceDesc="ConnectX (MT26448) - Mellanox ConnectX Ethernet PCI Gen2 Adapter"\r
+MT26458.DeviceDesc="ConnectX (MT26458) - Mellanox ConnectX Ethernet PCI Gen2 Adapter"\r
+MT26468.DeviceDesc="ConnectX (MT26468) - Mellanox ConnectX B0 Ethernet PCI Gen2 Adapter"\r
+MT00401.DeviceDesc="ConnectX (MT00401) - Mellanox ConnectX Channel Adapter in Flash Recovery Mode"\r
 DiskId = "Mellanox Mlx4 Bus installation disk"\r
 SPSVCINST_NULL = 0x0\r
 SPSVCINST_ASSOCSERVICE = 0x00000002\r
 SERVICE_KERNEL_DRIVER  = 1\r
+SERVICE_BOOT_START     = 0\r
 SERVICE_DEMAND_START   = 3\r
 SERVICE_ERROR_NORMAL   = 1\r
 REG_DWORD              = 0x00010001\r