[PATCH 03/23] staging/rdma/hfi1: Extend the offline timeout

2015-10-19 Thread ira . weiny
From: Dean Luick The latest version of the 8051 firmware will wait longer when bringing the link down. Extend the driver's timeout to go with that. Reviewed-by: Dennis Dalessandro Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 2 +- 1 file ch

[PATCH 04/23] staging/rdma/hfi1: Implement time-out for send context halt recovery

2015-10-19 Thread ira . weiny
From: Vennila Megavannan This patch increases the timout for packet egress to 500 us and timer resets to zero if the packet occupancy changes. Also we bounce the link on time out. Reviewed-by: Dean Luick Signed-off-by: Vennila Megavannan Signed-off-by: Ira Weiny --- drivers/staging/rdma

[PATCH 18/23] staging/rdma/hfi1: Thread the receive interrupt.

2015-10-19 Thread ira . weiny
(bandwidth). Reviewed-by: Mike Marciniszyn Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 104 + drivers/staging/rdma/hfi1/driver.c | 72 ++--- drivers/staging/rdma/hfi1/hfi.h| 20 +-- drivers

[PATCH 06/23] staging/rdma/hfi1: Add coalescing support for SDMA TX descriptors

2015-10-19 Thread ira . weiny
coalesced buffer. Verbs potentially need this support when transferring small data chunks involving different memory regions. Reviewed-by: Mike Marciniszyn Reviewed-by: Mitko Haralanov Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/sdma.c | 124

[PATCH 07/23] staging/rdma/hfi1: optionally prescan rx queue for {B,F}ECNs - UC, RC

2015-10-19 Thread ira . weiny
-by: Dennis Dalessandro Signed-off-by: Arthur Kepner Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/driver.c | 77 +- drivers/staging/rdma/hfi1/hfi.h| 13 --- drivers/staging/rdma/hfi1/rc.c | 10 ++--- drivers/staging/rdma/hfi1/uc.c | 15 +

[PATCH 08/23] staging/rdma/hfi1: Method to toggle "fast ECN" detection

2015-10-19 Thread ira . weiny
From: Vennila Megavannan Add a module paramter to toggle prescan/Fast ECN Detection. In addition change the PRESCAN_RXQ Kconfig default to "yes". Reviewed-by: Arthur Kepner Reviewed-by: Mike Marciniszyn Signed-off-by: Vennila Megavannan Signed-off-by: Ira Weiny --- drivers/staging

[PATCH 16/23] staging/rdma/hfi1: Allow tuning of SDMA interrupt rate

2015-10-19 Thread ira . weiny
the tuning of the interrupt frequency until an optimal frequency is found for both PSM and Verbs. At that time, the parameter could be pulled out, if desired. Reviewed-by: Mike Marciniszyn Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/sdma.c | 8

[PATCH 19/23] staging/rdma/hfi: modify workqueue for parallelism

2015-10-19 Thread ira . weiny
d now uses the new scheduler - RC/UC QPs now pre-compute the sc, sde - The sde wq is eliminated since the new hfi1_wq is multi-threaded Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 1 + drivers/staging/rdma

[PATCH 23/23] staging/rdma/hfi1: Update driver version string to 0.9-294

2015-10-19 Thread ira . weiny
From: Jubin John Signed-off-by: Jubin John Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/common.h b/drivers/staging/rdma/hfi1/common.h index 7809093eb55e..5dd92720faae 100644 --- a

[PATCH 22/23] staging/rdma/hfi1: add additional rc traces

2015-10-19 Thread ira . weiny
From: Mike Marciniszyn Add additional rc traces to aid in debugging rc retry logic. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/rc.c| 4 drivers/staging/rdma/hfi1/trace.c | 4 ++-- drivers/staging/rdma

[PATCH 10/23] staging/rdma/hfi1: close shared context security hole

2015-10-19 Thread ira . weiny
From: Jareer Abdel-Qader Driver does not verify userid for shared context assignments, allowing malicious user access. Reviewed by: Mike Marciniszyn Signed-off-by: Jareer H Abdel-Qader Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 1 + 1 file changed, 1 insertion

[PATCH 15/23] staging/rdma/hfi1: Implement Expected Receive TID caching

2015-10-19 Thread ira . weiny
d-by: Arthur Kepner Reviewed-by: Dennis Dalessandro Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/Makefile |2 +- drivers/staging/rdma/hfi1/common.h | 15 +- drivers/staging/rdma/hfi1/file_ops.c | 494 ++--- drivers

