]> git.openfabrics.org - ~emulex/for-vlad/old/compat-rdma.git/log
~emulex/for-vlad/old/compat-rdma.git
10 years agoiw_cxgb4: Backports for RHEL6.4, RHEL6.5 and SLES11sp3
Kumar Sanghvi [Tue, 24 Dec 2013 18:58:29 +0000 (00:28 +0530)]
iw_cxgb4: Backports for RHEL6.4, RHEL6.5 and SLES11sp3

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
10 years agocxgb4: Backports for RHEL6.4, RHEL6.5 and SLES11sp3
Kumar Sanghvi [Tue, 24 Dec 2013 18:57:52 +0000 (00:27 +0530)]
cxgb4: Backports for RHEL6.4, RHEL6.5 and SLES11sp3

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
10 years agoiw_cxgb3: Backports for RHEL6.4, RHEL6.5 and SLES11sp3
Kumar Sanghvi [Tue, 24 Dec 2013 18:57:24 +0000 (00:27 +0530)]
iw_cxgb3: Backports for RHEL6.4, RHEL6.5 and SLES11sp3

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
10 years agocxgb3: Backports for RHEL6.4, RHEL6.5 and SLES11sp3
Kumar Sanghvi [Tue, 24 Dec 2013 18:56:27 +0000 (00:26 +0530)]
cxgb3: Backports for RHEL6.4, RHEL6.5 and SLES11sp3

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
10 years agocxgb3/cxgb4: Fix pr_fmt warnings
Kumar Sanghvi [Tue, 24 Dec 2013 18:49:36 +0000 (00:19 +0530)]
cxgb3/cxgb4: Fix pr_fmt warnings

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
10 years agolinux-next-cherry-picks: Misc fixes for Chelsio T4/T5
Kumar Sanghvi [Tue, 24 Dec 2013 18:42:01 +0000 (00:12 +0530)]
linux-next-cherry-picks: Misc fixes for Chelsio T4/T5

This patch brings-in the following linux-next commits:

d14807d cxgb4: Much cleaner implementation of is_t4()/is_t5()
16e4762 cxgb4: Add new scheme to update T4/T5 firmware
b6f8eae cxgb4: Reserve stid 0 for T4/T5 adapters
7c89e55 cxgb4: Include TCP as protocol when creating server filters
470c60c cxgb4: Assign filter server TIDs properly
15f63b7 cxgb4: Account for stid entries properly in case of IPv6
dcf7b6f cxgb4: Add API to correctly calculate tuple fields
a4ea025 RDMA/cxgb4: Calculate the filter server TID properly
8c04469 RDMA/cxgb4: Server filters are supported only for IPv4
41b4f86 RDMA/cxgb4: Use cxgb4_select_ntuple to correctly calculate ntuple fields

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
10 years agocheckout_files: Fixed rds.h location
Vladimir Sokolovsky [Tue, 10 Dec 2013 14:20:53 +0000 (16:20 +0200)]
checkout_files: Fixed rds.h location

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoFixed SRP backport for SLES11 SP3
Vladimir Sokolovsky [Tue, 10 Dec 2013 14:20:30 +0000 (16:20 +0200)]
Fixed SRP backport for SLES11 SP3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoAdded support for CONFIG_SCSI_SRP_ATTRS
Vladimir Sokolovsky [Tue, 10 Dec 2013 13:41:35 +0000 (15:41 +0200)]
Added support for CONFIG_SCSI_SRP_ATTRS

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agomlx4_core: Roll back round robin bitmap allocation commit for CQs, SRQs, and MPTs
Vladimir Sokolovsky [Mon, 9 Dec 2013 17:04:49 +0000 (19:04 +0200)]
mlx4_core: Roll back round robin bitmap allocation commit for CQs, SRQs, and MPTs

Commit f4ec9e9 "mlx4_core: Change bitmap allocator to work in round-robin fashion"
introduced round-robin allocation (via bitmap) for all resources which allocate
via a bitmap.

Round robin allocation is desirable for mcgs, counters, pd's, UARs, and xrcds.
These are simply numbers, with no involvement of ICM memory mapping.

Round robin is required for QPs, since we had a problem with immediate
reuse of a 24-bit QP number (commit f4ec9e9).

However, for other resources which use the bitmap allocator and involve
mapping ICM memory -- MPTs, CQs, SRQs -- round-robin is not desirable.

