shefty [Fri, 6 Mar 2009 22:33:11 +0000 (22:33 +0000)]
libibumad: match behavior of OFED libibumad wrt ca ports
The OFED version of libibumad stores a list of ports associated with a umad_ca_t differently based on whether the CA is on a host or is part of a switch. On a host, the port information is maintained in the port array starting at index 1, not 0. In this case, umad_ca_t:port[0] is NULL. Update the WinOF version of libibumad to behave the same. This fixes an issue with ibstat reporting 1 too many ports.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2014
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Fri, 6 Mar 2009 22:27:39 +0000 (22:27 +0000)]
perftest: allow server to support both IPv6 and IPv4
Changes based on Leonid's patch to add support for IPv6 and IPv4. Allow the server to accept incoming connections from IPv6 and IPv4 clients.
Move connection handling code into common location to eliminate code duplication between perftest apps.
Signed-off-by: Leonid Keller <leonid@mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2013
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 5 Mar 2009 22:36:58 +0000 (22:36 +0000)]
[DAPL2] DAPL Counters & 2.0.3 extensions to support counter retrieval.
dt-cli.bat - return error codes from script, use for() loop in regression test.
SOURCES - debug version get counters by default.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2012
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Thu, 5 Mar 2009 11:11:35 +0000 (11:11 +0000)]
[HW] removed mthca_log.rc
SVN maintains mthca_log.rc, but the build deletes it. The result is that the mthca directory always shows changes after performing a build.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2010
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 3 Mar 2009 21:17:59 +0000 (21:17 +0000)]
ib-diags: fix portnum being off by 1
Relevent fix has been submitted upstream, but apply this to svn until ib-diags are updated.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2009
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 3 Mar 2009 19:24:17 +0000 (19:24 +0000)]
[DAPL2] incorrect patches for Counters - unwind to svn.2004
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2007
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 3 Mar 2009 17:43:53 +0000 (17:43 +0000)]
[WinOF]
buildrelease.bat - added sign only option
build-all-MSI.bat - update comments and support 'sign' option
README_release.txt - WinOF 2.1 beginnings
Release_notes.htm - WinOF 2.1 beginnings
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2006
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 3 Mar 2009 17:38:47 +0000 (17:38 +0000)]
[DAPL2] DAPL Counters 2.0.3 & extensions.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2005
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 3 Mar 2009 09:45:11 +0000 (09:45 +0000)]
[mlx4] Fix error path on create qp.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2002
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 3 Mar 2009 08:43:28 +0000 (08:43 +0000)]
[mlx4] Fix our error handling in the case of hardware errors.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2001
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 3 Mar 2009 01:05:53 +0000 (01:05 +0000)]
getopt: return '?' if user wants an arg, but none is provided
If the user specifies that an argument is required, but none is provided, return '?' as the option, rather than NULL as the optarg. This fixes an issue if the last option specified in the option list requires an argument, but none is provided.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2000
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 3 Mar 2009 00:50:59 +0000 (00:50 +0000)]
libibumad: fix return value for RMPP handling
Return ENOSPC if the user provided buffer is smaller than the MAD to retrieve from the kernel. This allows processing of MADs > 256 bytes.
Problem was found by running the saquery ib-diag with RMPP used to return fabric topology information.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1999
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 3 Mar 2009 00:18:25 +0000 (00:18 +0000)]
infiniband-diags: replace ib-diags with latest
Replace the infiniband_diags port of ib-diags with a version that is in sync with the main management.git tree. The infiniband-diags tree is current with
git commit
1f5fdf3dfc69733a427520198bcbdd03645bb326. All executable ib-diags are supported. (Perl scripts that parse the output are not ported.)
The infiniband-diags directory is a mirror of the infiniband-diags directory of my ib-mgmt.git tree. This is a clone of the management.git tree, with a 1 line patch added to complete the port from Linux to Windows.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1998
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Mon, 2 Mar 2009 23:30:06 +0000 (23:30 +0000)]
libibmad: update to commit
1f5fdf3dfc69733a427520198bcbdd03645bb326
Needed update to exported function list.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1997
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Mon, 2 Mar 2009 22:58:48 +0000 (22:58 +0000)]
ib_types: update SA attribute definitions
To support a direct port of the ib-diags (and eventually opensm), update ib_types.h so that the relevant definitions used by the diags match between OFED and WinOF. The affected attributes are:
ib_path_rec
ib_vl_arb_element
ib_mad_notice_attr
ib_inform_info
ib_inform_info_record
Users of the attributes are updated accordingly. In several cases, static inline accessor functions were provided in the ib_types.h header files that were not called by anything. Rather than update all 29 of those functions, I simply deleted them.
The updates moved the path record attribute to match the 1.2.1 spec version. The inform info attribute was updated to make it easier to use the structure.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1996
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Mon, 2 Mar 2009 22:10:14 +0000 (22:10 +0000)]
complib: add cl_nodenamemap
The ib-diags (and possible future opensm port) make use of a 'node name map' that was added to the OFED version of complib. Add cl_nodenamemap to the WinOF version of complib.
This patch relies on the linux compatibility header patch. The imported code is basically a direct import of the OFED code, with an include file change.
This changes complib to using the MSV CRT DLL, rather than NT DLL.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1995
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Mon, 2 Mar 2009 21:25:03 +0000 (21:25 +0000)]
libibverbs/librdmacm: update calls to winverbs pkey interfaces
Fixup calls to QueryPkey and FindPkey, which now take a UINT16 as the pkey index, rather than a DWORD. Fixes a build warning for libibverbs and a build error for librdmacm.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1994
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Sat, 28 Feb 2009 18:50:05 +0000 (18:50 +0000)]
etc: add generic linux compatibility code
To support the porting of OFED code, such as the infiniband-diags, provide a
set of linux compatible include files and functions.
This adds a set of header files under inc/user/linux so #include statements
in code will find them. In some cases, the header files are blank, but in
others, they contain mappings between the linux calls and equivalent windows
calls.
Where more complex functionality is needed, source files are added under
etc/user to provide it, similar to what was done for getopt.
These headers and source files are used to support the OFED infiniband-diags
in the WinOF build environment.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1993
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Sat, 28 Feb 2009 17:50:43 +0000 (17:50 +0000)]
perftest: adjust performance counters for ridiculously long Vista time stamping
Adjust time stamping to account for lengthy time stamps. Only keep performance
data on the client side to avoid server time stamping overhead. Extract out
common performance code into a new module that's included by all the perftests.
Problem was reported by Leonid.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1992
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Wed, 25 Feb 2009 19:27:09 +0000 (19:27 +0000)]
getopt: add const to interface
Add const to getopt argv argument, and allow getopt to be included by
c++.
This allows the ib-diags to call getopt without build warnings.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1989
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Wed, 25 Feb 2009 05:25:55 +0000 (05:25 +0000)]
docs: add 'trunk' to generate-patch command line
It's easier to generate patches if you can copy the command line directly out of the generate-patch.txt file. So include 'trunk' in the path.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1988
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@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/trunk@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/trunk@1985
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 24 Feb 2009 23:12:47 +0000 (23:12 +0000)]
winverbs: use consistent pkey index sizeof
Use a pkey index size of UINT16 everywhere.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1984
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/trunk@1983
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 24 Feb 2009 23:02:43 +0000 (23:02 +0000)]
ibat: speed up build.
Remove platform SDK path from the include path to speed up the ibat build.
Clean up the sources file a little as long as we're in there.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1982
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 24 Feb 2009 23:01:41 +0000 (23:01 +0000)]
ibat: use #ifdef to avoid including header multiple times
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1981
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Mon, 16 Feb 2009 13:20:01 +0000 (13:20 +0000)]
[mlx4] Add support for multiple use/loose operations.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1970
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Mon, 16 Feb 2009 12:14:30 +0000 (12:14 +0000)]
[IBBUS] Fix debug build when WPP tracing is enabled.
When turning on WPP tracing in a debug build the bus driver build fails. This fixes it.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1968
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@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/trunk@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/trunk@1965
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Fri, 13 Feb 2009 19:58:28 +0000 (19:58 +0000)]
[WinOF] update script comments to match actual script args.
signDrivers.bat now embedded signs .sys files for boot start drivers.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1959
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.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1958
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Fri, 13 Feb 2009 19:50:29 +0000 (19:50 +0000)]
[WinOF] install ibtracert, ibroute
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1957
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Wed, 11 Feb 2009 13:28:01 +0000 (13:28 +0000)]
libibmad: update to commit
669083324cd5a43db5c865040c3a220cea8b496f
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1953
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Wed, 11 Feb 2009 10:49:02 +0000 (10:49 +0000)]
[hw] Don't try to write to event log when there is no driver object
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1942
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Wed, 11 Feb 2009 10:32:07 +0000 (10:32 +0000)]
[mlx4] Fix error handling of mlx4_bus driver.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1941
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Wed, 11 Feb 2009 10:14:39 +0000 (10:14 +0000)]
[osmtest] Adding support for default guid selection when running osmtest.
Signed off by: xalex@mellanox.co.il
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1940
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Wed, 11 Feb 2009 10:08:30 +0000 (10:08 +0000)]
[IPoIB] adapter could be left in INIT state.
signed off by: alex.estrin@qlogic.com
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1939
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 10 Feb 2009 01:53:01 +0000 (01:53 +0000)]
[IBDIAGS] adding ibtracert & ibroute to the build.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1936
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 10 Feb 2009 01:35:48 +0000 (01:35 +0000)]
[IBDIAG] sources whitespace cleanup & explicit complib & ibal libs
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1935
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 10 Feb 2009 01:34:15 +0000 (01:34 +0000)]
[IBMAD] export xdump() & smp_query_via()
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1934
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 4 Feb 2009 17:56:23 +0000 (17:56 +0000)]
[OPENSM] fixed build problem.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1931
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Wed, 4 Feb 2009 15:26:22 +0000 (15:26 +0000)]
[OpenSM] patches for saquery porting - 6 of 6:
change osm_helper.c
Signed off by: stan.smith@intel.com
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1930
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Wed, 4 Feb 2009 15:24:59 +0000 (15:24 +0000)]
[OpenSM] patches for saquery porting - 5 of 6:
change osm_sa_path_record.c
Signed off by: stan.smith@intel.com
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1929
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Wed, 4 Feb 2009 15:23:03 +0000 (15:23 +0000)]
[OpenSM] patches for saquery porting - 4 of 6:
change osmtest.c
Signed off by: stan.smith@intel.com
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1928
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Wed, 4 Feb 2009 15:20:41 +0000 (15:20 +0000)]
[OpenSM] patches for saquery porting - 3 of 6:
change osm_base.h
Signed off by: stan.smith@intel.com
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1927
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Wed, 4 Feb 2009 15:17:04 +0000 (15:17 +0000)]
[OpenSM] patches for saquery porting - 2 of 6:
change winosm_common.h
Signed off by: stan.smith@intel.com
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1926
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1925
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 2 Feb 2009 19:44:49 +0000 (19:44 +0000)]
[IBDIAGS] make it buildable.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1924
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Fri, 30 Jan 2009 22:20:39 +0000 (22:20 +0000)]
[OSM] convert to Windows EOL format
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1923
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Fri, 30 Jan 2009 22:14:04 +0000 (22:14 +0000)]
[WinOF] spelling typo in etc\clean-build.bat
[ETC] getopt.c - change EOL char to Windows standard.
[IB-diags] add ibportstate, ibsysstat, saquery (alpha)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1922
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Fri, 30 Jan 2009 22:03:02 +0000 (22:03 +0000)]
[WinOF]
buildrelease.bat - cleanup error message
CustomActions.vbs - use msgbox() title
WIX_tools\README.txt - cleanup tools download explaination.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1921
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
aestrin [Thu, 29 Jan 2009 23:27:25 +0000 (23:27 +0000)]
[ipoib cm] necessary changes for ipoib cm
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1920
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1912
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 27 Jan 2009 19:06:35 +0000 (19:06 +0000)]
[IBDIAGS] missing files - some days are better than others!
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1897
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 27 Jan 2009 19:03:36 +0000 (19:03 +0000)]
[IBDIAGS] additions: ibdiags_common, cl_nodenamemap.* until its future rework.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1896
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 27 Jan 2009 18:51:22 +0000 (18:51 +0000)]
[WinOF] install librdmacm.dll, ibv_rdma_[lat,bw].exe, (alpha)ibnetdiscover.exe
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1895
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 27 Jan 2009 18:49:40 +0000 (18:49 +0000)]
[IBDIAGS] support latest ibdiags mods for ibdiag_common.[hc]. x86 main declaration _CDECL (x86-windows=__cdecl, for Linux empty/not-required).
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1894
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1893
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 27 Jan 2009 11:34:34 +0000 (11:34 +0000)]
[IPoIB] Fixing a value of the maximum number of send packets that MiniportSendPackets function can accept.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1892
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 27 Jan 2009 11:19:22 +0000 (11:19 +0000)]
[ipoib] Fix handling of UDP fragments.
Signed of by:xalex@mellanox.co.il
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1891
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Mon, 26 Jan 2009 22:30:29 +0000 (22:30 +0000)]
perftest: add port for ibv_rdma_bw/lat
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1890
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 26 Jan 2009 21:00:09 +0000 (21:00 +0000)]
[LIBIBMAD] protect against duplicate definitions.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1889
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 26 Jan 2009 20:58:38 +0000 (20:58 +0000)]
[winverbs] use correct .exe name
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1888
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 26 Jan 2009 20:55:43 +0000 (20:55 +0000)]
[ETC] make ibdiags src happy by adding const attribute to getopt defines.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1887
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 26 Jan 2009 20:51:00 +0000 (20:51 +0000)]
[ULP] added dropped opensm.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1886
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Mon, 26 Jan 2009 10:37:32 +0000 (10:37 +0000)]
[MLX4] Fixing WQE Prefetch bug for LSO less than 60 bytes (Cache line-DWORD)
Signed-off-by: Alex Naslednikov
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1883
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
reuven [Sun, 25 Jan 2009 11:23:54 +0000 (11:23 +0000)]
[MTHCA] add newline to the last line of mthca32.cdf (MakeCat.exe will fail otherwise)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1882
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Sun, 25 Jan 2009 09:32:03 +0000 (09:32 +0000)]
[MLX4] added MSI-X support to MLX4 driver.
This patch adds MSI-X support to MLX4 driver.
To remind, current driver creates 2 EQs (for commands/events and completions), which both use 1 legacy interrupt.
With this patch MLX4 requests (in inf file) 18 MSI-X interrupt vectors, spreaded across processors in round-robin way.
If the platform doesn't support MSI-X vectors, the driver uses legacy interrupts.
MSI-X support required some changes in the card reset mechanism, which are also found in the patch.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1881
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Sun, 25 Jan 2009 09:22:12 +0000 (09:22 +0000)]
[CORE] bugfix in debug prints. [mlnx: 3573]
On x86 platform casting expression like
(LONG_PTR)p_obj
doesn't increase the size of pointer.
As a result printf() function - driven by %I64 size modifier - takes the next parameter as a second part of the previous one.
It causes a corrupted print at least and a crash at most.
The patch replaces %I64Ix fixed-size format modifier by the variable-sized %p one.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1880
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Sat, 24 Jan 2009 19:58:23 +0000 (19:58 +0000)]
librdmacm: provide OFED compatibility library.
Provide a port of librdmacm.
Because of the use of overlapped structures and events, the library
has a scalability limitation of about 60 connections. The scalability limit will be addressed in a subsequent version, once the needs of a real application are determined.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1879
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Sat, 24 Jan 2009 19:53:32 +0000 (19:53 +0000)]
The librdmacm uses the same devices that are usable with the libibverbs library.
Provide a method in libibverbs that allows librdmacm to use the same winverbs
provider as libibverbs.
Include fixes discovered testing the librdmacm port:
When a CQ is removed, its position in the completion channel is replaced by
the CQ at the end of the list, but the CQ that moves is not updated to
reflect its new location.
When a QP is created, we need to save the user's initial values before
querying for the QPN. Otherwise, the query call tries to access invalid data.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1878
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Sat, 24 Jan 2009 19:49:59 +0000 (19:49 +0000)]
Update the winverbs interface and library to add support for connection
establishment. The implementation supports XP, 2003, and 2008. Because
kernel support for IP is lacking in XP and 2003, the winverbs userspace
library performs address and route resolution, rather than relying on the
kernel driver to perform those operations.
The interface for datagram support was updated to match that used for
connections, but datagram support is not implemented at this time.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1877
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Sat, 24 Jan 2009 19:46:05 +0000 (19:46 +0000)]
Forgot to add wv_ep.c. Add it now!
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1876
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Sat, 24 Jan 2009 19:30:54 +0000 (19:30 +0000)]
Add support for connection establishment over IB through the winverbs kernel
driver. This depends on exporting the IB CM interface. Connections follow
the RDMA CM model.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1875
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Sat, 24 Jan 2009 19:15:03 +0000 (19:15 +0000)]
ib/cm: export cm only interface
To support WinVerbs and a future OFED libibcm compatibility library (requires
a new library and driver), export a new IB CM interface. The interface sits
above the existing communication endpoint (CEP) manager. This allows the
interface to export only IB CM functionality.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1874
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Fri, 23 Jan 2009 21:57:05 +0000 (21:57 +0000)]
build: add ib-diags to the build
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1871
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Fri, 23 Jan 2009 21:56:35 +0000 (21:56 +0000)]
infiniband-diags: initial port of linux ib diags
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1870
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Fri, 23 Jan 2009 21:44:19 +0000 (21:44 +0000)]
libibmad: sync with linux
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1869
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Fri, 23 Jan 2009 21:42:19 +0000 (21:42 +0000)]
libibumad: add missing #defines to sync with linux
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1868
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 22 Jan 2009 22:06:04 +0000 (22:06 +0000)]
[WinOF] remove deprecated ib_bus*.* file references.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1864
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 22 Jan 2009 21:58:19 +0000 (21:58 +0000)]
[WinOF] unified msiexec cmd-line DGB=1 to use the same sDBG global for install & uninstall. Reworked dpinst_status() to intelligently output useful status information instead of assuming error only.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1863
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 22 Jan 2009 21:54:47 +0000 (21:54 +0000)]
[WinOF] lastest version of dpinst.exe
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1862
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 20 Jan 2009 23:07:10 +0000 (23:07 +0000)]
winverbs.lib: remove from build
Removal of the listen.cpp and listen.h source files results in the winverbs library build breaking. The removal will occur, but it's only part of a patch to winverbs to handle listening. So, we either need to apply the rest of the patch or back out the changes to fix the build. Since the rest of the patch will be applied within the next couple of days, remove the library from the build until then.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1861
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 20 Jan 2009 21:39:37 +0000 (21:39 +0000)]
winverbs.lib: remove deleted file from build
wv_listen.cpp is no longer part of the build. Listen functionality was folded into the endpoint code.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1860
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 20 Jan 2009 21:35:44 +0000 (21:35 +0000)]
mlx4u.dll: initialize qp pointer before use
We need to initialize the qp pointer to NULL to avoid accessing some random memory location when polling for completions. Without this, calls to mlx4_poll_cq_array() can crash in mlx4_poll_one().
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1859
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 20 Jan 2009 21:34:40 +0000 (21:34 +0000)]
mthca/mlx4: add check to validate output data sizes
Only the hardware drivers know what size the output data buffer must be for ndi_modify_qp. Have the drivers verify that the provided data buffer is large enough.
This fixes a crash if (say, a buggy) userspace (library under development) does not provide a response buffer.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1858
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 20 Jan 2009 21:32:45 +0000 (21:32 +0000)]
ibal: remove unneeded typedefs
al_qp.h defines typedefs that are only used later in the same file. Remove the typedefs and just define the functions inline. This also prevents a duplicate typedef (with different types).
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1857
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 20 Jan 2009 08:05:38 +0000 (08:05 +0000)]
winverbs: remove used files
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1855
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 20 Jan 2009 08:05:18 +0000 (08:05 +0000)]
winverbs.dll: remove unused files
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1854
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Tue, 20 Jan 2009 08:04:44 +0000 (08:04 +0000)]
maintainers: update maintainer info for OFED compat libs and diags
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1853
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 19 Jan 2009 19:43:35 +0000 (19:43 +0000)]
[WinOF]
CustomActions.vbs
rewrote/cleanup device uninstall to use 'devman driverfiles' instead of guessing what files are installed for each driver.
Added msiexec.exe cmd-line arg DBG=1 for install & uninstall - provide debug insights to what's going on.
wof.wxs
Remove ibinstaller.dll references
Prep for WinOF 2.1 Release
Remove erroneous file dup/copy for files installed via driver .inf
README_release.txt & Release_notes.htm
Prep for WinOF 2.1 release.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1844
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Sun, 18 Jan 2009 16:11:56 +0000 (16:11 +0000)]
[MLX4] Soft Reset: (bugfix in error flow) handling a case when MLX4_BUS fails during restart after reset. [mlnx: 3557]
Soft Reset mechanism is used only in Ethernet mode of ConnectX HCA.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1842
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Sun, 18 Jan 2009 13:47:55 +0000 (13:47 +0000)]
[MLTHCA] added polling mode support.
This patch is a second part of a workaround, added in rev. 1800 for MLX4.
It adds polling mode support for MTHCA.
This is needed for example in the case, when interrupts stop to be conveyed to the driver for some HW problem.
(Xsigo saw such case).
This patch additionally "actualize" the workaround (by off-commenting #if WORKAROUND_POLL_EQ) to enable polling mode without re-building the drivers.
Signed-off-by: James Yang [jyang@xsigo.com]
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1841
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Sun, 18 Jan 2009 13:43:26 +0000 (13:43 +0000)]
[MLX4] added resource info to MLX4U.DLL
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1840
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Sun, 18 Jan 2009 13:42:56 +0000 (13:42 +0000)]
[MLX4] This patch adds rc file to mlx4u[d].dll.
Signed-off-by: Reuven Amitai
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1839
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Sun, 18 Jan 2009 12:47:00 +0000 (12:47 +0000)]
[MLX4] This patch loads winverbs and winmad as filter drivers for mlx4_hca and mthca
Signed off by stan.smith@intel.com
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1838
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86