]> git.openfabrics.org - ~ardavis/dapl.git/log
~ardavis/dapl.git
12 years agocommon: srq create asserts with !dapl_llist_is_empty(head) failed
Arlin Davis [Thu, 22 Sep 2011 20:42:15 +0000 (13:42 -0700)]
common: srq create asserts with !dapl_llist_is_empty(head) failed

return DAT_NOT_IMPLEMENTED before allocating any resources
until there is a provider that supports SRQ's.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agoRelease 2.0.33 dapl-2.0.33-1 list
Arlin Davis [Mon, 29 Aug 2011 19:31:38 +0000 (12:31 -0700)]
Release 2.0.33

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agoscm,ucm: fix compatibility issues and set minimum protocol support
Arlin Davis [Mon, 29 Aug 2011 02:10:37 +0000 (19:10 -0700)]
scm,ucm: fix compatibility issues and set minimum protocol support

allow latest version to work with previous versions to allow
compatibility back to OFED 1.5, dapl-2.0.23. If rdma_atomic_in
is not exchanged default back to original settings set by
consumer.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agobuild: link librdmacm dependency to ib_acm usage for ucm and scm providers
Arlin Davis [Fri, 19 Aug 2011 20:19:38 +0000 (13:19 -0700)]
build: link librdmacm dependency to ib_acm usage for ucm and scm providers

Add -lrdmacm to XLIBS for ucm and scm providers. Only set with
conditional use of ib_acm as defined by DAPL_USE_IBACM.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agobuild: add selective enable/disable-xxx build switch for each provider
Arlin Davis [Fri, 19 Aug 2011 19:40:24 +0000 (12:40 -0700)]
build: add selective enable/disable-xxx build switch for each provider

The following switches have been added to configure:

--disable-cma (disables the rdma_cm dapl provider build)
--disable-scm (disables the socket cm provider build)
--disable-ucm (disables the IB UD cm provider build)

all providers are enabled by default.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agobuild: add extended header files to EXTRA_DIST and fix missing backslash
Arlin Davis [Fri, 19 Aug 2011 17:24:32 +0000 (10:24 -0700)]
build: add extended header files to EXTRA_DIST and fix missing backslash

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agobuild: set IB extended coll-type to none by default
Arlin Davis [Fri, 19 Aug 2011 17:23:42 +0000 (10:23 -0700)]
build: set IB extended coll-type to none by default

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agocommon: change errno mapping of EINVAL to DAT_INVALID_PARAMETER
Arlin Davis [Mon, 8 Aug 2011 06:02:54 +0000 (23:02 -0700)]
common: change errno mapping of EINVAL to DAT_INVALID_PARAMETER

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agobuild: add IB collective and FCA provider to dapl build package as an option
Arlin Davis [Mon, 8 Aug 2011 05:59:27 +0000 (22:59 -0700)]
build: add IB collective and FCA provider to dapl build package as an option

New collective support and the FCA provider will only be built with
configure option of "--enable-coll-type=fca". Dependencies include
fca devel package, fca library, and mverbs library. This will not
be included in default builds.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agocommon: add new dapls_evd_post_event_ext call for extended events
Arlin Davis [Mon, 8 Aug 2011 05:54:36 +0000 (22:54 -0700)]
common: add new dapls_evd_post_event_ext call for extended events

Add prototype and code to post extended events on dispatcher and
include collective definitions to dat_event_str function.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agoucm: add support for IB collective providers
Arlin Davis [Mon, 8 Aug 2011 05:53:45 +0000 (22:53 -0700)]
ucm: add support for IB collective providers

Add collective member address and threading information
on a per transport basis. Call create/free service with
HCA open/close.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agoscm: add support for IB collective providers
Arlin Davis [Mon, 8 Aug 2011 05:53:09 +0000 (22:53 -0700)]
scm: add support for IB collective providers

Add collective member address and threading information
on a per transport basis. Call create/free service with
HCA open/close.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agocma: add support for IB collective providers
Arlin Davis [Mon, 8 Aug 2011 05:47:21 +0000 (22:47 -0700)]
cma: add support for IB collective providers

