~emulex/compat-rdma_3.12.git
6 years agobe2net : Backport support for RHEL 6.6 master
Selvin Xavier [Fri, 19 Sep 2014 02:39:20 +0000 (08:09 +0530)]
be2net : Backport support for RHEL 6.6

Fixing compilation issues for RHEL 6.6

Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
6 years agomlx4_en: Added RHEL6.6 support
Vladimir Sokolovsky [Wed, 17 Sep 2014 10:28:51 +0000 (13:28 +0300)]
mlx4_en: Added RHEL6.6 support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoxeon-phi: updates to ofed-mic script
Jay Sternberg [Fri, 5 Sep 2014 17:36:13 +0000 (10:36 -0700)]
xeon-phi: updates to ofed-mic script

Changes include:
 - Start the ibp daemon (ibpd) since udev is not longer being used.
 - Always try to unload ipoib/kmtest on the card
 - Try using another hostname when starting services on the cards
   (i.e. hostname.domain).

6 years agoxeon-phi: correct configure file for correct -with-ibp-debug flag
Jay Sternberg [Fri, 5 Sep 2014 17:28:12 +0000 (10:28 -0700)]
xeon-phi: correct configure file for correct -with-ibp-debug flag

6 years agoxeon-phi: remove bogus comment in compat-rdma.spec
Jay Sternberg [Fri, 5 Sep 2014 17:25:36 +0000 (10:25 -0700)]
xeon-phi: remove bogus comment in compat-rdma.spec

cmment added of prior commits but it generates an error on execution
of install.pl so it is being removed.

6 years agoxeon-phi: updates to ibp_server
Jay Sternberg [Mon, 8 Sep 2014 21:05:51 +0000 (14:05 -0700)]
xeon-phi: updates to ibp_server

Changes include:
 - adds the synchronization to all three ibp servers (drv/sa/cm)
   and track additional resources to free them with others
 - correct freeing of resources in cm server so the usage count
   is manages correctly and the driver can be unloaded without
   forcing the count.
 - correct issue when the xeon-phi is rebooted without stopping
   the ofed-mic service which occationally hangs the host.

6 years agoxeon-phi: updated technology preview for ibscif
Jay Sternberg [Mon, 8 Sep 2014 21:01:34 +0000 (14:01 -0700)]
xeon-phi: updated technology preview for ibscif

Changes include:
 - add a module parameter to turn on/off GRH checking, used to detect
   connections going outside the box
 - use mutex instead of spinlock when the lock holder could go sleep
   fixing a soft lockup issue under oversubscribing
 - add semaphore/mutex macros missing on older systems
 - eliminates a race condition between the poll thread and the netdev
   notifier
 - invalidate connections going outside the box
 - set the correct link layer type
 - clean up the driver output
 - perform endian conversion before printing GID
 - fix compiler warnings

6 years agoRDMA/ocrdma: Add a fix for mmaping kernel mem to user
Devesh Sharma [Mon, 8 Sep 2014 05:43:27 +0000 (11:13 +0530)]
RDMA/ocrdma: Add a fix for mmaping kernel mem to user

This patch adds a patch to fix mmaping issue reported
on accross platforms.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
6 years agocxgb4: GRO busted in sles/rhel backports.
Steve Wise [Tue, 2 Sep 2014 16:11:05 +0000 (11:11 -0500)]
cxgb4: GRO busted in sles/rhel backports.

Here is another VLAN backport bug, but with the GRO path.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agocxgb4: Fix vlan support in sles and rhel backport.
Steve Wise [Thu, 28 Aug 2014 21:07:29 +0000 (16:07 -0500)]
cxgb4: Fix vlan support in sles and rhel backport.

If a tagged packet arrives it will cause a crash in t4_ethrx_handler()
due to a bug in the backports causing a skb to be freed twice.  Also in
the RHEL backport, needed to add a vlan netdev op for it to work at all.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agoadd missing docs directory
Phil Cayton [Wed, 27 Aug 2014 20:14:28 +0000 (13:14 -0700)]
add missing docs directory

6 years agoChanges to ofed-mic script to better handle IPoIB interfaces
Phil Cayton [Tue, 19 Aug 2014 19:11:31 +0000 (12:11 -0700)]
Changes to ofed-mic script to better handle IPoIB interfaces

List IPoIB interfaces brought up on card following card name and
colon (:), ie mic0 : ib0 ib1

If IF on card fails to come up (ie ifup ib0 fails), print offending card
and interface, keep trying other interfaces.  If any IPoIB interfaces fail
to come up don't assume card does not exist and try other hostnames.

6 years agoofed-mic add check for existing ibpd to start function
Phil Cayton [Tue, 19 Aug 2014 19:10:49 +0000 (12:10 -0700)]
ofed-mic add check for existing ibpd to start function

Add a check for an existing ibpd daemon before starting another.
This prevents multiple "service ofed-mic start" commands from
launching multiple copies of the ibpd daemon, spawning more
driver worker threads than intended.

6 years agogen-compat-config: Fix CONFIG_COMPAT_IFLA_VF_LINK_STATE_MAX setting
Vladimir Sokolovsky [Mon, 18 Aug 2014 14:38:57 +0000 (17:38 +0300)]
gen-compat-config: Fix CONFIG_COMPAT_IFLA_VF_LINK_STATE_MAX setting

This is required for RHEL6.6 support.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoRDAM/ocrdma: Pull ocrdma bug fixes This also has syncup patches from upstream kernel.
Mitesh Ahuja [Tue, 19 Aug 2014 13:02:26 +0000 (18:32 +0530)]
RDAM/ocrdma: Pull ocrdma bug fixes This also has syncup patches from upstream kernel.

Moved following existing patches form /linux-next-pending to
/linux-next-cherry-picks folder

