]> git.openfabrics.org - ~ardavis/dapl.git/log
~ardavis/dapl.git
13 years agoucm: cleanup CM debug warning messages
Arlin Davis [Mon, 2 Aug 2010 16:49:23 +0000 (09:49 -0700)]
ucm: cleanup CM debug warning messages

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoscm, ucm: improperly handles pkey check/query in host order
Arlin Davis [Fri, 23 Jul 2010 22:17:53 +0000 (15:17 -0700)]
scm, ucm: improperly handles pkey check/query in host order

Convert consumer input to network order before verbs
query pkey check.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoThe linux compatability header file _errno.h is moving out of verbs.h.
Arlin Davis [Mon, 12 Jul 2010 22:57:34 +0000 (15:57 -0700)]
The linux compatability header file _errno.h is moving out of verbs.h.
Include _errno.h in the windows osd header files, similar to how
errno.h is included in the linux osd header files.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agowindows: update SOURCES files to link winverbs.lib, which is
Arlin Davis [Wed, 30 Jun 2010 19:03:41 +0000 (12:03 -0700)]
windows: update SOURCES files to link winverbs.lib, which is
needed for common ofa providers.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agoRelease 2.0.29
Arlin Davis [Thu, 17 Jun 2010 19:58:22 +0000 (12:58 -0700)]
Release 2.0.29

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm, ucm: add pkey, pkey_index, sl override for QP's
Arlin Davis [Thu, 17 Jun 2010 19:40:21 +0000 (12:40 -0700)]
scm, ucm: add pkey, pkey_index, sl override for QP's

On a per open basis, add environment variables
DAPL_IB_SL and DAPL_IB_PKEY and use on
connection setup (QP modify) to override default
values of 0 for SL and PKEY index. If pkey is
provided then find the pkey index with
ibv_query_pkey for dev_attr.max_pkeys.
Will be used for RC and UD type QP's.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocma: remove dependency on rdma_cma_abi.h
Arlin Davis [Thu, 10 Jun 2010 18:40:45 +0000 (11:40 -0700)]
cma: remove dependency on rdma_cma_abi.h

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoconfigure: need a false conditional for verbs attr.link_layer member check
Arlin Davis [Wed, 2 Jun 2010 21:13:05 +0000 (14:13 -0700)]
configure: need a false conditional for verbs attr.link_layer member check

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: incorrectly freeing port on passive side after reject
Arlin Davis [Wed, 2 Jun 2010 17:05:03 +0000 (10:05 -0700)]
ucm: incorrectly freeing port on passive side after reject

cm_release was incorrectly freeing a client port
assuming it was the server listening port. Move
the listening port cleanup to remove_conn_listner
and only cleanup client ports in cm_release.

Error Messages indicating problem:

  CM_REQ retry 1 [lid, port, qpn]: 9 ff9a 340085 -> 9 6fa 34004e Time(ms) 1999 > 1600
  DUPLICATE: op REQ st CM_CONNECTED [lid, port, qpn]: 9 6fa 0x0 <- 0x9 ff9a 0x340085

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: modify debug CM output for consistency, all ports, qpn in hex
Arlin Davis [Wed, 2 Jun 2010 16:45:42 +0000 (09:45 -0700)]
ucm: modify debug CM output for consistency, all ports, qpn in hex

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoRelease 2.0.28
Arlin Davis [Mon, 24 May 2010 23:44:25 +0000 (16:44 -0700)]
Release 2.0.28

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoconfig: add conditional check for new verbs port_attr.link_layer
Arlin Davis [Mon, 24 May 2010 23:28:05 +0000 (16:28 -0700)]
config: add conditional check for new verbs port_attr.link_layer

Check for link_layer type ETHERNET and set global for GID
configuration on modify QP.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agodat.conf: update manpage with latest provider information, add examples
Arlin Davis [Mon, 24 May 2010 17:30:28 +0000 (10:30 -0700)]
dat.conf: update manpage with latest provider information, add examples

Add information regarding OpenFabrics provider choices
and explain cma, scm, and ucm providers.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocma, scm: new provider entries for Mellanox RDMA over Ethernet device
Arlin Davis [Wed, 19 May 2010 23:38:53 +0000 (16:38 -0700)]
cma, scm: new provider entries for Mellanox RDMA over Ethernet device

