]> git.openfabrics.org - ~shefty/rdma-win.git/log
~shefty/rdma-win.git
15 years ago[ipoib] Added receive statistics for ipoib. (mlnx: 2945)
tzachid [Wed, 6 Aug 2008 14:07:28 +0000 (14:07 +0000)]
[ipoib] Added receive statistics for ipoib. (mlnx: 2945)
signed by: Slava Strebkov [slavas@voltaire.com]

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

15 years agoadded missing catalogue files
leonidk [Tue, 5 Aug 2008 13:15:15 +0000 (13:15 +0000)]
added missing catalogue files

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

15 years agoFix XP compilation issues.
shefty [Mon, 4 Aug 2008 20:52:43 +0000 (20:52 +0000)]
Fix XP compilation issues.

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

15 years agoFix winverbs build for XP.
shefty [Mon, 4 Aug 2008 20:51:57 +0000 (20:51 +0000)]
Fix winverbs build for XP.

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

15 years ago[MLX4] added HCA Soft Reset mechanism (used by Ethernet interface so far)
leonidk [Mon, 4 Aug 2008 16:18:23 +0000 (16:18 +0000)]
[MLX4] added HCA Soft Reset mechanism (used by Ethernet interface so far)

Soft Reset here is HCA re-initialization without bus driver reloading.
A reset can be initiated by clients (mlx4_eth, mlx4_hca) and/or driver (mlx4_bus).
Driver issues reset upon card fatal error, which prevents the following work with the card.
Clients may request the reset at any moment upon their will.

Clients have to register event callback after getting bus interface.

When a reset event comes, the bus driver will:
   - bar the following work with card, returning –EFAULT to all, but destroy_xx, commands;
   - reset the card to stop incoming traffic (only in case of client-initiated reset);
   - notify all registered clients about pending reset.

Getting this notification clients have to:
   - wait for all issued commands to end;
   - reset its own clients, if any, and bar their work;
   - release all the device resources, they were using till now;
   - send “I’m reset-ready” notification to the bus driver;

The driver starts to perform device reset only after receiving the “I’m reset-ready” notifications from all the registered clients. It re-initializes the device and notifies all the clients.

Having received this notification, clients have to:
   - dereference the old bus interface;
   - get the new interface from bus driver;
   - register new event handler;
   - resume/restart itself;
   - wake up its own clients, if any;

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

15 years ago[MLX4] added Hibernate/Standby support. (mlnx: 2906)
leonidk [Mon, 4 Aug 2008 12:23:51 +0000 (12:23 +0000)]
[MLX4] added Hibernate/Standby support. (mlnx: 2906)

Mellanox HCA cards do not have Power Management support so far.
So MLX4 driver resets the card on power-down  and starts its back on power-up.
Pay attention, one can go to Standby/Hibernate only when there is no running IB applications (including WSD).
Otherwise he will get an error window with a message like: "Driver mlx4_hca.sys refuses to go Hibernate/Standby".
MTHCA driver behaves upon Hibernate/Standby the same way.

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

15 years ago[MLX4] bugfix: mlx4_hca was compiled without USE_WDM_INTERRUPTS, which caused it...
leonidk [Mon, 4 Aug 2008 12:00:17 +0000 (12:00 +0000)]
[MLX4] bugfix: mlx4_hca was compiled without USE_WDM_INTERRUPTS, which caused it to see 'struct pci_dev' differently than mlx4_bus.

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

15 years ago[MLX4] fixed a memory leak in mlx4_bus driver. (mlnx: 2886, 2890)
leonidk [Mon, 4 Aug 2008 11:48:05 +0000 (11:48 +0000)]
[MLX4] fixed a memory leak in mlx4_bus driver. (mlnx: 2886, 2890)

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

15 years agoupdate to trunk svn 1458
shefty [Mon, 4 Aug 2008 06:14:41 +0000 (06:14 +0000)]
update to trunk svn 1458

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

15 years ago[OPENSM] adjust OPENSM to changed types of the stack.
leonidk [Sun, 3 Aug 2008 08:44:29 +0000 (08:44 +0000)]
[OPENSM] adjust OPENSM to changed types of the stack.

To recall, OPENSM uses it's own pair of files ib_types.h/ib_types_extended.h instead of the stack's ib_types.h.
So all the changes of 'trunk\inc\iba\ib_types.h' should be repeated in the OPENSM's files.

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

15 years ago[HW] fixed a bug in context values handling in new event notification mechanism ...
leonidk [Sun, 3 Aug 2008 08:37:30 +0000 (08:37 +0000)]
[HW] fixed a bug in context values handling in new event notification mechanism (addded in patch 1435).

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

15 years ago[IBBUS] added patch file for review & Leonid's mlx4_hca2.inf
stansmith [Sat, 2 Aug 2008 01:49:51 +0000 (01:49 +0000)]
[IBBUS] added patch file for review & Leonid's mlx4_hca2.inf

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

15 years ago[IBBUS] added readme.txt file to explain where testing is and what needs to be done.
stansmith [Sat, 2 Aug 2008 01:09:11 +0000 (01:09 +0000)]
[IBBUS] added readme.txt file to explain where testing is and what needs to be done.

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