What happens in these cases is the following:

ICM memory is allocated and mapped in chunks of 256K.

Since the resource allocation index goes up monotonically, the allocator
will eventually require mapping a new chunk. Now, chunks are also unmapped
when their reference count goes back to zero.  Thus, if a single app is
running and starts/exits frequently we will have the following situation:

When the app starts, a new chunk must be allocated and mapped.

When the app exits, the chunk reference count goes back to zero, and the
chunk is unmapped and freed. Therefore, the app must pay the cost of allocation
and mapping of ICM memory each time it runs (although the price is paid only when
allocating the initial entry in the new chunk).

For apps which allocate MPTs/SRQs/CQs and which operate as described above,
this presented a performance problem.

We therefore roll back the round-robin allocator modification for MPTs, CQs, SRQs.

Reported-by: Matthew Finlay <matt@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoAdded SRP backport
Vladimir Sokolovsky [Mon, 9 Dec 2013 16:28:36 +0000 (18:28 +0200)]
Added SRP backport

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoMakefile: Disable drivers/scsi subtree
Vladimir Sokolovsky [Wed, 27 Nov 2013 15:13:11 +0000 (17:13 +0200)]
Makefile: Disable drivers/scsi subtree

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoAdded support for RHEL6.4 and refreshed backports
Vladimir Sokolovsky [Wed, 27 Nov 2013 15:12:35 +0000 (17:12 +0200)]
Added support for RHEL6.4 and refreshed backports

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoAdded SLES11 SP3 support
Vladimir Sokolovsky [Tue, 26 Nov 2013 15:37:56 +0000 (17:37 +0200)]
Added SLES11 SP3 support

Compilation passed for ib_core/ib_ipoib/mlx4/mlx5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agocompat-rdma.spec/openibd: Added OCRDMA support
Vladimir Sokolovsky [Mon, 11 Nov 2013 16:17:26 +0000 (18:17 +0200)]
compat-rdma.spec/openibd: Added OCRDMA support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoconfigure/makefile: Added support for mlx5 and ocrdma
Vladimir Sokolovsky [Mon, 11 Nov 2013 16:04:11 +0000 (18:04 +0200)]
configure/makefile: Added support for mlx5 and ocrdma

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agomlx4: Move IFLA_VF_LINK_STATE definitions into compat
Vladimir Sokolovsky [Mon, 11 Nov 2013 12:26:12 +0000 (14:26 +0200)]
mlx4: Move IFLA_VF_LINK_STATE definitions into compat

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoBACKPORTS: Added support for RHEL6.5
Vladimir Sokolovsky [Mon, 11 Nov 2013 10:58:49 +0000 (12:58 +0200)]
BACKPORTS: Added support for RHEL6.5

Modules: ib/core, ib_ipoib, mlx4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agogen-compat-config.sh: Added more CONFIG_COMPAT_...
Vladimir Sokolovsky [Mon, 11 Nov 2013 10:51:58 +0000 (12:51 +0200)]
gen-compat-config.sh: Added more CONFIG_COMPAT_...

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoAdded backport patches for OFED-3.12
Vladimir Sokolovsky [Mon, 30 Sep 2013 09:08:17 +0000 (12:08 +0300)]
Added backport patches for OFED-3.12

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoRemoved old backport, cherry-picks and pending patches
Vladimir Sokolovsky [Mon, 30 Sep 2013 11:16:49 +0000 (14:16 +0300)]
Removed old backport, cherry-picks and pending patches

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoUpdated ofed_scripts for OFED-3.12 release
Vladimir Sokolovsky [Sun, 18 Aug 2013 13:43:45 +0000 (16:43 +0300)]
Updated ofed_scripts for OFED-3.12 release

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agocompat-rdma.spec: Fixed compat-rdma-devel release number vofed-3.5-x
Vladimir Sokolovsky [Tue, 27 Aug 2013 12:39:58 +0000 (15:39 +0300)]
compat-rdma.spec: Fixed compat-rdma-devel release number

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoadd support to ipoib_fix_features from kernel >= 2.6.39
Vladimir Sokolovsky [Mon, 19 Aug 2013 11:15:49 +0000 (14:15 +0300)]
add support to ipoib_fix_features from kernel >= 2.6.39