Add options for netdev eth2 and eth3 for cma and for device mlx4_0 port 1 and 2 for scm.

ofa-v2-cma-roe-eth2 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 "eth2 0" ""
ofa-v2-cma-roe-eth3 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 "eth3 0" ""
ofa-v2-scm-roe-mlx4_0-1 u2.0 nonthreadsafe default libdaploscm.so.2 dapl.2.0 "mlx4_0 1" ""
ofa-v2-scm-roe-mlx4_0-2 u2.0 nonthreadsafe default libdaploscm.so.2 dapl.2.0 "mlx4_0 2" ""

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agodapltest: server info devicename is not large enough for dapl_name storage
Arlin Davis [Wed, 19 May 2010 22:17:58 +0000 (15:17 -0700)]
dapltest: server info devicename is not large enough for dapl_name storage

Server info device name is a 80 char array but the dapl device name
that is copied is 256 bytes. Increase started_server.devicename definition.
Chalk one up for windows SDK OACR (auto code review).

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agowindows: comp_channel.cpp is included by util.c in the openib_common.
Arlin Davis [Wed, 19 May 2010 21:48:49 +0000 (14:48 -0700)]
windows: comp_channel.cpp is included by util.c in the openib_common.

Remove it from device.c in individual providers to avoid
duplicate definitions.

Line endings were corrected to linux format from windows as part of
the change.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agowindows: need to include linux directory to pick up _errno.h
Arlin Davis [Wed, 19 May 2010 21:45:55 +0000 (14:45 -0700)]
windows: need to include linux directory to pick up _errno.h

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agoscm: check for hca object before signaling thread
Arlin Davis [Mon, 17 May 2010 23:22:30 +0000 (16:22 -0700)]
scm: check for hca object before signaling thread

There may not be an hca object attached to cm object
when freeing during cleanup.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm, cma: fini code can be called multiple times and hang via fork
Arlin Davis [Mon, 17 May 2010 23:15:21 +0000 (16:15 -0700)]
scm, cma: fini code can be called multiple times and hang via fork

The providers should protect against forked child exits and
not cleanup until the parent init actually exits. Otherwise,
the child will hang trying to cleanup dapl thread. Modify to
check process id for proper init to fini cleanup and limit
cleanup to parent only.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm: add option to use other network devices with environment variable DAPL_SCM_NETDEV
Arlin Davis [Fri, 14 May 2010 23:20:52 +0000 (16:20 -0700)]
scm: add option to use other network devices with environment variable DAPL_SCM_NETDEV

New environment variable can be used to set the netdev
for sockets to use instead of the default network device
returned using gethostname.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm: cr_thread occasionally segv's when disconnecting all-to-all MPI static connections
Arlin Davis [Fri, 14 May 2010 17:27:50 +0000 (10:27 -0700)]
scm: cr_thread occasionally segv's when disconnecting all-to-all MPI static connections

Note: no valid calltrace for segv on cr_thread because
of state changing in switch statement from another
thread, jumped unknown location.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x41a65940 (LWP 1328)]
0x00002b2e7d9d5134 in ?? ()

Add cm object locking on all state change/checking. When
freeing CM object wakeup cr_thread to process
state change to CM_FREE.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm: SOCKOPT ERR Connection timed out on large clusters
Arlin Davis [Thu, 13 May 2010 17:31:17 +0000 (10:31 -0700)]
scm: SOCKOPT ERR Connection timed out on large clusters

Large scale all to all connections on +1000 cores
the listen backlog is reached and SYN's are dropped
which causes the connect to timeout. Retry connect
on timeout errors.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: UD mode, active side cm object released to soon, the RTU could be lost.
Arlin Davis [Mon, 10 May 2010 19:46:17 +0000 (12:46 -0700)]
ucm: UD mode, active side cm object released to soon, the RTU could be lost.

Will see following message with DAPL_DBG_TYPE set for Errors & Warnings (0x3):
ucm_recv: NO MATCH op REP 0x120 65487 i0x60005e c0x60005e < 0xd2 19824 0x60006a