Add collective member address and threading information
on a per transport basis. Call create/free service with
HCA open/close.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agocommon: add supported collective types in named attributes for query
Arlin Davis [Mon, 8 Aug 2011 05:45:04 +0000 (22:45 -0700)]
common: add supported collective types in named attributes for query

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agocommon: add collective call mappings via standard dapli_post_ext()
Arlin Davis [Mon, 8 Aug 2011 05:41:48 +0000 (22:41 -0700)]
common: add collective call mappings via standard dapli_post_ext()

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agocommon: new debug bitmask definition for extension logging
Arlin Davis [Mon, 8 Aug 2011 05:39:32 +0000 (22:39 -0700)]
common: new debug bitmask definition for extension logging

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agocommon: new IB collective provider for Mellanox Fabric Collective Agent
Arlin Davis [Wed, 17 Aug 2011 17:29:01 +0000 (10:29 -0700)]
common: new IB collective provider for Mellanox Fabric Collective Agent

Support for bcast, barrier, reduce, allreduce, allgather, allgatherv

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
12 years agodat: add definitions for MPI offloaded collectives in IB transport extensions
Arlin Davis [Mon, 8 Aug 2011 05:06:09 +0000 (22:06 -0700)]
dat: add definitions for MPI offloaded collectives in IB transport extensions

The collective extensions are designed to support MPI and general
multicast operations over IB fabrics that support offloaded collectives.
Where feasible, they come as close to MPI semantics as possible.
Unless otherwise stated, all members participating in a data collective
operation must call the associated collective routine for the data
transfer operation to complete. Unless otherwise stated, the
root collective member of a data operation will receive its own portion
of the collective data. In most cases, the root member can prevent
sending/receiving data when such operations would be redundant. When root
data is already "in place" the root member may set the send and/or receive
buffer pointer argument to NULL.

Unlike standard DAPL movement operations that require registered
memory and LMR objects, collective data movement operations employ
pointers to user-virtual address space that do not require
pre-registration by the application. From a resource usage point
of view, the API user should consider that the provider implementation
my perform memory registrations/deregistration on behalf of the
application to accomplish a data transfer.

Most collective calls are asynchronous. Upon completion, an event
will be posted to the EVD specified when the collective was created.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: cleanup debug messages when building with ibacm feature
sean.hefty@intel.com [Wed, 22 Jun 2011 17:40:17 +0000 (10:40 -0700)]
common: cleanup debug messages when building with ibacm feature

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoRelease 2.0.32 dapl-2.0.32-1 ofed_1.5.3
Arlin Davis [Mon, 14 Feb 2011 05:14:33 +0000 (21:14 -0800)]
Release 2.0.32

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocma: reduce output log level in disconnect from WARN to CM_WARN
Arlin Davis [Sat, 12 Feb 2011 20:03:19 +0000 (12:03 -0800)]
cma: reduce output log level in disconnect from WARN to CM_WARN

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoucm: delay freeing of active side UD cm object in case RTU is dropped
Arlin Davis [Sat, 12 Feb 2011 19:46:08 +0000 (11:46 -0800)]
ucm: delay freeing of active side UD cm object in case RTU is dropped

The ucm was freeing the UD CM object to quickly so a retried REPLY
was dropped and the passive side never received the AH info via RTU.
Keep active side UD cm objects on work queue until QP is destroyed
so RTU can be resent if necessary.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoucm: cm object needs to be on work queue before req sent on wire
Arlin Davis [Sat, 12 Feb 2011 19:36:35 +0000 (11:36 -0800)]
ucm: cm object needs to be on work queue before req sent on wire

With this delay in cm object queuing there is potential for replies
being dropped coming back with a NO MATCH. Start with INIT
state and queue it up, move to state REP_PENDING when
sending out on the wire to start request timer.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoucm, scm: remove use of usec_sleep delays and use events for disc and destroy
Arlin Davis [Fri, 4 Feb 2011 22:41:45 +0000 (14:41 -0800)]
ucm, scm: remove use of usec_sleep delays and use events for disc and destroy