bug: 2443

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agomakefile: Do not always make all
Vladimir Sokolovsky [Thu, 25 Jul 2013 16:57:36 +0000 (19:57 +0300)]
makefile: Do not always make all

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agocxgb4/cm: Fix compilation on SLES11.3
Vladimir Sokolovsky [Thu, 25 Jul 2013 16:53:29 +0000 (19:53 +0300)]
cxgb4/cm: Fix compilation on SLES11.3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoRefreshed backport patches
Vladimir Sokolovsky [Thu, 25 Jul 2013 15:48:01 +0000 (18:48 +0300)]
Refreshed backport patches

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
10 years agoAdded support for SLES11SP3
Vladimir Sokolovsky [Thu, 25 Jul 2013 15:31:47 +0000 (18:31 +0300)]
Added support for SLES11SP3

Signed-off-by: Robert J Woodruff <robert.j.woodruff@intel.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoAdd RHEL6.4 support
Rupert Dance [Wed, 22 May 2013 16:16:56 +0000 (19:16 +0300)]
Add RHEL6.4 support

Signed-off-by: Rupert Dance <rsdance@soft-forge.com>
11 years agoIB/rds: correct IB api usage
Mike Marciniszyn [Mon, 21 Jan 2013 17:57:19 +0000 (12:57 -0500)]
IB/rds: correct IB api usage

This ports upstream commit b1b6cb4.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
11 years agoRDMA/nes: Fixes for OFED-3.5 RC3
Tatyana Nikolova [Thu, 13 Dec 2012 17:49:44 +0000 (11:49 -0600)]
RDMA/nes: Fixes for OFED-3.5 RC3

1. Backports for ethtool ops (which allow turning on/off tx, rx, sg, tso)
   are added for RHEL 6.2 and 6.3
2. Fix for crash caused by improper skb ip_summed field setting
   when tx checksum is disabled
3. Fix for crash when registering MR with zero length

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
11 years agoRDMA/cxgb4: Keep the maximum number of stag limited to T4_MAX_NUM_STAG
Vipul Pandya [Thu, 13 Dec 2012 18:05:05 +0000 (23:35 +0530)]
RDMA/cxgb4: Keep the maximum number of stag limited to T4_MAX_NUM_STAG

Undo commit a2cda5eecfddbab8a947f2e22eb3e83a3e4995fb since it was causing
segmentation fault in libcxgb4.

This patch fixes bug 2408 in OFED bugzilla.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoRDMA/cxgb4: Insert hwtid in pass_accept_req instead in pass_establish
Vipul Pandya [Tue, 11 Dec 2012 06:39:18 +0000 (22:39 -0800)]
RDMA/cxgb4: Insert hwtid in pass_accept_req instead in pass_establish

This patch fixes bug 2405 in OFED bugzilla.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoRDMA/cxgb4: Remove the limitation on maximum number of STAGs
Vipul Pandya [Tue, 11 Dec 2012 06:35:50 +0000 (22:35 -0800)]
RDMA/cxgb4: Remove the limitation on maximum number of STAGs

This patch fixes bug 2381 in OFED bugzilla.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoRDMA/nes: Fix for terminate timer crash
Tatyana Nikolova [Sun, 25 Nov 2012 06:49:16 +0000 (00:49 -0600)]
RDMA/nes: Fix for terminate timer crash

Fix for terminate timer crash.

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
11 years agoRDMA/nes: Fix for crash when adding timer and timer is pending
Tatyana Nikolova [Sun, 25 Nov 2012 06:46:24 +0000 (00:46 -0600)]
RDMA/nes: Fix for crash when adding timer and timer is pending

RDMA/nes: Replace with 0025-RDMA-nes-Fix-for-adding-timer.patch with
0025-RDMA-nes-Fix-for-modifying-tcp-timer.patch

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
11 years agoRDMA/cxgb4: fix mpa version mismatch
Vipul Pandya [Tue, 20 Nov 2012 15:22:40 +0000 (07:22 -0800)]
RDMA/cxgb4: fix mpa version mismatch

This patch fixes bug 2404 in OFED bugzilla

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoRDMA/nes: Fix for incorrect multicast address
Tatyana Nikolova [Tue, 13 Nov 2012 21:47:54 +0000 (15:47 -0600)]
RDMA/nes: Fix for incorrect multicast address