0134-RDMA-ocrdma-Eq-full-catastrophe-avoidance.patch
0135-RDMA-ocrdma-SQ-and-RQ-doorbell-offset-clean-up.patch
0136-RDMA-ocrdma-read-ASIC_ID-register-to-select-asic_gen.patch
0137-RDMA-ocrdma-Allow-DPP-QP-creation.patch
0138-RDMA-ocrdma-ABI-versioning-between-ocrdma-and-be2net.patch
0139-RDMA-ocrdma-update-version-string.patch
0140-RDMA-ocrdma-increment-abi-version-count.patch
0141-RDMA-ocrdma-Memory-leak-fix-in-ocrdma_dereg_mr.patch
0142-RDMA-ocrdma-Use-non-zero-tag-in-SRQ-posting.patch
0143-RDMA-ocrdma-Display-proper-value-for-max_mw.patch
0144-RDMA-ocrdma-Handle-CQ-overrun-error.patch
0145-RDMA-ocrdma-Support-non-embedded-mailbox-commands.patch
0146-RDMA-ocrdma-Query-controller-information.patch
0147-RDMA-ocrdma-Support-for-Skyhawk-statistics.patch
0148-RDMA-ocrdma-Display-fw-version.patch
0149-RDMA-ocrdma-code-clean-up.patch
0150-be2net-adding-abi-version-between-be2net-and-ocrdma.patch
0151-RDMA-ocrdma-ROLLBACK-dpp-posting-for-RDMA-READ.patch

commit a7bade7e3deff33f5a0f830e43596b3d8ebd3d85
Author: Selvin Xavier <selvin.xavier@emulex.com>
Date: Tue, 3 Jun 2014 11:13:00 +0530
RDMA/ocrdma: Query and initalize the PFC SL

This patch implements routine to query the PFC priority from the adapter port.

Following are the changes implemented:

 * A new FW command is implemented to query the operational/admin
   DCBX configuration from the FW and obtain active priority(service level).
 * Adds support for the async event reported by FW when the PFC priority
   changes. Service level is re-initialized during modify_qp or
   create_ah, based on this event.
 * Maintain SL value in ocrdma_dev structure and refer that as and
   when needed.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit 3eb2ede72c26333856fbe3a8c3825d2abaf744b9
Author: Selvin Xavier <selvin.xavier@emulex.com>
Date: Fri, 18 Jul 2014 11:36:55 +0530
RDMA/ocrdma: Adding hca_type string in device atrributes

Added a new entry under sysfs for getting the HW type.

Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit 491006261a6661df25c0923e19dd995ab56c2e9d
Author: Devesh Sharma <devesh.sharma@emulex.com>
Date: Tue, 27 May 2014 14:05:16 +0530
RDMA/ocrdma: Handle shutdown event from be2net driver

be2net driver sends shutdown event to ocrdma during shutdown/reboot.
As part of event processing, ocrdma calls close() and remove() to
free all the resources associated with ocrdma. This also frees
irqs used by ocrdma

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit c9a08ed7fbd10343a404a3dc899be9eac06c0d6e
Author: Devesh Sharma <devesh.sharma@emulex.com>
Date: Tue, 27 May 2014 14:16:15 +0530
RDMA/ocrdma: Remove hardcoding of the max DPP QPs supported

Removing hardcoded value of max dpp qps and calculate the same from
doorbell page size and WQE size

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit 5f866391ef3c7dc6e9dd4955a231ad65b3c99742
Author: Devesh Sharma <devesh.sharma@emulex.com>
Date: Tue, 27 May 2014 14:25:11 +0530
RDMA/ocrdma: Delete AH table if ocrdma_init_hw fails after AH table creation

Cleanup the AH table in error path, if HW initialization fails
after AH table creation.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit bb2d1842ca249900a73e3850b3583c77b7d0f450
Author: Selvin Xavier <selvin.xavier@emulex.com>
Date: Wed, 28 May 2014 09:25:16 +0530
RDMA/ocrdma: Avoid reporting wrong completions in case of error CQEs

During cable pull test with a mount over nfs rdma, driver was reporting
error completions when there was no pending requests in the SQ and RQ.
This was triggering a host crash because of reporting wrong work req id.
Avoid this crash by adding a check for SQ and RQ empty condition and
prevent reporting completions if queues are empty.

Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
commit 66e9bb03219959cee18ec8cbd50c29b0c7b1c8d9
Author: Mitesh Ahuja <mitesh.ahuja@emulex.Com>
Date: Mon, 2 Jun 2014 10:54:40 +0530
RDMA/ocrdma: Allow only SEND opcode in case of UD QPs

Prevent posting opcodes other than send and send immediate on the UD QPs

Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.Com>
Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit 6237b9592d8494f1e9df9f6655336d196a2c244c
Author: Mitesh Ahuja <mitesh.ahuja@emulex.Com>
Date: Fri, 18 Jul 2014 11:47:18 +0530
RDMA/ocrdma: Do proper cleanup evenif FW is in error state

If any mailbox command reports timeout, save the state in the driver, to prevent
issuing any more commands to the HW. Do proper cleanup even if FW is in error state.

Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.Com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit cb245d90fb25b9974cd316d14f02a159e2cd2fac
Author: Mitesh Ahuja <mitesh.ahuja@emulex.Com>
Date: Wed, 28 May 2014 10:25:38 +0530
RDMA/ocrdma: Return proper value for max_mr_size

Update the max_mr_size with proper value. Corrected the response structure
of query config mailbox command.

Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.Com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit 241e833572471ef43d56d045437f0e8a80a5a186
Author: Selvin Xavier <selvin.xavier@emulex.com>
Date: Wed, 28 May 2014 16:35:23 +0530
RDMA/ocrdma : Add missing adapter mailbox opcodes

Fixing the Statistics command opcode. Also specifying the
opcode of each command for better readablilty.

Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
commit 6fbddaf8eb06d8e865771d858ba75f59c388f446
Author: Selvin Xavier <selvin.xavier@emulex.com>
Date: Thu, 29 May 2014 09:25:55 +0530
RDMA/ocrdma: Increase the size of STAG array in dev structure to 16K

HW can support 16K STAG entries. Changing this max limit.
Also, moving this array out of ocrdma_dev to reduce
the size of this structure

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit 4199b418e36dbe23f16cd741ac9514e792d5d67d
Author: Selvin Xavier <selvin.xavier@emulex.com>
Date: Tue, 3 Jun 2014 14:10:41 +0530
RDMA/ocrdma: Fixing a sparse warning