[PATCH 13/23] staging/rdma/hfi1: Fix port bounce issues with 0.22 DC firmware

2015-10-19 Thread ira . weiny
. Reviewed-by: Dean Luick Signed-off-by: Easwar Hariharan Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index 3c48294abd20..0be37e9430af 100644 --- a/drivers/staging

[PATCH 12/23] staging/rdma/hfi1: Add a schedule in send thread

2015-10-19 Thread ira . weiny
From: Dean Luick When under heavy load, the send handler can run too long without allowing other tasks to run. Add a conditional resched to break this up. Reviewed-by: Mike Marciniszyn Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 10

[PATCH 21/23] staging/rdma/hfi1: Add unit # to verbs txreq cache name

2015-10-19 Thread ira . weiny
-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/verbs.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/verbs.c b/drivers/staging/rdma/hfi1/verbs.c index b2bb8ce97915..514956af5b5d 100644 --- a/drivers/staging/rdma/hfi1/verbs.c +++ b/drivers

[PATCH 20/23] staging/rdma/hfi1: Load SBus firmware once per ASIC

2015-10-19 Thread ira . weiny
haran Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/firmware.c | 31 --- drivers/staging/rdma/hfi1/pcie.c | 10 ++ 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/drivers/staging/rdma/hfi1/firmware.c b/drivers/staging/rdma/hfi1/firmw

[PATCH 17/23] staging/rdma/hfi1: Add irqsaves in the packet processing path

2015-10-19 Thread ira . weiny
candidate. Reviewed-by: Mike Marciniszyn Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/driver.c | 5 +++-- drivers/staging/rdma/hfi1/init.c | 5 +++-- drivers/staging/rdma/hfi1/mad.c| 4 ++-- drivers/staging/rdma/hfi1/rc.c | 19 +++---

[PATCH 14/23] staging/rdma/hfi1: Prevent silent data corruption with user SDMA

2015-10-19 Thread ira . weiny
ferencing the vector. Reviewed-by: Mike Marciniszyn Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/user_sdma.c | 90 --- 1 file changed, 52 insertions(+), 38 deletions(-) diff --git a/drivers/staging/rdma/hfi1/user_sdma

[PATCH 11/23] staging/rdma/hfi1: Reset firmware instead of reloading Sbus

2015-10-19 Thread ira . weiny
Reviewed-by: Dennis Dalessandro Reviewed-by: Dean Luick Signed-off-by: Caz Yokoyama Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.h | 1 + drivers/staging/rdma/hfi1/firmware.c | 4 +--- drivers/staging/rdma/hfi1/pcie.c | 13 - 3 files changed, 14 insert

[PATCH 09/23] staging/rdma/hfi1: Fix sparse error in sdma.h file

2015-10-19 Thread ira . weiny
From: Niranjana Vishwanathapura Use NULL instead of 0 for pointer argument to fix the sparse error. Reviewed-by: Mike Marciniszyn Reviewed-by: Mitko Haralanov Reviewed-by: Dennis Dalessandro Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1

[PATCH v2 02/22] staging/rdma/hfi1: Fix code to reset ASIC CSRs on FLR

2015-10-19 Thread ira . weiny
-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 35 +++ drivers/staging/rdma/hfi1/firmware.c | 4 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index 11523596ca57

[PATCH v2 00/22] staging/rdma/hfi1: Fix bugs and performance issues

2015-10-19 Thread ira . weiny
From: Ira Weiny The following are fixes to the hfi1 driver for stability, security, and performance. Changes from v1: Reviewed each patch for new features. Found 2 which fixed congestion notification in some corner cases but they could be considered additional features

[PATCH v2 04/22] staging/rdma/hfi1: Prevent host software lock up

2015-10-19 Thread ira . weiny
out. Reviewed-by: Dean Luick Signed-off-by: Vennila Megavannan Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/pio.c | 14 +++--- drivers/staging/rdma/hfi1/sdma.c | 15 --- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rdma/hfi1

[PATCH v2 01/22] staging/rdma/hfi1: Fix regression in send performance

2015-10-19 Thread ira . weiny
routine to qp.h for scope reasons. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.h| 15 +++ drivers/staging/rdma/hfi1/ruc.c | 13 - drivers/staging/rdma/hfi1/verbs.h | 2 -- 3 files changed

[PATCH v2 07/22] staging/rdma/hfi1: Fix sparse error in sdma.h file