Fix for incorrect multicast address

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
11 years agoRDMA/nes: Fix for crash when adding timer
Tatyana Nikolova [Fri, 9 Nov 2012 22:04:58 +0000 (16:04 -0600)]
RDMA/nes: Fix for crash when adding timer

Fix for adding timer when a timer is pending

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
11 years agoiw_cxgb4: only log rx_data warnings if cpl status is non zero.
Vipul Pandya [Thu, 8 Nov 2012 12:05:06 +0000 (04:05 -0800)]
iw_cxgb4: only log rx_data warnings if cpl status is non zero.

With newer firmware, we can get streaming data due to connection
errors before the driver moves the QP out of RTS.

This patch fixes bug 2401 in OFED bugzilla

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agocxgb4: Fix initialization of SGE_CONTROL register
Vipul Pandya [Wed, 7 Nov 2012 14:13:26 +0000 (06:13 -0800)]
cxgb4: Fix initialization of SGE_CONTROL register

INGPADBOUNDARY_MASK is already shifted. No need to shift it again. On reloading
a driver it was resulting in a bad SGE FL MTU sizes [1536, 9088] error. This
only causes an issue on systems that have L1 cache size of 32B, 128B, 512B,
2048B or 4096B.

Signed-off-by: Jay Hernandez <jay@chelsio.com>
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoRDMA/cxgb4: abort connections that receive unexpected streaming mode data
Vipul Pandya [Tue, 6 Nov 2012 15:49:47 +0000 (07:49 -0800)]
RDMA/cxgb4: abort connections that receive unexpected streaming mode data

This patch fixes bug 2397 in OFED bugzilla

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agocxgb4: Initialize data structures before using.
Vipul Pandya [Tue, 6 Nov 2012 12:33:02 +0000 (04:33 -0800)]
cxgb4: Initialize data structures before using.

We should not assume reserve fields to be don't cares as fields may change.
Clearing data structures before using.

Signed-off-by: Jay Hernandez <jay@chelsio.com>
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agocxgb4: Add embedded firmware and its configuration file support
Vipul Pandya [Tue, 6 Nov 2012 12:31:47 +0000 (04:31 -0800)]
cxgb4: Add embedded firmware and its configuration file support

In case if firmware is not preset at /lib/firmware/cxgb4/t4fw.bin location and
its configuration file is not present at /lib/firmware/cxgb4/t4-config.txt
location then these embedded firmware and configuration file present in the
driver will be loaded and adapter will get initialised with it.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agocxgb4/iw_cxgb4: Add LE hash collision bug fix for active and passive offloaded connec...
Vipul Pandya [Wed, 31 Oct 2012 16:39:01 +0000 (09:39 -0700)]
cxgb4/iw_cxgb4: Add LE hash collision bug fix for active and passive offloaded connections

If the hash functionality is enabled in T4 than tuple information of active and
passive offloaded connections are stored in DDR3 memory. LE (Lookup Engine)
implements the interface to search this tuple entries using hash algorithm. If
the number of offloaded connections exceeds the number of maximum hash entries
in DDR3 memory then LE hash collision can occur. To avoid this, driver will
take different path for offloading active and passive connections.

In case of active connection, firmware detects LE hash collision situation and
notifies driver. Driver uses fw_ofld_connection work request to offload that
connection and stores its tuple information in TCAM memory array.

Incase of passive connection, server filter region is created in TCAM. This
region stores the filter which will redirect the incoming SYN packet to offload
queues. After this driver tries to establish the connection using firmware work
request.

This patch series also adds framework for managing filters and to use T4's filter
capabilities.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoRDMA/nes: Locking fix to prevent race conditions
Tatyana Nikolova [Fri, 2 Nov 2012 20:38:21 +0000 (15:38 -0500)]
RDMA/nes: Locking fix to prevent race conditions

RDMA/nes: Replace 0009-RDMA-nes-Fix-for-unlinking-NULL-skb.patch with 0009-RDMA-nes-Forward-fpdus-inorder.patch
Locking fix to prevent race conditions.
It forces all fpdus per QP to be forwarded to hardware in order of their tcp sequence numbers.

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
11 years agoRDMA/nes: Changing nes driver version
Tatyana Nikolova [Fri, 2 Nov 2012 20:41:07 +0000 (15:41 -0500)]
RDMA/nes: Changing nes driver version

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
11 years agocxgb4: Fix unable to get UP event from the LLD
Vipul Pandya [Wed, 31 Oct 2012 16:36:55 +0000 (09:36 -0700)]
cxgb4: Fix unable to get UP event from the LLD