Fixing the warning about the usage of plain integer as NULL pointer

Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit c5b3d4cc260813bfe80ceb759cc53e78f7ae0f93
Author: Selvin Xavier <selvin.xavier@emulex.com>
Date: Fri, 18 Jul 2014 11:52:15 +0530
RDMA/ocrdma: Update the ocrdma module version string

Updating the ocrdma driver version string

Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit ab18a8049348c08b36d503992dd9c440d6579ad6
Author: Devesh Sharma <devesh.sharma@emulex.com>
Date: Tue, 1 Jul 2014 16:13:15 +0530
RDMA/ocrdma: obtain sl from deivce structure

Currently, driver obtains service level value from ah_attr->sl
field. However, this filed is set to zero all the times from
rdma-cm. This patch allows create_ah to obtain service level from
dev->sl

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit b9b4b1998604fc5a77388dd9defaee62209a931e
Author: Devesh Sharma <devesh.sharma@emulex.com>
Date: Tue, 1 Jul 2014 16:05:11 +0530
RDMA/ocrdma: update sli data structure for endian ness

updated the sli specific mailbox command request/response
data sturcures to fix endian-ness issues.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit bc42b246b1cb9a2230739f251ff0b2d42e85c644
Author: Mitesh Ahuja <mitesh.ahuja@emulex.com>
Date: Tue, 1 Jul 2014 14:41:19 +0530
RDMA/ocrdma: report asic-id in query device

Ocrdma does not report hw_ver when query_device is issued.
This patch is adding meaningful value to this field.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
commit b28db068f62c5af0ce3e3af91bd9326b4b570c58
Author: Devesh Sharma <devesh.sharma@emulex.com>
Date: Fri, 6 Jun 2014 10:45:49 +0530
RDMA/ocrdma: do not skip setting deffered_arm

ib_request_notify_cq() when called for the first time
ocrdma tries to skip setting deffered_arm flag. This
may lead CQ to an un-armed state thus, never generating
CQ event and leaving consumer in hung state.

This patch removes the part of code that skkips setting
deffered_arm flag.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.com>
commit 295ec1fb5a5ecb9e35f452a1b744992c0c515066
Author: Devesh Sharma <devesh.sharma@emulex.com>
Date: Thu, 5 Jun 2014 19:11:05 +0530
RDMA/ocrdma: Report actual value of max_fast_reg_page_list_len

ocrdma_query_device does not report correct value of max_fast_reg_page_list_len.
This patch applies changes to fix this bug.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.com>
commit 1d930f4ea2f2a4784ccfbb18b4263817db283282
Author: Devesh Sharma <devesh.sharma@emulex.com>
Date: Tue, 12 Aug 2014 17:28:59 +0530
be2net: Issue shutdown event to ocrdma driver

In the shutdown path, when be2net calls pci_disable_msix(), it
complains (BUG_ON) that irqs requested by ocrdma driver are still in
use.  This patch fixes this problem by issuing shutdown event to
ocrdma from be2net shutdown path.  As part of shutdown event
processing, ocrdma driver will free up all the resources and free
irqs.  Once this completes be2net completes pci_disable_msix
successfully.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.com>
6 years agoMerge branch 'NFSoRDMA' of git://git.openfabrics.org/~jbecker/compat-rdma
Vladimir Sokolovsky [Mon, 18 Aug 2014 08:24:34 +0000 (11:24 +0300)]
Merge branch 'NFSoRDMA' of git://git.openfabrics.org/~jbecker/compat-rdma

6 years agocorrect ofed-mic scripts to manually start ibpd rather than it being started by udev...
Phil Cayton [Thu, 14 Aug 2014 19:54:33 +0000 (12:54 -0700)]
correct ofed-mic scripts to manually start ibpd rather than it being started by udev - change for rhel7

6 years agoNFSoRDMA: fixes for 3.12 and RHEL7, RHEL6.5, SLES11SP3 backports
Jeffrey C. Becker [Sat, 16 Aug 2014 00:10:44 +0000 (17:10 -0700)]
NFSoRDMA: fixes for 3.12 and RHEL7, RHEL6.5, SLES11SP3 backports
Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa.gov>
6 years agoadd xeon-phi as tech preview
Phil Cayton [Wed, 6 Aug 2014 20:28:07 +0000 (13:28 -0700)]
add xeon-phi as tech preview

6 years agomlx4_en: Fixed crash when port type is change
Vladimir Sokolovsky [Tue, 5 Aug 2014 07:41:33 +0000 (10:41 +0300)]
mlx4_en: Fixed crash when port type is change

Taken from the upstream kernel commit
1ec4864b10171b0691ee196d7006ae56d2c153f2

timecounter_init() was was called only after first potential
timecounter_read().
Moved mlx4_en_init_timestamp() before mlx4_en_init_netdev()

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoRDMA/cxgb4: Initialize the device status page
Steve Wise [Wed, 16 Jul 2014 14:29:16 +0000 (09:29 -0500)]
RDMA/cxgb4: Initialize the device status page

Cherry picked from Roland's for-next branch.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agocxgb4: update fw to 1.11.27.0
Steve Wise [Wed, 25 Jun 2014 17:01:56 +0000 (12:01 -0500)]
cxgb4: update fw to 1.11.27.0

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agomakefile: Added -I$$(srctree)/include to support SLES12
Vladimir Sokolovsky [Thu, 19 Jun 2014 08:23:17 +0000 (11:23 +0300)]
makefile: Added -I$$(srctree)/include to support SLES12

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agocxgb4/iw_cxgb4 fixes
Steve Wise [Tue, 17 Jun 2014 21:07:15 +0000 (16:07 -0500)]
cxgb4/iw_cxgb4 fixes

Cherry pick these from linux-3.16-rc1:

c887ad0 cxgb4: Change default Interrupt Holdoff Packet Count Threshold
b408ff2 iw_cxgb4: don't truncate the recv window size
92e7ae7 iw_cxgb4: Choose appropriate hw mtu index and ISS for iWARP connections
cf38be6 iw_cxgb4: Allocate and use IQs specifically for indirect interrupts

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agoMove cxgb4 patches from pending to cherry-picks
Steve Wise [Tue, 17 Jun 2014 21:07:15 +0000 (16:07 -0500)]
Move cxgb4 patches from pending to cherry-picks