The cm object was released on the active side after the connection
was established, RTU sent. This is a problem if the RTU is lost
and the remote side retries the REPLY. The RTU is never resent.
Keep the cm object until the EP is destroyed.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocma, ucm: cleanup issues with dat_ep_free on a connected EP without disconnecting.
Arlin Davis [Mon, 10 May 2010 19:35:51 +0000 (12:35 -0700)]
cma, ucm: cleanup issues with dat_ep_free on a connected EP without disconnecting.

During EP free, disconnecting with ABRUPT close flag, the disconnect should wait
for the DISC event to fire to allow the CM to be properly destroyed upon return.

The cma must also release the lock when calling the blocking rdma_destroy_id given
the callback thread could attempt to acquire the lock for reference counting.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: increase default UCM retry count for connect reply to 15
Arlin Davis [Wed, 28 Apr 2010 22:37:27 +0000 (15:37 -0700)]
ucm: increase default UCM retry count for connect reply to 15

On very large clusters UCM is timing out with retries at 10.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm: remove modify QP to ERR state during disconnect on UD type QP
Arlin Davis [Tue, 27 Apr 2010 18:20:08 +0000 (11:20 -0700)]
scm: remove modify QP to ERR state during disconnect on UD type QP

The disconnect on a UD type QP should not modify QP to error
since this is a shared QP. The disconnect should be treated
as a NOP on the UD type QP and only be transitioned during
the QP destroy (dat_ep_free).

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agowindows: remove static paths from dapltest scripts
Arlin Davis [Thu, 8 Apr 2010 23:32:02 +0000 (16:32 -0700)]
windows: remove static paths from dapltest scripts

signed-off-by: stan smith <stan.smith@intel.com>

14 years agocommon: EP links to EVD, PZ incorrectly released before provider CM objects freed.
Arlin Davis [Thu, 8 Apr 2010 16:38:57 +0000 (09:38 -0700)]
common: EP links to EVD, PZ incorrectly released before provider CM objects freed.

unlink/clear references after ALL CM objects linked to EP are freed.
Otherwise, event processing via CM objects could reference the handles
still linked to EP. After CM objects are freed (blocking) these handles
linked to EP are guaranteed not to refereence from underlying provider.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocommon: remove unnecessary lmr lkey hashing and duplicate lkey checking
Arlin Davis [Wed, 7 Apr 2010 18:12:21 +0000 (11:12 -0700)]
common: remove unnecessary lmr lkey hashing and duplicate lkey checking

lmr lkey hashing is too restrictive given the returned lkey could be
the same value for different regions on some rdma devices. Actually,
this checking is really unecesssary and requires considerable overhead
for hashing so just remove hashing of lmr lkey's. Let verbs device
level do the checking and validation.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoibal: output completion code in deciaml & hex as intended
Arlin Davis [Mon, 29 Mar 2010 20:20:34 +0000 (12:20 -0800)]
ibal: output completion code in deciaml & hex as intended

sign-off-by: stan smith <stan.smith@intel.com>

14 years agoucm: set timer during RTU_PENDING state change.
Arlin Davis [Tue, 16 Mar 2010 23:02:44 +0000 (15:02 -0800)]
ucm: set timer during RTU_PENDING state change.

The timer thread may pick up an unitialized timer
value and timeout before the reply was sent.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: fix issues with new EP to CM linking changes
Arlin Davis [Tue, 16 Mar 2010 22:47:58 +0000 (14:47 -0800)]
ucm: fix issues with new EP to CM linking changes

Add EP locking around QP modify
Remove release during disconnect event processing
Add check in cm_free to check state and schedule thread if necessary.
Add some additional debugging
Add processing in disconnect_clean for conn_req timeout
Remove extra CR's

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm: add EP locking and cm checking to socket cm disconnect
Arlin Davis [Tue, 16 Mar 2010 22:18:06 +0000 (14:18 -0800)]
scm: add EP locking and cm checking to socket cm disconnect

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm: new cm_ep linking broke UD mode over socket cm
Arlin Davis [Tue, 16 Mar 2010 17:44:44 +0000 (09:44 -0800)]
scm: new cm_ep linking broke UD mode over socket cm

Add EP locking around modify_qp for EP state.
Add new dapli_ep_check for debugging EP
Cleanup extra CR's
Change socket errno to dapl_socket_errno() abstraction

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoopenib common: add some debug prints to help isolate QP type issues
Arlin Davis [Tue, 16 Mar 2010 17:17:01 +0000 (09:17 -0800)]
openib common: add some debug prints to help isolate QP type issues

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocommon: dapl_event_str function missing 2 IB extended events
Arlin Davis [Tue, 16 Mar 2010 17:15:12 +0000 (09:15 -0800)]
common: dapl_event_str function missing 2 IB extended events

