]> git.openfabrics.org - ~shefty/rdma-win.git/log
~shefty/rdma-win.git
16 years ago[IBAL] fix to 1326 CID management patch.
leonidk [Wed, 2 Jul 2008 18:10:45 +0000 (18:10 +0000)]
[IBAL] fix to 1326 CID management patch.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1330 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] This patch fixes IBAL object destruction. It does the following:
leonidk [Wed, 2 Jul 2008 18:03:49 +0000 (18:03 +0000)]
[IBAL] This patch fixes IBAL object destruction.  It does the following:

1. Removes forcing synchronous destruction for user-mode exported objects.  This isn't needed, and slows down cleanup of the object hierarchy.

2. Clears the user-mode exported handle from the handle table before invoking the 'destroying' callback of an object, so that all further reference on the object will fail.  Currently, an IOCTL could take a reference on an object after the 'destroying' callback has returned.

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1329 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] IBAL currently blows away all CEPs from its 'destroying' callback. This patch...
leonidk [Wed, 2 Jul 2008 17:53:15 +0000 (17:53 +0000)]
[IBAL] IBAL currently blows away all CEPs from its 'destroying' callback.  This patch moves this so that any left over CEPs are cleaned up in the 'cleanup' callback, so that objects that 'own' a CEP have a chance to clean themselves up first.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1328 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] This patch renames 'que' to 'queue'.
leonidk [Wed, 2 Jul 2008 17:17:49 +0000 (17:17 +0000)]
[IBAL] This patch renames 'que' to 'queue'.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1327 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] IBAL has two reserved CID values that it stores in the QPs - AL_INVALID_CID...
leonidk [Wed, 2 Jul 2008 13:32:47 +0000 (13:32 +0000)]
[IBAL] IBAL has two reserved CID values that it stores in the QPs - AL_INVALID_CID, meaning that there is no CEP associated with the QP but that one can be associated, and AL_RESERVED_CID, which means no CEP is associated, and none should be because the QP is being destroyed.

The code uses atomic operations to check for/set AL_INVALID_CID or AL_RESERVED_CID.  Since there are two possible 'special' values, atomics can't be used reliably.

There has been a report of this related to SRP and BSODs.

Additionally, the code would provide the destroy callback when destroying the CEP.  However, the CEP can be destroyed through different paths, and it's important to make sure the destroy callback is invoked always so that reference counts can be properly released.

This patch pushes all assignments and checks for special values into the CEP manager, protected by the CEP manager's lock that it holds when performing the CEP lookup.  It also changes the semantics of creation/destruction of the CEPs to provide the destroy callback when the CEP is created or bound to an object (the binding path is for the passive side of a connection).

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1326 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] The current connection establishment code will return STATUS_HOST_UNREACHABLE...
leonidk [Wed, 2 Jul 2008 12:48:17 +0000 (12:48 +0000)]
[IBAL] The current connection establishment code will return STATUS_HOST_UNREACHABLE when an SA operation times out.  This patch returns STATUS_TIMEOUT if the SA query timed out, which tends to happen in larger clusters quite often.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1325 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] Use the CM protocol to exchange initiator depth and responder resources.
leonidk [Wed, 2 Jul 2008 12:39:02 +0000 (12:39 +0000)]
[IBAL] Use the CM protocol to exchange initiator depth and responder resources.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1324 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] The current ndi_dreq_cm function destroys the CEP after the QP is moved to...
leonidk [Wed, 2 Jul 2008 12:22:39 +0000 (12:22 +0000)]
[IBAL] The current ndi_dreq_cm function destroys the CEP after the QP is moved to the error state.  The CEP should be destroyed first to send the DREQ before changing the QP state.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1323 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] The CEP manager currently keeps a separate field to store the initiator depth...
leonidk [Wed, 2 Jul 2008 12:06:40 +0000 (12:06 +0000)]
[IBAL] The CEP manager currently keeps a separate field to store the initiator depth requested in a REQ.  When the user sends the REP, the CEP stored the responder resources as the minimum of the requested depth or the CA's capabilities.