15 years ago[WinOF] DAPL - dat.conf; added an example config line for a 2nd HCA.
stansmith [Sat, 2 Aug 2008 00:45:52 +0000 (00:45 +0000)]
[WinOF] DAPL - dat.conf; added an example config line for a 2nd HCA.

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

15 years ago[IBBUS] ibbus as a filter driver. tested for mthca, see etc\ for mthca.inf example...
stansmith [Sat, 2 Aug 2008 00:43:15 +0000 (00:43 +0000)]
[IBBUS] ibbus as a filter driver. tested for mthca, see etc\ for mthca.inf example. Starting on ConnectX ASAP.

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

15 years ago[WinOF] buildrelease.bat usages of 'C:' changed to '%SystemDrive%'.
stansmith [Mon, 28 Jul 2008 18:49:15 +0000 (18:49 +0000)]
[WinOF] buildrelease.bat usages of 'C:' changed to '%SystemDrive%'.

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

15 years ago[HW] The patch add version stamping to mlx4_bus and mlx4_hca. [MLNX: 2871]
leonidk [Mon, 28 Jul 2008 08:37:43 +0000 (08:37 +0000)]
[HW] The patch add version stamping to mlx4_bus and mlx4_hca. [MLNX: 2871]
Signed-off-by: Reuven Amitai <reuven@mellanox.co.il>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1451 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

15 years ago[ipoib] mcast garbage collector and igmp V2 support.
tzachid [Sun, 27 Jul 2008 07:48:26 +0000 (07:48 +0000)]
[ipoib] mcast garbage collector and igmp V2 support.
signed by: Slava Strebkov [slavas@voltaire.com]

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

15 years ago[ipoib] mcast garbage collector and igmp V2 support. (mlnx: 2850)
tzachid [Sun, 27 Jul 2008 07:46:19 +0000 (07:46 +0000)]
[ipoib] mcast garbage collector and igmp V2 support. (mlnx: 2850)
signed by: Slava Strebkov [slavas@voltaire.com]

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

15 years agowinverbs: update to SVN 1447
shefty [Fri, 25 Jul 2008 22:46:21 +0000 (22:46 +0000)]
winverbs: update to SVN 1447

Winverbs is now merged with the trunk

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

15 years agolibibverbs/tests: fix buffer overrun issue that caused random connection failures
shefty [Fri, 25 Jul 2008 20:17:03 +0000 (20:17 +0000)]
libibverbs/tests: fix buffer overrun issue that caused random connection failures

libibverbs tests occasionally had failures connecting over sockets in order to exchange QP information.  (The ping-pong tests failed more than the perftests.)  The failure was caused by copying a port number into a buffer that was too small, then using it to look up an address.  Increase the size of the buffer and make sure that it's NULL terminated.

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

15 years agowinverbs: add new windows based verbs library and driver
shefty [Fri, 25 Jul 2008 00:53:30 +0000 (00:53 +0000)]
winverbs: add new windows based verbs library and driver

Include port of libibverbs, example programs, and perftest programs to test winverbs.

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

15 years ago[ipoib] Always connect to mcast groups as a full member. (mlnx: 2845)
tzachid [Thu, 24 Jul 2008 13:07:24 +0000 (13:07 +0000)]
[ipoib] Always connect to mcast groups as a full member. (mlnx: 2845)
signed by: anatolyg@voltaire.com

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

15 years agouvp/av: change create/modify calls to take SGID index
shefty [Wed, 23 Jul 2008 21:41:18 +0000 (21:41 +0000)]
uvp/av: change create/modify calls to take SGID index

The uvp requires the SGID index to create/modify address handles.
Modify the API and UVPs to take the SGID index as input.  This avoids
the UVP needing to cache the CA attributes, which can lead to accessing
a stale GID table.  The SGID index is passed into the UVP through the
resv1 field of the GRH.

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

15 years agoevents: support multiple event handlers
shefty [Wed, 23 Jul 2008 21:33:56 +0000 (21:33 +0000)]
events: support multiple event handlers

Modify the channel interface to allow clients to register different
event handlers.  This is in addition to the event handler specified when
opening the channel adapter.  The latter can be replaced in a subsequent
patch, but is left as is to minimize changes.

This change allows the channel interface to support multiple direct
call clients, such as winverbs and ibal.

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

16 years agouvp/av: complete all processing in pre_create/destroy_av() calls
shefty [Wed, 23 Jul 2008 21:13:05 +0000 (21:13 +0000)]
uvp/av: complete all processing in pre_create/destroy_av() calls

According to the documentation, if a UVP returns IB_VERBS_PROCESSING_DONE
from a pre() IOCTL call, then all verbs related processing has completed.
The mthca pre_create_av() and pre_destroy_av() uvp implementation can
both return IB_VERBS_PROCESSING_DONE, but requires that users still call
post_create_av() and post_destroy_av().  Fix the mthca UVP to complete all
processing in the pre() IOCTL calls when returning IB_VERBS_PROCESSING_DONE,
and update IBAL to remove unnecessary post() IOCTL calls.

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

16 years agouvp/ci_umv_buf: always allocate uvp buffer
shefty [Wed, 23 Jul 2008 21:08:13 +0000 (21:08 +0000)]
uvp/ci_umv_buf: always allocate uvp buffer

