[PATCH 1/2] staging/rdma/hfi1: add definitions for OPA traps

2015-12-10 Thread Mike Marciniszyn
From: Jubin John These new definitions will be used by follow-on patches for formating and sending OPA traps. Reviewed-by: Ira Weiny Signed-off-by: Jubin John --- drivers/staging/rdma/hfi1/mad.h | 114

[PATCH 2/2] staging/rdma/hfi1: HFI now sends OPA Traps instead of IBTA

2015-12-10 Thread Mike Marciniszyn
From: Erik E. Kahn send_trap() was still using old ib_smp instead of opa_smp for formatting and sending traps. Reviewed-by: Arthur Kepner Reviewed-by: Ira Weiny Reviewed-by: Dennis Dalessandro

[PATCH] staging/rdma/hfi1: Fix a possible null pointer dereference

2015-12-10 Thread Mike Marciniszyn
From: Easwar Hariharan <easwar.hariha...@intel.com> A code inspection pointed out that kmalloc_array may return NULL and memset doesn't check the input pointer for NULL, resulting in a possible NULL dereference. This patch fixes this. Reviewed-by: Mike Marciniszyn <mike.marcinis...@

[PATCH] staging/rdma/hfi1: convert buffers allocated atomic to per cpu

2015-12-07 Thread Mike Marciniszyn
Profiling has shown the the atomic is a performance issue for the pio hot path. If multiple cpus allocated an sc's buffer, the cacheline containing the atomic will bounce from L0 to L0. Convert the atomic to a percpu variable. Reviewed-by: Jubin John <jubin.j...@intel.com> Signed-off-by

[PATCH] staging/rdma/hfi1: fix pio progress routine race with allocator

2015-12-03 Thread Mike Marciniszyn
. Reviewed-by: Mark Debbage <mark.debb...@intel.com> Signed-off-by: Mike Marciniszyn <mike.marcinis...@intel.com> --- drivers/staging/rdma/hfi1/pio.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rdma/hfi1/pio.c b/drivers/staging/rdma/hfi1

[PATCH] staging/rdma/hfi1: fix sdma build failures to always clean up

2015-12-03 Thread Mike Marciniszyn
There are holes in the sdma build support routines that do not clean any partially built sdma descriptors after mapping or allocate failures. This patch corrects these issues. Reviewed-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Mike Marciniszyn <mike

[PATCH 1/2] staging/rdma/hfi1: add common routine for queuing acks

2015-11-10 Thread Mike Marciniszyn
nnis.dalessan...@intel.com> Signed-off-by: Mike Marciniszyn <mike.marcinis...@intel.com> --- drivers/staging/rdma/hfi1/driver.c |4 ++- drivers/staging/rdma/hfi1/rc.c | 42 +--- drivers/staging/rdma/hfi1/verbs.h | 12 ++ 3 files changed

[PATCH 2/2] staging/rdma/hfi1: add ACK coalescing logic

2015-11-10 Thread Mike Marciniszyn
igned-off-by: Mike Marciniszyn <mike.marcinis...@intel.com> --- drivers/staging/rdma/hfi1/qp.c|1 + drivers/staging/rdma/hfi1/rc.c| 29 +++-- drivers/staging/rdma/hfi1/verbs.h |7 --- 3 files changed, 32 insertions(+), 5 deletions(-) diff --git a/

[PATCH] IB/hfi1: fix sdma_descq_cnt parameter parsing

2015-09-15 Thread Mike Marciniszyn
The boolean tests should have been or-ed. Reported-by: David Binderman <dcb...@hotmail.com> Reviewed-by: Jubin John <jubin.j...@intel.com> Signed-off-by: Mike Marciniszyn <mike.marcinis...@intel.com> --- drivers/staging/rdma/hfi1/sdma.c |2 +- 1 file changed, 1 insert

[PATCH] MAINTAINERS: Add maintainer section for hfi1

2015-08-18 Thread Mike Marciniszyn
Signed-off-by: Mike Marciniszyn mike.marcinis...@intel.com --- 0 files changed diff --git a/MAINTAINERS b/MAINTAINERS index b3c1a56..45953e9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9892,6 +9892,13 @@ M: Arnaud Patard arnaud.pat...@rtp-net.org S: Odd Fixes F: drivers

[PATCH] Kconfig: add temporary PCI dependency

2015-08-18 Thread Mike Marciniszyn
The move from infiniband to staging requires a temporary PCI dependency to fix 0-day build issues. The drivers/infiniband/hw/Kconfig gratuitously added it for all drivers. Signed-off-by: Mike Marciniszyn mike.marcinis...@intel.com --- drivers/staging/hfi1/Kconfig |2 +- 1 file changed, 1