This change eliminates the separate field, and uses the responder resources to store the received REQ's initiator depth.  This simplifies the code a bit.

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1322 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] fix to the previous (1320) patch.
leonidk [Wed, 2 Jul 2008 11:50:44 +0000 (11:50 +0000)]
[IBAL] fix to the previous (1320) patch.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1321 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] Convert ib_api_status_t to NTSTATUS for al_cep_get_pdata to make the IRP handl...
leonidk [Wed, 2 Jul 2008 11:12:53 +0000 (11:12 +0000)]
[IBAL] Convert ib_api_status_t to NTSTATUS for al_cep_get_pdata to make the IRP handling simpler.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1320 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] Add code to allow user-mode code to register memory via the existing IBAL...
leonidk [Wed, 2 Jul 2008 10:34:39 +0000 (10:34 +0000)]
[IBAL] Add code to allow user-mode code to register memory via the existing IBAL IOCTLs, and if that succeeds, issue a no-op IOCTL that completes the user's overlapped request to their IOCP (or whatever mechanism they are using - the I/O manager will take care of it).
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1319 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] This patch changes when the private data is stored to when the CM MAD is recei...
leonidk [Wed, 2 Jul 2008 10:24:10 +0000 (10:24 +0000)]
[IBAL] This patch changes when the private data is stored to when the CM MAD is received and processed.  This makes the code more consistent and simpler.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1318 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] This patch adds a missing reference taken on a QP when delaying the QP modific...
leonidk [Tue, 1 Jul 2008 18:27:55 +0000 (18:27 +0000)]
[IBAL] This patch adds a missing reference taken on a QP when delaying the QP modification for a received DREQ.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1317 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] This patch cancels all outstanding UAL_CEP_GET_REQ_CID IRPs queued in a CEP...
leonidk [Tue, 1 Jul 2008 18:19:33 +0000 (18:19 +0000)]
[IBAL] This patch cancels all outstanding UAL_CEP_GET_REQ_CID IRPs queued in a CEP when the CEP is destroyed.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1316 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] Cleanup dead code in IBAL.
leonidk [Tue, 1 Jul 2008 18:02:59 +0000 (18:02 +0000)]
[IBAL] Cleanup dead code in IBAL.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1315 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from IBAL.
leonidk [Tue, 1 Jul 2008 17:13:18 +0000 (17:13 +0000)]
[IBAL] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from IBAL.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1314 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[TESTS] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from interface files.
leonidk [Tue, 1 Jul 2008 15:26:01 +0000 (15:26 +0000)]
[TESTS] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from interface files.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1313 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[TESTS] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from \tests.
leonidk [Tue, 1 Jul 2008 12:09:16 +0000 (12:09 +0000)]
[TESTS] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from \tests.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1312 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[HW] improved memory allocation mechanism. (posix_memalign was implemented by Virtual...
leonidk [Tue, 1 Jul 2008 10:33:46 +0000 (10:33 +0000)]
[HW] improved memory allocation mechanism. (posix_memalign was implemented by VirtualAlloc, which, as it turned out, allocates 64KB instead of 4KB) [MLNX: 2601]

git-svn-id: svn://openib.tc.cornell.edu/gen1@1311 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agoRemove XXX_PTR64 and TO_ULONG_PTR from IPoIB
ftillier [Mon, 30 Jun 2008 18:09:25 +0000 (18:09 +0000)]
Remove XXX_PTR64 and TO_ULONG_PTR from IPoIB

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
Acked-by: Tzachi Dar <tzachid@mellanox.co.il>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1310 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agoMake build scripts easier to use:
ftillier [Mon, 30 Jun 2008 17:15:54 +0000 (17:15 +0000)]
Make build scripts easier to use:
- bldwo.bat now accepts multiple build parameters, so you can separate them.
  For example, bldwo chk x86 2008 -Ccwg is the same as bldwo chk x86 2008 -C -c -w -g.
- eliminate the need for the WINOF_PATH environment variable so it can be run
  from any directory.
- bldwoall.bat now passes all extra parameters to bldwo.bat
- bldwoall.bat now picks up bldwo.bat from the same directory, rather than
  the directory from which it was launched.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1309 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IOU] This patch removes XXX_PTR64 and TO_ULONG_PTR macro usage in the IOU bus driver...