Since all these patches are upstream, move them to
linux-next-cherry-picks.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agoAdded iSER backport and refreshed other backports
Vladimir Sokolovsky [Mon, 16 Jun 2014 13:54:49 +0000 (16:54 +0300)]
Added iSER backport and refreshed other backports

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoiw_cxgb4: RDMA/cxgb4: Fix vlan support
Steve Wise [Thu, 5 Jun 2014 19:42:50 +0000 (14:42 -0500)]
iw_cxgb4: RDMA/cxgb4: Fix vlan support

Pull in:

commit 11b8e22d4d0979d8201cbdf0b5fffdbe2d5bcedf
Author: Steve Wise <swise@opengridcomputing.com>
Date:   Fri May 16 12:42:46 2014 -0500

    RDMA/cxgb4: Fix vlan support

    RDMA connections over a vlan interface don't work due to
    import_ep() not using the correct egress device.

     - use the real device in import_ep()
     - use rdma_vlan_dev_real_dev() in get_real_dev().

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agocompat-rdma.spec: Fix typo vofed-3.12
Vladimir Sokolovsky [Tue, 27 May 2014 10:15:21 +0000 (13:15 +0300)]
compat-rdma.spec: Fix typo

This typo prevents mlx5_ib to be loaded by the openibd script

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agobe2net: Fixing a crash during vlan traffic introduced by the backport
Selvin Xavier [Wed, 7 May 2014 09:06:20 +0000 (02:06 -0700)]
be2net: Fixing a crash during vlan traffic introduced by the backport
    patch

Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
6 years agoMore iw_cxgb4 fixes
Steve Wise [Tue, 29 Apr 2014 01:56:43 +0000 (20:56 -0500)]
More iw_cxgb4 fixes

Pull in these fixes:

c2f9da9 RDMA/cxgb4: Only allow kernel db ringing for T4 devs
92e5011 RDMA/cxgb4: Force T5 connections to use TAHOE congestion control
cc18b93 RDMA/cxgb4: Fix endpoint mutex deadlocks

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agocxgb4: fixed regression bug in fw load patch.
Steve Wise [Tue, 29 Apr 2014 01:48:43 +0000 (20:48 -0500)]
cxgb4: fixed regression bug in fw load patch.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agocxgb4: Fix fw flash.
Hariprasad Shenai [Tue, 22 Apr 2014 13:51:36 +0000 (08:51 -0500)]
cxgb4: Fix fw flash.

Fixed the flash patch to always load the latest FW, be it from
/lib/firmware -or- that which is bound into the driver.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agoiw_cxgb4: fix sles11sp3 backport.
Steve Wise [Tue, 22 Apr 2014 13:40:21 +0000 (08:40 -0500)]
iw_cxgb4: fix sles11sp3 backport.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agolinux-next-pending: Pull in cxgb4 fix.
Steve Wise [Tue, 22 Apr 2014 13:40:21 +0000 (08:40 -0500)]
linux-next-pending: Pull in cxgb4 fix.

Pull in these cxgb4 fixes from net/master:

commit 6f1d7210376727d090e04b8635e6dda4d7eb7b0c
Author: Steve Wise <swise@opengridcomputing.com>
Date:   Tue Apr 15 14:22:34 2014 -0500

    cxgb4: use the correct max size for firmware flash

    The wrong max fw size was being used and causing false
    "too big" errors running ethtool -f.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
commit bfae23249955819a42aa6c23d93708c818eff5c9
Author: Steve Wise <swise@opengridcomputing.com>
Date:   Mon Apr 14 14:22:43 2014 -0500

    cxgb4: Save the correct mac addr for hw-loopback connections in the L2T

    Hardware needs the local device mac address to support hw loopback for
    rdma loopback connections.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agolinux-next-pending: pull in more iw_cxgb4 fixes.
Steve Wise [Thu, 10 Apr 2014 15:02:51 +0000 (10:02 -0500)]
linux-next-pending: pull in more iw_cxgb4 fixes.

Pull in these heading into 3.15:

Hariprasad Shenai (1):
      iw_cxgb4: Use pr_warn_ratelimited

Steve Wise (9):
      iw_cxgb4: use the BAR2/WC path for kernel QPs and T5 devices
      iw_cxgb4: endpoint timeout fixes
      iw_cxgb4: rmb() after reading valid gen bit
      iw_cxgb4: SQ flush fix
      iw_cxgb4: Max fastreg depth depends on DSGL support
      iw_cxgb4: Initialize reserved fields in a FW work request
      iw_cxgb4: Add missing debug stats
      iw_cxgb4: Use uninitialized_var()
      iw_cxgb4: fix over-dereference when terminating

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agolinux-next-pending: Pull pending iw_cxgb4 fixes
Steve Wise [Thu, 3 Apr 2014 17:47:23 +0000 (12:47 -0500)]
linux-next-pending: Pull pending iw_cxgb4 fixes

Pull in these commits from:

git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git

branch for-next:

1410e14 RDMA/cxgb4: Disable DSGL use.
13f17b7 RDMA/cxgb4: rx_data() needs to hold the ep mutex
925902f RDMA/cxgb4: Drop RX_DATA packets if the endpoint is gone
9306dcb RDMA/cxgb4: Lock around accept/reject downcalls
9c88aa0 RDMA/cxgb4: Update snd_seq when sending MPA messages
be13b2d RDMA/cxgb4: Connect_request_upcall fixes
70b9c66 RDMA/cxgb4: Ignore read reponse type 1 CQEs
1ce1d47 RDMA/cxgb4: Fix possible memory leak in RX_PKT processing
dbb084c RDMA/cxgb4: Don't leak skb in c4iw_uld_rx_handler()
eda6d1d RDMA/cxgb4: Save the correct map length for fast_reg_page_lists
df2d513 RDMA/cxgb4: Default peer2peer mode to 1
ba32de9 RDMA/cxgb4: Mind the sq_sig_all/sq_sig_type QP attributes
8a9c399 RDMA/cxgb4: Fix incorrect BUG_ON conditions
ebf0006 RDMA/cxgb4: Always release neigh entry
f8e8190 RDMA/cxgb4: Allow loopback connections
ffd4359 RDMA/cxgb4: Cap CQ size at T4_MAX_IQ_SIZE
e24a72a RDMA/cxgb4: Fix four byte info leak in c4iw_create_cq()
ff1706f RDMA/cxgb4: Fix underflows in c4iw_create_qp()

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agoNFSRDMA: fix client connect crash with RHEL/SLES backports.
Steve Wise [Wed, 2 Apr 2014 20:01:30 +0000 (15:01 -0500)]
NFSRDMA: fix client connect crash with RHEL/SLES backports.