If T4 configuration file gets loaded from the /lib/firmware/cxgb4/ directory
then offload capabilities of the cards were getting disabled during
initialization. Hence ULDs do not get an UP event from the LLD.

This patch fixes bug 2392 in OFED bugzilla.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoRDMA/nes: Fixes for PAU handling
Tatyana Nikolova [Sat, 20 Oct 2012 22:51:40 +0000 (17:51 -0500)]
RDMA/nes: Fixes for PAU handling

Fixes for packed and unaligned fpdu handling

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
11 years agoib_srp: Add post-3.5 upstream patches
Bart Van Assche [Thu, 18 Oct 2012 12:47:21 +0000 (14:47 +0200)]
ib_srp: Add post-3.5 upstream patches

The following three patches have been accepted upstream after kernel
3.5 was released:
- IB-srp-Fix-a-race-condition: avoid that late replies can trigger
  a crash.
- IB-srp-Fix-use-after-free-in-srp_reset_req
- IB-srp-Avoid-having-aborted-requests-hang

Add these patches to OFED 3.5.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
11 years agoib_srp: Avoid use-after-free during module unload on pre-2.6.36 kernels
Bart Van Assche [Thu, 18 Oct 2012 12:45:33 +0000 (14:45 +0200)]
ib_srp: Avoid use-after-free during module unload on pre-2.6.36 kernels

Since ib_unregister_client() flushes ib_wq that workqueue must be
destroyed after client unregistration instead of before.

This patch has been tested on RHEL 6.3 and SLES 11 SP2.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
11 years agocxgb4: Remove unnecessary #ifdef condition
Vipul Pandya [Fri, 19 Oct 2012 12:34:12 +0000 (05:34 -0700)]
cxgb4: Remove unnecessary #ifdef condition

This patch also fixes the build failure caused due to removal of #ifdef
CONFIG_CHELSIO_T4_OFFLOAD condition

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agocxgb4: Fix build warnings introduced after T4 configuration file support
Vipul Pandya [Wed, 17 Oct 2012 11:34:50 +0000 (17:04 +0530)]
cxgb4: Fix build warnings introduced after T4 configuration file support

This patch adds patch series from linux-next tree to fix build warnings
introduced after T4 configuration file support addition.

Dynamically allocate memory in t4_memory_rw() and get_vpd_params() to reduce
stack foot prints.

Fixes build failure due to missing linux/vmalloc.h include.

Addresses various sparse warnings related to type assignment issues, function
definition and symbol shadowing.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agolinux-next-cherry-picks: Fix build failure for kernel < 3.2
Vipul Pandya [Wed, 17 Oct 2012 07:48:48 +0000 (13:18 +0530)]
linux-next-cherry-picks: Fix build failure for kernel < 3.2

0004-cxgb4-cxgb4vf-Code-cleanup-to-enable-T4-Configuratio.patch was removing
some defines and enums unconditionally which were being used for kernel < 3.2

This patch adjusts above patch and checks the kernel version before removing
defines and enums.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoIB/qib: remove EBUSY patch
Mike Marciniszyn [Mon, 15 Oct 2012 15:38:15 +0000 (11:38 -0400)]
IB/qib: remove EBUSY patch

0005-A-timing-issue-can-occur-where-qib_mr_dereg-can-retu.patch
upstream patch causes and issue with MR deregistration.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
11 years agoib_srp: Avoid that module removal can trigger a deadlock
Bart Van Assche [Fri, 12 Oct 2012 12:03:26 +0000 (14:03 +0200)]
ib_srp: Avoid that module removal can trigger a deadlock

Avoid that scsi_remove_host() is invoked from the context of a work
queue thread on which work has been queued that scsi_remove_host()
might be waiting for. That avoids that module removal of ib_srp
triggers a deadlock on a pre-2.6.36 kernel. This patch has been
tested on RHEL 6.1, RHEL 6.2, RHEL 6.3 and SLES 11 SP2.

Reported-by: Rupert Dance <rsdance@soft-forge.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
11 years agoib_srp: Unbreak build on SLES 11 SP2
Bart Van Assche [Thu, 4 Oct 2012 08:52:18 +0000 (10:52 +0200)]
ib_srp: Unbreak build on SLES 11 SP2