The UVP controls the ci_umv_buf, but does not allocate the p_inout_buf if it
is non-zero.  However, the uvp frees the buffer later.  It should always
allocate the buffer, since the caller does not know the required size and
cannot allocate it on the uvp's behalf.  This avoids an unneeded
initialization by the caller, and the if check by the uvp.

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

16 years agoverbs: optimize work request/completion structures
shefty [Wed, 23 Jul 2008 21:03:49 +0000 (21:03 +0000)]
verbs: optimize work request/completion structures

Change work completion types to quickly allow a user to determine if a
completions is for a send or receive.  Align work request and work
completion type values to be the same for consistency.

Update work request structure to avoid unnecessary internal padding and
allocating extra unused space for pointers and structures that can be
part of a union.  Arrange structure layout to allow casting between
the UVP, IBAL, WinVerbs, and libibverbs work requests.

Update debug print functions to match changes.

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

16 years agomthca/pnp: respond to query interface
shefty [Wed, 23 Jul 2008 20:34:43 +0000 (20:34 +0000)]
mthca/pnp: respond to query interface

Add infrastructure to respond to query calls for the
RDMA_INTERFACE_VERB interface.

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

16 years agouvp: obtain desired interface by GUID
shefty [Wed, 23 Jul 2008 20:24:16 +0000 (20:24 +0000)]
uvp: obtain desired interface by GUID

The current uvp_get_interface() routine takes a structure as input.
Included in the structure is a version number.

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.

This will make it easier to extend the existing interfaces in the future.

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

16 years agocq: allow polling with an array of wc's
shefty [Wed, 23 Jul 2008 20:20:52 +0000 (20:20 +0000)]
cq: allow polling with an array of wc's

Allow polling for a list of work completions using an array of
completion structures, rather than a linked list.  This avoids needing
to walk the list to link the structures together before calling poll,
which is a fast path operation.

A new completion structure is added that provides the qp_context
associated with a completion.  This avoids changes to the existing
ULPs, while taking advantage of the underlying UVP capabilities.
Providing the qp_context is useful when dealing with SRQ.

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

16 years agouvp/interface: add support for reporting QP context in WCs
shefty [Wed, 23 Jul 2008 20:14:05 +0000 (20:14 +0000)]
uvp/interface: add support for reporting QP context in WCs

Extend the uvp_interface to include support for reporting the QP context in
work completions.  The required changes are to allow specifying a qp_context
in the pre_create_qp() IOCTL call, and reporting the qp_context through the
work completion structure.

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

16 years agoevents: allow callbacks per CQ, QP, or SRQ
shefty [Wed, 23 Jul 2008 20:09:45 +0000 (20:09 +0000)]
events: allow callbacks per CQ, QP, or SRQ

The underlying hardware drivers both support setting callbacks on a per
widget (CQ, QP, or SRQ) basis, but the verbs interface only allows one
global event handler and one completion handler for the HCA.  Modify the
verbs interface to allow setting events callbacks directly on the HCA
objects.  This allows the HCA to support multiple consumers of its
interface, and users can optimize their event handling based on the call.
For example, the HCA drivers can invoke callbacks directly to the ULPs
without the calls first being filtered by IBAL.  This will improve
completion event reporting.

To minimize changes to the existing stack, the current event handler is
used for all events, regardless of type.  Optimizations are left for a
separate patch.

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

16 years agoib_types/events: remove trap data from event record
shefty [Wed, 23 Jul 2008 20:01:18 +0000 (20:01 +0000)]
ib_types/events: remove trap data from event record

The trap data in the ib_event_rec is both incomplete (wrt the types of
traps that it can report) and unused.  Remove it to save stack space.

This will also make it cleaner to have event handlers per QP, SRQ, CQ, etc.

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

16 years agocomplib/cl_byteswap_osd.h: Add missing include file for stdlib.h
shefty [Wed, 23 Jul 2008 19:56:47 +0000 (19:56 +0000)]
complib/cl_byteswap_osd.h: Add missing include file for stdlib.h

Avoid build errors when cl_byteswap_osd.h is included directly.

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

16 years ago[WinOF] fix an x86 copy-n-paste error: remove extra .sys to make correct .dll filename.
stansmith [Tue, 22 Jul 2008 16:31:28 +0000 (16:31 +0000)]
[WinOF] fix an x86 copy-n-paste error: remove extra .sys to make correct .dll filename.
  wlh/x86/wof.wxs
  wnet/x86/wof.wxs
  wxp/x86/wof.wxs

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