xprt_rdma_connect() takes 1 parameter in sles11sp3 and rhel6.5 kernels.
Yet the OFED version takes 2 parameters.  Need more backport magic...

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agoFix NFSRDMA SLES11sp3 backport patch.
Steve Wise [Mon, 31 Mar 2014 20:42:58 +0000 (15:42 -0500)]
Fix NFSRDMA SLES11sp3 backport patch.

The SLES11SP3 patch breaks RHEL6.5 functionality.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agolinux-next-pending: Pull in cxgb4 fixes
Steve Wise [Mon, 31 Mar 2014 20:37:48 +0000 (15:37 -0500)]
linux-next-pending: Pull in cxgb4 fixes

Pull in these fixes from
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git

commit 7a2cea2aaae2d5eb5c00c49c52180c7c2c66130a
Author: Steve Wise <swise@opengridcomputing.com>
Date:   Fri Mar 14 21:52:07 2014 +0530

    cxgb4/iw_cxgb4: Treat CPL_ERR_KEEPALV_NEG_ADVICE as negative advice

commit 05eb23893c2cf9502a9cec0c32e7f1d1ed2895c8
Author: Steve Wise <swise@opengridcomputing.com>
Date:   Fri Mar 14 21:52:08 2014 +0530

    cxgb4/iw_cxgb4: Doorbell Drop Avoidance Bug Fixes

commit bfd2793c9559ae73ae021797f1d4b097c27f24be
Author: Yann Droneaud <[mailto:ydroneaud@opteya.com]>
Date:   Fri Mar 28 14:55:21 2014 -0400

    RDMA/cxgb4: set error code on kmalloc() failure

commit 0183aa626f467dad278050f0918a243164ae5916
Author: Hariprasad Shenai <hariprasad@chelsio.com>
Date:   Thu Mar 27 18:17:09 2014 +0530

    cxgb4: Adds device ID for few more Chelsio Adapters

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agolinux-next-pending: Pull in NFSRDMA fixes.
Steve Wise [Mon, 31 Mar 2014 20:37:47 +0000 (15:37 -0500)]
linux-next-pending: Pull in NFSRDMA fixes.

From git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next:

commit 2b7bbc963da8d076f263574af4138b5df2e1581f
Author: Chuck Lever <chuck.lever@oracle.com>
Date:   Wed Mar 12 12:51:30 2014 -0400

    SUNRPC: Fix large reads on NFS/RDMA

From git://linux-nfs.org/~bfields/linux.git for-3.15:

commit 7e4359e2611f95a97037e2b6905eab52f28afbeb
Author: Tom Tucker <tom@ogc.us>
Date:   Tue Mar 25 15:14:57 2014 -0500

    Fix regression in NFSRDMA server

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agoAdded RHEL7.0 support + refreshed backports
Vladimir Sokolovsky [Tue, 18 Mar 2014 16:14:03 +0000 (18:14 +0200)]
Added RHEL7.0 support + refreshed backports

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agocompat-rdma.spec: Add include/linux/compat_autoconf.h to compat-rdma-devel RPM
Vladimir Sokolovsky [Mon, 17 Mar 2014 15:50:27 +0000 (17:50 +0200)]
compat-rdma.spec: Add include/linux/compat_autoconf.h to compat-rdma-devel RPM

issue: http://bugs.openfabrics.org/show_bug.cgi?id=2474

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agolinux-next-cherry-picks: Bring upstream fixes on cxgb4
Kumar Sanghvi [Mon, 17 Mar 2014 08:10:25 +0000 (13:40 +0530)]
linux-next-cherry-picks: Bring upstream fixes on cxgb4