Use the <scsi/srp.h> header from compat-rdma instead of the
<scsi/srp.h> header from the kernel-devel package provided by
the OS for the srp_cred_req and related structure definitions.
Also, undefine pr_fmt() before redefining it since the
compat-rdma build process includes <linux/printk.h> from the
command line.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
11 years agocxgb4: Add support for T4 configuration file
Vipul Pandya [Fri, 5 Oct 2012 10:32:32 +0000 (03:32 -0700)]
cxgb4: Add support for T4 configuration file

This patch adds patch series from linux-next tree to add support for T4
configuration file.

Starting with T4 firmware version 1.3.11.0 the firmware now supports device
configuration via a Firmware Configuration File. The Firmware Configuration
File was primarily developed in order to centralize all of the configuration,
resource allocation, etc. for Unified Wire operation where multiple
Physical / Virtual Function Drivers would be using a T4 adapter simultaneously.

The Firmware Configuration file can live in three locations as shown below
in order of precedence.
1) User defined configuration file: /lib/firmware/cxgb4/t4-config.txt
2) Factory Default configuration file written to FLASH within
   the manufacturing process.
3) Hardwired driver configuration.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoAdd SRP backport and refresh all patches
Vladimir Sokolovsky [Tue, 2 Oct 2012 14:05:14 +0000 (16:05 +0200)]
Add SRP backport and refresh all patches

This patch has been tested on RHEL 6.0, RHEL 6.1, RHEL 6.2, RHEL 6.3
and Ubuntu 10.04.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoMerge branch 'master' of ssh://git.openfabrics.org/home/vipulp/new_ofed/compat-rdma
Vladimir Sokolovsky [Tue, 2 Oct 2012 11:51:47 +0000 (13:51 +0200)]
Merge branch 'master' of ssh://git.openfabrics.org/home/vipulp/new_ofed/compat-rdma

11 years ago/etc/init.d/openibd: Fix LSB header
Bart Van Assche [Fri, 21 Sep 2012 11:33:46 +0000 (13:33 +0200)]
/etc/init.d/openibd: Fix LSB header

The meaning of the "Required-Stop" tag is which services must be
available during shutdown of a service. Avoid specifying the same
runlevel for the "Default-Start" and "Default-Stop" tag. Also,
the default start runlevels on Debian are 2, 3, 4 and 5.

See also http://refspecs.linuxfoundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
11 years agoIB/qib: linux-3.6 patches backported
Mike Marciniszyn [Tue, 25 Sep 2012 13:01:11 +0000 (09:01 -0400)]
IB/qib: linux-3.6 patches backported

6a82649f and 354dff1b from 3.6.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
11 years agoiw_cxgb4: Fix bug 2369 in OFED bugzilla
Vipul Pandya [Fri, 21 Sep 2012 13:07:06 +0000 (06:07 -0700)]
iw_cxgb4: Fix bug 2369 in OFED bugzilla

Bug 2369 - [OFED-3.5] Trace observed in dmesg while running IMB-MPI1 using
openmpi-1.6

dst_neigh_lookup and neigh_release function has been introduced
in kernel >= 3.4.0. neigh_release function was introduced to
decrement the reference acquired by dst_neigh_lookup function.
neigh_release was getting called unnecessary for the kernel < 3.4.0
which was resulting in the trace.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoIB/qib: fix compliance regression in 3.5
Mike Marciniszyn [Thu, 13 Sep 2012 14:19:37 +0000 (10:19 -0400)]
IB/qib: fix compliance regression in 3.5

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
11 years agoRDMA/nes: Add linux-next-pending patches
Vladimir Sokolovsky [Wed, 12 Sep 2012 11:33:27 +0000 (14:33 +0300)]
RDMA/nes: Add linux-next-pending patches

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoRDMA/nes: Updated backports
Vladimir Sokolovsky [Tue, 28 Aug 2012 16:13:38 +0000 (19:13 +0300)]
RDMA/nes: Updated backports

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoNFSRDMA RHEL6.3 backport
Jeff Becker [Fri, 24 Aug 2012 18:18:23 +0000 (11:18 -0700)]
NFSRDMA RHEL6.3 backport

Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa.gov>
11 years agoNFSRDMA SLES11SP2 backport
Jeff Becker [Thu, 16 Aug 2012 17:44:42 +0000 (10:44 -0700)]
NFSRDMA SLES11SP2 backport