leonidk [Sun, 29 Jun 2008 17:53:30 +0000 (17:53 +0000)]
[IOU] This patch removes XXX_PTR64 and TO_ULONG_PTR macro usage in the IOU bus driver.  It's a kernel driver and doesn't need any padding as it will always have the same pointer size as other kernel drivers.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1308 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBBUS] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from IBBus.
leonidk [Sun, 29 Jun 2008 16:45:16 +0000 (16:45 +0000)]
[IBBUS] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from IBBus.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1307 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[SRP] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from SRP.
leonidk [Sun, 29 Jun 2008 16:21:53 +0000 (16:21 +0000)]
[SRP] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from SRP.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1306 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[tools] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from vstat.
leonidk [Sun, 29 Jun 2008 16:09:57 +0000 (16:09 +0000)]
[tools] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from vstat.

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1305 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[tools] remove XXX_PTR64 and TO_ULONG_PTR macro use from perf tests.
tzachid [Sun, 29 Jun 2008 13:52:24 +0000 (13:52 +0000)]
[tools] remove XXX_PTR64 and TO_ULONG_PTR macro use from perf tests.
Signed off: ftillier@windows.microsoft.com

git-svn-id: svn://openib.tc.cornell.edu/gen1@1304 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[mlx4] Stop DPC from running for ever (mlnx: 2642)
tzachid [Sun, 29 Jun 2008 11:38:09 +0000 (11:38 +0000)]
[mlx4] Stop DPC from running for ever (mlnx: 2642)

git-svn-id: svn://openib.tc.cornell.edu/gen1@1303 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[wsd] remove XXX_PTR64 and TO_ULONG_PTR macro use from WSD.
tzachid [Sat, 28 Jun 2008 18:42:34 +0000 (18:42 +0000)]
[wsd] remove XXX_PTR64 and TO_ULONG_PTR macro use from WSD.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1302 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agoupdated based on feedback
shefty [Fri, 27 Jun 2008 19:00:37 +0000 (19:00 +0000)]
updated based on feedback

git-svn-id: svn://openib.tc.cornell.edu/gen1@1301 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[DAPL2] remove extraneous file
stansmith [Wed, 25 Jun 2008 22:46:50 +0000 (22:46 +0000)]
[DAPL2] remove extraneous file

git-svn-id: svn://openib.tc.cornell.edu/gen1@1300 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: fix crash on error
shefty [Wed, 25 Jun 2008 05:30:56 +0000 (05:30 +0000)]
winverbs: fix crash on error

Fix null pointer dereference on initialization error.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1299 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: fix inx file to support 64-bit OS installs
shefty [Wed, 25 Jun 2008 05:29:46 +0000 (05:29 +0000)]
winverbs: fix inx file to support 64-bit OS installs

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1298 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: move index_list to common location
shefty [Wed, 25 Jun 2008 05:28:54 +0000 (05:28 +0000)]
winverbs: move index_list to common location

Allow other drivers to use index_list.  Relocate .c and .h file out of the winverb directory.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1297 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agobldwo: fix usage message to reference correct program name
shefty [Wed, 25 Jun 2008 05:10:30 +0000 (05:10 +0000)]
bldwo: fix usage message to reference correct program name

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1296 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[ibal] Fix an assert. [mlnx: 2610]
tzachid [Mon, 23 Jun 2008 07:52:48 +0000 (07:52 +0000)]
[ibal] Fix an assert. [mlnx: 2610]

git-svn-id: svn://openib.tc.cornell.edu/gen1@1295 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[Core] fixed errant Default Data length when reading registry entry 'PartitionKey...
stansmith [Sat, 21 Jun 2008 00:27:03 +0000 (00:27 +0000)]
[Core] fixed errant Default Data length when reading registry entry 'PartitionKey' and the key did not exist. Showed up as a BSOD crash when loading ibbus.sys on Server 2003 x86.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1294 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: add '.' to '.dll' to form correct free build library extension
shefty [Fri, 20 Jun 2008 04:33:01 +0000 (04:33 +0000)]
winverbs: add '.' to '.dll' to form correct free build library extension

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1293 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: add patch to fix uvp checks of ci_umv_buf p_inout_buf pointer
shefty [Fri, 20 Jun 2008 04:32:14 +0000 (04:32 +0000)]
winverbs: add patch to fix uvp checks of ci_umv_buf p_inout_buf pointer

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1292 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agoperftest: update prints
shefty [Fri, 20 Jun 2008 04:31:26 +0000 (04:31 +0000)]
perftest: update prints

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1291 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverb/test: add test to query device attributes
shefty [Fri, 20 Jun 2008 04:27:54 +0000 (04:27 +0000)]
winverb/test: add test to query device attributes