This patch brings in below fixes on cxgb4 from linux-next:
ca71de6 (cxgb4: Calculate len properly for LSO path)
c2b955e (cxgb4: Updates for T5 SGE's Egress Congestion Threshold)
0f4d201 (cxgb4: Rectify emitting messages about SGE Ingress DMA channels being potentially stuck)
68bce192 (cxgb4: Add code to dump SGE registers when hitting idma hangs)
92ddcc7 (cxgb4: Fix some small bugs in t4_sge_init_soft() when our Page Size is 64KB)

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
6 years agoRDMA/ocrdma:Rollback patch for RDMA-READ posting on DPP
Devesh Sharma [Tue, 25 Feb 2014 15:48:45 +0000 (07:48 -0800)]
RDMA/ocrdma:Rollback patch for RDMA-READ posting on DPP

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
6 years agoFixed nfsrdma compilation issue on RHEL6.4/5
Vladimir Sokolovsky [Mon, 24 Feb 2014 16:46:45 +0000 (18:46 +0200)]
Fixed nfsrdma compilation issue on RHEL6.4/5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoMerge branch 'master' of ssh://beany.openfabrics.org/home/maheshv/for-vlad/compat...
Vladimir Sokolovsky [Mon, 24 Feb 2014 07:57:43 +0000 (09:57 +0200)]
Merge branch 'master' of ssh://beany.openfabrics.org/home/maheshv/for-vlad/compat-rdma-bare/compat-rdma

6 years agoMerge branch 'master' of ssh://git.openfabrics.org/home/vipulp/ofed_3_12/compat-rdma
Vladimir Sokolovsky [Mon, 24 Feb 2014 07:31:01 +0000 (09:31 +0200)]
Merge branch 'master' of ssh://git.openfabrics.org/home/vipulp/ofed_3_12/compat-rdma

6 years agoNFSRDMA: Renumber SLES11sp3 patch Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa...
Jeffrey C. Becker [Thu, 20 Feb 2014 17:51:06 +0000 (09:51 -0800)]
NFSRDMA: Renumber SLES11sp3 patch Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa.gov>

6 years agoNFSRDMA: SLES11sp3 backport Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa.gov>
Jeffrey C. Becker [Wed, 19 Feb 2014 23:42:08 +0000 (15:42 -0800)]
NFSRDMA: SLES11sp3 backport Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa.gov>

6 years agobe2net: added backport patch and updated version string
Devesh Sharma [Fri, 21 Feb 2014 19:35:29 +0000 (11:35 -0800)]
be2net: added backport patch and updated version string

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
6 years agolinux_next_pending: Add embedded f/w support for Chelsio T4/T5 adapters
Kumar Sanghvi [Fri, 21 Feb 2014 14:10:24 +0000 (19:40 +0530)]
linux_next_pending: Add embedded f/w support for Chelsio T4/T5 adapters

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
6 years agoRDMA/ocrdma: adding fix for rmmod crash
Devesh Sharma [Thu, 20 Feb 2014 10:36:34 +0000 (02:36 -0800)]
RDMA/ocrdma: adding fix for rmmod crash

1852d1da3b4723d7db0d490f54c07442b3e1c452 RDMA/ocrdma: Fix a crash in rmmod

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
6 years agoMerge branch 'master' of ssh://beany.openfabrics.org/home/vipulp/ofed_3_12/compat...
Vladimir Sokolovsky [Thu, 20 Feb 2014 08:54:45 +0000 (10:54 +0200)]
Merge branch 'master' of ssh://beany.openfabrics.org/home/vipulp/ofed_3_12/compat-rdma

6 years agopatches: Backport for 40G support for Chelsio
Kumar Sanghvi [Wed, 19 Feb 2014 08:56:21 +0000 (14:26 +0530)]
patches: Backport for 40G support for Chelsio

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
6 years agolinux-next-cherry-picks: Bring upstream fixes on cxgb4
Kumar Sanghvi [Wed, 19 Feb 2014 07:11:12 +0000 (12:41 +0530)]
linux-next-cherry-picks: Bring upstream fixes on cxgb4

Bring below upstream fixes on cxgb4:
f0a8e6d cxgb4: Add more PCI device ids.
0034b29 cxgb4: Don't assume LSO only uses SGL path in t4_eth_xmit()
c1f49e3 cxgb4: Remove unused registers and add missing ones
1ac0f09 cxgb4: Query firmware for T5 ULPTX MEMWRITE DSGL capabilities
4fe44dd cxgb4: LE-Workaround is not atomic in firmware
57d8b76 cxgb4: Allow >10G ports to have multiple queues
a94cd70 cxgb4: Print adapter VPD Part Number instead of Engineering Change field
72aca4b cxgb4: Add support to recognize 40G links

This adds support for Chelsio 40G adapters.
And also, brings in misc. fixes on cxgb4 for T4 and T5 adapters.

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
6 years agoRDMA/ocrdma: updated next-pending with inflight patches
Devesh Sharma [Wed, 19 Feb 2014 11:12:14 +0000 (03:12 -0800)]
RDMA/ocrdma: updated next-pending with inflight patches

Following patches are inflight currently. Adding here to make ocrmda synced.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
6 years agoRDMA/ocrdma: Added ocrdma cherry-picks based on upstream commits
Devesh Sharma [Wed, 19 Feb 2014 11:10:35 +0000 (03:10 -0800)]
RDMA/ocrdma: Added ocrdma cherry-picks based on upstream commits

fe5e8a1acc7fd877b6706053cf88c418c33fe7a3 RDMA/ocrdma: Fix AV_VALID bit position
be8348df6efac6b602f2ad3210139bccf0dbe3d7 RDMA/ocrdma: Fix OCRDMA_GEN2_FAMILY macro definition
da2f920ba5405aa1d1b2c71168e5c59f9ef732dc RDMA/ocrdma: Fix traffic class shift
b140314053fe6b7f4543b3e9c92f716712ec3d7a RDMA/ocrdma: Fix load time panic during GID table init

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
6 years agolinux-next-cherry-picks: Bring upstream fix on RDMA/cxgb4 LE-Workaround path
Kumar Sanghvi [Tue, 18 Feb 2014 10:47:57 +0000 (16:17 +0530)]
linux-next-cherry-picks: Bring upstream fix on RDMA/cxgb4 LE-Workaround path

This brings upstream fix 0f01320 (RDMA/cxgb4: Add missing neigh_release in LE-Workaround path),
and makes corresponding backport adjustment.
This resolves OFED Bugzilla Bug#2459

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
6 years agoopenibd: Change unload module flow
Vladimir Sokolovsky [Mon, 17 Feb 2014 14:06:48 +0000 (16:06 +0200)]
openibd: Change unload module flow

Modules will be removed recursively, following their dependencies.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoRDMA/nes: Fixes for OFED-3.12
Tatyana E. Nikolova [Thu, 13 Feb 2014 19:01:00 +0000 (11:01 -0800)]
RDMA/nes: Fixes for OFED-3.12

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
6 years agogen-compat-config.sh: Fix SLES11 SP3 detection
Vladimir Sokolovsky [Thu, 13 Feb 2014 08:17:49 +0000 (10:17 +0200)]
gen-compat-config.sh: Fix SLES11 SP3 detection

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoFixed nfsrdma backport patch name
Vladimir Sokolovsky [Wed, 5 Feb 2014 07:56:56 +0000 (09:56 +0200)]
Fixed nfsrdma backport patch name

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoNFSRDMA: Add RHEL6.5 backport Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa.gov>
Jeffrey C. Becker [Tue, 4 Feb 2014 00:17:34 +0000 (16:17 -0800)]
NFSRDMA: Add RHEL6.5 backport Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa.gov>

6 years agoocrdma: idr_alloc backport for kernels < 3.9
Vladimir Sokolovsky [Mon, 3 Feb 2014 15:50:00 +0000 (17:50 +0200)]
ocrdma: idr_alloc backport for kernels < 3.9

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoocrdma: Enable header file inclusion with absolute path
Vladimir Sokolovsky [Mon, 3 Feb 2014 15:42:07 +0000 (17:42 +0200)]
ocrdma: Enable header file inclusion with absolute path

ocrdma driver includes header files of benet driver.
OFED build environment is not able to find the header files
if absolute path is not given.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoIB/mlx5: Fix binary compatibility with libmlx5
Vladimir Sokolovsky [Mon, 3 Feb 2014 15:25:40 +0000 (17:25 +0200)]
IB/mlx5: Fix binary compatibility with libmlx5

Commit c1be5232d21d "Fix micro UAR allocator" broke binary compatibility
between libmlx5 and mlx5_ib since it defines a different value to the number of
micro UARs per page, leading to wrong calculation in libmlx5. This patch
defines struct mlx5_ib_alloc_ucontext_req_v2 as an extension to struct
mlx5_ib_alloc_ucontext_req.  The extended size is determined in
mlx5_ib_alloc_ucontext() and in case of old library we use uuarn 0 which works
fine -- this is acheived due to create_user_qp() falling back from high to
medium then to low class where low class will return 0. For new libraries we
use the more sophisticated allocation algorithm.

Issue: 371069

Change-Id: I43b67013e11f4c8dc395b4920118fe2831ffe19d
Fixes: c1be5232d21d ('Fix micro UAR allocator')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoRefreshed linux-next-cherry-picks to be applied cleanly by git am
Vladimir Sokolovsky [Mon, 3 Feb 2014 15:20:54 +0000 (17:20 +0200)]
Refreshed linux-next-cherry-picks to be applied cleanly by git am

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoAdded mlx5 cherry-picks based on upstream commits
Vladimir Sokolovsky [Mon, 3 Feb 2014 15:18:36 +0000 (17:18 +0200)]
Added mlx5 cherry-picks based on upstream commits

57761d8df8efc7cc1227f9bc22e0dda01b0dd91b IB/mlx5: Verify reserved fields are cleared
8c8a49148b95c4d7c5f58a6866a30ea02485d7a3 IB/mlx5: Remove old field for create mkey mailbox
1bde6e301cf6217da9238086c958f532b16e504d IB/mlx5: Abort driver cleanup if teardown hca fails
9e9c47d07d447e09a66ee528c3ebad9ba359af6a IB/mlx5: Allow creation of QPs with zero-length work queues
05bdb2ab6b09f2306f0afe0f60f4b9abffa7aba4 mlx5_core: Fix PowerPC support
db81a5c374b5bd650c5e6ae85d026709751db103 mlx5_core: Improve debugfs readability
bde51583f49bd87e452e9504d489926638046b11 IB/mlx5: Add support for resize CQ
3bdb31f688276505ede23280885948e934304674 IB/mlx5: Implement modify CQ
ada388f7afad1e2e87acbfe30600fdaff9bd6327 IB/mlx5: Make sure doorbell record is visible before doorbell
042b9adae899e1b497282d92205d3fef42d5ca8d mlx5_core: Use mlx5 core style warning
0b6e81b91070bdbe0defb9101384ebb26835e401 IB/mlx5: Clear out struct before create QP command
e08a8761d89b7625144c3fbf0ff9643159135c96 mlx5_core: Fix out arg size in access_register command
c1be5232d21de68f46637e617225b9b7c586451a IB/mlx5: Fix micro UAR allocator
24e42754f676d34e5c26d6b7b30f36df8004ec08 mlx5_core: Remove dead code
d9fe40916387bab884e458c99399c149b033506c IB/mlx5: Remove unused code in mr.c
cf1c5e1f1c965cf44e680127b2e9564fc472676c IB/mlx5: Fix page shift in create CQ for userspace
2b136d025348774633a2f6fc2a87f0cf409a3ab9 IB/mlx5: Fix list_del of empty list
7e2e19210a8bbbcacd31e8ce4a0ea64e3ac37dea IB/mlx5: Remove dead code
1b77d2bd753d119eedcbc08fda58934307676554 mlx5: Use enum to indicate adapter page size
c2a3431e6153ed90911704356bc1e869624e118d IB/mlx5: Update opt param mask for RTS2RTS
07c9113fe8c67e28707b0a4b1e8580abe0327145 IB/mlx5: Remove "Always false" comparison
2d036fad949080f178e02b12c93a61367e9f562f IB/mlx5: Remove dead code in mr.c
4e3d677ba986d5c8e76ee1742c1d4d79bc197d5c mlx5_core: Change optimal_reclaimed_pages for better performance
87b8de492da34942fc554f2958a570ce0642296a mlx5: Clear reserved area in set_hca_cap()
bf0bf77f6519e5dcd57a77b47e1d151c1e81b7ec mlx5: Support communicating arbitrary host page size to firmware
952f5f6e807ba82e1b82fcfcf7f73db022342aa7 mlx5: Fix cleanup flow when DMA mapping fails
cfd8f1d49b61b20aab77d5af5ec907dc99bb0064 IB/mlx5: Fix srq free in destroy qp
1faacf82dfb3e0027087ff7e6aae5e0643b98a4d IB/mlx5: Simplify mlx5_ib_destroy_srq
9641b74ebee65320fa52172995d6df12b641caa5 IB/mlx5: Fix overflow check in IB_WR_FAST_REG_MR
746b5583c1a48a837f4891adaff5e09d61b204a6 IB/mlx5: Multithreaded create MR
51ee86a4af639e4ee8953dd02ad8a766c40f46a1 IB/mlx5: Fix check of number of entries in create CQ

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoAdded benet support compat-rdma-2014-01-30
Vladimir Sokolovsky [Wed, 29 Jan 2014 15:42:27 +0000 (17:42 +0200)]
Added benet support

issue: http://bugs.openfabrics.org/show_bug.cgi?id=2460

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoRefreshed backport patches
Vladimir Sokolovsky [Thu, 23 Jan 2014 16:09:26 +0000 (18:09 +0200)]
Refreshed backport patches

Fixed patches format to support git-am

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoscsi/Makefile: Avoid recompilation of the whole SCSI stack
Vladimir Sokolovsky [Thu, 23 Jan 2014 15:42:26 +0000 (17:42 +0200)]
scsi/Makefile: Avoid recompilation of the whole SCSI stack

Leave only SRP related staff

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoMerge branch 'master' of git://beany.openfabrics.org/~tnikolova/compat-rdma
Vladimir Sokolovsky [Sun, 19 Jan 2014 13:32:09 +0000 (15:32 +0200)]
Merge branch 'master' of git://beany.openfabrics.org/~tnikolova/compat-rdma

6 years agoRDMA/nes: 3.12 backport patches
Tatyana E. Nikolova [Fri, 17 Jan 2014 16:45:59 +0000 (08:45 -0800)]
RDMA/nes: 3.12 backport patches

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
6 years agotruescale.cmds: fixes some issues with errors
Mike Marciniszyn [Tue, 14 Jan 2014 15:05:02 +0000 (10:05 -0500)]
truescale.cmds: fixes some issues with errors

This fix checks for an Intel HCA and silences some other
errors when attempting to read files that are not present.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
6 years agotruescale.cmds: fix many issues with irqbalance banning
Mike Marciniszyn [Tue, 14 Jan 2014 14:51:50 +0000 (09:51 -0500)]
truescale.cmds: fix many issues with irqbalance banning

The following issues are addressed:
- Detect --banirq vs. IRQ_BALANCE_BANNED_INTERRUPTS
- Configure --banirq vs. IRQ_BALANCE_BANNED_INTERRUPTS
- Detect unconfigurable banning (SLES11SP2/3)
- Determine service name correctly
- Use grep to cut out qib interrupts from banned configuration

This patch also adds the shell comment line to better
support invokation from udev.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
6 years agoMerge branch 'master' of git://git.openfabrics.org/~mmarciniszyn/new_ofed/compat...
Vladimir Sokolovsky [Sun, 12 Jan 2014 12:35:34 +0000 (14:35 +0200)]
Merge branch 'master' of git://git.openfabrics.org/~mmarciniszyn/new_ofed/compat-rdma

6 years agotruescale.cmds: add override for Dell QME backplane ver
Mike Marciniszyn [Fri, 10 Jan 2014 16:41:35 +0000 (11:41 -0500)]
truescale.cmds: add override for Dell QME backplane ver

The default is 1.   The override allows use
of a different backplane version.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
6 years agotruescale.cmds: Fix blade type discovery on new M420 Dell blades
Mitko Haralanov [Fri, 10 Jan 2014 16:41:34 +0000 (11:41 -0500)]
truescale.cmds: Fix blade type discovery on new M420 Dell blades

The new type of blades have a different format for the
serial number so we need to adjust how we discover the
bay number.

Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com>
6 years agotruescale.cmds: Add Intel copyright notice.
Mitko Haralanov [Fri, 10 Jan 2014 16:41:33 +0000 (11:41 -0500)]
truescale.cmds: Add Intel copyright notice.

Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com>
6 years agotruescale.cmds: Fix quoting issues in truescale.cmds
Mitko Haralanov [Fri, 10 Jan 2014 16:41:32 +0000 (11:41 -0500)]
truescale.cmds: Fix quoting issues in truescale.cmds

Missed quotes create an issue with shell special
characters. Fix by quoting string.

Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com>
6 years agotruescale.cmds: Adjust QME724x TX tunings based on BP version
Mitko Haralanov [Fri, 10 Jan 2014 16:41:30 +0000 (11:41 -0500)]
truescale.cmds: Adjust QME724x TX tunings based on BP version

The Dell blade chassis got an updated backplane which
requires new transmitter tuning settings. With this
change the tuning script will query the driver for the
backplane version and set the TX settings according to
BP version and slot in the chassis.

Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com>
6 years agotruescale.cmds: Ban irqbalance from re-arranging our IRQs
Mitko Haralanov [Fri, 10 Jan 2014 16:41:29 +0000 (11:41 -0500)]
truescale.cmds: Ban irqbalance from re-arranging our IRQs

We've already assigned our IRQs to the proper cores and
we don't want irqbalance messing with them. Use the
IRQBALANCE_BANNED_INTERRUPTS environment variable to
stop irqbalance from re-arranging our IRQs.

Signed-off-by: Mitko Haralanov <mitko@qlogic.com>
6 years agotruescale.cmds: Wait for /dev/ipath* devices before changing permissions
Mitko Haralanov [Fri, 10 Jan 2014 16:41:28 +0000 (11:41 -0500)]
truescale.cmds: Wait for /dev/ipath* devices before changing permissions

Wait for up to 30 seconds for the /dev/ipath* devices to appear
before attempting to change their permissions. This helps with
system which boot a bit slower on which the device permissions
could be left in the wrong state.

Signed-off-by: Mitko Haralanov <mitko@qlogic.com>
6 years agocompat-rdma.spec: add backplane override
Mike Marciniszyn [Fri, 10 Jan 2014 16:41:27 +0000 (11:41 -0500)]
compat-rdma.spec: add backplane override

Add a qib specific openib.conf parameter, QIB_QME_BPVER.

The default is one.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
6 years agoIB/qib: Port upstream commits to 3.12
Dennis Dalessandro [Thu, 9 Jan 2014 16:56:29 +0000 (11:56 -0500)]
IB/qib: Port upstream commits to 3.12

2fadd83 IB/qib: Fix txselect regression
603e772 IB/qib: Convert qib_user_sdma_pin_pages() to use get_user_pages_fast()

Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
6 years agoIB/qib: 3.12 backport patches
Dennis Dalessandro [Mon, 30 Dec 2013 16:30:06 +0000 (11:30 -0500)]
IB/qib: 3.12 backport patches

Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
6 years agoIB/qib/ipath: patches from 3.5 carried forward
Dennis Dalessandro [Mon, 30 Dec 2013 15:09:31 +0000 (10:09 -0500)]
IB/qib/ipath: patches from 3.5 carried forward

Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
6 years agocxgb3: Update driver version to reflect ofed
Kumar Sanghvi [Thu, 26 Dec 2013 07:25:57 +0000 (12:55 +0530)]
cxgb3: Update driver version to reflect ofed

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
6 years agocxgb4: Update driver version to reflect ofed
Kumar Sanghvi [Tue, 24 Dec 2013 19:07:17 +0000 (00:37 +0530)]
cxgb4: Update driver version to reflect ofed

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>