[ofw] ibbus filter driver patch 11/18 - mlx4_hca.inx

Smith, Stan stan.smith at intel.com
Mon Aug 18 14:44:44 PDT 2008


Signed-off by: Stan Smith (stan.smith at intel.com)

Having problems with Intel mailer, hence formatting of patch is incorrect, see attached patch file.

--- SVN\gen1\trunk\hw\mlx4\kernel\hca\mlx4_hca.inx      2008-08-01 17:46:46.602200000 -0700
+++ mlx4_hca.inx        2008-08-18 12:23:55.407272000 -0700
@@ -3,8 +3,8 @@

 [Version]
 Signature="$WINDOWS NT$"
-Class=Mlx4Hca
-ClassGUID={31B0B28A-26FF-4dca-A6FA-E767C7DFBA20}
+Class=InfiniBandController
+ClassGUID={58517E00-D3CF-40c9-A679-CEE5752F4491}
 Provider=%MTL%
 ; must be synchronized with hca\drv.c
 DriverVer=02/01/2008,1.0.0.0
@@ -17,28 +17,26 @@

 [DestinationDirs]
 DefaultDestDir = %DIRID_DRIVERS%
-ClassCopyFiles = %DIRID_SYSTEM%
 MLX4HCA.UMCopyFiles = %DIRID_SYSTEM%
 MLX4HCA.WOW64CopyFiles = %DIRID_SYSTEM_X86%
 ;Wdf_CoInstaller_CopyFiles = %DIRID_SYSTEM%
+Ibal.UMCopyFiles=%DIRID_SYSTEM%
+Ibal.WOW64CopyFiles=%DIRID_SYSTEM_X86%
+

 ;*****************************************
 ; Class Install section
 ;*****************************************

 [ClassInstall32]
-CopyFiles=ClassCopyFiles
 AddReg=ClassAddReg

-[ClassCopyFiles]
-IbInstaller.dll
-
 [ClassAddReg]
-HKR,,,,"Mellanox ConnectX Virtual InfiniBand Adapters"
+HKR,,,,"InfiniBand Channel Adapters"
 HKR,,Icon,,-5
-HKR,,SilentInstall,,1
-HKLM,"System\CurrentControlSet\Control\CoDeviceInstallers", \
- %Mlx4HcaClassGuid%,%REG_MULTI_SZ_APPEND%, "IbInstaller.dll,IbCoInstaller"
+HKR,,SilentInstall,,0
+HKR,,"UpperFilters",0x00010000,"ibbus" ; enable IBBUS/AL Filter driver loading.
+

 ;*****************************************
 ; Device Install section
@@ -54,29 +52,50 @@
 1=%DiskId%,,,""

 [SourceDisksFiles.x86]
-IbInstaller.dll = 1,,
 mlx4_hca.sys = 1,,
 mlx4u.dll = 1,,
 mlx4ud.dll = 1,,
 ;wdfcoinstaller01005.dll = 1,,
+ibal.dll=1,,
+complib.dll=1,,
+ibald.dll=1,,
+complibd.dll=1,,
+ibbus.sys=1,,

 [SourceDisksFiles.amd64]
-IbInstaller.dll = 1,,
 mlx4_hca.sys = 1,,
 mlx4u.dll = 1,,
 mlx4ud.dll = 1,,
 mlx4u32.dll = 1,,
 mlx4u32d.dll = 1,,
 ;wdfcoinstaller01005.dll = 1,,
+ibal.dll=1,,
+ibald.dll=1,,
+complib.dll=1,,
+complibd.dll=1,,
+cl32.dll=1,,
+cl32d.dll=1,,
+ibal32.dll=1,,
+ibal32d.dll=1,,
+ibbus.sys=1,,

 [SourceDisksFiles.ia64]
-IbInstaller.dll = 1,,
 mlx4_hca.sys = 1,,
 mlx4u.dll = 1,,
 mlx4ud.dll = 1,,
 mlx4u32.dll = 1,,
 mlx4u32d.dll = 1,,
 ;wdfcoinstaller01005.dll = 1,,
+ibal.dll=1,,
+ibald.dll=1,,
+complib.dll=1,,
+complibd.dll=1,,
+cl32.dll=1,,
+cl32d.dll=1,,
+ibal32.dll=1,,
+ibal32d.dll=1,,
+ibbus.sys=1,,
+

 ;*****************************************
 ; Mlx4Bus  Install Section