Basic functionality test, only display port count for now.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1290 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[HW, TOOLS] return system_image_guid
leonidk [Thu, 19 Jun 2008 17:52:36 +0000 (17:52 +0000)]
[HW, TOOLS] return system_image_guid

git-svn-id: svn://openib.tc.cornell.edu/gen1@1289 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[mlx4] Add support for Ethernet. (mlnx: 2561)
tzachid [Thu, 19 Jun 2008 15:04:36 +0000 (15:04 +0000)]
[mlx4] Add support for Ethernet. (mlnx: 2561)

git-svn-id: svn://openib.tc.cornell.edu/gen1@1288 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[ipoib] mac generation from hp GUID.
tzachid [Thu, 19 Jun 2008 14:11:17 +0000 (14:11 +0000)]
[ipoib] mac generation from hp GUID.
Signed by: Anatoly Greenblatt

git-svn-id: svn://openib.tc.cornell.edu/gen1@1287 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: fix deref to NULL pointer
shefty [Thu, 19 Jun 2008 05:52:38 +0000 (05:52 +0000)]
winverbs: fix deref to NULL pointer

If WdfCreateDevice is successful, then pinit is set to NULL.  No need to clean it up later on an error.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1286 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF] added common exit path with time stamp info (start & end times); curently...
stansmith [Wed, 18 Jun 2008 21:54:54 +0000 (21:54 +0000)]
[WinOF] added common exit path with time stamp info (start & end times); curently takes about 15 minutes to compile, sign drivers and build installers on a 4P platform.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1285 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[MTHCA] Ensure an Rx WQE is in memory before linking
leonidk [Wed, 18 Jun 2008 17:25:21 +0000 (17:25 +0000)]
[MTHCA] Ensure an Rx WQE is in memory before linking

Use a write memory barrier to ensure a WQE is written to memory
before linking it to the previous WQE.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1284 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: rearm CQ if async operation returns IO pending
shefty [Wed, 18 Jun 2008 04:59:31 +0000 (04:59 +0000)]
winverbs: rearm CQ if async operation returns IO pending

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1283 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agogetopt: remove unneeded include files
shefty [Wed, 18 Jun 2008 04:58:03 +0000 (04:58 +0000)]
getopt: remove unneeded include files

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1282 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agolibibverbs: align work completion status with ib_wc_status
shefty [Wed, 18 Jun 2008 04:56:58 +0000 (04:56 +0000)]
libibverbs: align work completion status with ib_wc_status

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1281 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: port of perftest
shefty [Wed, 18 Jun 2008 04:55:52 +0000 (04:55 +0000)]
winverbs: port of perftest

Port of most perftests from linux over libibverbs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1280 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF]
stansmith [Wed, 18 Jun 2008 00:09:56 +0000 (00:09 +0000)]
[WinOF]
  buildrelease.bat - added WIX .msi creation only option; assumes drivers are signed
  etc\makebin.bat - don't copy Mx tools which have been removed from the build/svn
  etc\clean-build.bat - delete build generated files to ensure a clean build.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1279 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF]
stansmith [Tue, 17 Jun 2008 23:24:18 +0000 (23:24 +0000)]
[WinOF]
  missed x86\Command Window.lnk
  WIX\bin removed, as it's now an OS flavor {wlh,wnet,wxp} specific item
  wof.wxs - removed erroneous reference to mtcr.dll

git-svn-id: svn://openib.tc.cornell.edu/gen1@1278 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[MTHCA] Fix possible data corruption for Sinai chip upon fmr_unmap
leonidk [Tue, 17 Jun 2008 18:40:54 +0000 (18:40 +0000)]
[MTHCA] Fix possible data corruption for Sinai chip upon fmr_unmap

(In mthca_arbel_fmr_unmap(), the high bits of the key are masked off.
This gets rid of the effect of adjust_key(), which makes sure that
bits 3 and 23 of the key are equal when the Sinai throughput
optimization is enabled, and so it may happen that an FMR will end up
with bits 3 and 23 in the key being different.  This causes data
corruption, because when enabling the throughput optimization, the
driver promises the HCA firmware that bits 3 and 23 of all memory keys
will always be equal.

Fix by re-applying adjust_key() after masking the key.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1277 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] fixed a typo in __ib_qp_type_str
leonidk [Tue, 17 Jun 2008 18:39:33 +0000 (18:39 +0000)]
[IBAL] fixed a typo in __ib_qp_type_str