2015-10-19 Thread ira . weiny
From: Niranjana Vishwanathapura Use NULL instead of 0 for pointer argument to fix the sparse error. Reviewed-by: Mike Marciniszyn Reviewed-by: Mitko Haralanov Reviewed-by: Dennis Dalessandro Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1

[PATCH v2 08/22] staging/rdma/hfi1: close shared context security hole

2015-10-19 Thread ira . weiny
From: Jareer Abdel-Qader Driver does not verify userid for shared context assignments, allowing malicious user access. Reviewed by: Mike Marciniszyn Signed-off-by: Jareer H Abdel-Qader Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 1 + 1 file changed, 1 insertion

[PATCH v2 09/22] staging/rdma/hfi1: Reset firmware instead of reloading Sbus

2015-10-19 Thread ira . weiny
Reviewed-by: Dennis Dalessandro Reviewed-by: Dean Luick Signed-off-by: Caz Yokoyama Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.h | 1 + drivers/staging/rdma/hfi1/firmware.c | 4 +--- drivers/staging/rdma/hfi1/pcie.c | 13 - 3 files changed, 14 insert

[PATCH v2 03/22] staging/rdma/hfi1: Extend the offline timeout

2015-10-19 Thread ira . weiny
From: Dean Luick The latest version of the 8051 firmware will wait longer when bringing the link down. Extend the driver's timeout to go with that. Reviewed-by: Dennis Dalessandro Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 2 +- 1 file ch

[PATCH v2 06/22] staging/rdma/hfi1: Add coalescing support for SDMA TX descriptors

2015-10-19 Thread ira . weiny
reserved and used for this coalesced buffer. Verbs potentially need this support when transferring small data chunks involving different memory regions. Reviewed-by: Mike Marciniszyn Reviewed-by: Mitko Haralanov Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Ira Weiny --- drivers

[PATCH v2 11/22] staging/rdma/hfi1: Fix port bounce issues with 0.22 DC firmware

2015-10-19 Thread ira . weiny
. Reviewed-by: Dean Luick Signed-off-by: Easwar Hariharan Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index 3c48294abd20..0be37e9430af 100644 --- a/drivers/staging

[PATCH v2 05/22] staging/rdma/hfi1: Remove QSFP_ENABLED from HFI capability mask

2015-10-19 Thread ira . weiny
From: Easwar Hariharan The QSFP interface code has been running without issues and the flag is never set to off. This patch removes the QSFP_ENABLED bit from HFI1_CAP. Reviewed-by: Mike Marciniszyn Signed-off-by: Easwar Hariharan Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c

[PATCH v2 10/22] staging/rdma/hfi1: Add a schedule in send thread

2015-10-19 Thread ira . weiny
From: Dean Luick When under heavy load, the send handler can run too long without allowing other tasks to run. Add a conditional resched to break this up. Reviewed-by: Mike Marciniszyn Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 10

[PATCH v2 22/22] staging/rdma/hfi1: Update driver version string to 0.9-294

2015-10-19 Thread ira . weiny
From: Jubin John Signed-off-by: Jubin John Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/common.h b/drivers/staging/rdma/hfi1/common.h index 7809093eb55e..5dd92720faae 100644 --- a

[PATCH v2 18/22] staging/rdma/hfi: modify workqueue for parallelism

2015-10-19 Thread ira . weiny
d now uses the new scheduler - RC/UC QPs now pre-compute the sc, sde - The sde wq is eliminated since the new hfi1_wq is multi-threaded Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 1 + drivers/staging/rdma

[PATCH v2 21/22] staging/rdma/hfi1: add additional rc traces

2015-10-19 Thread ira . weiny
From: Mike Marciniszyn Add additional rc traces to aid in debugging rc retry logic. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/rc.c| 4 drivers/staging/rdma/hfi1/trace.c | 4 ++-- drivers/staging/rdma

[PATCH v2 17/22] staging/rdma/hfi1: Thread the receive interrupt.

2015-10-19 Thread ira . weiny
(bandwidth). Reviewed-by: Mike Marciniszyn Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 104 + drivers/staging/rdma/hfi1/driver.c | 72 ++--- drivers/staging/rdma/hfi1/hfi.h| 20 +-- drivers

[PATCH v2 20/22] staging/rdma/hfi1: Add unit # to verbs txreq cache name

2015-10-19 Thread ira . weiny
-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/verbs.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/verbs.c b/drivers/staging/rdma/hfi1/verbs.c index cac3f4a30741..ece50ea837e5 100644 --- a/drivers/staging/rdma/hfi1/verbs.c +++ b/drivers

