shefty [Thu, 15 May 2008 00:13:43 +0000 (00:13 +0000)]
dapl: remove TO_LONG_PTR macro
The TO_LONG_PTR macro is unnecessary and makes it difficult to keep the Windows and Linux DAPL versions in sync. (Updated from rev 1164 to include missing 'i' in 'ib'.)
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1169 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Wed, 14 May 2008 02:41:28 +0000 (02:41 +0000)]
scripts: batch file to build any OS/architecture from a single command window
This batch file must be modified for personal use, but it allows building multiple OS/processor architectures using a single command window. No more needing a dozen windows open to run all of the builds! And there was much rejoicing.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1166 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Wed, 14 May 2008 02:39:14 +0000 (02:39 +0000)]
The current uvp_get_interface() routine takes a structure as input. Included in the structure is a version number. In the winverb branch, I added a new API to take the version as a separate parameter, along with the size of the structure.
A better solution to supporting multiple interfaces is to define interfaces using GUIDs. This not only allows different versions of the same interface (for example the UVP interface), but also provides a mechanism that can be used to add new interfaces without affecting existing ABIs or APIs.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1165 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Fri, 9 May 2008 05:05:05 +0000 (05:05 +0000)]
mt23108: remove defunct driver
mt23108 has been replaced by the mthca driver. Remove the mt23108 directory and 344 related files. The file contents had previously been emptied, but the svn patch system does not actually delete the files through patches.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1147 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Wed, 7 May 2008 17:45:16 +0000 (17:45 +0000)]
mlx4: update driver for winverb support
Allow setting callback handlers per HW widget (CQ, QP, SRQ). Add support to respond to query interface routines. This allows the driver to support mulitple filter drivers as consumers of their interface.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1142 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Wed, 7 May 2008 17:30:12 +0000 (17:30 +0000)]
winverbs/overlapped: change GetOverlappedResult API to match Win32 call
The Winverbs GetOverlappedResult calls take SIZE_T as the inout size, but the Win32 call uses DWORD for the same argument. Modify GetOverlappedResult to match the Win32 call. This avoids a compiler warnings and needing to cast.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1139 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Wed, 7 May 2008 17:22:28 +0000 (17:22 +0000)]
build: remove opensm from default build
opensm takes 3 minutes to 'build' even when there are no changes to the code. Remove it from the default build to avoid getting grey hairs watching the build process run.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1135 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
leonidk [Sun, 4 May 2008 08:52:12 +0000 (08:52 +0000)]
[MTHCA, MLX4, IBAL, TOOLS] Revert changes from rev.1108. They were intended for the next release.
Added more attributes to query CA: RESIZE_MAX_WR, CHANGE_PHYSICAL_PORT, AH_PORT_CHECKING, SHUTDOWN_PORT, INIT_TYPE, SRQ_RESIZE and port ones: MaxMtu, ActiveSpeed, PhysicalState
shefty [Fri, 2 May 2008 03:45:53 +0000 (03:45 +0000)]
winverbs/cq: CQ notification should be done in userspace
This changes CQ:Notify to call the userspace verbs provider for rearming
the CQ. (The current kernel code does not support rearming for a
userspace CQ.) The overlapped request is still passed to the kernel and
signaled directly when the CQ event is signaled.
A user may also request notification of CQ error events only without
rearming the CQ.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1113 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Thu, 1 May 2008 07:23:06 +0000 (07:23 +0000)]
winverbs/qp: add multicast support
Initial implementation for attach/detach multicast. Lower level channel
interface does not support asynchronous operation, so complete all
operations immediately.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1103 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
shefty [Thu, 1 May 2008 04:13:00 +0000 (04:13 +0000)]
winverbs/qp: add support for CancelOverlappedRequests
Initial implementation for canceling overlapped requests. Since the underlying
channel interface is synchronous, there's basically nothing to do, since all
asynchronous calls (modify qp, attach/detach multicast) will complete immediately.
shefty [Thu, 1 May 2008 02:08:21 +0000 (02:08 +0000)]
winverbs/cq: add support for CQ:CancelOverlappedRequests
Initial implementation of CQ:CancelOverlappedRequests(). Merge functionality
for completing the first queued asynchronous operation into a single call.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1099 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
[MTHCA] (Bugzilla#1012) When trying to post_send message with size, bigger than max_message_size, MTHCAU.DLL returns IB_UNKNOWN_ERROR (53) instead of IB_INVALID_PARAMETER (3)
[PTR64,WDK,MLX4]
This revision contains:
1. All bugfixes from WinOF trunk, from rev. 939 to 1067
2. Mellanox __ptr64 solution and WDK poring, starting from rev. 2164
3. All bugfixes and patches from connetx branch
The underlying HCA drivers support setting completion handlers per CQ and
event handers per CQ, QP, or SRQ. Expose this capability through the kernel
verb channel interface. This allows the HCA driver to callback users
directly, rather than going through indirect calls.
The patch has a nice side effect of reducing the code base, and helps to
support multiple filter drivers accessing the HCA verb interface.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1088 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
winverbs.sys: optimize obtaining references on parent objects
When converting from userspace ID's into kernel handles, a reference
is taken on the kernel handles to protect against destruction. If
an object is created that references a parent object, instead of
acquiring a new reference on the parent, simply keep the existing
reference. This avoids acquiring two references on an object, then
needing to release one.
This slightly optimizes CQ, SRQ, PD, MW, and AH creation. QP creation
already contained this optimization.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1076 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
winverbs.sys: add initial support for CQ, SRQ, and QP
This adds the starting implementation for CQ, SRQ, and QP support.
Some code is restructured to relocate functions to different source
files. This makes them easier to find and allows other functions to
become static.
The kernel driver now implements all synchronous verb related routines.
The code is compile tested only, and does not yet implement any
asynchronous routines (ones that involve the use of OVERLAPPED operations).
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1075 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86