git-svn-id: svn://openib.tc.cornell.edu/gen1@1276 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[MLX4] improve the time of handling events like port state change
leonidk [Tue, 17 Jun 2008 18:38:29 +0000 (18:38 +0000)]
[MLX4] improve the time of handling events like port state change

git-svn-id: svn://openib.tc.cornell.edu/gen1@1275 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF]
stansmith [Tue, 17 Jun 2008 17:09:24 +0000 (17:09 +0000)]
[WinOF]
  ib_srp.inf - updated DriverVer so signtool doesn't complain of being too old.
  ib_srp.cdf - driver signing file - defines ibsrp.cat contents for driver package signing.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1274 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF]
stansmith [Tue, 17 Jun 2008 17:02:17 +0000 (17:02 +0000)]
[WinOF]
    ipoib.inf - updated DriverVer in order that ipoib.sys could be signed; signtool.exe complained.
    ipoib.cdf - removed extraneous whitespace.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1273 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF]
stansmith [Tue, 17 Jun 2008 17:01:12 +0000 (17:01 +0000)]
[WinOF]
    qlgcvnic.inf - added CatalogFile for Windows Server 2008 driver signing.
    netvnic.cdf  - new file for driver signing.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1272 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF] multiple buildrelease options: all, compile, makebin, msi
stansmith [Tue, 17 Jun 2008 16:45:54 +0000 (16:45 +0000)]
[WinOF] multiple buildrelease options: all, compile, makebin, msi

git-svn-id: svn://openib.tc.cornell.edu/gen1@1271 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF] support or not, Time-stamping signed driver files.
stansmith [Tue, 17 Jun 2008 16:42:31 +0000 (16:42 +0000)]
[WinOF] support or not, Time-stamping signed driver files.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1270 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agolibibverbs: add support for RC/UC/UD pingpong
shefty [Tue, 17 Jun 2008 02:25:18 +0000 (02:25 +0000)]
libibverbs: add support for RC/UC/UD pingpong

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1269 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: add io pending status definition
shefty [Tue, 17 Jun 2008 02:23:32 +0000 (02:23 +0000)]
winverbs: add io pending status definition

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1268 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: update align wc patch
shefty [Sat, 14 Jun 2008 04:45:41 +0000 (04:45 +0000)]
winverbs: update align wc patch

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1267 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: fixes to support ibv_rc_pingpong test.
shefty [Sat, 14 Jun 2008 04:18:37 +0000 (04:18 +0000)]
winverbs: fixes to support ibv_rc_pingpong test.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1266 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: updated to trunk patches
shefty [Sat, 14 Jun 2008 04:17:20 +0000 (04:17 +0000)]
winverbs: updated to trunk patches

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1265 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[DAPL2] Request extensions didn't allocate a cookie if the completion was suppressed...
stansmith [Fri, 13 Jun 2008 00:00:03 +0000 (00:00 +0000)]
[DAPL2] Request extensions didn't allocate a cookie if the completion was suppressed, which resulted in segfault during provider post call. Provider's expect a *cookie in wr_id, even with surpressed completions, needed to handle events during errors.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1264 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF] v2.0 prep - WDK build env structure for multiple OS flavors: WLH, WNET &...
stansmith [Thu, 12 Jun 2008 23:54:39 +0000 (23:54 +0000)]
[WinOF] v2.0 prep - WDK build env structure for multiple OS flavors: WLH, WNET & WXP.
scripts to build .cat files and Digitally sign drivers, given a certificate (.cer) file.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1263 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[TOOLS] remove Mellanox burning tools. They are to be provided for each kind of HW...
leonidk [Thu, 12 Jun 2008 17:35:37 +0000 (17:35 +0000)]
[TOOLS] remove Mellanox burning tools. They are to be provided for each kind of HW by its vendor.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1262 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[TOOLS] remove Mellanox burning tools. They are to be provided for each kind of HW...
leonidk [Wed, 11 Jun 2008 10:25:31 +0000 (10:25 +0000)]
[TOOLS] remove Mellanox burning tools. They are to be provided for each kind of HW by its vendor.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1261 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[MTHCA] added returning max_avs for Tavor
leonidk [Tue, 10 Jun 2008 16:21:02 +0000 (16:21 +0000)]
[MTHCA] added returning max_avs for Tavor