[PATCH v2 19/22] staging/rdma/hfi1: Load SBus firmware once per ASIC

2015-10-19 Thread ira . weiny
haran Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/firmware.c | 31 --- drivers/staging/rdma/hfi1/pcie.c | 10 ++ 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/drivers/staging/rdma/hfi1/firmware.c b/drivers/staging/rdma/hfi1/firmw

[PATCH v2 15/22] staging/rdma/hfi1: Allow tuning of SDMA interrupt rate

2015-10-19 Thread ira . weiny
for the tuning of the interrupt frequency until an optimal frequency is found for both PSM and Verbs. At that time, the parameter could be pulled out, if desired. Reviewed-by: Mike Marciniszyn Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/sdma.c | 8

[PATCH v2 13/22] staging/rdma/hfi1: Macro code clean up

2015-10-19 Thread ira . weiny
From: Mitko Haralanov Clean up the context and sdma macros and move them to a more logical place in hfi.h Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/hfi.h | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a

[PATCH v2 12/22] staging/rdma/hfi1: Prevent silent data corruption with user SDMA

2015-10-19 Thread ira . weiny
ferencing the vector. Reviewed-by: Mike Marciniszyn Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/user_sdma.c | 90 --- 1 file changed, 52 insertions(+), 38 deletions(-) diff --git a/drivers/staging/rdma/hfi1/user_sdma

[PATCH v2 14/22] staging/rdma/hfi1: Implement Expected Receive TID caching

2015-10-19 Thread ira . weiny
quot;unlimited" (as we've done up to this point), may result in jobs being killed by the kernel's OOM due to them taking up excessive amounts of memory. Reviewed-by: Arthur Kepner Reviewed-by: Dennis Dalessandro Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers

[PATCH v2 16/22] staging/rdma/hfi1: Add irqsaves in the packet processing path

2015-10-19 Thread ira . weiny
path. Anything that did not have an obvious, "close" irqsave in its caller is a candidate. Reviewed-by: Mike Marciniszyn Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/driver.c | 5 +++-- drivers/staging/rdma/hfi1/init.c | 5 +++-- drivers/st

[PATCH v3 00/23] staging/rdma/hfi1: Fix bugs and performance issues

2015-10-26 Thread ira . weiny
From: Ira Weiny The following are fixes to the hfi1 driver for stability, security, and performance. Changes from v2: Rebased to latest staging-next Update commit messages Squashed these patches together: 0006-staging-rdma-hfi1-Add-coalescing-support

[PATCH v3 02/23] staging/rdma/hfi1: Fix code to reset ASIC CSRs on FLR

2015-10-26 Thread ira . weiny
-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 35 +++ drivers/staging/rdma/hfi1/firmware.c | 4 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index 46ebc381a792

[PATCH v3 04/23] staging/rdma/hfi1: Prevent host software lock up

2015-10-26 Thread ira . weiny
out. Reviewed-by: Dean Luick Signed-off-by: Vennila Megavannan Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/pio.c | 14 +++--- drivers/staging/rdma/hfi1/sdma.c | 15 --- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rdma/hfi1

[PATCH v3 03/23] staging/rdma/hfi1: Extend the offline timeout

2015-10-26 Thread ira . weiny
From: Dean Luick The latest version of the 8051 firmware will wait longer when bringing the link down. Extend the driver's timeout to go with that. Reviewed-by: Dennis Dalessandro Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 2 +- 1 file ch

[PATCH v3 06/23] staging/rdma/hfi1: Add coalescing support for SDMA TX descriptors

2015-10-26 Thread ira . weiny
reserved and used for this coalesced buffer. Verbs potentially need this support when transferring small data chunks involving different memory regions. Reviewed-by: Mike Marciniszyn Reviewed-by: Mitko Haralanov Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Ira Weiny --- drivers

[PATCH v3 12/23] staging/rdma/hfi1: Macro code clean up

2015-10-26 Thread ira . weiny
From: Mitko Haralanov Clean up the context and sdma macros and move them to a more logical place in hfi.h Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/hfi.h | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a

[PATCH v3 01/23] staging/rdma/hfi1: Fix regression in send performance

2015-10-26 Thread ira . weiny
mitigate the performance impact. Finally, move the routine to qp.h for scope reasons. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.h| 15 +++ drivers/staging/rdma/hfi1/ruc.c | 13