Add all IB extended events in event string print function

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocommon: dat_ep_connect should not set timer UD endpoints
Arlin Davis [Tue, 16 Mar 2010 17:12:11 +0000 (09:12 -0800)]
common: dat_ep_connect should not set timer UD endpoints

connect for UD type is simply AH resolution and doesn't
need timed. The common code is not designed to handle
multiple timed events on connect requests so just ignore
timing UD AH requests.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: fix error path during accept_usr reply failure
Arlin Davis [Mon, 15 Mar 2010 18:23:47 +0000 (10:23 -0800)]
ucm: fix error path during accept_usr reply failure

if accept_usr fails when sending reply the EP was
being linked to CM instead of properly unlinked.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoibal: add missing windows makefile
Arlin Davis [Mon, 8 Mar 2010 21:56:28 +0000 (13:56 -0800)]
ibal: add missing windows makefile

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoibal: changes for EP to CM linking and synchronization.
Arlin Davis [Mon, 8 Mar 2010 20:53:45 +0000 (12:53 -0800)]
ibal: changes for EP to CM linking and synchronization.

Windows IBAL changes to allocate and manage CM objects
and to link them to the EP. This will insure the CM
IBAL objects and cm_id's are not destroy before EP.
Remove windows only ibal_cm_handle in EP structure.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm: add support for canceling conn request that times out.
Arlin Davis [Wed, 24 Feb 2010 20:00:07 +0000 (12:00 -0800)]
scm: add support for canceling conn request that times out.

print warning message during timeout.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm, cma, ucm: consolidate dat event/provider event translation
Arlin Davis [Wed, 24 Feb 2010 19:28:04 +0000 (11:28 -0800)]
scm, cma, ucm: consolidate dat event/provider event translation

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocommon: missed linking changes from atomic to acquire/release
Arlin Davis [Wed, 24 Feb 2010 19:26:25 +0000 (11:26 -0800)]
common: missed linking changes from atomic to acquire/release

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocommon: add CM-EP linking to support mutiple CM's and proper protection during destru...
Arlin Davis [Wed, 24 Feb 2010 18:03:57 +0000 (10:03 -0800)]
common: add CM-EP linking to support mutiple CM's and proper protection during destruction

Add linking for CM to EP, including reference counting, to insure syncronization
during creation and destruction. A cm_list_head has been added to the EP object to
support multiple CM objects (UD) per EP. If the CM object is linked to an EP it
cannot be destroyed.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoRelease 2.0.27-1 dapl-2.0.27-1
Arlin Davis [Wed, 24 Feb 2010 00:26:41 +0000 (16:26 -0800)]
Release 2.0.27-1

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agowindows: add scm makefile
Arlin Davis [Mon, 22 Feb 2010 17:42:17 +0000 (09:42 -0800)]
windows: add scm makefile

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoWindows does not require rdma_cma_abi.h, move the include from common code and to...
Arlin Davis [Mon, 22 Feb 2010 17:41:13 +0000 (09:41 -0800)]
Windows does not require rdma_cma_abi.h, move the include from common code and to OSD file.

Signed-off-by: stan smith <stan.smith@intel.com>
14 years agoWindows patch to fix IB_INVALID_HANDLE name collision
Arlin Davis [Fri, 19 Feb 2010 22:52:01 +0000 (14:52 -0800)]
Windows patch to fix IB_INVALID_HANDLE name collision

signed-off-by: stan smith <stan.smith@intel.com>

14 years agoscm: dat_ep_connect fails on 32bit servers
Arlin Davis [Mon, 8 Feb 2010 21:49:35 +0000 (13:49 -0800)]
scm: dat_ep_connect fails on 32bit servers

memcpy for remote IA address uses incorrect sizeof for a pointer type.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoundefined symbol: dapls_print_cm_list
Arlin Davis [Fri, 5 Feb 2010 19:51:16 +0000 (11:51 -0800)]
undefined symbol: dapls_print_cm_list

