12 years agowinmad: revert changes from commit 2512
shefty [Tue, 3 Nov 2009 17:20:07 +0000 (17:20 +0000)]
winmad: revert changes from commit 2512

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

12 years agolibrdmacm: remove unneeded defines
shefty [Tue, 3 Nov 2009 17:07:14 +0000 (17:07 +0000)]
librdmacm: remove unneeded defines

libibverbs provides uint_* defines in verbs.h which is included by rdma_cma.h

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

12 years agoIn order to support opensm running over winmad (via the libibumad),
shefty [Tue, 3 Nov 2009 16:45:38 +0000 (16:45 +0000)]
In order to support opensm running over winmad (via the libibumad),
we need to set the IsSM PortInfo capability bit when it is present.
We do this in the winmad driver based on the user registering for
unsolicted directed route SMPs.  The bit is unset when that user goes

In order to set the capability bit, we need to add ib_modify_ca()
to the IB_AL interface.  The interface GUID is updated as a result.

For opensm, a call to umad_register (directly or indirectly through
another library), should result in setting the IsSM capability bit
correctly.  No additional work is required, such as calling
umad_get_issm_path and opening a separate file, as is done on linx.
This will require a platform specific handling in the opensm code.

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

12 years ago[OPENSM] return files to WinOF 2.1 state as the commits were incorrectly done here...
stansmith [Mon, 2 Nov 2009 23:40:07 +0000 (23:40 +0000)]
[OPENSM] return files to WinOF 2.1 state as the commits were incorrectly done here, intended for branches\opensm_3; talk about having a bad day...

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

12 years ago[IPOIB,IPOIB_NDIS6_CM] revert to previous version using hard-coded OS constants as...
stansmith [Mon, 2 Nov 2009 17:53:21 +0000 (17:53 +0000)]
[IPOIB,IPOIB_NDIS6_CM] revert to previous version using hard-coded OS constants as WinDDK\6001.1801 has build problems with symbolic constants.

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

12 years ago[DAPL] Sync with latest 2.0.24 OFED release
stansmith [Sat, 31 Oct 2009 00:27:53 +0000 (00:27 +0000)]
[DAPL] Sync with latest 2.0.24 OFED release

Summary of changes since last release:

v2 - winof: Utilize WinOF version of inet_ntop() for Windows OSes which do not support inet_ntop().
v2 - winof: ucm windows build issue with new CQ completion channel
v2 - winof: add ucm provider to windows build
v2 - winof: add missing build files for ibal, scm
v2 - scm: connection peer resets under heavy load, incorrect event on error
v2 - ucm: increase default reply and rtu timeout values.
v2 - ucm: change some debug message levels and add check for valid UD REPLY during retries.
v2 - ucm: increase timers during subsequent retries
v2 - ucm, scm: address handles need destroyed when freeing Endpoints with UD QP's.
v2 - openib_common: ignore pd free errors, clear pd_handle and return.
v2 - ucm: using UD type QP's, ucm reports wrong reject event when user rejects AH resolution request.
v2 - ucm, scm, cma: Fix CNO support on DTO type EVD's
v2 - ucm: fix lock init bug in ucm_cm_find
v2 - ucm: fix build problem with latest windows ucm changes
v2 - ucm: HCA should not be closed until all resources have been released.
v2 - ucm: build warning when compiling on 32-bit systems.
v2 - ucm: trying to deregister the same memory region twice
v2 - dat: reduce debug message level when parsing for location of dat.conf
v2 - ucm: update ucm provider for windows environment
v2 - ucm: add timer/retry CM logic to the ucm provider

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

12 years ago[IPOIB_NDIS6] remove ND file references (ibndprov.dll) from IA64 install section...
stansmith [Fri, 30 Oct 2009 23:07:18 +0000 (23:07 +0000)]
[IPOIB_NDIS6] remove ND file references (ibndprov.dll) from IA64 install section as they don't exist.

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

12 years ago[LIBIBVERBS] add ECONNRESET mapped to MSFT WSAECONNRESET for OFED porting.
stansmith [Fri, 30 Oct 2009 23:04:13 +0000 (23:04 +0000)]

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

12 years agolibibumad: match behavior of linux tree
shefty [Thu, 29 Oct 2009 22:19:07 +0000 (22:19 +0000)]
libibumad: match behavior of linux tree

Port GUIDs should be stored in an array index equal to the port number.  We need to start at array index 1, rather than 0 to support this.

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

12 years ago[WINOF] inf2cat.exe returns (-1) which doesn't work well with 'ERRORLEVEL 1' use...
stansmith [Thu, 29 Oct 2009 21:53:48 +0000 (21:53 +0000)]
[WINOF] inf2cat.exe returns (-1) which doesn't work well with 'ERRORLEVEL 1' use !ERRORLEVEL! which is evaluated upon access.

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