use pthread mutex when processing and waiting for disconnect completions
and for CM object destruction. Add f_event, d_event to cm object.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: reduce default max inline data size because of performance anomaly
Arlin Davis [Fri, 21 Jan 2011 02:31:30 +0000 (18:31 -0800)]
common: reduce default max inline data size because of performance anomaly

Increasing max inline causes small message rates to decrease from
4M/sec when set to 64 to about 1M/sec when set to 400. This has
been observed on latest mlx4 adapters. Set default to 64 until resolved.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: dapls_evd_dto_wait() dbg message should print status and not errno
Arlin Davis [Thu, 20 Jan 2011 19:05:02 +0000 (11:05 -0800)]
common: dapls_evd_dto_wait() dbg message should print status and not errno

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoucm, scm: exchange max_qp_rd_atom and limit outstanding requests
Arlin Davis [Mon, 17 Jan 2011 22:43:58 +0000 (14:43 -0800)]
ucm, scm: exchange max_qp_rd_atom and limit outstanding requests

exchange and add proper checking to limit outstanding
rdma reads and atomics. Use one of the reserve bytes
in CM message protocol to exchange limits and reset
EP attribute rdma_out and set QP RTS attribute properly.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoscm: retry socket connect on ECONNREFUSED under heavy load
Arlin Davis [Wed, 5 Jan 2011 04:22:12 +0000 (20:22 -0800)]
scm: retry socket connect on ECONNREFUSED under heavy load

with large scale workloads a linux server starts rejecting
socket connect requests. Add retry logic for connection refused
errors.

increasing net.ipv4.tcp_max_syn_backlog to 2048 will also reduce the
chance of these errors when scaling up.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: qp modify RTR using wrong ep attribute parameter for dest_rd_atomic
Arlin Davis [Wed, 5 Jan 2011 00:25:29 +0000 (16:25 -0800)]
common: qp modify RTR using wrong ep attribute parameter for dest_rd_atomic

max_rdma_read_in should be used instead of max_rdma_read_out

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoRelease 2.0.31 dapl-2.0.31-1
Arlin Davis [Fri, 10 Dec 2010 22:26:07 +0000 (14:26 -0800)]
Release 2.0.31

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: clean up build warning for unused variable event_ptr
Arlin Davis [Fri, 10 Dec 2010 22:19:45 +0000 (14:19 -0800)]
common: clean up build warning for unused variable event_ptr

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoscm, ucm: set RAI_NOROUTE flag with rdma_getaddrinfo() call to avoid blocking.
Arlin Davis [Fri, 10 Dec 2010 21:49:47 +0000 (13:49 -0800)]
scm, ucm: set RAI_NOROUTE flag with rdma_getaddrinfo() call to avoid blocking.

if path is not returned, print warning message and use default SL.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocma: definition for dapl_sp_remove_ep() is missing in cm.c
Arlin Davis [Fri, 10 Dec 2010 21:47:15 +0000 (13:47 -0800)]
cma: definition for dapl_sp_remove_ep() is missing in cm.c

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agolibdat: static provider entries created for local SR database not freed
Arlin Davis [Tue, 7 Dec 2010 00:06:47 +0000 (16:06 -0800)]
libdat: static provider entries created for local SR database not freed

During load (dat_sr_init) the SR database is created with all dat.conf entries
but are never cleaned up during unload. Add new functions dat_sr_remove_all()
and dat_sr_remove() calls to cleanup and deallocate SR database entries and
database via dat_sr_fini().

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agolibdat: memory leak in static registration during parsing
Arlin Davis [Tue, 7 Dec 2010 00:02:13 +0000 (16:02 -0800)]
libdat: memory leak in static registration during parsing