Signed-off-by: Jeff Becker <jeffrey.c.becker@nasa.gov>
11 years agolinux-next-cherry-picks: RDMA/ucma.c: Different fix for ucma context uid=0, causing...
Vladimir Sokolovsky [Wed, 8 Aug 2012 15:32:44 +0000 (18:32 +0300)]
linux-next-cherry-picks: RDMA/ucma.c: Different fix for ucma context uid=0, causing iWarp RDMA applications to fail in connection establishment

Fix for ucma context uid=0, causing iWarp RDMA applications to fail in connection establishment.

This is a new patch addressing the librdmacm segfault when RDMA_CM_EVENT_ESTABLISHED event shows up with evt->id_priv = NULL
In the ucma_event_handler(), ctx->file->mut is moved up to prevent race conditions and protect from assigning zero ucma ctx->uid to asynchronously generated events.

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Signed-off-by: Sean Hefty <Sean.Hefty@intel.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoconnectx_port_config: remove port type restrictions and bug fixes
Vladimir Sokolovsky [Sun, 5 Aug 2012 21:43:36 +0000 (00:43 +0300)]
connectx_port_config: remove port type restrictions and bug fixes

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoconfigure: Fix ARCH definition for ppc64 and x86
Vladimir Sokolovsky [Sun, 5 Aug 2012 21:36:37 +0000 (00:36 +0300)]
configure: Fix ARCH definition for ppc64 and x86

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoRefresh patches for linux-3.5
Vladimir Sokolovsky [Sun, 5 Aug 2012 19:10:32 +0000 (22:10 +0300)]
Refresh patches for linux-3.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agomlx4_en: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2
Vladimir Sokolovsky [Sun, 5 Aug 2012 19:04:56 +0000 (22:04 +0300)]
mlx4_en: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoIPoIB: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2
Vladimir Sokolovsky [Thu, 2 Aug 2012 13:21:09 +0000 (16:21 +0300)]
IPoIB: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoMerge branch 'master' of git://git.openfabrics.org/~mmarciniszyn/new_ofed/compat...
Vladimir Sokolovsky [Wed, 1 Aug 2012 13:50:26 +0000 (16:50 +0300)]
Merge branch 'master' of git://git.openfabrics.org/~mmarciniszyn/new_ofed/compat-rdma

11 years agoMerge branch 'master' of ssh://beany.openfabrics.org/home/vipulp/new_ofed/compat...
Vladimir Sokolovsky [Wed, 1 Aug 2012 13:45:06 +0000 (16:45 +0300)]
Merge branch 'master' of ssh://beany.openfabrics.org/home/vipulp/new_ofed/compat-rdma

11 years agomakefile: Add CONFIG_COMPAT_SKB_FRAG_NEEDED
Vladimir Sokolovsky [Wed, 1 Aug 2012 13:41:13 +0000 (16:41 +0300)]
makefile: Add CONFIG_COMPAT_SKB_FRAG_NEEDED

It is required for kernels <= 3.2 except RHEL6.3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
11 years agoiw_cxgb4: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2
Vipul Pandya [Tue, 31 Jul 2012 09:58:36 +0000 (15:28 +0530)]
iw_cxgb4: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoiw_cxgb3: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2
Vipul Pandya [Tue, 31 Jul 2012 09:58:16 +0000 (15:28 +0530)]
iw_cxgb3: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agocxgb4: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2
Vipul Pandya [Tue, 31 Jul 2012 09:57:53 +0000 (15:27 +0530)]
cxgb4: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agocxgb3: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2
Vipul Pandya [Tue, 31 Jul 2012 09:57:24 +0000 (15:27 +0530)]
cxgb3: Backports for RHEL6.2 RHEL6.3 and SLES11 SP2

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoiw_cxgb3/iw_cxgb4: Enable header file inclusion with absolute path
Vipul Pandya [Tue, 31 Jul 2012 09:25:41 +0000 (14:55 +0530)]
iw_cxgb3/iw_cxgb4: Enable header file inclusion with absolute path