16 years agoRemoving false Prefast alarms by:
tzachid [Tue, 22 Jul 2008 06:55:12 +0000 (06:55 +0000)]
Removing false Prefast alarms by:
Adding __analysis_assume() to ASSERT when DBG and _PREFAST_ are used for use in all the WinOF tree.
Adding __pragma(warning(suppress:6326)) to suppress constants compare warning (performance decrease is acceptable since this is chked code/ heavy windows event logging.
Signed by:Doron Tsur

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

16 years ago[IPOIB, MLX4] Checksum offload (mlnx: 2828)
tzachid [Tue, 22 Jul 2008 06:48:18 +0000 (06:48 +0000)]
[IPOIB, MLX4] Checksum offload (mlnx: 2828)

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

16 years ago[mlx4] Use t-first interrupts by default. (mlnx: 2836)
tzachid [Tue, 22 Jul 2008 06:30:21 +0000 (06:30 +0000)]
[mlx4] Use t-first interrupts by default. (mlnx: 2836)

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

16 years ago[DAPL] Fully support dat_cr_accept() private data.
stansmith [Mon, 21 Jul 2008 23:15:27 +0000 (23:15 +0000)]
[DAPL] Fully support dat_cr_accept() private data.
  dapl/common/dapl_adapter_util.h
  dapl/common/dapl_cr_accept.c
  dapl/ibal/dapl_ibal_cm.c

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

16 years agowinverbs: fix patch description
shefty [Mon, 21 Jul 2008 16:43:46 +0000 (16:43 +0000)]
winverbs: fix patch description

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

16 years ago[mlx4] Fix bug in win64 doorbell. (mlnx: 2777, 2791)
tzachid [Mon, 21 Jul 2008 12:37:02 +0000 (12:37 +0000)]
[mlx4] Fix bug in win64 doorbell. (mlnx: 2777, 2791)
Due the bug always the code acquire the spin lock although we run on 64 bits machine

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

16 years ago[mlx4] Add support for 6368 device.
tzachid [Mon, 21 Jul 2008 12:16:10 +0000 (12:16 +0000)]
[mlx4] Add support for 6368 device.

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

16 years ago[HW, TOOLS] Improve VSTAT output in case of a driver startup failure. [MLNX: 2819]
leonidk [Mon, 21 Jul 2008 10:57:08 +0000 (10:57 +0000)]
[HW, TOOLS] Improve VSTAT output in case of a driver startup failure. [MLNX: 2819]

When low level drivers fail on startup, which usually happens upon an incorrect FW, they report to all the above stack a dev_id of the burning device ("livefish") and imitate such a device thereafter. It was done in order to allow to all the upper level drivers to start their work.
VSTAT shows in this case the dev_id of a "livefish", which is a bit misleading.

This patch fixes this behavior. VSTAT will now show the real dev_id. The drivers  still imitate the "livefish" device. The detailed message about the startup failure can be found in System Event Log (as it always was).

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

16 years ago[MLX4] added a possibility to register event handler with MLX4_BUS driver. [MLNX...
leonidk [Mon, 21 Jul 2008 10:36:38 +0000 (10:36 +0000)]
[MLX4] added a possibility to register event handler with MLX4_BUS driver. [MLNX:2786]

It is an extension of the Ethernet interface of mlx4_bus driver.
The mlx4_eth handler is called on DPC level upon asynchronous events like PORT_UP/PORT_DOWN, passing event data and the callback context parameter, set upon registration.

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

16 years ago[HW, TOOLS] fixed a bug, causing incorrect value of max_addr_handles in query_ca...
leonidk [Mon, 21 Jul 2008 10:26:12 +0000 (10:26 +0000)]
[HW, TOOLS] fixed a bug, causing incorrect value of max_addr_handles in query_ca. [MLNX: 2790]

It is relevant only for Tavor, but the changes influence all drivers and modify ABI, so the AL_IOCTL_VERSION has been increased.

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

16 years agowinverbs/libibverbs: update to support UD QPs and async events
shefty [Sat, 19 Jul 2008 04:31:58 +0000 (04:31 +0000)]
winverbs/libibverbs: update to support UD QPs and async events

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

16 years agouvp/av: change create/modify calls to take SGID index
shefty [Sat, 19 Jul 2008 04:29:38 +0000 (04:29 +0000)]
uvp/av: change create/modify calls to take SGID index

The uvp requires the SGID index to create/modify address handles.
Modify the API and UVPs to take the SGID index as input.  This avoids
the UVP needing to cache the CA attributes, which can lead to accessing
a stale GID table.  The SGID index is passed into the UVP through the
resv1 field of the GRH.

This adds the patch to make this change.

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

16 years ago[WinOF] buildrelease no longer contains uglt hack to work around XP32 WSD build problems.
stansmith [Fri, 18 Jul 2008 23:36:48 +0000 (23:36 +0000)]
[WinOF] buildrelease no longer contains uglt hack to work around XP32 WSD build problems.
Added a 2nd cmd line arg to set OPENIB_REV value when building installers. Fix eliminates folder structure dependency, making the script more useful to a wider audience.

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

16 years ago[DAPL2] DAPL2 debug cleanup, along with patches to IBAL provider to correctly handle...
stansmith [Fri, 18 Jul 2008 23:33:50 +0000 (23:33 +0000)]
[DAPL2] DAPL2 debug cleanup, along with patches to IBAL provider to correctly handle accept side private_data.
Fixed the async QP & CQ error handlers as they had not been updated with latest typedef's (ib_async_qp_handler_t & ib_async_cq_handler_t), hence calling arg mismatch vs. handling definitions. Resulted in bad EP pointer dereference during Async QP error handling.
Added debug value DAPL_DBG_EVD_DEQUEUE to throttle debug output when watching EVD dequeue operations.

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

16 years agowinverbs: use resv1 field of grh instead of resv2
shefty [Fri, 18 Jul 2008 09:45:41 +0000 (09:45 +0000)]
winverbs: use resv1 field of grh instead of resv2

Use resv1 field to allow for more GIDs assigned to a single node.

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

16 years agowinverbs: pass in SGID index to uvp pre_create_av
shefty [Fri, 18 Jul 2008 08:49:04 +0000 (08:49 +0000)]
winverbs: pass in SGID index to uvp pre_create_av

The SGID index can change dynamically, so look up the correct index when creating an address vector.  The index is passed into the UVP in the resv2 field of the grh.

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

16 years agowinmad: add NET* data types to indicate values stored in network-byte order
shefty [Fri, 18 Jul 2008 00:27:20 +0000 (00:27 +0000)]
winmad: add NET* data types to indicate values stored in network-byte order

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

16 years ago[WinOF] Don't build WSD for WXP32
stansmith [Fri, 18 Jul 2008 00:22:47 +0000 (00:22 +0000)]
[WinOF] Don't build WSD for WXP32
  tools\wsdinstall\user\makefile
  tools\ulp\wsd\user\makefile

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

16 years ago[WinOF] added support for mthca.inf from trunk\bin\kernel\xxx
stansmith [Fri, 18 Jul 2008 00:19:39 +0000 (00:19 +0000)]
[WinOF] added support for mthca.inf from trunk\bin\kernel\xxx

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

16 years ago[MTHCA] mthca.inf file stamping support.
stansmith [Fri, 18 Jul 2008 00:17:11 +0000 (00:17 +0000)]
[MTHCA] mthca.inf file stamping support.
rename mthca.inf --> mthca.inx
added makefile.inc

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

16 years agowinverbs: define NET* data types to indicate data is in network byte order
shefty [Thu, 17 Jul 2008 23:58:40 +0000 (23:58 +0000)]
winverbs: define NET* data types to indicate data is in network byte order

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

16 years agowinverbs: fix kernel crash resulting from tracking port events
shefty [Thu, 17 Jul 2008 22:47:45 +0000 (22:47 +0000)]
winverbs: fix kernel crash resulting from tracking port events

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

16 years agowinverbs: change WV_GRH structure to simplify the interface
shefty [Thu, 17 Jul 2008 22:46:49 +0000 (22:46 +0000)]
winverbs: change WV_GRH structure to simplify the interface

Separate out the bit fields in the WV_GRH structure to make using it easier to use.  Change the structure name to avoid confusion with an actual IB GRH.

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

16 years ago[IBAL] This patch fixes the build error due to CSQ use for XP builds.
leonidk [Thu, 17 Jul 2008 08:16:01 +0000 (08:16 +0000)]
[IBAL] This patch fixes the build error due to CSQ use for XP builds.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1408 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years agowinverbs: update to account for changes to ci_umv_buf
shefty [Thu, 17 Jul 2008 06:28:11 +0000 (06:28 +0000)]
winverbs: update to account for changes to ci_umv_buf

p_inout_buf was changed from void * to uint64_t

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

16 years agowinverbs: update align wr patch to account for updating to svn 1400
shefty [Thu, 17 Jul 2008 06:25:29 +0000 (06:25 +0000)]
winverbs: update align wr patch to account for updating to svn 1400

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

16 years agowinverbs: updated patches based on svn rev 1400
shefty [Thu, 17 Jul 2008 05:11:48 +0000 (05:11 +0000)]
winverbs: updated patches based on svn rev 1400

Patches apply, but build fails.

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

16 years ago[WinOF] for XP32 builds, place holder files (until someone comes up with a better...
stansmith [Thu, 17 Jul 2008 01:08:45 +0000 (01:08 +0000)]
[WinOF] for XP32 builds, place holder files (until someone comes up with a better plan) utilized by makebin to cover the case of WSD not available for XP32. netipoib-xp32.inf intentionally contains 64 bit sections as to minimize differences between it and netipoib.inf file.

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

16 years ago[WinOF] updated for .inf file stamping & .inf file relocation to trunk\bin path
stansmith [Thu, 17 Jul 2008 01:05:08 +0000 (01:05 +0000)]
[WinOF] updated for .inf file stamping & .inf file relocation to trunk\bin path

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

16 years ago[WinOF] updated to discuss WDK build and WinOF/makebin/buildrelease structures
stansmith [Thu, 17 Jul 2008 01:03:01 +0000 (01:03 +0000)]
[WinOF] updated to discuss WDK build and WinOF/makebin/buildrelease structures

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

16 years agowinverbs: updated to trunk svn rev 1400
shefty [Wed, 16 Jul 2008 23:18:35 +0000 (23:18 +0000)]
winverbs: updated to trunk svn rev 1400

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

16 years agoCI: add support for multiple event handlers
shefty [Wed, 16 Jul 2008 22:41:11 +0000 (22:41 +0000)]
CI: add support for multiple event handlers

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

16 years agolibibverbs: add port of ibv_asyncwatch sample program
shefty [Wed, 16 Jul 2008 22:37:04 +0000 (22:37 +0000)]
libibverbs: add port of ibv_asyncwatch sample program

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

16 years agowinmad: switch reserved and grh valid fields
shefty [Wed, 16 Jul 2008 22:02:35 +0000 (22:02 +0000)]
winmad: switch reserved and grh valid fields

Switch the reserved field to the 16 bit field, rather than the 8 bit field.

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

16 years agowinverbs: add asynchronous event reporting
shefty [Wed, 16 Jul 2008 22:00:40 +0000 (22:00 +0000)]
winverbs: add asynchronous event reporting

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

16 years ago[DAPL2] updated old license header text to be consistent with OFA BSD license; 1st...
stansmith [Tue, 15 Jul 2008 15:06:51 +0000 (15:06 +0000)]
[DAPL2] updated old license header text to be consistent with OFA BSD license; 1st commit was mislabeled [DAPL2] should have been [DAPL].

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

16 years ago[DAPL2] updated old license header text to be consistent with OFA BSD license.
stansmith [Tue, 15 Jul 2008 15:04:52 +0000 (15:04 +0000)]
[DAPL2] updated old license header text to be consistent with OFA BSD license.

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

16 years ago[DAPL] fix x86(32-bit) pointer sign extension warning when going to wr_id (u64).
stansmith [Sun, 13 Jul 2008 22:26:58 +0000 (22:26 +0000)]
[DAPL] fix x86(32-bit) pointer sign extension warning when going to wr_id (u64).

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

16 years ago[IBAL] Limit time spent at DISPATCH_LEVEL when processing MADs.
leonidk [Sun, 13 Jul 2008 11:35:53 +0000 (11:35 +0000)]
[IBAL] Limit time spent at DISPATCH_LEVEL when processing MADs.

In working with some switch SMs, I found that under stress the QP0 MAD processing could get delayed by eternal QP1 MAD processing (from hitting the SA for path queries).  This caused the SMs to remove the node from the fabric (multicast group membership, etc) because it appeared unreachable.

This patch adds a DPC for QP0 and QP1 to the SMI, and limits the SMI to processing 16 MADs before re-queueing the DPC to the DPC queue.

Because QP0 processing is crucial to the fabric operating properly, the QP0 DPC is set to high importance so that it always gets queued to the front of the DPC queue, pre-empting any QP1 processing (among other things).

In any case, with this patch all my changes have now been mailed to the list.

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

16 years ago[ALL] Enable warning C4826.
leonidk [Sun, 13 Jul 2008 11:31:46 +0000 (11:31 +0000)]
[ALL]  Enable warning C4826.

Warning C4826 warns you if you have signed pointer extension when a 32-bit pointer is extended to 64-bits.  This patch turns the warning on by default (for any users of complib), and fixes all instances of problematic code.  It also eradicates __ptr64 usage from the Qlogic VNIC driver.

Code affected:
- IBAL
- MTHCA
- MLX4
- QLGCVNIC

Note that I didn't change DAPL because it's licensed under the CPL and not BSD. So someone else will have to fix that.  In fact, DAPL should probably just go back into the SourceForge project rather than being duplicated everywhere.  Code in the WinOF SVN should be BSD only according to the contributor's agreement.

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

16 years ago[IBAL] Refine UAL_NDI_NOOP handler.
leonidk [Sun, 13 Jul 2008 11:24:55 +0000 (11:24 +0000)]
[IBAL] Refine UAL_NDI_NOOP handler.

The UAL_NDI_NOOP IOCTL handler was added to allow memory registration in user-mode to notify a client using an I/O completion port.  This patch extends the functionality to allow the IOCTL to return either STATUS_SUCCESS or STATUS_TIMEOUT.  The STATUS_TIMEOUT facility is used by the NetworkDirect provider when IBAT returns pending.  It's crude, but gets the job done.

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

16 years ago[IBAL] Fix TO_LONG_PTR use in IOCTLs. Re-applied 1387 patch.
leonidk [Sun, 13 Jul 2008 11:19:40 +0000 (11:19 +0000)]
[IBAL] Fix TO_LONG_PTR use in IOCTLs. Re-applied 1387 patch.

Some IOCTLs transfer API structures with embedded pointers.  These embedded pointers use the TO_LONG_PTR macro to pad everything out so that __ptr64 isn't used.  The idea here is fine, but the change to eliminate the __ptr64 was riddled with problems that weren't caught by the find/replace brute force code changes.

Specifically, you had code like this:

>core\al\user\ual_mr.c, ual_reg_mem@67
>
>       /* Clear the mr_ioctl */
>       cl_memclr( &mr_ioctl, sizeof(mr_ioctl) );

In theory, no uninitialized upper 32-bits of a TO_LONG_PTR structure would get sent to the kernel.

>       mr_ioctl.in.h_pd = h_pd->obj.hdl;
>       mr_ioctl.in.mem_create = *p_mr_create;

Oops, the mem_create in the IOCTL buffer was overwritten with the caller's structure, which may have uninitialized padding.  This isn't subsequently cleared, effectively defeating the purpose of the memclr.

>+      mr_ioctl.in.mem_create.vaddr_padding =
>+ (ULONG_PTR)p_mr_create->vaddr;

Pretty much every instance of embedded structures in IOCTLs was broken in this way.  There were cases where things were closer to being right:

>core\al\user\ual_qp.c, ual_create_qp@313
>        */
>       qp_ioctl.in.h_pd = h_pd->obj.hdl;
>       qp_ioctl.in.qp_create = *p_qp_create;

Ok, same copy issue as above...

>       qp_ioctl.in.qp_create.h_rq_cq =
>               (ib_cq_handle_t)HDL_TO_PTR(p_qp_create->h_rq_cq->obj.hdl);
>       qp_ioctl.in.qp_create.h_sq_cq =
>
> (ib_cq_handle_t)HDL_TO_PTR(p_qp_create->h_sq_cq->obj.hdl);

Ah, close but not quite - you have the assignment, but it only assigns the pointer part of the TO_LONG_PTR union.  The padding is still a copy of the user's structure, potentially giving an invalid handle in the kernel.  All uses of HDL_TO_PTR were eliminated as they didn't actually accomplish anything.

This patch fixes this, and always uses the 'padding' field of the TO_LONG_PTR union so that the value is always fully set.

There's also a bug fixed in UD work requests that get sent via IOCTL - the AV handle was never swizzled to its appropriate kernel handle.

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

16 years ago[IBAL] Remove TO_LONG_PTR from IOCTL structures. Re-applied 1386 patch with out SMI...
leonidk [Sun, 13 Jul 2008 11:12:55 +0000 (11:12 +0000)]
[IBAL] Remove TO_LONG_PTR from IOCTL structures. Re-applied 1386 patch with out SMI changes.

This patch removes all instances of TO_LONG_PTR from internal IOCTL structures.  The only place TO_LONG_PTR should be used is in public structures that contain pointers and are exchanged between user-mode and kernel-mode.  Actually, the code should ideally have proxy structures for such API structures into which API structure members
are copied member-wise, and whose size is fixed.  Unused pointers should be stripped from the IOCTL proxy structures.  But that's a change for some other time...

All fields in internal IOCTL structures that were formerly TO_LONG_PTR are not uint64_t, and all uses have appropriate casts.

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

16 years ago[IBAL] revert two previous patches
leonidk [Sun, 13 Jul 2008 11:08:58 +0000 (11:08 +0000)]
[IBAL] revert two previous patches

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

16 years ago[IBAL] Fix TO_LONG_PTR use in IOCTLs.
leonidk [Sun, 13 Jul 2008 10:54:52 +0000 (10:54 +0000)]
[IBAL] Fix TO_LONG_PTR use in IOCTLs.

Some IOCTLs transfer API structures with embedded pointers.  These embedded pointers use the TO_LONG_PTR macro to pad everything out so that __ptr64 isn't used.  The idea here is fine, but the change to eliminate the __ptr64 was riddled with problems that weren't caught by the find/replace brute force code changes.

Specifically, you had code like this:

>core\al\user\ual_mr.c, ual_reg_mem@67
>
>       /* Clear the mr_ioctl */
>       cl_memclr( &mr_ioctl, sizeof(mr_ioctl) );

In theory, no uninitialized upper 32-bits of a TO_LONG_PTR structure would get sent to the kernel.

>       mr_ioctl.in.h_pd = h_pd->obj.hdl;
>       mr_ioctl.in.mem_create = *p_mr_create;

Oops, the mem_create in the IOCTL buffer was overwritten with the caller's structure, which may have uninitialized padding.  This isn't subsequently cleared, effectively defeating the purpose of the memclr.

>+      mr_ioctl.in.mem_create.vaddr_padding =
>+ (ULONG_PTR)p_mr_create->vaddr;

Pretty much every instance of embedded structures in IOCTLs was broken in this way.  There were cases where things were closer to being right:

>core\al\user\ual_qp.c, ual_create_qp@313
>        */
>       qp_ioctl.in.h_pd = h_pd->obj.hdl;
>       qp_ioctl.in.qp_create = *p_qp_create;

Ok, same copy issue as above...

>       qp_ioctl.in.qp_create.h_rq_cq =
>               (ib_cq_handle_t)HDL_TO_PTR(p_qp_create->h_rq_cq->obj.hdl);
>       qp_ioctl.in.qp_create.h_sq_cq =
>
> (ib_cq_handle_t)HDL_TO_PTR(p_qp_create->h_sq_cq->obj.hdl);

Ah, close but not quite - you have the assignment, but it only assigns the pointer part of the TO_LONG_PTR union.  The padding is still a copy of the user's structure, potentially giving an invalid handle in the kernel.  All uses of HDL_TO_PTR were eliminated as they didn't actually accomplish anything.

This patch fixes this, and always uses the 'padding' field of the TO_LONG_PTR union so that the value is always fully set.

There's also a bug fixed in UD work requests that get sent via IOCTL - the AV handle was never swizzled to its appropriate kernel handle.

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

16 years ago[IBAL] Remove TO_LONG_PTR from IOCTL structures.
leonidk [Sun, 13 Jul 2008 10:51:31 +0000 (10:51 +0000)]
[IBAL] Remove TO_LONG_PTR from IOCTL structures.

This patch removes all instances of TO_LONG_PTR from internal IOCTL structures.  The only place TO_LONG_PTR should be used is in public structures that contain pointers and are exchanged between user-mode and kernel-mode.  Actually, the code should ideally have proxy structures for such API structures into which API structure members
are copied member-wise, and whose size is fixed.  Unused pointers should be stripped from the IOCTL proxy structures.  But that's a change for some other time...

All fields in internal IOCTL structures that were formerly TO_LONG_PTR are not uint64_t, and all uses have appropriate casts.

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

16 years ago[IBAL] Remove PD context from IOCTLs.
leonidk [Sun, 13 Jul 2008 10:47:12 +0000 (10:47 +0000)]
[IBAL] Remove PD context from IOCTLs.
IBAL's ib_query_qp and ib_query_mw IOCTLs return the PD context in the output IOCTL buffer.  It is however never referenced.

This patch removes the fields (which had been changed to TO_LONG_PTR).

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

16 years ago[IBAL, HW] Remove pointers from ci_umv_buf_t.
leonidk [Sun, 13 Jul 2008 10:43:22 +0000 (10:43 +0000)]
[IBAL, HW]  Remove pointers from ci_umv_buf_t.

Part of cleaning up the __ptr64 stuff properly - rather than use the TO_LONG_PTR in the ci_umv_buf_t structure, use uint64_t.

The problem with using TO_LONG_PTR in structures that are exchanged between 32-bit clients and 64-bit drivers is that care must be taken to ensure that the upper 'padding' bytes are cleared properly.

Making the field a uint64_t makes it fool proof (though it does require casting, but at least the compiler will trap errors unlike for the padding.)

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

16 years ago[INC] Clean up TO_LONG_PTR use in ib_types.h.
leonidk [Sun, 13 Jul 2008 10:39:47 +0000 (10:39 +0000)]
[INC]  Clean up TO_LONG_PTR use in ib_types.h.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1383 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[INC] Remove STRUCT_PTR64.
leonidk [Sun, 13 Jul 2008 10:34:29 +0000 (10:34 +0000)]
[INC]  Remove STRUCT_PTR64.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1382 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[INC] Remove TYPEDEF_PTR64.
leonidk [Sun, 13 Jul 2008 10:31:12 +0000 (10:31 +0000)]
[INC]  Remove TYPEDEF_PTR64.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1381 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL, HW, IPOIB] Remove VOID_PTR64.
leonidk [Sun, 13 Jul 2008 10:28:11 +0000 (10:28 +0000)]
[IBAL, HW, IPOIB] Remove VOID_PTR64.
Also fixed GPL license and missing copyright issues.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1380 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[HW] Remove FUNC_PTR64.
leonidk [Sun, 13 Jul 2008 10:24:27 +0000 (10:24 +0000)]
[HW] Remove FUNC_PTR64.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1379 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[COMPLIB] This patch removes a useless comment.
leonidk [Sun, 13 Jul 2008 10:20:55 +0000 (10:20 +0000)]
[COMPLIB] This patch removes a useless comment.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1378 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[MTHCA] This patch cleans up the atomic_set function in the HCA drivers.
leonidk [Sun, 13 Jul 2008 10:16:17 +0000 (10:16 +0000)]
[MTHCA] This patch cleans up the atomic_set function in the HCA drivers.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1377 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] Cleanup ND reject IOCTL handling.
leonidk [Sun, 13 Jul 2008 09:10:39 +0000 (09:10 +0000)]
[IBAL] Cleanup ND reject IOCTL handling.
This patch removes a local variable, and changes the reject reason from IB_REJ_INSUF_QP to IB_REJ_USER_DEFINED.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1376 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[OPENMS] This patch removes XXX_PTR64 and TO_ULONG_PTR from OpenSM.
leonidk [Sun, 13 Jul 2008 08:55:53 +0000 (08:55 +0000)]
[OPENMS] This patch removes XXX_PTR64 and TO_ULONG_PTR from OpenSM.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1375 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[IBAL] Change CEP DREP API
leonidk [Sun, 13 Jul 2008 08:52:24 +0000 (08:52 +0000)]
[IBAL] Change CEP DREP API

The al_cep_drep API currently takes the ib_cm_drep_t structure.  This structure is passed in the IOCTL.  It has en embedded pointer that isn't used since the private data is copied into the IOCTL structure.

This patch removes the ib_cm_drep_t structure from the IOCTL structure, and passes the private data buffer and length in explicitly.

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

16 years ago[TOOLS] This patch cleans up the includes for the HCA co-installer and corrects the...
leonidk [Sun, 13 Jul 2008 08:29:42 +0000 (08:29 +0000)]
[TOOLS] This patch cleans up the includes for the HCA co-installer and corrects the version information to correctly identify the DLL as such (rather than as an executable).
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1373 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[CORE, ULP] fix file version fields. [MLNX: 2748]
leonidk [Sun, 13 Jul 2008 08:19:26 +0000 (08:19 +0000)]
[CORE, ULP] fix file version fields. [MLNX: 2748]
Signed-off-by: Reuven Amitai <reuven@mellanox.co.il>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1372 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

16 years ago[WinOF] added clean option, clearer usage test, cleanup.
stansmith [Fri, 11 Jul 2008 19:08:03 +0000 (19:08 +0000)]
[WinOF] added clean option, clearer usage test, cleanup.

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

16 years ago[DAPL2] synchronize with OFED 1.4 DAT/DAPL code base.
stansmith [Fri, 11 Jul 2008 19:05:54 +0000 (19:05 +0000)]
[DAPL2] synchronize with OFED 1.4 DAT/DAPL code base.

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

16 years agoFix typo in comment
shefty [Fri, 11 Jul 2008 17:35:11 +0000 (17:35 +0000)]
Fix typo in comment

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

16 years agoAdd missing copyright.
ftillier [Fri, 11 Jul 2008 16:00:48 +0000 (16:00 +0000)]
Add missing copyright.

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