The platform_params char string, allocated when
parsing dat.conf, is not freed.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: increase default IB inline send threshold to 400
Arlin Davis [Sat, 4 Dec 2010 00:13:31 +0000 (16:13 -0800)]
common: increase default IB inline send threshold to 400

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon cq: a mixup of errno and the -1 return from poll in dapls_wait_comp_channel
Pradeep Satyanarayana [Fri, 3 Dec 2010 23:52:55 +0000 (15:52 -0800)]
common cq: a mixup of errno and the -1 return from poll in dapls_wait_comp_channel

call should return errno and not status returned from poll.

Signed-off-by: Pradeep Satyanarayana <pradeeps@linux.vnet.ibm.com>
13 years agoucm: release UD cm objects after AH is exchanged to avoid duplicate request drops
Arlin Davis [Fri, 3 Dec 2010 22:56:21 +0000 (14:56 -0800)]
ucm: release UD cm objects after AH is exchanged to avoid duplicate request drops

When EP is in UD mode, AH resolution is handled with DAT connection semantics
connect and accept. Since AH info can be resolved for the same EPs you can
get false duplicate requests because a previous CR from is still on the
CM processing list. The CM object will remain on the EP free list and not
be freed until EP is destroyed given the possibilty of consumer accessing CR
private data buffer.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoucm: decrease timeout retry count for disconnect requests
Arlin Davis [Fri, 3 Dec 2010 22:52:26 +0000 (14:52 -0800)]
ucm: decrease timeout retry count for disconnect requests

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoucm: hold lock when sending cm_msgs to sync timer start with packet send
Arlin Davis [Fri, 3 Dec 2010 22:24:40 +0000 (14:24 -0800)]
ucm: hold lock when sending cm_msgs to sync timer start with packet send

releasing the lock after setting start timer and before
ucm_send could result in incorrect timeout on CM operations
if thread is scheduled out when releasing lock.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoucm: add debugging to include process id for better scale up debug aids
Arlin Davis [Fri, 3 Dec 2010 22:02:25 +0000 (14:02 -0800)]
ucm: add debugging to include process id for better scale up debug aids

use part of the resv[] area of the cm_msg to include local and
remote process ids. Add more debug messages to help isolate
problems related to many process problems.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocma: disconnect can block for excessive times waiting for rdma_cm DREP timeout
Arlin Davis [Fri, 3 Dec 2010 18:25:46 +0000 (10:25 -0800)]
cma: disconnect can block for excessive times waiting for rdma_cm DREP timeout

rdma_cm uses the same timeout values for connect and disconnect
request/reply. Disconnect abrupt option allows DAT consumers to
specify a prompt disconnect with immediate event. If the remote
node goes down or is non-responsive a CM disconnect event could
take minutes. Add a time limit waiting for event and move EP to
disconnected state to prevent callback from issuing duplicate
disconnect event via callback. The EP to CM linking will
cleanup/cancel any pending events before destroying cm_id.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoucm: configure the recv channel FD to non-blocking
Arlin Davis [Tue, 16 Nov 2010 22:48:10 +0000 (14:48 -0800)]
ucm: configure the recv channel FD to non-blocking

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agowindows: Missing librdmacm include path for build
Stan Smith [Fri, 29 Oct 2010 17:11:41 +0000 (10:11 -0700)]
windows: Missing librdmacm include path for build

Signed-off-by: stan smith <stan.smith@intel.com>
13 years agodebug build: only timestamp if sending to stdout to avoid performance hit
Arlin Davis [Thu, 28 Oct 2010 18:12:33 +0000 (11:12 -0700)]
debug build: only timestamp if sending to stdout to avoid performance hit

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: print out errors on free build and not just debug builds
Arlin Davis [Thu, 28 Oct 2010 18:11:12 +0000 (11:11 -0700)]
common: print out errors on free build and not just debug builds

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocma: fix debug build issue
Arlin Davis [Fri, 22 Oct 2010 18:58:19 +0000 (11:58 -0700)]
cma: fix debug build issue

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoscm, ucm: MPI spawn test on oversubcribed server taking excessive time to complete
Arlin Davis [Fri, 22 Oct 2010 17:15:15 +0000 (10:15 -0700)]
scm, ucm: MPI spawn test on oversubcribed server taking excessive time to complete