[PATCH v3 05/23] staging/rdma/hfi1: Remove QSFP_ENABLED from HFI capability mask

2015-10-26 Thread ira . weiny
From: Easwar Hariharan The QSFP interface code has been running without issues and the flag is never set to off. This patch removes the QSFP_ENABLED bit from HFI1_CAP. Reviewed-by: Mike Marciniszyn Signed-off-by: Easwar Hariharan Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c

[PATCH v3 18/23] staging/rdma/hfi1: Thread the receive interrupt.

2015-10-26 Thread ira . weiny
(bandwidth). Reviewed-by: Mike Marciniszyn Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 104 + drivers/staging/rdma/hfi1/driver.c | 72 ++--- drivers/staging/rdma/hfi1/hfi.h| 20 +-- drivers

[PATCH v3 13/23] staging/rdma/hfi1: Wrong cast breaks desired pointer arithmetic

2015-10-26 Thread ira . weiny
a result, processes were looking at the wrong place and not seeing their notification events. Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rdma/hfi1/file_

[PATCH v3 15/23] staging/rdma/hfi1: Allow tuning of SDMA interrupt rate

2015-10-26 Thread ira . weiny
recommended default, which allows for the tuning of the interrupt frequency. Reviewed-by: Mike Marciniszyn Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- Change from v2: Squash in a patch with a recommended default value of 64. drivers/staging/rdma/hfi1/sdma.c | 10

[PATCH v3 07/23] staging/rdma/hfi1: close shared context security hole

2015-10-26 Thread ira . weiny
From: Jareer Abdel-Qader Driver does not verify userid for shared context assignments, allowing malicious user access. Reviewed by: Mike Marciniszyn Signed-off-by: Jareer H Abdel-Qader Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 1 + 1 file changed, 1 insertion

[PATCH v3 14/23] staging/rdma/hfi1: Implement Expected Receive TID caching

2015-10-26 Thread ira . weiny
quot;unlimited" (as we've done up to this point), may result in jobs being killed by the kernel's OOM due to them taking up excessive amounts of memory. Reviewed-by: Arthur Kepner Reviewed-by: Dennis Dalessandro Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- Changes f

[PATCH v3 21/23] staging/rdma/hfi1: Add unit # to verbs txreq cache name

2015-10-26 Thread ira . weiny
-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/verbs.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/verbs.c b/drivers/staging/rdma/hfi1/verbs.c index dd62f3072c00..2c7cf783f24d 100644 --- a/drivers/staging/rdma/hfi1/verbs.c +++ b/drivers

[PATCH v3 20/23] staging/rdma/hfi1: Load SBus firmware once per ASIC

2015-10-26 Thread ira . weiny
haran Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/firmware.c | 31 --- drivers/staging/rdma/hfi1/pcie.c | 10 ++ 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/drivers/staging/rdma/hfi1/firmware.c b/drivers/staging/rdma/hfi1/firmw

[PATCH v3 09/23] staging/rdma/hfi1: Add a schedule in send thread

2015-10-26 Thread ira . weiny
From: Dean Luick When under heavy load, the send handler can run too long without allowing other tasks to run. Add a conditional resched to break this up. Reviewed-by: Mike Marciniszyn Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 10

[PATCH v3 10/23] staging/rdma/hfi1: Fix port bounce issues with 0.22 DC firmware

2015-10-26 Thread ira . weiny
. Reviewed-by: Dean Luick Signed-off-by: Easwar Hariharan Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index 1a6dd877c8d8..8b8b7ee4200d 100644 --- a/drivers/staging

[PATCH v3 22/23] staging/rdma/hfi1: add additional rc traces

2015-10-26 Thread ira . weiny
From: Mike Marciniszyn Add additional rc traces to aid in debugging rc retry logic. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/rc.c| 4 drivers/staging/rdma/hfi1/trace.c | 4 ++-- drivers/staging/rdma

[PATCH v3 17/23] staging/rdma/hfi1: Add irqsaves in the packet processing path

2015-10-26 Thread ira . weiny
path. Anything that did not have an obvious, "close" irqsave in its caller is a candidate. Reviewed-by: Mike Marciniszyn Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/driver.c | 5 +++-- drivers/staging/rdma/hfi1/init.c | 5 +++-- drivers/st

[PATCH v3 19/23] staging/rdma/hfi: modify workqueue for parallelism

2015-10-26 Thread ira . weiny
d now uses the new scheduler - RC/UC QPs now pre-compute the sc, sde - The sde wq is eliminated since the new hfi1_wq is multi-threaded Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 1 + drivers/staging/rdma