@@ -100,28 +119,41 @@
 [MLX4HCA.DDInstall.ntx86]
 CopyFiles = MLX4HCA.CopyFiles
 CopyFiles = MLX4HCA.UMCopyFiles
-CopyINF=ib_bus.inf
+CopyFiles = Ibal.UMCopyFiles
+CopyFiles = Ibbus.CopyFiles

 [MLX4HCA.DDInstall.ntamd64]
 CopyFiles = MLX4HCA.CopyFiles
 CopyFiles = MLX4HCA.UMCopyFiles
 CopyFiles = MLX4HCA.WOW64CopyFiles
-CopyINF=ib_bus.inf
+CopyFiles = Ibal.UMCopyFiles
+CopyFiles = Ibal.WOW64CopyFiles
+CopyFiles = Ibbus.CopyFiles

 [MLX4HCA.DDInstall.ntia64]
 CopyFiles = MLX4HCA.CopyFiles
 CopyFiles = MLX4HCA.UMCopyFiles
 CopyFiles = MLX4HCA.WOW64CopyFiles
-CopyINF=ib_bus.inf
+CopyFiles = Ibal.UMCopyFiles
+CopyFiles = Ibal.WOW64CopyFiles
+CopyFiles = Ibbus.CopyFiles

 [MLX4HCA.DDInstall.ntx86.Services]
 AddService = mlx4_hca,%SPSVCINST_ASSOCSERVICE%,MLX4HCA.ServiceInstall,MLX4HCA.EventLog
+AddService = ibbus,,Ibbus.ServiceInstall

 [MLX4HCA.DDInstall.ntamd64.Services]
 AddService = mlx4_hca,%SPSVCINST_ASSOCSERVICE%,MLX4HCA.ServiceInstall,MLX4HCA.EventLog
+AddService = ibbus,,Ibbus.ServiceInstall

 [MLX4HCA.DDInstall.ntia64.Services]
 AddService = mlx4_hca,%SPSVCINST_ASSOCSERVICE%,MLX4HCA.ServiceInstall,MLX4HCA.EventLog
+AddService = ibbus,,Ibbus.ServiceInstall
+
+
+;*****************************************
+; File Copy
+;*****************************************

 [MLX4HCA.CopyFiles]
 mlx4_hca.sys
@@ -134,9 +166,24 @@
 mlx4u.dll,mlx4u32.dll,,2
 mlx4ud.dll,mlx4u32d.dll,,2

+[Ibal.UMCopyFiles]
+ibal.dll,,,2
+ibald.dll,,,2
+complib.dll,,,2
+complibd.dll,,,2
+
+[Ibal.WOW64CopyFiles]
+ibal.dll,ibal32.dll,,2
+ibald.dll,ibal32d.dll,,2
+complib.dll,cl32.dll,,2
+complibd.dll,cl32d.dll,,2
+
+[Ibbus.CopyFiles]
+ibbus.sys
+

 ;*****************************************
-; Service Install section
+; MLX4 Service Install section
 ;*****************************************

 [MLX4HCA.ServiceInstall]
@@ -163,6 +210,74 @@
 HKLM,"System\CurrentControlSet\Control\WMI\GlobalLogger\F8C96A49-AE22-41e9-8025-D7E416884D89","Flags",%REG_DWORD%,0xffff
 HKLM,"System\CurrentControlSet\Control\WMI\GlobalLogger\F8C96A49-AE22-41e9-8025-D7E416884D89","Level",%REG_DWORD%,0x3