Simultanious DREQ processing from user and CM thread caused some improper
state change on UCM. State change can incorrectly change from FREE back
to DISC in certain corner cases. Add checking on internal disconnect call
to prevent double callback events and improper state change.

For SCM, a remote DREQ will shutdown socket which will cause POLLERR
on the disconnected FD. This will in turn cause the cm_thread to
wakeup continuously unnecessarily. Fix thread thrashing by moving
CM object to FREE state and removing object FD from pollfd array.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: add high resolution time stamps and thread id to sdtout debug logs
Arlin Davis [Fri, 22 Oct 2010 17:04:21 +0000 (10:04 -0700)]
common: add high resolution time stamps and thread id to sdtout debug logs

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: modify debug in dat_evd_dequeue to reduce noise, only output on non-empty
ardavis [Fri, 22 Oct 2010 17:01:12 +0000 (10:01 -0700)]
common: modify debug in dat_evd_dequeue to reduce noise, only output on non-empty

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocma: rdma_destroy_id called twice during device open bind error
sean.hefty@intel.com [Tue, 19 Oct 2010 20:54:42 +0000 (13:54 -0700)]
cma: rdma_destroy_id called twice during device open bind error

Signed-off-by: Pradeep Satyanarayana <pradeeps@linux.vnet.ibm.com>
13 years agocommon: dat_evd_dequeue (poll_cq) fails with invalid parameter after EP (qp) free
ardavis [Tue, 19 Oct 2010 16:52:45 +0000 (09:52 -0700)]
common: dat_evd_dequeue (poll_cq) fails  with invalid parameter after EP (qp) free

Failure occured during Intel MPI spawn test on windows.
The QP's need to be flushed and processed via EVD's during
the EP (QP) destroy to avoid an error on poll_cq. IBAL
provider was not moving to ERR state during QP destroy.

Better flush CQ processing was added and pushed down to the provider
level via dapls_ib_qp_free() where it can move QP to ERR, flush CQ,
and then free QP after flushing. Because there is no QP_ERR_FLUSH
state on a QP the spin on poll_cq (until empty) after modify_qp
to ERR could return empty and before all WQE's are flushed. This
could result in a CQE being added to CQ with a invalid QP reference.
So, an additional check was added to flush_evds for the recv_q to
poll_cq until all recv's pending are complete. For transmit_q there
is no quarantee that the posted work is signaled and so the best
that can be done is poll_cq until empty.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
13 years agoucm: allow configuration of CM burst (signal) threshold on posting
ardavis [Mon, 11 Oct 2010 19:24:31 +0000 (12:24 -0700)]
ucm: allow configuration of CM burst (signal) threshold on posting

Add new DAPL_UCM_TX_BURST environment variable, default=50.
Every 50 posted send messages will signal event which
is 10 percent blocks of default 500 message limit.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocma: fix debug build
ardavis [Mon, 11 Oct 2010 19:23:50 +0000 (12:23 -0700)]
cma: fix debug build

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agowindows: debug version of windows does not build.
ardavis [Thu, 7 Oct 2010 21:29:21 +0000 (14:29 -0700)]
windows: debug version of windows does not build.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
13 years agoAllow DAPL out of band connection models to use ibacm to obtain
ardavis [Thu, 7 Oct 2010 18:14:03 +0000 (11:14 -0700)]
Allow DAPL out of band connection models to use ibacm to obtain
path record data.  This will enable support for a wider range of
topologies, where the SL is required from the SA to prevent
deadlock.

DAPL will obtain path record data using rdma_getaddrinfo, provided
that IB ACM support is enabled.  On failure, dapl will fall back to
using its default SL value.  The IB ACM can be configured to cache
path information or always query the SA to ensure that the SL that is
obtained is current.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
13 years agoucm: add missing map file for UCM provider
ardavis [Mon, 27 Sep 2010 18:12:08 +0000 (11:12 -0700)]
ucm: add missing map file for UCM provider

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agoibal: delay QP transition during disconnect phase
ardavis [Fri, 24 Sep 2010 17:47:30 +0000 (10:47 -0700)]
ibal: delay QP transition during disconnect phase