call prototype should be dependent on DAPL_COUNTERS.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoCleanup CM object lock before freeing CM object memory
Arlin Davis [Fri, 5 Feb 2010 19:39:21 +0000 (11:39 -0800)]
Cleanup CM object lock before freeing CM object memory

Running windows application verifiier for uDAPL validation
for all 3 providers. Cleanup memory lock leaks found
by verifier.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agodestroy verbs completion channels created via ia_open or ep_create.
Arlin Davis [Thu, 4 Feb 2010 00:21:30 +0000 (16:21 -0800)]
destroy verbs completion channels created via ia_open or ep_create.

Completion channels are created with ia_open for CNO events and
with ep_create in cases where DAT allows EP(qp) to be created with
no EVD(cq) and IB doesn't. These completion channels need to be
destroyed at close along with a CQ for the EP without CQ case.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoUpdate Copyright file and include the 3 license files in distribution
Arlin Davis [Wed, 3 Feb 2010 19:06:45 +0000 (11:06 -0800)]
Update Copyright file and include the 3 license files in distribution

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoWhen copying private_data out of rdma_cm events, use the
Arlin Davis [Tue, 2 Feb 2010 22:43:03 +0000 (14:43 -0800)]
When copying private_data out of rdma_cm events, use the
reported private_data_len for the size, and not IB maximums.
This fixes a bug running over the librdmacm on windows, where
DAPL accessed invalid memory.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agodapl/cma: fix referencing freed address
Sean Hefty [Thu, 28 Jan 2010 18:19:20 +0000 (10:19 -0800)]
dapl/cma: fix referencing freed address

DAPL uses a pointer to reference the local and remote addresses
of an endpoint.  It expects that those addresses are located
in memory that is always accessible.  Typically, for the local
address, the pointer references the address stored with the DAPL
HCA device.  However, for the cma provider, it changes this pointer
to reference the address stored with the rdma_cm_id.

This causes a problem when that endpoint is connected on the
passive side of a connection.  When connect requests are given
to DAPL, a new rdma_cm_id is associated with the request.  The
DAPL code replaces the current rdma_cm_id associated with a
user's endpoint with the new rdma_cm_id.  The old rdma_cm_id is
then deleted.  But the endpoint's local address pointer still
references the address stored with the old rdma_cm_id.  The
result is that any reference to the address will access freed
memory.

Fix this by keeping the local address pointer always pointing
to the address associated with the DAPL HCA device.  This is about
the best that can be done given the DAPL interface design.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agodapl: move close device after async thread is done
Sean Hefty [Tue, 26 Jan 2010 23:13:03 +0000 (15:13 -0800)]
dapl: move close device after async thread is done

using it

Before calling ibv_close_device, wait for the asynchronous
processing thread to finish using the device.  This prevents
a use after free error.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agoRelease 2.0.26-1 dapl-2.0.26-1
Arlin Davis [Mon, 11 Jan 2010 17:03:10 +0000 (09:03 -0800)]
Release 2.0.26-1

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoopenib_common: add check for both gid and global routing in RTR
Arlin Davis [Tue, 22 Dec 2009 22:00:33 +0000 (14:00 -0800)]
openib_common: add check for both gid and global routing in RTR

check for valid gid pointer along with global route setting
during transition to RTR. Add more GID information to
debug print statement in qp modify call.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoopenib_common: remote memory read privilege set multi times
Arlin Davis [Fri, 4 Dec 2009 20:31:22 +0000 (12:31 -0800)]
openib_common: remote memory read privilege set multi times

duplicate setting of read privilege in dapls_convert_privileges

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm, scm: DAPL_GLOBAL_ROUTING enabled causes segv
Arlin Davis [Fri, 4 Dec 2009 20:25:30 +0000 (12:25 -0800)]
ucm, scm: DAPL_GLOBAL_ROUTING enabled causes segv

