]> git.openfabrics.org - ~emulex/compat-rdma_3.12.git/commit
RDAM/ocrdma: Pull ocrdma bug fixes This also has syncup patches from upstream kernel.
authorMitesh Ahuja <mitesh.ahuja@emulex.com>
Tue, 19 Aug 2014 13:02:26 +0000 (18:32 +0530)
committerMitesh Ahuja <mitesh.ahuja@emulex.com>
Tue, 19 Aug 2014 13:26:16 +0000 (06:26 -0700)
commit550a4fd572fc2507ca2dced57d286dfb5c860e57
treeeb0d81f21a1a0900fff0fae835f1eea5ce194626
parent2dee2177f8a34d8e64b517b6df0b8dcb7642d1b9
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>
55 files changed:
linux-next-cherry-picks/0134-RDMA-ocrdma-Eq-full-catastrophe-avoidance.patch [new file with mode: 0644]
linux-next-cherry-picks/0135-RDMA-ocrdma-SQ-and-RQ-doorbell-offset-clean-up.patch [new file with mode: 0644]
linux-next-cherry-picks/0136-RDMA-ocrdma-read-ASIC_ID-register-to-select-asic_gen.patch [new file with mode: 0644]
linux-next-cherry-picks/0137-RDMA-ocrdma-Allow-DPP-QP-creation.patch [new file with mode: 0644]
linux-next-cherry-picks/0138-RDMA-ocrdma-ABI-versioning-between-ocrdma-and-be2net.patch [new file with mode: 0644]
linux-next-cherry-picks/0139-RDMA-ocrdma-update-version-string.patch [new file with mode: 0644]
linux-next-cherry-picks/0140-RDMA-ocrdma-increment-abi-version-count.patch [new file with mode: 0644]
linux-next-cherry-picks/0141-RDMA-ocrdma-Memory-leak-fix-in-ocrdma_dereg_mr.patch [new file with mode: 0644]
linux-next-cherry-picks/0142-RDMA-ocrdma-Use-non-zero-tag-in-SRQ-posting.patch [new file with mode: 0644]
linux-next-cherry-picks/0143-RDMA-ocrdma-Display-proper-value-for-max_mw.patch [new file with mode: 0644]
linux-next-cherry-picks/0144-RDMA-ocrdma-Handle-CQ-overrun-error.patch [new file with mode: 0644]
linux-next-cherry-picks/0145-RDMA-ocrdma-Support-non-embedded-mailbox-commands.patch [new file with mode: 0644]
linux-next-cherry-picks/0146-RDMA-ocrdma-Query-controller-information.patch [new file with mode: 0644]
linux-next-cherry-picks/0147-RDMA-ocrdma-Support-for-Skyhawk-statistics.patch [new file with mode: 0644]
linux-next-cherry-picks/0148-RDMA-ocrdma-Display-fw-version.patch [new file with mode: 0644]
linux-next-cherry-picks/0149-RDMA-ocrdma-code-clean-up.patch [new file with mode: 0644]
linux-next-cherry-picks/0150-be2net-adding-abi-version-between-be2net-and-ocrdma.patch [new file with mode: 0644]
linux-next-cherry-picks/0151-RDMA-ocrdma-ROLLBACK-dpp-posting-for-RDMA-READ.patch [new file with mode: 0644]
linux-next-cherry-picks/0152-RDMA-ocrdma-Query-and-initalize-the-PFC-SL.patch [new file with mode: 0644]
linux-next-cherry-picks/0153-RDMA-ocrdma-Adding-hca_type-string-in-device-atrribu.patch [new file with mode: 0644]
linux-next-cherry-picks/0154-RDMA-ocrdma-Handle-shutdown-event-from-be2net-driver.patch [new file with mode: 0644]
linux-next-cherry-picks/0155-RDMA-ocrdma-Remove-hardcoding-of-the-max-DPP-QPs-sup.patch [new file with mode: 0644]
linux-next-cherry-picks/0156-RDMA-ocrdma-Delete-AH-table-if-ocrdma_init_hw-fails-.patch [new file with mode: 0644]
linux-next-cherry-picks/0157-RDMA-ocrdma-Avoid-reporting-wrong-completions-in-cas.patch [new file with mode: 0644]
linux-next-cherry-picks/0158-RDMA-ocrdma-Allow-only-SEND-opcode-in-case-of-UD-QPs.patch [new file with mode: 0644]
linux-next-cherry-picks/0159-RDMA-ocrdma-Do-proper-cleanup-evenif-FW-is-in-error-.patch [new file with mode: 0644]
linux-next-cherry-picks/0160-RDMA-ocrdma-Return-proper-value-for-max_mr_size.patch [new file with mode: 0644]
linux-next-cherry-picks/0161-RDMA-ocrdma-Add-missing-adapter-mailbox-opcodes.patch [new file with mode: 0644]
linux-next-cherry-picks/0162-RDMA-ocrdma-Increase-the-size-of-STAG-array-in-dev-s.patch [new file with mode: 0644]
linux-next-cherry-picks/0163-RDMA-ocrdma-Fixing-a-sparse-warning.patch [new file with mode: 0644]
linux-next-cherry-picks/0164-RDMA-ocrdma-Update-the-ocrdma-module-version-string.patch [new file with mode: 0644]
linux-next-cherry-picks/0165-RDMA-ocrdma-obtain-sl-from-deivce-structure.patch [new file with mode: 0644]
linux-next-cherry-picks/0166-RDMA-ocrdma-update-sli-data-structure-for-endian-nes.patch [new file with mode: 0644]
linux-next-cherry-picks/0167-RDMA-ocrdma-report-asic-id-in-query-device.patch [new file with mode: 0644]
linux-next-pending/0005-RDMA-ocrdma-Eq-full-catastrophe-avoidance.patch [deleted file]
linux-next-pending/0005-RDMA-ocrdma-do-not-skip-setting-deffered_arm.patch [new file with mode: 0644]
linux-next-pending/0006-RDMA-ocrdma-Report-actual-value-of-max_fast_reg_page.patch [new file with mode: 0644]
linux-next-pending/0006-RDMA-ocrdma-SQ-and-RQ-doorbell-offset-clean-up.patch [deleted file]
linux-next-pending/0007-RDMA-ocrdma-read-ASIC_ID-register-to-select-asic_gen.patch [deleted file]
linux-next-pending/0008-RDMA-ocrdma-Allow-DPP-QP-creation.patch [deleted file]
linux-next-pending/0009-RDMA-ocrdma-ABI-versioning-between-ocrdma-and-be2net.patch [deleted file]
linux-next-pending/0010-RDMA-ocrdma-update-version-string.patch [deleted file]
linux-next-pending/0011-RDMA-ocrdma-increment-abi-version-count.patch [deleted file]
linux-next-pending/0012-RDMA-ocrdma-Memory-leak-fix-in-ocrdma_dereg_mr.patch [deleted file]
linux-next-pending/0013-RDMA-ocrdma-Use-non-zero-tag-in-SRQ-posting.patch [deleted file]
linux-next-pending/0014-RDMA-ocrdma-Display-proper-value-for-max_mw.patch [deleted file]
linux-next-pending/0015-RDMA-ocrdma-Handle-CQ-overrun-error.patch [deleted file]
linux-next-pending/0016-RDMA-ocrdma-Support-non-embedded-mailbox-commands.patch [deleted file]
linux-next-pending/0017-RDMA-ocrdma-Query-controller-information.patch [deleted file]
linux-next-pending/0018-RDMA-ocrdma-Support-for-Skyhawk-statistics.patch [deleted file]
linux-next-pending/0019-RDMA-ocrdma-Display-fw-version.patch [deleted file]
linux-next-pending/0020-RDMA-ocrdma-code-clean-up.patch [deleted file]
linux-next-pending/0021-be2net-adding-abi-version-between-be2net-and-ocrdma.patch [deleted file]
linux-next-pending/0023-RDMA-ocrdma-ROLLBACK-dpp-posting-for-RDMA-READ.patch [deleted file]
patches/0032-be2net-Issue-shutdown-event-to-ocrdma-driver.patch [new file with mode: 0644]