12 years ago[WINOF] simplify error handling with a for() loop
stansmith [Thu, 29 Oct 2009 21:45:37 +0000 (21:45 +0000)]
[WINOF] simplify error handling with a for() loop

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

12 years ago[WINOF] Include Winverbs ND provider plus ndinstall.exe for all architectures.
stansmith [Thu, 29 Oct 2009 21:03:09 +0000 (21:03 +0000)]
[WINOF] Include Winverbs ND provider plus ndinstall.exe for all architectures.

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

12 years ago[WINOF] enhance driver file copy error reporting by incorporating a for() loop to...
stansmith [Thu, 29 Oct 2009 20:59:21 +0000 (20:59 +0000)]
[WINOF] enhance driver file copy error reporting by incorporating a for() loop to copy ipoib & qlgcvnic drivers. Include Winverbs ND provider in binary tree creation.

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

12 years ago[IPOIB] NDIS 5 & NDIS 6 versions: use a symbolic constant to identify Windows version...
stansmith [Mon, 26 Oct 2009 23:40:57 +0000 (23:40 +0000)]
[IPOIB] NDIS 5 & NDIS 6 versions: use a symbolic constant to identify Windows version in makefile.

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

12 years ago[COMPLIB] fixed some bugs in not used functions. [mlnx: 4956]
leonidk [Mon, 26 Oct 2009 10:32:25 +0000 (10:32 +0000)]
[COMPLIB] fixed some bugs in not used functions. [mlnx: 4956]

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

12 years ago[MLX4] fix compilation bug in the previous patch
leonidk [Mon, 26 Oct 2009 10:31:27 +0000 (10:31 +0000)]
[MLX4] fix compilation bug in the previous patch

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

12 years ago[MLX4] Allocate and map sufficient ICM memory for EQ context. [mlnx: 4946]
leonidk [Mon, 26 Oct 2009 10:30:10 +0000 (10:30 +0000)]
[MLX4] Allocate and map sufficient ICM memory for EQ context. [mlnx: 4946]

    The current implementation allocates a single host page for EQ context
    memory, which was OK when we only allocated a few EQs.  However, since
    we now allocate an EQ for each CPU core, this patch removes the
    hard-coded limit (which we exceed with 4 KB pages and 128 byte EQ
    context entries with 32 CPUs) and uses the same ICM table code as all
    other context tables, which ends up simplifying the code quite a bit
    while fixing the problem.

    This problem was actually hit in practice on a dual-socket Nehalem box
    with 16 real hardware threads and sufficiently odd ACPI tables that it
    shows on boot

        SMP: Allowing 32 CPUs, 16 hotplug CPUs

    so num_possible_cpus() ends up 32, and mlx4 ends up creating 33 MSI-X
    interrupts and 33 EQs.  This mlx4 bug means that mlx4 can't even
    initialize at all on this quite mainstream system.

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

12 years ago[MLX4] added support for 26438 and 26488 devices. [mlnx: 4943]
leonidk [Mon, 26 Oct 2009 10:29:14 +0000 (10:29 +0000)]
[MLX4] added support for 26438 and 26488 devices. [mlnx: 4943]

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

12 years ago[MLX4] limit the process of reading VPD with timeout, but continue to work on error...
leonidk [Mon, 26 Oct 2009 10:14:38 +0000 (10:14 +0000)]
[MLX4] limit the process of reading VPD with timeout, but continue to work on error. [mlnx: 4879]