socket cm and ud cm providers support QP modify with is_global
set and GRH. New v2 providers didn't pass GID information
in modify_qp RTR call and incorrectly byte swapped the already
network order GID. Add debug print of GID during global modify.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoRelease 2.0.25-1 dapl-2.0.25-1
Arlin Davis [Wed, 25 Nov 2009 06:16:58 +0000 (22:16 -0800)]
Release 2.0.25-1

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agowinof scm: initialize opt for NODELAY setsockopt
Arlin Davis [Wed, 25 Nov 2009 06:15:46 +0000 (22:15 -0800)]
winof scm: initialize opt for NODELAY setsockopt

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoRelease 2.0.25
Arlin Davis [Tue, 24 Nov 2009 19:29:46 +0000 (11:29 -0800)]
Release 2.0.25

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agowinof cma: windows definition for EADDRNOTAVAIL missing
Arlin Davis [Tue, 24 Nov 2009 16:58:44 +0000 (08:58 -0800)]
winof cma: windows definition for EADDRNOTAVAIL missing

Signed-off-by: stan smith <stan.smith@intel.com>
14 years agoscm: client side setsockopt NODELAY fails if data arrives before setting
Arlin Davis [Tue, 24 Nov 2009 16:54:26 +0000 (08:54 -0800)]
scm: client side setsockopt NODELAY fails if data arrives before setting

Move setsockopt before connect to avoid race with data.
Seems to fail on windows. Not seen on linux.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocma: setup_listener Cannot assign requested address
Arlin Davis [Wed, 18 Nov 2009 17:52:40 +0000 (09:52 -0800)]
cma: setup_listener Cannot assign requested address

Colliding with RDS port of 18634. rdma_cm can return
either EADDRINUSE or EADDRNOTAVAIL if the bind fails.
Add check for either and return proper DAT_CONN_QUAL_IN_USE.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocommon: seg fault in dapl_evd_wait with multi-thread application using CNO's.
Arlin Davis [Wed, 18 Nov 2009 17:43:38 +0000 (09:43 -0800)]
common: seg fault in dapl_evd_wait with multi-thread application using CNO's.

If we are dealing with event streams besides a CQ event stream,
be conservative and set producer side locking.  Otherwise, no.
Check for CNO is missing, CNO is not considered CQ event stream.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: inbound DREQ/DREP handshake should transition QP.
Arlin Davis [Wed, 18 Nov 2009 17:37:48 +0000 (09:37 -0800)]
ucm: inbound DREQ/DREP handshake should transition QP.

During release, when receiving a disconnect request from remote peer
instead of a disconnect call from the client, the QP didn't get properly
set in ERR state and didn't flush the queue during disconnect processing.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agowinof: Remove duplicate include of comp_channel.cpp from cm.c as it is included in...
Arlin Davis [Mon, 2 Nov 2009 16:24:53 +0000 (08:24 -0800)]
winof: Remove duplicate include of comp_channel.cpp from cm.c as it is included in opensm_ucb/device.c.

Signed-off-by: stan smith <stan.smith@intel.com>
14 years agoRelease 2.0.24 dapl-2.0.24-1
Arlin Davis [Fri, 30 Oct 2009 21:19:21 +0000 (13:19 -0800)]
Release 2.0.24

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agowinof: Utilize WinOF version of inet_ntop() for Windows OSes which do not support...
Arlin Davis [Fri, 30 Oct 2009 20:57:22 +0000 (12:57 -0800)]
winof: Utilize WinOF version of inet_ntop() for Windows OSes which do not support inet_ntop().

Signed-off-by: stan smith <stan.smith@intel.com>
14 years agoucm: windows build issue with new CQ completion channel
Arlin Davis [Fri, 30 Oct 2009 15:17:26 +0000 (07:17 -0800)]
ucm: windows build issue with new CQ completion channel

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agowinof: add ucm provider to windows build
Arlin Davis [Fri, 30 Oct 2009 14:35:33 +0000 (06:35 -0800)]
winof: add ucm provider to windows build

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agowinof: add missing build files for ibal, scm
Arlin Davis [Fri, 30 Oct 2009 14:32:56 +0000 (06:32 -0800)]
winof: add missing build files for ibal, scm

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm: connection peer resets under heavy load, incorrect event on error
Arlin Davis [Wed, 28 Oct 2009 17:52:50 +0000 (09:52 -0800)]
scm: connection peer resets under heavy load, incorrect event on error

Under heavy load, we get a peer reset from the remote stack. In this
case retry the socket connection for this QP setup.

Add debugging with PID's and socket ports to help isolate
these types of socket scaling issues.

Report correct UD event during error, check remote_ah creation.