+
+;*****************************************
+; IBBUS Service Install section
+;*****************************************
+
+[Ibbus.ServiceInstall]
+DisplayName     = %Ibbus.ServiceDesc%
+ServiceType     = %SERVICE_KERNEL_DRIVER%
+StartType       = %SERVICE_DEMAND_START%
+ErrorControl    = %SERVICE_ERROR_NORMAL%
+ServiceBinary   = %12%\ibbus.sys
+LoadOrderGroup  = PnP Filter
+AddReg          = Ibbus.ParamsReg
+Dependencies   = mlx4_hca
+
+[Ibbus.ParamsReg]
+HKR,"Parameters","IbalDebugLevel",%REG_DWORD%,2
+HKR,"Parameters","IbalDebugFlags",%REG_DWORD%,0x00ffffff
+HKR,"Parameters","SmiPollInterval",%REG_DWORD_NO_CLOBBER%,20000
+HKR,"Parameters","IocQueryTimeout",%REG_DWORD_NO_CLOBBER%,250
+HKR,"Parameters","IocQueryRetries",%REG_DWORD_NO_CLOBBER%,4
+HKR,"Parameters","IocPollInterval",%REG_DWORD_NO_CLOBBER%,30000
+HKR,"Parameters","DebugFlags",%REG_DWORD%,0x80000000
+HKR,"Parameters","ReportPortNIC",%REG_DWORD%,1
+
+
+;*****************************************
+; Uninstall section (not used now)
+;*****************************************
+
+[DefaultUninstall.ntx86]
+DelFiles   = MLX4HCA.CopyFiles
+DelFiles   = MLX4HCA.UMCopyFiles
+DelReg     = MLX4HCA.ParamsReg
+DelReg     = MLX4HCA.AddEventLogReg
+DelReg     = ClassAddReg
+DelFiles   = Ibal.UMCopyFiles
+
+
+[DefaultUninstall.ntamd64]
+DelFiles   = MLX4HCA.CopyFiles
+DelFiles   = MLX4HCA.UMCopyFiles
+DelFiles   = MLX4HCA.WOW64CopyFiles
+DelReg     = MLX4HCA.ParamsReg
+DelReg     = MLX4HCA.AddEventLogReg
+DelReg     = ClassAddReg
+DelFiles   = Ibal.UMCopyFiles
+DelFiles   = Ibal.WOW64CopyFiles
+DelFiles   = Ibbus.CopyFiles
+DelReg     = Ibbus.ParamsReg
+
+[DefaultUninstall.ntia64]
+DelFiles   = MLX4HCA.CopyFiles
+DelFiles   = MLX4HCA.UMCopyFiles
+DelFiles   = MLX4HCA.WOW64CopyFiles
+DelReg     = MLX4HCA.ParamsReg
+DelReg     = MLX4HCA.AddEventLogReg
+DelReg     = ClassAddReg
+DelFiles   = Ibal.UMCopyFiles
+DelFiles   = Ibal.WOW64CopyFiles
+DelFiles   = Ibbus.CopyFiles
+DelReg     = Ibbus.ParamsReg
+
+[DefaultUninstall.Services]
+DelService = Ibbus,%SPSVCINST_STOPSERVICE%
+DelService = mthca,%SPSVCINST_STOPSERVICE%
+
+
 ;
 ; The below section is temporarily disabled.
 ; It should be uncommented after returning MLX4_HCA to WDF model.
@@ -211,14 +326,17 @@
 Mlx4HcaClassGuid = "{31B0B28A-26FF-4dca-A6FA-E767C7DFBA20}"
 MTL="Mellanox Technologies Ltd."
 MLX4HCA.ServiceDesc = "Mellanox ConnectX Virtual Infiband Driver"
+Ibbus.ServiceDesc = "InfiniBand Bus/Fabric/AL (Filter Driver)"
 Mlx4_Hca.DeviceDesc="Mellanox ConnectX Virtual Channel Adapter"
 DiskId = "Mellanox Mlx4 Bus installation disk"
 SPSVCINST_NULL = 0x0
 SPSVCINST_ASSOCSERVICE = 0x00000002
+SPSVCINST_STOPSERVICE  = 0x00000200
 SERVICE_KERNEL_DRIVER  = 1
 SERVICE_DEMAND_START   = 3
 SERVICE_ERROR_NORMAL   = 1
 REG_DWORD              = 0x00010001
+REG_DWORD_NO_CLOBBER   = 0x00010003
 REG_MULTI_SZ_APPEND    = 0x00010008
 DIRID_SYSTEM           = 11
 DIRID_DRIVERS          = 12
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mlx4_hca.inx
Type: application/octet-stream
Size: 9480 bytes
Desc: mlx4_hca.inx
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080818/394b97cf/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mlx4_hca.inx.pat
Type: application/octet-stream
Size: 7726 bytes
Desc: mlx4_hca.inx.pat
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080818/394b97cf/attachment-0001.obj>


More information about the ofw mailing list