tzachid [Sun, 7 Sep 2008 14:58:00 +0000 (14:58 +0000)]
[MLX4] fixed a bug in "livefish" mode. [mlnx: 3091]
The bug was in returning wrong query_ca results, which caused crashes in some scenarios and incorrect work of applications.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1556
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Fri, 5 Sep 2008 17:02:26 +0000 (17:02 +0000)]
[WinOF]
inc/oib_ver.h - VER_LEGALCOPYRIGHT_STR updated for 2008
inc/openib.def - VER_PROVIDER - OpneIB --> OpenFabrics
[ND] ulp\nd\user\SOURCES place fake binaries correctly in trunk\bin not ulp\bin.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1554
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
aestrin [Fri, 5 Sep 2008 15:26:43 +0000 (15:26 +0000)]
[IPoIB] reverted changes made by mistake.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1551
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
aestrin [Fri, 5 Sep 2008 14:18:09 +0000 (14:18 +0000)]
IPoIB CM updated to trunk rev 1499
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1549
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
aestrin [Thu, 4 Sep 2008 22:35:14 +0000 (22:35 +0000)]
updated to trunk rev 1341
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1548
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Mon, 1 Sep 2008 17:24:37 +0000 (17:24 +0000)]
[MLX4] fixed bug, causing crash in "livefish" mode. [mlnx: 3053]
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1542
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Mon, 1 Sep 2008 14:06:08 +0000 (14:06 +0000)]
[part_man] Removing unnecessary prints.
signed off by:Slava Strebkov [slavas@voltaire.com]
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1540
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Mon, 1 Sep 2008 12:47:58 +0000 (12:47 +0000)]
[IBAL] fix using of ual_get_gid_index()
The patch fixes accessing p_user_attr field which lead to access violation, the actual field is p_pnp_attr.
It also moves port checking to the head of the function stack.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1539
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 27 Aug 2008 17:01:46 +0000 (17:01 +0000)]
git-svn-id: svn://openib.tc.cornell.edu/gen1/branches/trunk@1531
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Wed, 27 Aug 2008 16:56:46 +0000 (16:56 +0000)]
[IBAL] add sanity check for port_num field in av verbs. [mlnx: 3052]
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1530
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Wed, 27 Aug 2008 16:53:54 +0000 (16:53 +0000)]
[MLX4] clean ibv_context (mutex is redundant since p_ca_attr was removed) [mlnx: 3051]
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1529
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 27 Aug 2008 16:41:03 +0000 (16:41 +0000)]
git-svn-id: svn://openib.tc.cornell.edu/gen1/branches/WOF2-0@1528
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 27 Aug 2008 16:35:48 +0000 (16:35 +0000)]
git-svn-id: svn://openib.tc.cornell.edu/gen1/branches/WOF2-0@1526
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 27 Aug 2008 16:28:20 +0000 (16:28 +0000)]
git-svn-id: svn://openib.tc.cornell.edu/gen1/branches/WOF2-0@1525
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 27 Aug 2008 15:44:49 +0000 (15:44 +0000)]
[WinOF] fighting with svn to get a branch of trunk....
git-svn-id: svn://openib.tc.cornell.edu/gen1/branches/WOF2-0@1522
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 27 Aug 2008 00:48:24 +0000 (00:48 +0000)]
[winof] marginal tool
git-svn-id: svn://openib.tc.cornell.edu/gen1/branches/WOF2-0@1521
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 27 Aug 2008 00:36:27 +0000 (00:36 +0000)]
[WinOF] branching into 2.0 release tree
git-svn-id: svn://openib.tc.cornell.edu/gen1/branches/WOF2-0@1520
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 27 Aug 2008 00:34:00 +0000 (00:34 +0000)]
[WInOF]
git-svn-id: svn://openib.tc.cornell.edu/gen1/branches/WOF2-0@1519
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Wed, 27 Aug 2008 00:32:54 +0000 (00:32 +0000)]
[WinOF] 2.0 root
git-svn-id: svn://openib.tc.cornell.edu/gen1/branches/WOF2-0@1518
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 26 Aug 2008 19:01:49 +0000 (19:01 +0000)]
[IBBUS] reconstituted omitted commits from 1499.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1516
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 26 Aug 2008 17:37:19 +0000 (17:37 +0000)]
[ipoib] Add support for large send offload in ipoib. (mlnx 3044)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1515
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 26 Aug 2008 17:36:39 +0000 (17:36 +0000)]
[mlx4] Add support for large send offload in mlx4. (mlnx: 3041)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1514
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 26 Aug 2008 17:35:52 +0000 (17:35 +0000)]
[ibal] Add support for large send offload. [mlnx: 3040]
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1513
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 26 Aug 2008 13:06:18 +0000 (13:06 +0000)]
[mlx4] Prepare for support in msi for windows 2008
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1512
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 26 Aug 2008 12:32:12 +0000 (12:32 +0000)]
[mlx4] Add support for Yatir (more device ids)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1511
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 26 Aug 2008 11:53:56 +0000 (11:53 +0000)]
[MTHCA] erge MR and FMR space on 64-bit systems (mlnx: 2960)
(Linux, 13/02/07, Michael S. Tsirkin, commit:
c20e20ab0f3af9a44842ea11287c9ecd034a5d33)
For Tavor, we currently reserve separate MPT and MTT space for FMRs to
avoid abusing the vmalloc space on 32 bit kernels. No such problem
exists on 64 bit kernels so let's not do it there.
This way we have a shared pool for MR and FMR resources, used on
demand. This will also make it possible to write MTTs for regular
regions directly from driver.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1510
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 26 Aug 2008 11:53:05 +0000 (11:53 +0000)]
[MTHCA] Give reserved MTTs a separate cache line (mlnx: 2959)
(Linux, 13/02/07, Michael S. Tsirkin, commit:
1d1f19cfce7687b557cebdc41bf8a5eeba8a9882)
MTTs are allocated in non-cache-coherent memory, so we must give
reserved MTTs their own cache line, to prevent both device and
CPU from writing into the same cache line at the same time.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1509
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 26 Aug 2008 11:51:37 +0000 (11:51 +0000)]
[MTHCA] Fix reserved MTTs calculation on mem-free HCAs (mlnx 2958)
(Linux, 13/02/07, Michael S. Tsirkin, commit:
c7d204e8fdf02f88d91707213f473805bcfb977b)
The reserved_mtts field has different meaning in Tavor and Arbel, so
we are wasting mtt entries on memfree. Fix the Arbel case to match
Tavor semantics.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1508
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Tue, 26 Aug 2008 11:50:45 +0000 (11:50 +0000)]
[MTHCA] Fix off-by-one in FMR handling on memfree (mlnx: 2957)
(Linux, 05/01/07, Michael S. Tsirkin, commit:
46707e96b7254663139225ab6c9ab9922cd8c435)
mthca_table_find() will return the wrong address when the table entry
being searched for is exactly at the beginning of a sglist entry
(other than the first), because it uses >= when it should use >.
Example: assume we have 2 entries in scatterlist, 4K each, offset is
4K. The current code will return first entry + 4K when we really want
the second entry.
In particular this means mapping an FMR on a memfree HCA may end up
writing the page table into the wrong place, leading to memory
corruption and also causing the HCA to use an incorrect address
translation table.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1507
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Tue, 26 Aug 2008 00:20:11 +0000 (00:20 +0000)]
[IBBUS] bus_port_mgr.c: resolve mysterious/unannounced port_guid_pkey --> port_guid_pkey_t typedef change.
bus_driver.c: missing function bus_rem_pkey() - hacked in missing stub routine in order to build.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1506
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 25 Aug 2008 22:05:17 +0000 (22:05 +0000)]
[CORE] ibbus as an upper class HCA filter
core/bus/kernel/bus_driver.c
core/bus/kernel/bus_driver.h
core/bus/kernel/bus_iou_mgr.c
core/bus/kernel/bus_iou_mgr.h
core/bus/kernel/bus_pnp.c
core/bus/kernel/bus_pnp.h
core/bus/kernel/bus_port_mgr.c
core/bus/kernel/bus_port_mgr.h
[HW]
hw/mlx4/kernel/hca/mlx4_hca.cdf
hw/mlx4/kernel/hca/mlx4_hca.inx
hw/mlx4/kernel/hca/mlx4_hca32.cdf
hw/mthca/kernel/mthca.cdf
hw/mthca/kernel/mthca.inx
hw/mthca/kernel/mthca32.cdf
etc/makebin.bat
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1504
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Mon, 25 Aug 2008 21:11:34 +0000 (21:11 +0000)]
[tests] add option to run ib_send_bw with events. (mlnx 3032)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1503
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 25 Aug 2008 20:03:45 +0000 (20:03 +0000)]
[WinVerbs] set winverbs.cat for driver signing of winverbs.sys
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1502
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 25 Aug 2008 19:34:52 +0000 (19:34 +0000)]
[WinVerbs] add the catalogue definition file - required for signing the winverbs.sys driver (winverbs.cat)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1501
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Mon, 25 Aug 2008 19:27:03 +0000 (19:27 +0000)]
[WinVerbs] sychronize IB class name IfniniBandController with Microsoft's view.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1500
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Mon, 25 Aug 2008 14:00:59 +0000 (14:00 +0000)]
[ipoib,core] Improve support for partitioning.
signed off by: Slava Strebkov [mailto:slavas@voltaire.com]
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1499
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Mon, 25 Aug 2008 12:57:47 +0000 (12:57 +0000)]
[mlx4] Fixed improper zero-memory allocation.
signed-off by: xalex (Alexander Naslednikov)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1498
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Sun, 24 Aug 2008 08:11:57 +0000 (08:11 +0000)]
[ipoib] fix for receiving mcast and bcast. (mlnx: 3023)
signed off by: Slava Strebkov [slavas@voltaire.com]
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1497
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 21 Aug 2008 21:17:14 +0000 (21:17 +0000)]
[MTHCA] misplaced file removed; appears to be a copy of core\bus\kernel\ib_bus32.cdf.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1495
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 21 Aug 2008 19:42:59 +0000 (19:42 +0000)]
[IPoIB] added ndinstall.exe as part of the ipoib install.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1494
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
tzachid [Thu, 21 Aug 2008 17:53:29 +0000 (17:53 +0000)]
[IBAL] bumps up the CI and AL interface version numbers to account for changes in structures used in those interfaces made in past revisions.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1492
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 21 Aug 2008 17:48:00 +0000 (17:48 +0000)]
[WinOF] support ND on all architectures. Setup Winverbs files for WIX install.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1491
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 21 Aug 2008 17:09:16 +0000 (17:09 +0000)]
[WINVERBS] support Winverbs installation - retarget .inf file to be co-resident with windverbs.sys file.
makefile.inc
SOURCES
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1490
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 21 Aug 2008 16:18:43 +0000 (16:18 +0000)]
[CORE\IOU] add support for ib_iou.cdf & ib_iou.inf files
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1489
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 21 Aug 2008 16:08:42 +0000 (16:08 +0000)]
[CORE\IOU] added following files:
ib_iou.cdf - for driver signing
ib_iou.inx - for ibiou.sys installation; IOU relevant items
makefile.inx - for creation of and date/time stamping ib_iou.inf file.
Added to SOURCES files the rules required to create ib_iou.inf file.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1488
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Thu, 21 Aug 2008 15:59:00 +0000 (15:59 +0000)]
[ND] added fre_svr-03_ia64 binaries, which are really fre_svr-03_x86 binaries.
replaced fre_svr-08_ia64 binaries with fre_svr-08_x86 binaries.
Reason for replacement is due to changes in netipoib.inf, now that ndinstall.exe is always installed, so when uninstalling, the installer doesn't know if ND was started or not (ndinstall.exe is always present) so it assumes a need to remove ND ala 'ndinstall -r'. Since ND is yet to be supported on ia64 and I did not want to special case ia64 in the uninstall path, it turns out the x86 ndinstall.exe executes fine on ia64.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1487
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Fri, 15 Aug 2008 17:25:56 +0000 (17:25 +0000)]
[ND] added XP_x86 binaries to fake build env.
renamed objfre_svr* --> fre_svr* to make it easier to identify ND binary folders from build generated folders.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1483
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Thu, 14 Aug 2008 18:45:08 +0000 (18:45 +0000)]
[MLX4] some fixes to support the mixed IB/Eth mode. (mlnx: 2947,2949)
The only mixed configuration, supported now, is port1-IB, port2-Eth.
To work with it one has to burn FW with parameter 'dpdp_en=true' in INI file, for example MHGH28-XSC_A4-A5.ini.
ib_query_ca returns now the number of IB- and not physical ports. So VSTAT will show only one port and IBBUS will create only one IPoIB adapter.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1482
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Wed, 13 Aug 2008 19:31:04 +0000 (19:31 +0000)]
The mlx4 hca driver should install as an InfiniBandHca class driver,
rather than inventing its own class. This allows filter drivers to
reside above both the mthca and mlx4 drivers.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1481
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Tue, 12 Aug 2008 18:34:39 +0000 (18:34 +0000)]
[MLX4] fixed mechanism of mlx4_hca's asynchronous events notification.
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1480
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Tue, 12 Aug 2008 08:23:29 +0000 (08:23 +0000)]
[IBAL] Fix UAL_NDI_NOOP handling
The NOOP IOCTL allows the ND provider to complete requests asynchronously when a synchronous operation completes in user-land. This is used for memory registration and deregistration, as well as for connection establishment when ARP resolution is in progress (IBAT returns E_PENDING) in the NetworkDirect provider. In the latter case, the expectation is that the IOCTL will complete asynchronously with STATUS_TIMEOUT. However the code processes the IOCTL synchronously, so the IOCTL fails with an immediate error rather than an asynchronous error.
This patch completes the IRP so that it's completion will be reported asynchronously.
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1479
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Mon, 11 Aug 2008 16:17:04 +0000 (16:17 +0000)]
mlx4: add winverbs support
Export the mlx4 channel interface via PnP query interface calls. This allows the driver to export its channel interface to multiple drivers, such as WinVerbs.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1477
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
shefty [Mon, 11 Aug 2008 16:12:58 +0000 (16:12 +0000)]
mlx4: fix line endings to windows format
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1476
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Mon, 11 Aug 2008 14:31:22 +0000 (14:31 +0000)]
[MLX4] added support for Condor_G2 device
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1474
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Mon, 11 Aug 2008 13:04:34 +0000 (13:04 +0000)]
[MLX4] fixed a typo
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1473
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
leonidk [Mon, 11 Aug 2008 12:54:05 +0000 (12:54 +0000)]
[MTHCA] removed debug code, which disabled cache update mechanism
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1472
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
stansmith [Sat, 9 Aug 2008 00:11:54 +0000 (00:11 +0000)]
[ND] add fake ND build support; to be removed when ND src hits svn.
trunk/BuildRelease.bat
Turn down tracing volume
New Commands: assist in handling large # of WinOF installers.
msi-label {tag}
rename .msi files to WOF_os*_arch*tag; frequently svn version #
msi-del
delete .msi installers containing this tag
msi-dir
directory listing of current WinOF .msi installers
trunk\etc\makebin.bat
Support:
ND installation
32 versions .cdf files
Less tracing noise!
Added comments.
trunk\ulp\
dirs - added nd to the build
trunk\ulp\nd
dirs - added user to the build
user\ - ugly hack until ND sources show up in svn - pending legal issues with MS
SOURCES
fake.c
makefile
makefile.inc
objfre_svr-03_amd64 - ND binaries from Mellanox
objfre_svr-08_amd64
objfre_svr-03_x86
objfre_svr-08_x86
objfre_svr-08_ia64 - side-steps ia64 ipoib.cdf & ipoib.inx install issues; actually x64 copies.
trunk\ulp\ipoib\kernel
ipoib32.cdf - support ND signing for 32 bit systems
ipoib32-xp.cdf - support XP32 signing
ipoib.cdf - ND signing
netipoib.inx - ND install
netipoib-xp32.inf - XP32 install, no WSD/ND
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1470
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1467
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1466
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1464
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1463
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1462
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1461
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1460
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1458
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1457
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1452
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1451
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1450
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1449
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1447
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1446
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1445
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1444
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1443
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1442
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1441
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1440
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1439
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1438
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1437
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1436
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1435
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1434
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1433
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1431
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1430
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1429
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1428
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1426
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1425
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1424
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1423
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1422
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1419
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1418
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1414
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1413
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1412
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
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/trunk@1408
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86