git-svn-id: svn://openib.tc.cornell.edu/gen1@1260 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[ALL] fix drivers to return PKEY in BE order as IBAL requires [MLNX: 2551]
leonidk [Tue, 10 Jun 2008 16:16:44 +0000 (16:16 +0000)]
[ALL] fix drivers to return PKEY in BE order as IBAL requires [MLNX: 2551]

git-svn-id: svn://openib.tc.cornell.edu/gen1@1259 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[HW] remove GPL comments from windows-reimplemented bit macros
leonidk [Tue, 10 Jun 2008 16:10:02 +0000 (16:10 +0000)]
[HW] remove GPL comments from windows-reimplemented bit macros

git-svn-id: svn://openib.tc.cornell.edu/gen1@1258 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[HW] replace GPL-protected Linux implementation of lists by Windows one
leonidk [Tue, 10 Jun 2008 16:09:13 +0000 (16:09 +0000)]
[HW] replace GPL-protected Linux implementation of lists by Windows one

git-svn-id: svn://openib.tc.cornell.edu/gen1@1257 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[TOOLS] fixed a bug in setting parameters on x64 platform [MLNX: 2558]
leonidk [Tue, 10 Jun 2008 15:09:27 +0000 (15:09 +0000)]
[TOOLS] fixed a bug in setting parameters on x64 platform [MLNX: 2558]

git-svn-id: svn://openib.tc.cornell.edu/gen1@1256 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: fix retrieving library name
shefty [Sun, 8 Jun 2008 06:49:56 +0000 (06:49 +0000)]
winverbs: fix retrieving library name

Signed-of-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1255 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs/pd: avoid referencing freed memory
shefty [Sun, 8 Jun 2008 06:49:09 +0000 (06:49 +0000)]
winverbs/pd: avoid referencing freed memory

We need to walk the MR map starting at the head each time.  Using the 'next' entry results in accessing freed memory.

Signed-of-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1254 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs/qp: set max inline qp creation attribute value
shefty [Sun, 8 Jun 2008 06:47:44 +0000 (06:47 +0000)]
winverbs/qp: set max inline qp creation attribute value

Signed-of-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1253 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agolibibverbs: set device attributes correctly
shefty [Sun, 8 Jun 2008 06:46:55 +0000 (06:46 +0000)]
libibverbs: set device attributes correctly

A few device attributes were set incorrectly.  Fix that.

Signed-of-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1252 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agownverbs/device: fix crashes
shefty [Sun, 8 Jun 2008 06:44:51 +0000 (06:44 +0000)]
wnverbs/device: fix crashes

Fix accessing variable before it's set, and references to invalid port numbers.

Also, the HCA driver does not support querying on usermode device handles, so use the kernel handle when querying for attributes.

Signed-of-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1251 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs/cq: initialize cq device pointer
shefty [Sun, 8 Jun 2008 06:41:48 +0000 (06:41 +0000)]
winverbs/cq: initialize cq device pointer

Signed-of-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1250 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs/qp_context: set qp handle in pre_create call
shefty [Sun, 8 Jun 2008 06:40:15 +0000 (06:40 +0000)]
winverbs/qp_context: set qp handle in pre_create call

We need the qp handle in the pre_create call in order to save the qp context.

Signed-of-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1249 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agolibibverbs/rc_pingpong: initialize variables
shefty [Sun, 8 Jun 2008 06:38:37 +0000 (06:38 +0000)]
libibverbs/rc_pingpong: initialize variables

We need to add explicit initialization to ported code that was changed as a result of compiler differences.

Signed-of-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1248 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agolibibverbs: ibv_get_device_list allows *num as optional parameter
shefty [Sun, 8 Jun 2008 06:36:36 +0000 (06:36 +0000)]
libibverbs: ibv_get_device_list allows *num as optional parameter

Signed-of-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1247 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agogetopt: add support for long options
shefty [Sun, 8 Jun 2008 06:35:02 +0000 (06:35 +0000)]
getopt: add support for long options

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1246 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[MLX4] return a more specific return code (in the bad flow of create_cq) [MLNX: 2554]
leonidk [Thu, 5 Jun 2008 12:04:45 +0000 (12:04 +0000)]
[MLX4] return a more specific return code (in the bad flow of create_cq) [MLNX: 2554]