[PATCH v3 11/23] staging/rdma/hfi1: Prevent silent data corruption with user SDMA

2015-10-26 Thread ira . weiny
ferencing the vector. Reviewed-by: Mike Marciniszyn Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/user_sdma.c | 90 --- 1 file changed, 52 insertions(+), 38 deletions(-) diff --git a/drivers/staging/rdma/hfi1/user_sdma

[PATCH v3 23/23] staging/rdma/hfi1: Update driver version string to 0.9-294

2015-10-26 Thread ira . weiny
From: Jubin John Signed-off-by: Jubin John Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/common.h b/drivers/staging/rdma/hfi1/common.h index 7809093eb55e..5dd92720faae 100644 --- a

[PATCH v3 08/23] staging/rdma/hfi1: Reset firmware instead of reloading Sbus

2015-10-26 Thread ira . weiny
Reviewed-by: Dennis Dalessandro Reviewed-by: Dean Luick Signed-off-by: Caz Yokoyama Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.h | 1 + drivers/staging/rdma/hfi1/firmware.c | 4 +--- drivers/staging/rdma/hfi1/pcie.c | 13 - 3 files changed, 14 insert

[PATCH v3 16/23] staging/rdma/hfi1: Increase SDMA descriptor queue size

2015-10-26 Thread ira . weiny
From: Ignacio Hernandez A value of 2048 increased PSM performance while not impacting verbs performance. Reviewed-by: Mike Marciniszyn Reviewed-by: Mitko Haralanov Signed-off-by: Ignacio Hernandez Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/sdma.c | 2 +- 1 file changed, 1

[PATCH 0/9] staging/rdma/hfi1: Fix bugs and performance issues

2015-10-30 Thread ira . weiny
From: Ira Weiny The following are fixes to the hfi1 driver for stability, security, and performance. New series based off of the latest staging-next. Large patches were split up and a new patch was added to remove offending macros. Ira Weiny (1): staging/rdma/hfi1: Remove file pointer

[PATCH 9/9] staging/rdma/hfi: pre-compute sc and sde for RC/UC QPs

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn Now that we have a multi-threaded work queue we precomputed and store the SC and SDE on RC and UC QPs for faster access. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.c| 27

[PATCH v4 8/9] staging/rdma/hfi1: Use parallel workqueue for SDMA engines

2015-10-30 Thread ira . weiny
WQ_CPU_INTENSIVE and WQ_HIGHPRI specified. Then change send to use the new scheduler which no longer needs to get the s_lock Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- Changes from v3: Split patch out code refactoring and separate

[PATCH 2/9] staging/rdma/hfi1: Clean up macro indentation

2015-10-30 Thread ira . weiny
From: Mitko Haralanov In preparation for implementing Expected TID caching we do some simple clean up of header file macros. Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/common.h | 15 --- include/uapi/rdma/hfi/hfi1_user.h | 26

[PATCH 5/9] staging/rdma/hfi1: Add function stubs for TID caching

2015-10-30 Thread ira . weiny
use of these functions. Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/Kconfig| 1 + drivers/staging/rdma/hfi1/Makefile | 2 +- drivers/staging/rdma/hfi1/user_exp_rcv.c | 314 +++ drivers/staging/rdma/hfi1

[PATCH v4 6/9] staging/rdma/hfi1: Implement Expected Receive TID caching

2015-10-30 Thread ira . weiny
quot;unlimited" (as we've done up to this point), may result in jobs being killed by the kernel's OOM due to them taking up excessive amounts of memory. Reviewed-by: Arthur Kepner Reviewed-by: Dennis Dalessandro Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- Change

[PATCH 7/9] staging/rdma/hfi1: move hfi1_migrate_qp

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn Move hfi1_migrate_qp from ruc.c to qp.[hc] in prep for modifying the QP workqueue. Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.c| 20 drivers/staging/rdma/hfi1/qp.h| 2 ++ drivers/staging/rdma

[PATCH 3/9] staging/rdma/hfi1: Remove unnecessary include files

2015-10-30 Thread ira . weiny
From: Mitko Haralanov These includes were not used in file_ops.c Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1

[PATCH 4/9] staging/rdma/hfi1: Move macros to a common header

2015-10-30 Thread ira . weiny
From: Mitko Haralanov In preparation of implementing TID caching move EXP_TID macros to a common header user_exp_rcv.h Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 13 +- drivers/staging/rdma/hfi1/user_exp_rcv.h | 74