Fix dapl_poll return codes for single event type only.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: increase default reply and rtu timeout values.
Arlin Davis [Wed, 28 Oct 2009 17:47:37 +0000 (09:47 -0800)]
ucm: increase default reply and rtu timeout values.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: change some debug message levels and add check for valid UD REPLY during retries.
Arlin Davis [Wed, 28 Oct 2009 15:48:20 +0000 (07:48 -0800)]
ucm: change some debug message levels and add check for valid UD REPLY during retries.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: increase timers during subsequent retries
Arlin Davis [Tue, 27 Oct 2009 18:37:45 +0000 (10:37 -0800)]
ucm: increase timers during subsequent retries

check/process create_ah errors during connect phase
cleanup some debug messaging.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm, scm: address handles need destroyed when freeing Endpoints with UD QP's.
Arlin Davis [Mon, 19 Oct 2009 17:38:36 +0000 (10:38 -0700)]
ucm, scm: address handles need destroyed when freeing Endpoints with UD QP's.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoopenib_common: ignore pd free errors, clear pd_handle and return.
Arlin Davis [Fri, 16 Oct 2009 21:42:00 +0000 (14:42 -0700)]
openib_common: ignore pd free errors, clear pd_handle and return.

some older adapters have some issues
with pd free so just clear handle and return

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: using UD type QP's, ucm reports wrong reject event when user rejects AH resoluti...
Arlin Davis [Fri, 16 Oct 2009 15:52:21 +0000 (08:52 -0700)]
ucm: using UD type QP's, ucm reports wrong reject event when user rejects AH resolution request.

During rejects, both usr and ucm internal, the qp_type does not get initialized
so the check for UD type QP messages fail on active side and the wrong
event gets generated. Initialize saddr.ib information before sending reject
back to active side.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm, scm, cma: Fix CNO support on DTO type EVD's
Arlin Davis [Fri, 16 Oct 2009 14:57:25 +0000 (07:57 -0700)]
ucm, scm, cma: Fix CNO support on DTO type EVD's

EVD wait_object should be used for CNO processing
and not the direct CQ event channels. Add proper
checking for DTO type EVD's with CNO at wait
and wakeup.

UCM missing support for collective EVD's under a
CNO. Add support to create common channel for
collective EVD's during device open. Add support
in cm_thread to check this channel. Also,
during disconnect, move QP to error to properly
flush queue instead of moving to reset and init.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: fix lock init bug in ucm_cm_find
Arlin Davis [Thu, 15 Oct 2009 16:19:45 +0000 (09:19 -0700)]
ucm: fix lock init bug in ucm_cm_find

the lock should be setup as pointer to lock
not lock structure. Cleanup lock and list
in cm_find function and cm_print function.

Add debug aid by passing process id in
msg resv area. cleanup cr references
and change to cm for consistency.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: fix build problem with latest windows ucm changes
Arlin Davis [Wed, 14 Oct 2009 17:03:47 +0000 (10:03 -0700)]
ucm: fix build problem with latest windows ucm changes

define dapls_thread_signal as inline

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoSigned-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Wed, 14 Oct 2009 16:34:22 +0000 (09:34 -0700)]
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agoThe HCA should not be closed until all resources have been released.
Sean Hefty [Wed, 14 Oct 2009 16:34:18 +0000 (09:34 -0700)]
The HCA should not be closed until all resources have been released.
This results in a hang on windows, since closing the device frees
the event processing thread.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agoFix build warning when compiling on 32-bit systems.
Sean Hefty [Wed, 14 Oct 2009 16:34:13 +0000 (09:34 -0700)]
Fix build warning when compiling on 32-bit systems.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agoTrying to deregister the same memory region twice leads to an
Sean Hefty [Wed, 14 Oct 2009 16:34:07 +0000 (09:34 -0700)]
Trying to deregister the same memory region twice leads to an
application crash on windows.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agodat: reduce debug message level when parsing for location of dat.conf
Arlin Davis [Wed, 14 Oct 2009 14:59:23 +0000 (07:59 -0700)]
dat: reduce debug message level when parsing for location of dat.conf

Don't output failover to default /etc/dat.conf from
sysconfdir at ERROR level. Reduce to DAT_OS_DBG_TYPE_SR.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: update ucm provider for windows environment
Arlin Davis [Thu, 8 Oct 2009 23:23:22 +0000 (16:23 -0700)]
ucm: update ucm provider for windows environment