ibal provider calls ib_cm_drep in response to receiving
a dreq.  The result is that the user's QP is transitioned
through the error state, which fails any outstanding send
operations and flushes all receives.  The disconnect request
is then reported to the user.

Since a user can receive errors from the QP before they are
aware of a pending disconnect request, the application may
respond to the errors as, well, actual errors.  Fix this by
delaying the QP transition until the user responds to the
dreq.

This fixes an error with Intel MPI running over the ibal
dapl provider with a 'spawn' test.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
13 years agoRevert "ibal: delay QP transition during disconnect phase"
ardavis [Thu, 23 Sep 2010 20:50:05 +0000 (13:50 -0700)]
Revert "ibal: delay QP transition during disconnect phase"

This reverts commit 4eda455d9bc80c35743b3a2f6773e6c4a500affc.

13 years agoibal: delay QP transition during disconnect phase
Arlin Davis [Wed, 22 Sep 2010 17:35:24 +0000 (10:35 -0700)]
ibal: delay QP transition during disconnect phase

The ibal provider calls ib_cm_drep in response to receiving
a dreq.  The result is that the user's QP is transitioned
through the error state, which fails any outstanding send
operations and flushes all receives.  The disconnect request
is then reported to the user.

Since a user can receive errors from the QP before they are
aware of a pending disconnect request, the application may
respond to the errors as, well, actual errors.  Fix this by
delaying the QP transition until the user responds to the
dreq.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
---

13 years agocommon: restructure EVD processing to handle EP destruction phase
Arlin Davis [Mon, 20 Sep 2010 17:42:41 +0000 (10:42 -0700)]
common: restructure EVD processing to handle EP destruction phase

EVD processing in the common code will return unformated events
if EP context is invalid as a result of destruction. During
EP destruction, add changes to flush EVD and process DTO completions
before the EP freeing is called. Simplified the locking in the
EVD code to eliminate the unecessary and very confusing condition
checking of evd_producer_locking_needed.

new dapls_ep_flush_cqs() call created to syncronize flush and
event processing.

unnecessary KDAPL code removed in the EVD processing.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
13 years agoibal: sync QP destruction and device close
Arlin Davis [Mon, 13 Sep 2010 23:19:44 +0000 (16:19 -0700)]
ibal: sync QP destruction and device close

Make QP destruction synchronous to ensure that no callbacks are
in progress for a QP after dapl has destroyed it.  This fixes a
use after free error accessing the dapl ep structure from a qp
callback that results in an application crash.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
13 years agoucm: remove unnecessary debug warning in async callback
Arlin Davis [Mon, 13 Sep 2010 22:06:42 +0000 (15:06 -0700)]
ucm: remove unnecessary debug warning in async callback

The switch() cases print when necessary.

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

13 years agoRelease 2.0.30 dapl-2.0.30-1 ofed_1.5.2_v2
Arlin Davis [Mon, 9 Aug 2010 21:28:20 +0000 (14:28 -0700)]
Release 2.0.30

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: increase default logging to include warnings
Arlin Davis [Mon, 9 Aug 2010 21:25:09 +0000 (14:25 -0700)]
common: increase default logging to include warnings

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: add more debug levels for cm logging
Arlin Davis [Mon, 9 Aug 2010 21:19:50 +0000 (14:19 -0700)]
common: add more debug levels for cm logging

DAPL_DBG_TYPE_CM_EST   = 0x8000,
DAPL_DBG_TYPE_CM_WARN  = 0x10000

Add level for connection establishment and events
and for retries/timer events.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
13 years agocommon: cleanup CR linkings after DTO error on EP
Arlin Davis [Mon, 2 Aug 2010 16:51:30 +0000 (09:51 -0700)]
common: cleanup CR linkings after DTO error on EP

Add cleanup to remove CR from SP and EP
during DTO errors in dapli_evd_cqe_to_event.

dapl_sp_remove_ep needs to remove cr_ptr
reference from EP before freeing cr object.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
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>