This patch solves the freeze of the driver in case when FW doesn't provide VPD.
(in fact - it's a workaround of a FW bug).
VPD is not used today in IB drivers.

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

12 years ago[MLX4] add 2 new functions to Eth interface: mlx4_register_vlan/mlx4_unregister_vlan...
leonidk [Mon, 26 Oct 2009 10:12:47 +0000 (10:12 +0000)]
[MLX4] add 2 new functions to Eth interface: mlx4_register_vlan/mlx4_unregister_vlan. [mlnx: 4847,4853]

The version of the interface has been increased!
Not relevant to IB drivers.

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

12 years ago[IBBUS,IPoIB] add debug prints. [mlnx: 4838]
leonidk [Mon, 26 Oct 2009 10:10:01 +0000 (10:10 +0000)]
[IBBUS,IPoIB] add debug prints. [mlnx: 4838]

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

12 years ago[CORE,HW] replace using of Paged pool by NonPaged one. [mlnx: 4836]
leonidk [Mon, 26 Oct 2009 10:05:59 +0000 (10:05 +0000)]
[CORE,HW] replace using of Paged pool by NonPaged one. [mlnx: 4836]

We see from time to time BSODs at shutdown times while a hard traffic load.
It can be attributed to the fact that some of the structured used in PnP and Power Management are allocated in Paged Pool.
As far as these structures are of little size it is safer to use for them always NonPagedPool.
It makes the driver more robust.

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

12 years ago[MLX4] behavior change: on conflict between requested and supported port type, start...
leonidk [Mon, 26 Oct 2009 09:55:44 +0000 (09:55 +0000)]
[MLX4] behavior change: on conflict between requested and supported port type, start up normally with the latter one.

The previous behavior was to issue an error and start up in "livefish" mode.
It is relevant only for Mellanox VPI (= hybrid IB/Ethernet) cards.

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

12 years ago[MLX4] added support for 26478 device. [mlnx: 4766]
leonidk [Mon, 26 Oct 2009 09:53:29 +0000 (09:53 +0000)]
[MLX4] added support for 26478 device. [mlnx: 4766]

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

12 years ago[IBBUS,HW] add standby/hibernation support to IBBUS. [mlnx: 4750]
leonidk [Mon, 26 Oct 2009 09:35:50 +0000 (09:35 +0000)]
[IBBUS,HW] add standby/hibernation support to IBBUS. [mlnx: 4750]

Mellanox HW doesn't support neither standby nor hibernation.
To simulate such support, low-level driver resets HCA on power down and starts it up on power up.
IBBUS, continuing to work with HCA, produces BSODs.

This patch deregisters HCA from IBAL on power down and re-registers it on power up.

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

12 years ago[ipoib] Make the ndis 5 version compile only on windows 2003 and lower.
tzachid [Sun, 25 Oct 2009 13:02:03 +0000 (13:02 +0000)]
[ipoib] Make the ndis 5 version compile only on windows 2003 and lower.

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

12 years ago[ipoib6] Remove a wrong version of the files.
tzachid [Sun, 25 Oct 2009 12:44:38 +0000 (12:44 +0000)]
[ipoib6] Remove a wrong version of the files.

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

12 years ago[ipoib] Add Missing files.
tzachid [Sun, 25 Oct 2009 12:41:52 +0000 (12:41 +0000)]
[ipoib] Add Missing files.

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

12 years ago[OPENSM] version 3.3.2 work-in-progress
stansmith [Sat, 24 Oct 2009 00:58:23 +0000 (00:58 +0000)]
[OPENSM] version 3.3.2 work-in-progress

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

12 years ago[INC] add defines and inline functions from OFED management ib_types.h in order to...
stansmith [Sat, 24 Oct 2009 00:32:28 +0000 (00:32 +0000)]
[INC] add defines and inline functions from OFED management ib_types.h in order to build OpenSM 3.3.2 using only trunk\inc\*. Tested by building & installing a WinOF release using current openSM and newer openSM; no observed differences.

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

12 years ago[WIX] Added explicit Windows Volume (%SystemDrive%\)for DAT config & SDK directories...
stansmith [Fri, 23 Oct 2009 02:26:00 +0000 (02:26 +0000)]
[WIX] Added explicit Windows Volume (%SystemDrive%\)for DAT config  & SDK directories. Required as older installers do not default TARGET dir to Windows Volume.

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

12 years ago[WINOF] Remove useless UI clause.
stansmith [Fri, 23 Oct 2009 02:09:31 +0000 (02:09 +0000)]
[WINOF] Remove useless UI clause.

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

12 years ago[WinOF] document mlx4 driver load sequencing: bus 1st, then hca.
stansmith [Fri, 23 Oct 2009 02:07:06 +0000 (02:07 +0000)]
[WinOF] document mlx4 driver load sequencing: bus 1st, then hca.

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

12 years ago[WINOF] add WinOF release number to the start menu WinOF uninstall shortcut.
stansmith [Fri, 23 Oct 2009 02:03:29 +0000 (02:03 +0000)]
[WINOF] add WinOF release number to the start menu WinOF uninstall shortcut.

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

12 years ago[NDINSTALL] enable ia64 build of ndinstall.exe for the WinVerbs ia64 ND provider.
stansmith [Fri, 23 Oct 2009 01:58:53 +0000 (01:58 +0000)]
[NDINSTALL] enable ia64 build of ndinstall.exe for the WinVerbs ia64 ND provider.

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

12 years ago[ULP] enable NetDirect (ND provider over WinVerbs).
stansmith [Fri, 23 Oct 2009 01:53:01 +0000 (01:53 +0000)]
[ULP] enable NetDirect (ND provider over WinVerbs).

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

12 years ago[ipoib 6] Bug fixes to the driver.
tzachid [Wed, 21 Oct 2009 10:10:40 +0000 (10:10 +0000)]
[ipoib 6] Bug fixes to the driver.

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

12 years ago[IBAL] Fix for cid on QP (for cm QPs).
tzachid [Tue, 20 Oct 2009 09:26:58 +0000 (09:26 +0000)]
[IBAL] Fix for cid on QP (for cm QPs).

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

12 years ago[INC] added defines for strcasecmp() & strtouq()
stansmith [Mon, 19 Oct 2009 18:08:52 +0000 (18:08 +0000)]
[INC] added defines for strcasecmp() & strtouq()

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

12 years ago[WSD] Add fall back to wsd (extended APM).
tzachid [Sun, 18 Oct 2009 11:20:08 +0000 (11:20 +0000)]
[WSD] Add fall back to wsd (extended APM).

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

12 years ago[mlx4_bus] Move our bus driver to be a network driver.
tzachid [Sun, 18 Oct 2009 09:31:29 +0000 (09:31 +0000)]
[mlx4_bus] Move our bus driver to be a network driver.

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

12 years ago[ibal] Allow cm to send a lap request after a failed (by timeout) lap request.
tzachid [Thu, 15 Oct 2009 13:44:15 +0000 (13:44 +0000)]
[ibal] Allow cm to send a lap request after a failed (by timeout) lap request.

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

12 years agoetc/linux: add netdb.h header file for linux portability
shefty [Wed, 30 Sep 2009 22:50:46 +0000 (22:50 +0000)]
etc/linux: add netdb.h header file for linux portability

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

12 years agowinverbs: map WSA error codes to winverbs status values
shefty [Wed, 30 Sep 2009 22:37:14 +0000 (22:37 +0000)]
winverbs: map WSA error codes to winverbs status values

Intel MPI bases decisions on the correct status value being returned and mapped correctly through uDAPL.

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

12 years agowinverbs: store devices in order that they are added
shefty [Wed, 30 Sep 2009 22:35:57 +0000 (22:35 +0000)]
winverbs: store devices in order that they are added

Maintaining and reporting devices in the same order that they are seen by the driver assists users in mapping IPoIB devices to verbs.

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

12 years agolibibverbs: delete MR when unregistering
shefty [Wed, 30 Sep 2009 22:33:27 +0000 (22:33 +0000)]
libibverbs: delete MR when unregistering

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

12 years agodapl: updated to commit 23445bbbd3a09f7f5e666a000d5c7c3b22dd95b3
shefty [Wed, 30 Sep 2009 22:01:34 +0000 (22:01 +0000)]
dapl: updated to commit 23445bbbd3a09f7f5e666a000d5c7c3b22dd95b3

plus a couple of patches to make it build

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

12 years agoib-mgmt:
shefty [Wed, 30 Sep 2009 21:56:11 +0000 (21:56 +0000)]

update to commit 0abb828175450b873521d4917c3edb0a7b57c337
plus fixes to build that are submitted back upstream

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

12 years ago[ibbus] Remove setting of the cid from the QP due to compilation error.
tzachid [Thu, 24 Sep 2009 13:15:18 +0000 (13:15 +0000)]
[ibbus] Remove setting of the cid from the QP due to compilation error.

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

12 years ago[ibbus] Add support for APM using the CM to pass messages.
tzachid [Thu, 24 Sep 2009 09:33:33 +0000 (09:33 +0000)]
[ibbus] Add support for APM using the CM to pass messages.

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

12 years ago[WSD] Add basic support for APM to wsd.
tzachid [Thu, 24 Sep 2009 09:05:23 +0000 (09:05 +0000)]
[WSD] Add basic support for APM to wsd.

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

12 years agowinverbs: fix crash accessing freed memory from async thread
shefty [Wed, 23 Sep 2009 21:46:19 +0000 (21:46 +0000)]
winverbs: fix crash accessing freed memory from async thread

If an application exits while asynchronous accept processing is queued,
it's possible for the async processing to access the IbCmId after it has
been freed.  A similar problem to this was fixed that dealt with accessing
the verbs QP handle.

A simpler, more generic solution to this problem is to handle application
exit in the same manner as device removal, and lock the winverb provider
lookup lists with exclusive access.  Asynchronous operations that are in
process will run to completion, and future operations will be blocked until
the provider cleanup thread has completed.  Once they run, they will fail
to acquire a reference on the desired object, which should result in a
graceful failure.

This avoids more complicated locking to use handles belonging to the lower
level code.  If a reference on an object can be acquired, the handle will
be available for use until the reference is released.  To handle IB CM
callbacks, additional state checking is required to avoid processing
CM events when we're trying to destroy the endpoint.

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

12 years agowinverbs/libibverbs: use private heap space
shefty [Wed, 23 Sep 2009 21:45:42 +0000 (21:45 +0000)]
winverbs/libibverbs: use private heap space

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

12 years agolibrdmacm: add back in missing cma_dev_cnt
shefty [Wed, 23 Sep 2009 21:38:40 +0000 (21:38 +0000)]
librdmacm: add back in missing cma_dev_cnt

Initialization lost when moving patches from branch to trunk.

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

12 years agolibrdmacm: allow for graceful cleanup of verbs
shefty [Wed, 23 Sep 2009 21:35:19 +0000 (21:35 +0000)]
librdmacm: allow for graceful cleanup of verbs

Have librdmacm release libibverbs resources when they are no longer in use.  This provides for more graceful cleanup of verbs resources.

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

12 years agolibibumad: implement 'dump' functions
shefty [Wed, 23 Sep 2009 21:22:02 +0000 (21:22 +0000)]
libibumad: implement 'dump' functions

print mad information in 'dump' routines previously left unimplemented

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

12 years agoetc/search: handle malloc failures and fix build warnings
shefty [Wed, 23 Sep 2009 21:20:02 +0000 (21:20 +0000)]
etc/search: handle malloc failures and fix build warnings

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

12 years ago[DAPL2] sync with WinOF 2.1 branch
stansmith [Fri, 18 Sep 2009 23:19:41 +0000 (23:19 +0000)]
[DAPL2] sync with WinOF 2.1 branch

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

12 years ago[WinOF] detect possible ConnectX HCA driver load failure and suggest examination...
stansmith [Fri, 18 Sep 2009 21:24:01 +0000 (21:24 +0000)]
[WinOF] detect possible ConnectX HCA driver load failure and suggest examination of system event log to ascertain if invalid firmware is an issue.

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

12 years ago[WinOF,ETC] When building with latest WDK, turn off OACR (Auto-Code-Review) as it...
stansmith [Thu, 17 Sep 2009 22:41:17 +0000 (22:41 +0000)]
[WinOF,ETC] When building with latest WDK, turn off OACR (Auto-Code-Review) as it slows down the build process.
Remove extra 'call' when invoking bldwo.bat from buildrelease.bat.

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

12 years ago[WinOF] Enable Windows 7 & Svr 2008 R2 build support by making WDK 7600.16385.0 the...
stansmith [Thu, 17 Sep 2009 16:52:37 +0000 (16:52 +0000)]
[WinOF] Enable Windows 7 & Svr 2008 R2 build support by making WDK 7600.16385.0 the default build env when using winof\buildrelease.bat to build a release; only affects builds using buildrelease.bat script.

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

12 years ago[WinOF] Oops...used Wix 3.0 Platform identifiers in Wix 2.0 environment. Use 'Intel...
stansmith [Thu, 17 Sep 2009 16:46:40 +0000 (16:46 +0000)]
[WinOF] Oops...used Wix 3.0 Platform identifiers in Wix 2.0 environment. Use 'Intel' instead of 'x86' until Wix 3.0 transition.

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

12 years ago[HW] fixes to APM support: missed some lines and apm_state was not converted into...
tzachid [Thu, 17 Sep 2009 16:43:18 +0000 (16:43 +0000)]
[HW] fixes to APM support: missed some lines and apm_state was not converted into low-driver format
Signed off by: leonid@mellanox.co.il

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

12 years ago[WinOF] Identify platform processor architecture [32/64 bit] for which the installer...
stansmith [Wed, 16 Sep 2009 21:54:33 +0000 (21:54 +0000)]
[WinOF] Identify platform processor architecture [32/64 bit] for which the installer is targeted.  Use the new include file WinOF\Wix\common\UserInterface.inc to define the WIX UI for all installer variants.

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

12 years ago[WinOF] reduce Wix installer (.msi file generation) complexity & redundancy by moving...
stansmith [Wed, 16 Sep 2009 21:45:05 +0000 (21:45 +0000)]
[WinOF] reduce Wix installer (.msi file generation) complexity & redundancy by moving bulk of Makefile to a parameterized WinOF\Wix\common\Makefile.inc

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

12 years ago[IBAL] use non-pageable memory to prevent possible problems on power down. [mlnx...
leonidk [Wed, 16 Sep 2009 16:16:08 +0000 (16:16 +0000)]
[IBAL] use non-pageable memory to prevent possible problems on power down. [mlnx: 4809]

Suggested by Hobin Lee (Xsigo)

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

12 years ago[WinOF] remove redundant 'root' folder specifications as TARGETDIR is the %SysVolume...
stansmith [Tue, 15 Sep 2009 23:40:42 +0000 (23:40 +0000)]
[WinOF] remove redundant 'root' folder specifications as TARGETDIR is the %SysVolume% 'root' (aka 'slash'). Identify 64-bit installers along with installing WinOF into ProgramFiles64 folder which == ProgramFiles; install WinOF in the same folder for all architectures.

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

12 years ago[WinOF] reflect WinOF is no longer installed in %ProgramFiles(x86)% on 64-bit archite...
stansmith [Tue, 15 Sep 2009 23:34:20 +0000 (23:34 +0000)]
[WinOF] reflect WinOF is no longer installed in %ProgramFiles(x86)% on 64-bit architectures, use %ProgramFiles% for all.

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

12 years ago[WinOF] Reflect WinOF installs into %ProgramFiles%. Use signature from from new OFA...
stansmith [Tue, 15 Sep 2009 23:30:50 +0000 (23:30 +0000)]
[WinOF] Reflect WinOF installs into %ProgramFiles%. Use signature from from new OFA digital-ID certificate.

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

12 years ago[WinOF/DAPL2] reflect WinOF now installs into %ProgramFiles% on all systems, not...
stansmith [Tue, 15 Sep 2009 23:28:24 +0000 (23:28 +0000)]
[WinOF/DAPL2] reflect WinOF now installs into %ProgramFiles% on all systems, not %ProgramFiles(x86)%.
Move Dat/Dapl 1.1 providers to the end of the list for those MPIs which use the 1st available provider; ends up defaulting to DAT/DAPL V2.0. Thus begins the phasing out of DAT/DAPL 1.1 support.

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

12 years ago[WinOF] Streamline driver uninstall and cleanup to play nicely with MSFT PNP; believe...
stansmith [Tue, 15 Sep 2009 23:25:25 +0000 (23:25 +0000)]
[WinOF] Streamline driver uninstall and cleanup to play nicely with MSFT PNP; believe PNP will cleanup .inf referenced files when device references have reached zero (shutdown ND & WSD services prior to PNP device removal).

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

12 years ago[WinOF] Place librdmacm.dll in %windir% folder along with the rest of the WinOF libs...
stansmith [Tue, 15 Sep 2009 23:19:33 +0000 (23:19 +0000)]
[WinOF] Place librdmacm.dll in %windir% folder along with the rest of the WinOF libs. Review folder usage to consider using system32/syswow64 at a later date.

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

12 years ago[WinOF] Include Trusted Publishers certificate feature in Windows-7 x64 (aka Server...
stansmith [Tue, 15 Sep 2009 23:17:23 +0000 (23:17 +0000)]
[WinOF] Include Trusted Publishers certificate feature in Windows-7 x64 (aka Server 2008 R2).

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

12 years ago[WinOF] do not force OpenSM service to be 32-bit
stansmith [Tue, 15 Sep 2009 23:15:50 +0000 (23:15 +0000)]
[WinOF] do not force OpenSM service to be 32-bit

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

12 years ago[WinOF] remove correct WinOF shortcut folder & rename WinOF start menu Command link...
stansmith [Tue, 15 Sep 2009 23:14:27 +0000 (23:14 +0000)]
[WinOF] remove correct WinOF shortcut folder & rename WinOF start menu Command link to 'WinOF Command' so as not to confuse the Svr 2008 start menu auto include entries.

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

12 years ago[MLX4] add prints to Event Log in case of HCA resetting. [mlnx: 4723]
leonidk [Thu, 3 Sep 2009 12:56:20 +0000 (12:56 +0000)]
[MLX4] add prints to Event Log in case of HCA resetting. [mlnx: 4723]

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

12 years ago[IBBUS,COMPLIB] Eliminate re-initialization of the stop lock. Crash reported upon...
stansmith [Wed, 2 Sep 2009 16:43:38 +0000 (16:43 +0000)]
[IBBUS,COMPLIB] Eliminate re-initialization of the stop lock. Crash reported upon running “System Common Scenario” WHQL test with our stack. The crash: C4 (0xd7), which means Driver Verifier revealed a re-initializing of Remove Lock.
Signed-off by Leonid Keller leonid@mellanox.co.il

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

12 years agodapl: fix build from comp_channel changes
shefty [Wed, 2 Sep 2009 16:28:10 +0000 (16:28 +0000)]
dapl: fix build from comp_channel changes

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

12 years agoetc/inet: use native inet_ntop and inet_pton on windows 6.0 and above
shefty [Wed, 2 Sep 2009 15:35:34 +0000 (15:35 +0000)]
etc/inet: use native inet_ntop and inet_pton on windows 6.0 and above

inet_ntop and inet_pton were added to windows 2008 and above.  Only implement for windows 2003 or older.

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

12 years agolinux/search.h: add tsearch tree abstraction
shefty [Wed, 2 Sep 2009 15:33:42 +0000 (15:33 +0000)]
linux/search.h: add tsearch tree abstraction

Implement a tsearch, tfind tree abstraction for use by platform independent code.  Internally, this uses complib on windows platforms.

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

12 years agolinux/socket.h: add header file
shefty [Wed, 2 Sep 2009 15:31:15 +0000 (15:31 +0000)]
linux/socket.h: add header file

Define socket.h header file for use by platform independent code.  It simply wraps an include around winsock2.h.

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

12 years agoetc/comp_channel: add support for channel sets
shefty [Wed, 2 Sep 2009 15:30:03 +0000 (15:30 +0000)]
etc/comp_channel: add support for channel sets

To better mimic Linux fd support, add the concept of channel sets to completion channels.  This is needed to minimize changes in platform independent uDAPL code.

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

12 years agowinverbs: fix race in async connect handling
shefty [Wed, 2 Sep 2009 15:08:17 +0000 (15:08 +0000)]
winverbs: fix race in async connect handling

If an application calls Connect or Accept, their IRP is queued to a
work queue for asynchronous processing.  However, if the application
crashes or exits before the work queue can process the IRP, the cleanup
code will call WvEpFree().  This destroys the IbCmId.

When the work queue finally runs, it can access a freed IbCmId.
This is bad.  A similar race exists with the QP and the asynchronous
disconnect processing.  The disconnect processing can access a
the hVerbsQp handle after it has been destroyed.

Additionally, in all three cases, the IRPs assume that the WV provider
is able to process IRPs.  Specifically, they require that the index
tables maintained by the provider are still valid.  References must
be held on the WV provider until the IRPs finish their processing to
ensure this.

Fix invalid accesses to the IbCmId and hVerbsQp handles by locking
around their use after valid state checks.  In the case of the QP, we
add a guarded mutex for synchronization purposes and use that in place
where the PD mutex had been used.

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

12 years agowinmad: return correct error code
shefty [Wed, 2 Sep 2009 15:07:09 +0000 (15:07 +0000)]
winmad: return correct error code

Winmad returns an incorrect error code when using send or receive in synchronous mode.  The OFED MAD code ends up working, since it checks for errors by comparing the return value < 0.  In this case, the return value us positive, when it should be zero.  Simplify the code and return the correct error code.

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

12 years ago[HW] allow retrieving CA attributes with pageable memory
leonidk [Wed, 2 Sep 2009 15:06:56 +0000 (15:06 +0000)]
[HW] allow retrieving CA attributes with pageable memory

Modify the HCA drivers to support querying for attributes using a pageable buffer.  Since the query calls block, it seems appropriate for the calls to allow pageable memory, rather than forcing the user to allocate a non-paged buffer in order to obtain a list of attributes.  The problem stems from the HCA drivers accessing a user's buffer after acquiring a spinlock that raise IRQL.

This fixes kernel crashes with both the winmad and winverbs drivers.

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

12 years agowinmad: allocate registration struct from NonPagedPool
shefty [Wed, 2 Sep 2009 14:56:19 +0000 (14:56 +0000)]
winmad: allocate registration struct from NonPagedPool

Apparently data structures that are accessed from within MAD callbacks must be
allocated from NonPagedPool.  Allocated the WM_REGISTRATION structure from non
paged pool.

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

12 years ago[WinOF] All installs now install into 'Program Files' and not 'Program Files (x86...
stansmith [Sat, 29 Aug 2009 00:04:11 +0000 (00:04 +0000)]
[WinOF] All installs now install into 'Program Files' and not 'Program Files (x86)'..Cleanup references to \Program Files (x86)\WinOF.

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

12 years agowinverbs/winmad: use ExFreePoolWithTag
shefty [Fri, 28 Aug 2009 19:15:48 +0000 (19:15 +0000)]
winverbs/winmad: use ExFreePoolWithTag

To help match memory allocations with free, replace ExFreePool with

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

12 years agowinverbs: free port array
shefty [Thu, 27 Aug 2009 18:51:37 +0000 (18:51 +0000)]
winverbs: free port array

Fix a memory leak.  We need to free the port array, which is allocated separately from the device structure.

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

12 years agowinverbs: EP is not in a provider list, so don't try to remove it
shefty [Wed, 26 Aug 2009 16:47:57 +0000 (16:47 +0000)]
winverbs: EP is not in a provider list, so don't try to remove it

Endpoints are not maintained in a list associated with a provider.  The list
entry for an endpoint is used to track connection requests with listens.  When
an endpoint is unassociated from a listen, it is removed from the listen list.
Trying to remove it from a list during provider cleanup results in a duplicate
removal, can corrupt the listen list, and may access freed memory.

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

12 years agowinverbs: ensure that event and mutex memory are resident
shefty [Wed, 26 Aug 2009 16:47:11 +0000 (16:47 +0000)]
winverbs: ensure that event and mutex memory are resident

The winverbs PD structure contains both an event and a guarded mutex.  Both must
be allocated as part of resident memory, or vague system corruptions may occur
if their memory is paged out.

The fix is to allocate the PD structure from NonPagedPool.

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

12 years agolibrdmacm: fix race in ucma_init()
shefty [Wed, 26 Aug 2009 16:45:53 +0000 (16:45 +0000)]
librdmacm: fix race in ucma_init()

There's a potential race with ucma_init() and calls that check whether
the library is ready for use.  For example, in rdma_create_id, this
check is performed:

hr = cma_dev_cnt ? 0 : ucma_init();
if (hr) {
return hr;

Since the check for cma_dev_cnt is outside of any synchronization, if it
is non-zeroy, then the code will assume that initialization is complete.
However, ucma_init() can set cma_dev_cnt to non-zeroy before it has finished
executing.  The full impact of this race is unknown, but it can't be good.
In the worst case, the application may crash.

Fix this by ensuring that all initialization is complete before cma_dev_cnt
is incremented.  Note that ucma_init() provides synchronization to protect
against duplicate threads handling init.  The cma_dev_cnt check is used to
avoid synchronization on multiple calls into the library after initialization.

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

12 years agoofed libs: prevent double initialization of critical section
shefty [Wed, 26 Aug 2009 16:44:24 +0000 (16:44 +0000)]
ofed libs: prevent double initialization of critical section

DllMain is called multiple times for a given process.  Prevent double
initialization of critical sections by only initializing it during process
attach.  This avoids corrupting the critical section while it may be in use.

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

12 years ago[WIX] update usage instructions to reflect WinOF is now under Trunk\ and no longer...
stansmith [Wed, 19 Aug 2009 21:49:50 +0000 (21:49 +0000)]
[WIX] update usage instructions to reflect WinOF is now under Trunk\ and no longer under branches\ . Include win7\x64\wof.wxs as I missed it in the last commit.

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

12 years ago[DAPL2] %ERRORLEVEL% inside a for loop does not evaluate as expected; change to ...
stansmith [Wed, 19 Aug 2009 21:44:40 +0000 (21:44 +0000)]
[DAPL2] %ERRORLEVEL% inside a for loop does not evaluate as expected; change to !ERRORLEVEL!

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

12 years ago[DOCS] Update DAPL provider text w.r.t. names in DAT.conf file.
stansmith [Wed, 19 Aug 2009 21:41:48 +0000 (21:41 +0000)]
[DOCS] Update DAPL provider text w.r.t. names in DAT.conf file.

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

12 years agoib/port_attr: report active width as part of port attributes
shefty [Tue, 18 Aug 2009 19:22:47 +0000 (19:22 +0000)]
ib/port_attr: report active width as part of port attributes

Return the active width in the port attributes reported by the HCA.
Because the kernel and user space share the same source
files, to avoid breaking the ABI, rename link_width_supported
field to active_width and use that field to return the value.
link_width_supported is currently uninitialized and in the
svn tree unused, so repurposing the field should have minimal
impact.  However, this change will break the API.
Applications that reference the link_width_supported field
from struct _ib_port_attr will require a minor update if recompiled.

Update winverbs to report this value and fill in other
missing fields from the port attribute structure.  This fix
allows reporting the correct values through the libibverbs
port and ibv_devinfo example utility.

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

12 years ago[ipoib 6] Updated driver to the latest changes.
tzachid [Tue, 18 Aug 2009 14:47:56 +0000 (14:47 +0000)]
[ipoib 6] Updated driver to the latest changes.

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

12 years ago[IPoIB] IPoIB PXE boot support: Clear remainder of chaddr
stansmith [Mon, 17 Aug 2009 23:17:41 +0000 (23:17 +0000)]
[IPoIB] IPoIB PXE boot support: Clear remainder of chaddr

    The IPoIB PXE boot firmware (gPXE) now sends the 8-byte port GUID in
    the DHCP chaddr field.  WinOF replaces the first 6 bytes of chaddr
    with the Ethernet-style MAC address, but leaves the remainder
    untouched.  This results in trailing garbage after the Ethernet-style
    MAC in the modified chaddr.

    Fix by explicitly zeroing the remainder of chaddr.

Signed-off-by: Michael Brown <mcb30@etherboot.org>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2364 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

12 years ago[IBAT] allow simultaneous IBAT device access from user mode by adding RW sharing...
stansmith [Mon, 17 Aug 2009 23:11:00 +0000 (23:11 +0000)]
[IBAT] allow simultaneous IBAT device access from user mode by adding RW sharing attributes to CreateFileW() call. signed off by stan.smith@intel.com

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