[PATCH 1/9] staging/rdma/hfi1: Remove file pointer macros

2015-10-30 Thread ira . weiny
From: Ira Weiny Remove the following macros in favor of explicit use of struct hfi1_filedata and various sub structures. ctxt_fp subctxt_fp tidcursor_fp user_sdma_pkt_fp user_sdma_comp_fp Reviewed-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 124

[PATCH v4 0/9] staging/rdma/hfi1: Fix bugs and performance issues

2015-10-30 Thread ira . weiny
From: Ira Weiny The following are fixes to the hfi1 driver for stability, security, and performance. New series based off of the latest staging-next. Large patches were split up and a new patch was added to remove offending macros. NOTE: My apologies for not putting v4 in all the patches. I

[PATCH v4 3/9] staging/rdma/hfi1: Remove unnecessary include files

2015-10-30 Thread ira . weiny
From: Mitko Haralanov These includes were not used in file_ops.c Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1

[PATCH v4 4/9] staging/rdma/hfi1: Move macros to a common header

2015-10-30 Thread ira . weiny
From: Mitko Haralanov In preparation of implementing TID caching move EXP_TID macros to a common header user_exp_rcv.h Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 13 +- drivers/staging/rdma/hfi1/user_exp_rcv.h | 74

[PATCH v4 7/9] staging/rdma/hfi1: move hfi1_migrate_qp

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn Move hfi1_migrate_qp from ruc.c to qp.[hc] in prep for modifying the QP workqueue. Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.c| 20 drivers/staging/rdma/hfi1/qp.h| 2 ++ drivers/staging/rdma

[PATCH v4 5/9] staging/rdma/hfi1: Add function stubs for TID caching

2015-10-30 Thread ira . weiny
use of these functions. Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/Kconfig| 1 + drivers/staging/rdma/hfi1/Makefile | 2 +- drivers/staging/rdma/hfi1/user_exp_rcv.c | 314 +++ drivers/staging/rdma/hfi1

[PATCH v4 9/9] staging/rdma/hfi: pre-compute sc and sde for RC/UC QPs

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn Now that we have a multi-threaded work queue we precomputed and store the SC and SDE on RC and UC QPs for faster access. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.c| 27

[PATCH v4 1/9] staging/rdma/hfi1: Remove file pointer macros

2015-10-30 Thread ira . weiny
From: Ira Weiny Remove the following macros in favor of explicit use of struct hfi1_filedata and various sub structures. ctxt_fp subctxt_fp tidcursor_fp user_sdma_pkt_fp user_sdma_comp_fp Reviewed-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 124

[PATCH v4 6/9] staging/rdma/hfi1: Implement Expected Receive TID caching

2015-10-30 Thread ira . weiny
quot;unlimited" (as we've done up to this point), may result in jobs being killed by the kernel's OOM due to them taking up excessive amounts of memory. Reviewed-by: Arthur Kepner Reviewed-by: Dennis Dalessandro Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- Change

[PATCH v4 8/9] staging/rdma/hfi1: Use parallel workqueue for SDMA engines

2015-10-30 Thread ira . weiny
WQ_CPU_INTENSIVE and WQ_HIGHPRI specified. Then change send to use the new scheduler which no longer needs to get the s_lock Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- Changes from v3: Split patch out code refactoring and separate

[PATCH v4 2/9] staging/rdma/hfi1: Clean up macro indentation

2015-10-30 Thread ira . weiny
From: Mitko Haralanov In preparation for implementing Expected TID caching we do some simple clean up of header file macros. Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/common.h | 15 --- include/uapi/rdma/hfi/hfi1_user.h | 26

[PATCH] staging/rdma/hfi1: set Gen3 half-swing for integrated devices

2015-11-04 Thread ira . weiny
From: Dean Luick Correctly set half-swing for integrated devices. A0 needs all fields set for CcePcieCtrl. B0 and later only need a few fields set. Reviewed-by: Stuart Summers Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip_registers.h | 11

[PATCH 0/3] staging/rdma/hfi1: complete fixes for ECN detection

2015-11-04 Thread ira . weiny
From: Ira Weiny The following 3 patches fix the ECN detection and add a module parameter to turn the prescan of the receive queue on and off. Arthur Kepner (2): staging/rdma/hfi1: don't cache "prescan head" staging/rdma/hfi1: optionally prescan rx queue for {B,F}ECNs -