iw_cxgb3/iw_cxgb4 driver includes header files of cxgb3/cxgb4 drivers
respectively. OFED build environment is not able to find the header files
if absolute path is not given.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
11 years agoIB/ipath: backport < 3.2 for pinned_vm field
Mike Marciniszyn [Wed, 25 Jul 2012 16:34:10 +0000 (12:34 -0400)]
IB/ipath: backport < 3.2 for pinned_vm field

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
11 years agoIB/ipath: backport qib_fs.c before 2.6.35
Mike Marciniszyn [Wed, 25 Jul 2012 16:33:31 +0000 (12:33 -0400)]
IB/ipath: backport qib_fs.c before 2.6.35

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
11 years agoIB/qib: backport < 3.2 for pinned_vm field
Mike Marciniszyn [Wed, 25 Jul 2012 16:08:06 +0000 (12:08 -0400)]
IB/qib: backport < 3.2 for pinned_vm field

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
11 years agoIB/qib: backport qib_fs.c before 2.6.35
Mike Marciniszyn [Wed, 25 Jul 2012 16:06:47 +0000 (12:06 -0400)]
IB/qib: backport qib_fs.c before 2.6.35

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
12 years agoRefresh patches
Vladimir Sokolovsky [Mon, 16 Jul 2012 14:17:19 +0000 (17:17 +0300)]
Refresh patches

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agobackport dst_fetch_ha: Add SLES11.2 support
Vladimir Sokolovsky [Mon, 16 Jul 2012 14:12:01 +0000 (17:12 +0300)]
backport dst_fetch_ha: Add SLES11.2 support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agoAdd SLES11.2 support
Vladimir Sokolovsky [Mon, 16 Jul 2012 13:40:58 +0000 (16:40 +0300)]
Add SLES11.2 support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agomakefile: Update to support kernels >= 3.1
Vladimir Sokolovsky [Sun, 15 Jul 2012 11:04:21 +0000 (14:04 +0300)]
makefile: Update to support kernels >= 3.1

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agoBackports for linux-3.5 nes to RHEL-6.2 and RHEL-6.3
Tatyana Nikolova [Sun, 15 Jul 2012 10:37:20 +0000 (13:37 +0300)]
Backports for linux-3.5 nes to RHEL-6.2 and RHEL-6.3

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agoBACKPORT ucma: Revert sysctl registrations
Vladimir Sokolovsky [Thu, 12 Jul 2012 21:29:35 +0000 (00:29 +0300)]
BACKPORT ucma: Revert sysctl registrations

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agoAdd mlx4/ib backport
Vladimir Sokolovsky [Thu, 12 Jul 2012 20:31:26 +0000 (23:31 +0300)]
Add mlx4/ib backport

Tested on RHEL6.3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agoAdd ib/core backports
Vladimir Sokolovsky [Wed, 11 Jul 2012 08:28:41 +0000 (11:28 +0300)]
Add ib/core backports

All backport patches reside in the same directory "patches"
These patches being applied by admin_rdma.sh script.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agoconfig.mk: Set latest supported kernel version to 3.5
Vladimir Sokolovsky [Wed, 11 Jul 2012 07:54:42 +0000 (10:54 +0300)]
config.mk: Set latest supported kernel version to 3.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agoconfig.mk: backport compat to RHEL6.3
Vladimir Sokolovsky [Tue, 10 Jul 2012 12:46:37 +0000 (15:46 +0300)]
config.mk: backport compat to RHEL6.3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agoadmin_rdma.sh: Take also header files from compat directory
Vladimir Sokolovsky [Mon, 9 Jul 2012 14:49:37 +0000 (17:49 +0300)]
admin_rdma.sh: Take also header files from compat directory

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
12 years agoNFSRDMA: Makefile fix
Jeff Becker [Thu, 5 Jul 2012 16:40:50 +0000 (09:40 -0700)]
NFSRDMA: Makefile fix

Only build sunrpc/xprtrdma

Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa.gov>
12 years agoibdev2netdev: Support RNIC.
Steve Wise [Wed, 27 Jun 2012 19:48:05 +0000 (14:48 -0500)]
ibdev2netdev: Support RNIC.

The oldstyle=y logic in ibdev2netdev to match netdevs to ibdevs didn't
work for RNIC devices since their mac address is left justified in
the gid.  This patch uses the type attribute to do the right thing for
RNIC devices.  Note: the oldstyle=n logic works.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
12 years agomakefile: Add compat_base
Vladimir Sokolovsky [Mon, 2 Jul 2012 12:02:40 +0000 (15:02 +0300)]
makefile: Add compat_base

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>