git-svn-id: svn://openib.tc.cornell.edu/gen1@1245 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: move reference counting back to WvBase and use virtual Delete call
shefty [Thu, 5 Jun 2008 06:23:08 +0000 (06:23 +0000)]
winverbs: move reference counting back to WvBase and use virtual Delete call

Move AddRef and Release back into WvBase.  Add a virtual function Delete() to WvBase that derived classes set to delete 'this'.  This avoids the heap corruption issues without classes re-implementing Release.

This fixes an issue with the previous fix where heap corruption still would have occurred if a user released the QP interface after releasing the derived interface (such as the connected QP interface).

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1244 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: rename member variable to include 'm_'
shefty [Thu, 5 Jun 2008 03:04:43 +0000 (03:04 +0000)]
winverbs: rename member variable to include 'm_'

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1243 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: do not inherit Release() calls
shefty [Thu, 5 Jun 2008 03:03:58 +0000 (03:03 +0000)]
winverbs: do not inherit Release() calls

Release() tries to delete an object when its reference count reaches 0.  Inheriting Release() from WvBase ends up corrupting the heap when WvBase tries to delete 'this'.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1242 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: wait to create device on PnP power up (D0)
shefty [Thu, 5 Jun 2008 03:00:58 +0000 (03:00 +0000)]
winverbs: wait to create device on PnP power up (D0)

The hca drivers are not ready to handle query interface and function calls until the device enters the D0 power state.  Delay initializing the RDMA device until winverbs sees the D0 power state for that device.  This is only done the first time that the device enters the power state to avoid losing user context information just because the device enters a lower powered state.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1241 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[TOOLS] fix license
leonidk [Wed, 4 Jun 2008 15:32:28 +0000 (15:32 +0000)]
[TOOLS] fix license

git-svn-id: svn://openib.tc.cornell.edu/gen1@1240 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: track changes against trunk using patch files
shefty [Wed, 4 Jun 2008 04:59:06 +0000 (04:59 +0000)]
winverbs: track changes against trunk using patch files

Add patch directory with patches that can be applied.  This simplifies tracking changes against the trunk, and makes it easier to update only affected patches with changes.

This will help when merging the changes into the trunk.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1239 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: undo changes to files tracked in trunk
shefty [Wed, 4 Jun 2008 04:12:02 +0000 (04:12 +0000)]
winverbs: undo changes to files tracked in trunk

Undo any changes to files that exist in the trunk.  All changes will be added as patches to make synchronizing changes in the winverb branch with the trunk easier.  The patches will then be applied directly to the trunk when merging.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1238 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agodocs/dontdiff.txt: add .bin, .rej, and .orig files to the skip list
shefty [Wed, 4 Jun 2008 03:48:05 +0000 (03:48 +0000)]
docs/dontdiff.txt: add .bin, .rej, and .orig files to the skip list

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1237 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agoMerge with trunk rev 1231.
shefty [Tue, 3 Jun 2008 22:41:24 +0000 (22:41 +0000)]
Merge with trunk rev 1231.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1236 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agolibibverbs: add port of sample programs
shefty [Tue, 3 Jun 2008 22:24:59 +0000 (22:24 +0000)]
libibverbs: add port of sample programs

Add port of example ibv_devinfo and ibv_rc_pingpong programs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1235 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: fix including header file from .c sources
shefty [Tue, 3 Jun 2008 22:23:43 +0000 (22:23 +0000)]
winverbs: fix including header file from .c sources

Fix build error when including winverbs.h from a .c file.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1234 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: use common getopt sources
shefty [Tue, 3 Jun 2008 22:22:22 +0000 (22:22 +0000)]
winverbs: use common getopt sources

getopt was moved from internal to winverbs to a public location.  Use the new common files.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1233 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agoetc: add generic getopt functionality
shefty [Tue, 3 Jun 2008 22:21:01 +0000 (22:21 +0000)]
etc: add generic getopt functionality

Add a common getopt implementation available to any app/library.  Source file is located in etc\user, and header file is located in inc\user.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1232 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF] WDK build env; good to go.
stansmith [Tue, 3 Jun 2008 19:38:02 +0000 (19:38 +0000)]
[WinOF] WDK build env; good to go.

git-svn-id: svn://openib.tc.cornell.edu/gen1@1231 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86