shefty [Tue, 24 Feb 2009 23:58:21 +0000 (23:58 +0000)]
winverbs/winmad: fix GetOverlappedResult return value
The GetOverlappedResults methods are supposed to return an HRESULT, but are returning a BOOL. This makes GetOverlappedResults return WV_SUCCESS when the underlying ::GetOverlappedResults failed.
This patch returns the NTSTATUS results (not the Win32 conversion thereof) so that the WV_STATUS values are returned (since these map to NTSTATUS values.)
Applied similar fix to winmad. (-SH)
Signed-off-by: Fab Tillier <ftillier@microsoft.com> Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1987 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Tue, 24 Feb 2009 23:17:49 +0000 (23:17 +0000)]
winverbs/winmad: allow clients to use IOCPs
This patch allows clients to use IOCPs. It sets the lower bit of the event used for synchronous IOCTLs to prevent their completion from being reported to the IOCP.
Signed-off-by: Fab Tillier <ftillier@microsoft.com> Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1986 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Tue, 24 Feb 2009 23:13:41 +0000 (23:13 +0000)]
winverbs: remove dependency on CRT
This patch removes the dependency on the CRT, avoiding any potential issues with mismatched CRTs (say a client app uses the single-threaded static version of the CRT while WinVerbs uses the multi-threaded DLL version.)
Signed-off-by: Fab Tillier <ftillier@microsoft.com> Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1985 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Tue, 24 Feb 2009 23:04:49 +0000 (23:04 +0000)]
winmad: fix crash and handle mads > 256 correctly
Fix crash if driver is loaded, but does not go active (power D0) before being unloaded. Also handle mads > 256 bytes by checking against STATUS_SUCCESS, rather than for a successful status. STATUS_MORE_ENTRIES is a successful status, but not what we're interested in.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1983 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
stansmith [Tue, 17 Feb 2009 18:40:59 +0000 (18:40 +0000)]
[WinOF] additional WHQL patches from trunk (svn.commit #)
1765 [ipoib] Don't put multicast entries in the dlid lists.
1770 [MLX4] Fixed QP memory leak, inserted in 1288 fix.
1771 [MLX4] Fixed QP memory leak, inserted in 1288 fix.
1772 [MLX4] fixed application crash in case of IOCTL failure.[mlnx:3498]
1774 [IBBUS] workaround for some problems with WHQL PnP test over IPoIB.
[mlnx: 3535]
1788 [IPoIB]: Fill in service level in MAC_TO_PATH output.
1966 [IBAL,WinVerbs] fix ib_get_err_str. The addition of
IB_INVALID_GUID_MASK wasn't reflected in the string conversion.
This causes all text representations of error values greater than
IB_INVALID_GUID_MASK to be wrong.
WIX src updates for 2.0.2 release
leonidk [Mon, 16 Feb 2009 12:06:19 +0000 (12:06 +0000)]
[IBAL] Fix WPP trace previx for AL_PRINT
The AL_PRINT WPP prefix adds a space before the colon. This makes output look funny if you use AL_PRINT instead of AL_ENTER to create a more detailed entry message (with parameter values, for example), as the colon won't align. This makes it hard to search a file for function entry.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1967 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
leonidk [Mon, 16 Feb 2009 11:50:20 +0000 (11:50 +0000)]
[IBAL,WinVerbs] fix ib_get_err_str
The addition of IB_INVALID_GUID_MASK wasn't reflected in the string conversion. This causes all text representations of error values greater than IB_INVALID_GUID_MASK to be wrong.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1966 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
leonidk [Mon, 16 Feb 2009 10:13:45 +0000 (10:13 +0000)]
[IBBUS] added support for creating vendor defined devices.
It replaces creating devices on built-in base.
Devices, created by this patch: IPoIB and XsigoBus.
The parameters, describing the devices to be created, are defined in mlx4_hca and mthca inf files, but they are placed into Registry under ibbus\parameters key.
Signed-off-by: James Yang
git-svn-id: svn://openib.tc.cornell.edu/gen1@1965 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Fri, 13 Feb 2009 22:33:59 +0000 (22:33 +0000)]
ib-diags: re-porting of ib diag utilities
A new port of the ib diag utilities that is in sync with the main management.git tree. This code mirrors git://git.openfabrics.org/~shefty/scm/ib-mgmt.git, which is a clone of Sasha's management.git tree, plus pending patches for windows support.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1960 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
stansmith [Fri, 13 Feb 2009 19:55:22 +0000 (19:55 +0000)]
[WinOF] CustomActions.vbs - remove /S switch from dpinst cmd-line as it suppresses the required unknown SW Publisher dialogue box during HCA driver install; for a system which has never seen WinOF SW. Side effect of checking the trust unknown SW publisher is an OFA certificate is placed in the trusted publishers cert store.
Install dpinst.xml file so dpinst.exe doesn't complain about not having one.
tzachid [Wed, 4 Feb 2009 15:11:30 +0000 (15:11 +0000)]
OpenSM patches for saquery porting - 1 of 6:
The following OpenSM patches update OpenSM's ib_types.h a small step closer to the OFED version by
1) matching field names.
2) missing #defines
3) missing functions
Changes were required in order to port the OFED 1.4 ibsaquery command.
Signed off by: stan.smith@intel.com
stansmith [Wed, 28 Jan 2009 17:17:37 +0000 (17:17 +0000)]
[WinOF] 2.0.1 point release
BuildRelease.bat - now assumes trunk\WinOF\WIX path as branches\WinOF was moved into the trunk.
latest versions of DPInst.exe
Updated WIX src files to reflect WinOF version 2.0.1
stansmith [Wed, 28 Jan 2009 17:12:28 +0000 (17:12 +0000)]
[WinOF] learned about .bat for() loops & default delimiters with folder name which contain spaces (say if you make a copy of a folder). The default delimiters <space> & <tab> allow a filename like 'c:\openIB\gen1\trunk\ulp\ipoib - Copy(2)\objfre_wlh_x86' to be returned as 'c:\openIB\gen1\trunk\ulp\ipoib' suitable for removal - not the intent.
stansmith [Wed, 28 Jan 2009 17:10:30 +0000 (17:10 +0000)]
[WinOF] 2.0.1 point release - learned about .bat for() loops & default delimiters with folder name which contain spaces (say if you make a copy of a folder). The default delimiters <space> & <tab> allow a filename like 'c:\openIB\gen1\trunk\ulp\ipoib - Copy(2)\objfre_wlh_x86' to be returned as 'c:\openIB\gen1\trunk\ulp\ipoib' suitable for removal - not the intent.
stansmith [Tue, 27 Jan 2009 18:46:28 +0000 (18:46 +0000)]
[WinOF] updated clean-build.bat due to a problem with a cmd window in delete path can cause removal of src files. Updated version writes temp file with matched folders/files to delete.
makebin.bat mods to support rdmacm and rdmacm test pgms: ibv_rdma_lat.exe, ibv_rdma_bw.exe. Latest OFED diag tools.