[PATCH 2/3] staging/rdma/hfi1: optionally prescan rx queue for {B,F}ECNs - UC, RC

2015-11-04 Thread ira . weiny
). Afterward, the packet will be processed normally. Reviewed-by: Mike Marciniszyn Reviewed-by: Dennis Dalessandro Signed-off-by: Arthur Kepner Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/driver.c | 64 +++--- drivers/staging/rdma/hfi1/rc.c | 10

[PATCH 3/3] staging/rdma/hfi1: Method to toggle "fast ECN" detection

2015-11-04 Thread ira . weiny
From: Vennila Megavannan Add a module paramter to toggle prescan/Fast ECN Detection. In addition change the PRESCAN_RXQ Kconfig default to "yes". Reviewed-by: Arthur Kepner Reviewed-by: Mike Marciniszyn Signed-off-by: Vennila Megavannan Signed-off-by: Ira Weiny --- drivers/staging

[PATCH 1/3] staging/rdma/hfi1: don't cache "prescan head"

2015-11-04 Thread ira . weiny
idable race, and to avoid getting out of sync we always start prescanning at the current "rcd->head" entry. Reviewed-by: Mike Marciniszyn Reviewed-by: Dennis Dalessandro Signed-off-by: Arthur Kepner Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/driver.c | 13 +++-

[PATCH v2 3/3] staging/rdma/hfi1: Method to toggle "fast ECN" detection

2015-11-05 Thread ira . weiny
time will result in a significant reduction of performance at the node level but may result in better overall fabric/cluster performance. Reviewed-by: Arthur Kepner Reviewed-by: Mike Marciniszyn Signed-off-by: Vennila Megavannan Signed-off-by: Ira Weiny --- Changes from V1: Redo commit

[PATCH v3 3/3] staging/rdma/hfi1: Method to toggle "fast ECN" detection

2015-11-09 Thread ira . weiny
From: Vennila Megavannan Add a module paramter to toggle prescan/Fast ECN Detection and remove the Kconfig option which used to control this. Reviewed-by: Arthur Kepner Reviewed-by: Mike Marciniszyn Signed-off-by: Vennila Megavannan Signed-off-by: Ira Weiny --- Changes from V1: Redo

[PATCH v2] staging/rdma/hfi1: set Gen3 half-swing for integrated devices

2015-11-09 Thread ira . weiny
From: Dean Luick Correctly set half-swing for integrated devices. A0 needs all fields set for CcePcieCtrl. B0 and later only need a few fields set. Reviewed-by: Stuart Summers Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- Changes from V1: Add comments concerning the very

[RESEND PATCH v4 3/3] staging/rdma/hfi1: pre-compute sc and sde for RC/UC QPs

2015-11-09 Thread ira . weiny
From: Mike Marciniszyn Now that we have a multi-threaded work queue we precomputed and store the SC and SDE on RC and UC QPs for faster access. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- This patch was previously sent as #9/9 but 5/9 failed

[RESEND PATCH v4 2/3] staging/rdma/hfi1: Use parallel workqueue for SDMA engines

2015-11-09 Thread ira . weiny
WQ_CPU_INTENSIVE and WQ_HIGHPRI specified. Then change send to use the new scheduler which no longer needs to get the s_lock Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- Changes from v3: Split patch out code refactoring and separate

[RESEND PATCH v4 1/3] staging/rdma/hfi1: move hfi1_migrate_qp

2015-11-09 Thread ira . weiny
From: Mike Marciniszyn Move hfi1_migrate_qp from ruc.c to qp.[hc] in prep for modifying the QP workqueue. Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- This patch was previously sent as #7/9 but 5/9 failed. I'm resending 7,8, and 9 as they did not explicitly depend on 5

[PATCH] staging/rdma/hfi1: Reduce number of parameters passed to send handlers

2015-11-10 Thread ira . weiny
-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/diag.c | 27 ++- drivers/staging/rdma/hfi1/hfi.h | 20 ++ drivers/staging/rdma/hfi1/ruc.c | 15 ++- drivers/staging/rdma/hfi1/verbs.c | 55 ++- drivers/staging/rdma/hfi1

[PATCH] staging/rdma/hfi1: Handle packets with invalid RHF on context 0

2015-11-10 Thread ira . weiny
Haralanov Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/chip.c | 74 - drivers/staging/rdma/hfi1/driver.c | 108 - drivers/staging/rdma/hfi1/hfi.h

<    1   2   3   4   5   6   7   8   9   10   >