add dapls_thread_signal abstraction and a new
cm_thread function specific for windows.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: add timer/retry CM logic to the ucm provider
Arlin Davis [Thu, 8 Oct 2009 23:02:52 +0000 (16:02 -0700)]
ucm: add timer/retry CM logic to the ucm provider

add reply, rtu and retry count options via
environment variables. Times in msecs.
DAPL_UCM_RETRY 10
DAPL_UCM_REP_TIME 400
DAPL_UCM_RTU_TIME 200

Add RTU_PENDING and DISC_RECV states

Add check timer code to the cm_thread
and the option to the select abstaction
to take timeout values in msecs.
DREQ, REQ, and REPLY will all be timed
and retried.

Split out reply code and disconnect_final
code to better facilitate retry timers.
Add checking for duplicate messages.

Added new UD extension events for errors.
DAT_IB_UD_CONNECTION_REJECT_EVENT
DAT_IB_UD_CONNECTION_ERROR_EVENT

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoRelease 2.0.23 dapl-2.0.23-1
Arlin Davis [Fri, 2 Oct 2009 21:49:52 +0000 (14:49 -0700)]
Release 2.0.23

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agocma: cannot reuse the cm_id and qp for new connection, must reallocate a new one.
Arlin Davis [Fri, 2 Oct 2009 21:48:15 +0000 (14:48 -0700)]
cma: cannot reuse the cm_id and qp for new connection, must reallocate a new one.

When merging common code base the dapls_ib_reinit_ep mistakely
modified QP to reset then init for all providers. Will
not work for rdma_cm (cma provider) since the cm_id cannot
be reused.  Add build check for _OPENIB_CMA_ to pull in correct
free and reallocate method for reinit_ep.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoscm, cma: update DAPL cm protocol revision with latest address/port changes
Arlin Davis [Fri, 2 Oct 2009 20:50:12 +0000 (13:50 -0700)]
scm, cma: update DAPL cm protocol revision with latest address/port changes

CM protocol changed, roll revision to 6.
The socket cm could be competing with address space if
application is using sockets above to exchange information
like dapltest, and MPI consumers. Adjust port on listen
and connect to reduce the chance of port collision with
application above.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoucm: modify IB address format to align better with sockaddr_in6
Arlin Davis [Fri, 2 Oct 2009 19:47:37 +0000 (12:47 -0700)]
ucm: modify IB address format to align better with sockaddr_in6

Restructure the dcm_addr union to map the IB side
closer to sockaddr6 and initialize family to
AF_INET6 to insure callee allocates enough memory
for ucm dat_ia_address type. Put qpn in flowinfo
and gid in sin6_addr. Change the test suites
to print address information based on AF_INET
or AF_INET6 instead of using specific IB address
union from the provider.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agoAdd definition for getpid similar to that used by the other dtest apps.
Sean Hefty [Wed, 30 Sep 2009 21:29:03 +0000 (14:29 -0700)]
Add definition for getpid similar to that used by the other dtest apps.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agoWinOF provides a common implementation of gettimeofday that should
Sean Hefty [Wed, 30 Sep 2009 21:28:57 +0000 (14:28 -0700)]
WinOF provides a common implementation of gettimeofday that should
be used instead.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agoThe completion manager was updated to provide an abstraction that
Sean Hefty [Wed, 30 Sep 2009 21:27:50 +0000 (14:27 -0700)]
The completion manager was updated to provide an abstraction that
better mimicked how fd's were used.  Update dapl to use this
abstraction, rather than the older completion manager api.

This helps minimize changes between linux and windows.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
14 years agodtestcm: remove IB verb definitions
Arlin Davis [Wed, 30 Sep 2009 21:26:47 +0000 (14:26 -0700)]
dtestcm: remove IB verb definitions

Remove gid and qp_type references from test app.
Print address infomation in sockaddr and
ucm provider format with qpn and lid.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
14 years agodtest, dtestx: remove IB verb definitions
Arlin Davis [Wed, 30 Sep 2009 17:44:14 +0000 (10:44 -0700)]
dtest, dtestx: remove IB verb definitions

remove gid and qp_type checking from test suite.
Print address infomation in sockaddr and
ucm provider format with qpn and lid.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>