[PATCH] IB/sysfs: Fix sparse warning on attr_id

2016-01-03 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Attributed ID was declared as an int while the value should really be big endian 16. Fixes: 35c4cbb17811 ("IB/core: Create get_perf_mad function in sysfs.c") Reported-by: Bart Van Assche <bart.vanass...@sandisk.com> Signed-off

[PATCH V5 0/2] staging/rdma/hfi1: set Gen 3 half-swing for integrated devices.

2015-12-21 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> This was a single patch before. The change to dev_dbg required a precursor patch to add the dd_dev_dbg which is consistent with the other dev_* macros which automatically use struct hfi1_devdata. Changes from V4: Fix build error which aros

[PATCH V5 1/2] staging/rdma/hfi1: add dd_dev_dbg

2015-12-21 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> To be used in future patches add dd_dev_dbg. dd_* functions properly decode the hfi1_devdata structure used throughout the driver Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/hfi.h | 4 1 file changed,

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

2015-12-21 Thread ira . weiny
From: Dean Luick <dean.lu...@intel.com> 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 <john.s.summ...@intel.com> Signed-off-by: Dean Luick <dean.lu...@intel.com>

[PATCH v2 01/14] staging/rdma/hfi1: Add function stubs for TID caching

2015-12-17 Thread ira . weiny
tation of the interaction with user space and makes use of these functions. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/Kconfig| 1 + drivers/staging/rdma/hfi1/Makefile | 2 +- drivers/stagi

[PATCH v2 02/14] uapi/rdma/hfi/hfi1_user.h: Correct comment for capability bit

2015-12-17 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> The HFI1_CAP_TID_UNMAP comment was incorrectly implying the opposite of what capability actually did. Correct this error. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com>

[PATCH v2 05/14] staging/rdma/hfi1: Add definitions needed for TID caching support

2015-12-17 Thread ira . weiny
gt; Reviewed-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/hfi.h | 20 1 file changed, 20 insertions(+) diff --git a/drivers/staging/rdma/hfi1/hfi.h b/drivers/staging/rdma/hfi1/hfi.h index 12760bb9e056..905bb40febb3 100644 --- a/drivers/staging/rdma/hfi1/h

[PATCH v2 08/14] staging/rdma/hfi1: Start adding building blocks for TID caching

2015-12-17 Thread ira . weiny
irtual buffer, program the RcvArray group entries with these physical chunks, and unprogram the RcvArray groups. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- Changes from V1: Add comment to program_rcvarray

[PATCH v2 11/14] staging/rdma/hfi1: Add MMU notifier callback function

2015-12-17 Thread ira . weiny
the PSM library. This function is currently unused and is being added in preparation for the TID caching feature. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/user_exp_rcv.c | 67

[PATCH v2 14/14] staging/rdma/hfi1: Enable TID caching feature

2015-12-17 Thread ira . weiny
time. This would have caused other complications and ugliness. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/file_ops.c | 448 +++ drivers/staging/rdma/hfi1/hfi

[PATCH v2 13/14] staging/rdma/hfi1: Add TID entry program function body

2015-12-17 Thread ira . weiny
ed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/user_exp_rcv.c | 263 ++- 1 file changed, 259 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rdma/hfi1/user_exp_rcv.c

[PATCH v2 00/14] Implement Expected Receive TID Caching

2015-12-17 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Expected receives work by user-space libraries (PSM) calling into the driver with information about the user's receive buffer and have the driver DMA-map that buffer and program the HFI to receive data directly into it. This is an expensive ope

[PATCH v2 10/14] staging/rdma/hfi1: Add Expected receive init and free functions

2015-12-17 Thread ira . weiny
quired resources and structures. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/user_exp_rcv.c | 154 +-- 1 file changed, 144 insertions(+), 10 deletions(-) diff --git a/dr

[PATCH v2 07/14] staging/rdma/hfi1: Add definitions and support functions for TID groups

2015-12-17 Thread ira . weiny
flush of the write-combining buffer. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/user_exp_rcv.c | 64 1 file changed, 64 insertions(+) diff --git a/drivers

[PATCH v2 09/14] staging/rdma/hfi1: Convert lock to mutex

2015-12-17 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> The exp_lock lock does not need to be a spinlock as all its uses are in process context and allowing the process to sleep when the mutex is contended might be benefitial. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Revi

[PATCH v2 06/14] staging/rdma/hfi1: Remove un-needed variable

2015-12-17 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> There is no need to use a separate variable for a return value and a label when returning right away would do just as well. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.co

[PATCH v2 03/14] uapi/rdma/hfi/hfi1_user.h: Convert definitions to use BIT() macro

2015-12-17 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> Convert bit definitions to use BIT() macro as per checkpatch.pl requirements. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- include/uapi/rdma/hf

[PATCH v2 12/14] staging/rdma/hfi1: Add TID free/clear function bodies

2015-12-17 Thread ira . weiny
ntains the free code path. This is done on purpose to help with patch reviews as the programming code path is much longer. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/u

[PATCH v2 04/14] uapi/rdma/hfi/hfi1_user.h: Add command and event for TID caching

2015-12-17 Thread ira . weiny
r file. The command is also added to the switch() statement in file_ops.c for completeness and in preparation for its usage later. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/file_ops.c | 1 + inc

[PATCH 14/14] staging/rdma/hfi1: Enable TID caching feature

2015-12-16 Thread ira . weiny
time. This would have caused other complications and ugliness. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers/staging/rdma/hfi1/file_ops.c | 448 +++ drivers/staging/rdma/hfi1/hfi

[PATCH 13/14] staging/rdma/hfi1: Add TID entry program function body

2015-12-16 Thread ira . weiny
viewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers/staging/rdma/hfi1/user_exp_rcv.c | 263 ++- 1 file changed, 259 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rdma/hfi1/user_exp_rcv.c

[PATCH 11/14] staging/rdma/hfi1: Add MMU notifier callback function

2015-12-16 Thread ira . weiny
the PSM library. This function is currently unused and is being added in preparation for the TID caching feature. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers/staging/rdma/hfi1/user_exp_rcv.c | 67

[PATCH 10/14] staging/rdma/hfi1: Add Expected receive init and free functions

2015-12-16 Thread ira . weiny
quired resources and structures. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers/staging/rdma/hfi1/user_exp_rcv.c | 154 +-- 1 file changed, 144 insertions(+), 10 deletions(-) diff --git a/dr

[PATCH 03/14] uapi/rdma/hfi/hfi1_user.h: Convert definitions to use BIT() macro

2015-12-16 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> Convert bit definitions to use BIT() macro as per checkpatch.pl requirements. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- include/uapi/rdma/hf

[PATCH 07/14] staging/rdma/hfi1: Add definitions and support functions for TID groups

2015-12-16 Thread ira . weiny
flush of the write-combining buffer. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers/staging/rdma/hfi1/user_exp_rcv.c | 64 1 file changed, 64 insertions(+) diff --git a/drivers

[PATCH 09/14] staging/rdma/hfi1: Convert lock to mutex

2015-12-16 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> The exp_lock lock does not need to be a spinlock as all its uses are in process context and allowing the process to sleep when the mutex is contended might be benefitial. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mit

[PATCH 08/14] staging/rdma/hfi1: Start adding building blocks for TID caching

2015-12-16 Thread ira . weiny
irtual buffer, program the RcvArray group entries with these physical chunks, and unprogram the RcvArray groups. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers/staging/rdma/hfi1/user_exp_rcv.c | 310 +

[PATCH 02/14] uapi/rdma/hfi/hfi1_user.h: Correct comment for capability bit

2015-12-16 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> The HFI1_CAP_TID_UNMAP comment was incorrectly implying the opposite of what capability actually did. Correct this error. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com>

[PATCH 06/14] staging/rdma/hfi1: Remove un-needed variable

2015-12-16 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> There is no need to use a separate variable for a return value and a label when returning right away would do just as well. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.co

[PATCH 05/14] staging/rdma/hfi1: Add definitions needed for TID caching support

2015-12-16 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> In preparation for adding the TID caching support, there is a set of headers, structures, and variables which will be needed. This commit adds them to the hfi.h header file. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-o

[PATCH 12/14] staging/rdma/hfi1: Add TID free/clear function bodies

2015-12-16 Thread ira . weiny
ntains the free code path. This is done on purpose to help with patch reviews as the programming code path is much longer. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers/staging/rdma/hfi1/u

[PATCH 00/14] Implement Expected Receive TID Caching

2015-12-16 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Expected receives work by user-space libraries (PSM) calling into the driver with information about the user's receive buffer and have the driver DMA-map that buffer and program the HFI to receive data directly into it. This is an expensive ope

[PATCH 01/14] staging/rdma/hfi1: Add function stubs for TID caching

2015-12-16 Thread ira . weiny
tation of the interaction with user space and makes use of these functions. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers/staging/rdma/hfi1/Kconfig| 1 + drivers/staging/rdma/hfi1/Makefile | 2 +- drivers/stagi

[PATCH 04/14] uapi/rdma/hfi/hfi1_user.h: Add command and event for TID caching

2015-12-16 Thread ira . weiny
r file. The command is also added to the switch() statement in file_ops.c for completeness and in preparation for its usage later. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers/staging/rdma/hfi1/file_ops.c | 1 + inc

[PATCH] IB/mad: Ensure fairness in ib_mad_completion_handler

2015-12-10 Thread ira . weiny
based on the defaults for the recv queue size. However, it was kept fixed such that increasing those queue sizes would not adversely affect fairness in the future. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Dean Luick <dean.lu...@intel.com> --- drivers/infiniba

[PATCH v2 3/5] staging/rdma/hfi1: Clean-up unnecessary goto statements

2015-12-08 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> Clean-up unnecessary goto statements based on feedback from the mailing list on previous patch submissions. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers

[PATCH v2 2/5] staging/rdma/hfi1: Unconditionally clean-up SDMA queues

2015-12-08 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> There is no need to cleck if the packet queue is allocated when cleaning up a user context. The hfi1_user_sdma_free_queues() function already does all the required checks. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-o

[PATCH v2 4/5] staging/rdma/hfi1: Detect SDMA transmission error early

2015-12-08 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> It is possible for an SDMA transmission error to happen during the processing of an user SDMA transfer. In that case it is better to detect it early and abort any further attempts to send more packets. Reviewed-by: Ira Weiny <ira.we...@

[PATCH v2 1/5] staging/rdma/hfi1: Convert to use get_user_pages_fast

2015-12-08 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> Convert hfi1_get_user_pages() to use get_user_pages_fast(), which is much fatster. The mm semaphore is still taken to update the pinned page count but is for a much shorter amount of time. Reviewed-by: Ira Weiny <ira.we...@intel.com>

[PATCH v2 0/5] Clean up SDMA engine code

2015-12-08 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Various improvements to the SDMA engine code. --- Changes from V1: Fix off by one error in the last patch Mitko Haralanov (5): staging/rdma/hfi1: Convert to use get_user_pages_fast staging/rdma/hfi1: Unconditionally clean-up SDMA

[PATCH v2 5/5] staging/rdma/hfi1: Add page lock limit check for SDMA requests

2015-12-08 Thread ira . weiny
errupt context. Therefore, it is necessary to put all the completed SDMA tx requests onto a separate list (txcmp) and offload the actual clean-up and unpinning work to a workqueue. Reviewed-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.

[PATCH 1/5] staging/rdma/hfi1: Convert to use get_user_pages_fast

2015-12-02 Thread ira . weiny
intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/file_ops.c | 8 +-- drivers/staging/rdma/hfi1/hfi.h| 4 +- drivers/staging/rdma/hfi1/user_pages.c | 97 +- 3 files changed, 32 insertions(+), 77 deleti

[PATCH 2/5] staging/rdma/hfi1: Unconditionally clean-up SDMA queues

2015-12-02 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> There is no need to cleck if the packet queue is allocated when cleaning up a user context. The hfi1_user_sdma_free_queues() function already does all the required checks. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-o

[PATCH 4/5] staging/rdma/hfi1: Detect SDMA transmission error early

2015-12-02 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> It is possible for an SDMA transmission error to happen during the processing of an user SDMA transfer. In that case it is better to detect it early and abort any further attempts to send more packets. Reviewed-by: Ira Weiny <ira.we...@

[PATCH 5/5] staging/rdma/hfi1: Add page lock limit check for SDMA requests

2015-12-02 Thread ira . weiny
errupt context. Therefore, it is necessary to put all the completed SDMA tx requests onto a separate list (txcmp) and offload the actual clean-up and unpinning work to a workqueue. Reviewed-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Reviewed-by: Ira Weiny <ira.we...@intel.

[PATCH 0/5] staging/rdma/hfi1: Clean up SDMA engine code

2015-12-02 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Various improvements to the SDMA engine code. Mitko Haralanov (5): staging/rdma/hfi1: Convert to use get_user_pages_fast staging/rdma/hfi1: Unconditionally clean-up SDMA queues staging/rdma/hfi1: Clean-up unnecessary goto statements staging/rdm

[PATCH 3/5] staging/rdma/hfi1: Clean-up unnecessary goto statements

2015-12-02 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> Clean-up unnecessary goto statements based on feedback from the mailing list on previous patch submissions. Reviewed-by: Ira Weiny <ira.we...@intel.com> Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> --- drivers

[PATCH v3 01/13] staging/rdma/hfi1: diag.c use BIT macros

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Use BIT macros rather than shifts. Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/diag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rdma/hfi1/diag.c b/drivers/stagi

[PATCH v3 03/13] staging/rdma/hfi1: diag.c fix logical continuations

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Place logical operators at the end of the previous line when using a multi-line statement. Found by checkpatch --strict Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/diag.c | 6 +++--- 1 file changed, 3 inse

[PATCH v3 00/13] Fix hfi1_ioctl locking

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> It was identified that hfi1_ioctl may sleep with a spin lock held. This was identified publicly here: http://www.spinics.net/lists/linux-rdma/msg29926.html As well as by our internal development. This series cleans up the code and parameter

[PATCH v3 07/13] staging/rdma/hfi1: diag.c correct sizeof parameter

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> sizeof should use the variable rather than the struct definition to ensure that type changes are properly accounted for. Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/diag.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH v3 08/13] staging/rdma/hfi1: Fix camel case variables

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> physState, linkState, and devState should be phys_state, link_state, and dev_state Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdm

[PATCH v3 06/13] staging/rdma/hfi1: diag.c add missing braces

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Else statements should continue using braces even if there is only 1 line in the block. Found by checkpatch --strict Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/diag.c | 6 -- 1 file changed, 4 inse

[PATCH v3 10/13] staging/rdma/hfi1: hfi1_ioctl remove setlink state

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Set link state is not supported remove from the switch statement and allow the default to return -ENOTTY Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from v1:

[PATCH v3 09/13] staging/rdma/hfi1: Return early from hfi1_ioctl parameter errors

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Rather than have a switch in a large else clause make the parameter checks return immediately. Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma

[PATCH v3 13/13] staging/rdma/hfi1: Return immediately on error

2015-12-01 Thread ira . weiny
Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from V1: Squashed removal of goto which is safe after this patch staging/rdma/hfi1: remove unneeded goto done drivers/stagi

[PATCH v3 02/13] staging/rdma/hfi1: diag.c fix alignment

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Fix line alignment in various places as caught by checkpatch --strict. Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/diag.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dri

[PATCH v3 11/13] staging/rdma/hfi1: Further clean up hfi1_ioctl parameter checks

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Final clean up of the if/then/else clause for the parameter checks of hfi1_ioctl Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from v1: SETLINKSTATE is

[PATCH v3 05/13] staging/rdma/hfi1: diag.c change null comparisons

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Use !foo rather than (foo == NULL) as recommended by checkpatch --strict Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/diag.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --g

[PATCH v3 12/13] staging/rdma/hfi1: Reduce snoop locking scope in IOCTL handler.

2015-12-01 Thread ira . weiny
Queue Reviewed-by: Mike Marciniszyn <mike.marcinis...@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from V1: Adjust to add the done label which can't be removed until a later patch

[PATCH v4 1/2] staging/rdma/hf1: add dd_dev_dbg

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> To be used in future patches add dd_dev_dbg. dd_* functions properly decode the hfi1_devdata structure used throughout the driver Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/hfi.h | 4 1 file changed,

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

2015-12-01 Thread ira . weiny
From: Dean Luick <dean.lu...@intel.com> 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 <john.s.summ...@intel.com> Signed-off-by: Dean Luick <dean.lu...@intel.com>

[PATCH v4 0/2] staging/rdma/hfi1: set Gen 3 half-swing for integrated devices.

2015-12-01 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> This was a single patch before. The change to dev_dbg required a precursor patch to add the dd_dev_dbg which is consistent with the other dev_* macros which automatically use struct hfi1_devdata. Dean Luick (1): staging/rdma/hfi1: set Gen3 half

[PATCH v2 3/7] staging/rdma/hfi1: Return early from hfi1_ioctl parameter errors

2015-11-16 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Rather than have a switch in a large else clause make the parameter checks return immediately. Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma

[PATCH v2 5/7] staging/rdma/hfi1: Further clean up hfi1_ioctl parameter checks

2015-11-16 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Final clean up of the if/then/else clause for the parameter checks of hfi1_ioctl Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from v1: SETLINKSTATE is

[PATCH v2 7/7] staging/rdma/hfi1: Return immediately on error

2015-11-16 Thread ira . weiny
Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from V1: Squashed removal of goto which is safe after this patch staging/rdma/hfi1: remove unneeded goto done drivers/stagi

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

2015-11-16 Thread ira . weiny
From: Dean Luick <dean.lu...@intel.com> 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 <john.s.summ...@intel.com> Signed-off-by: Dean Luick <dean.lu...@intel.com>

[PATCH v2 0/7] Fix hfi1_ioctl locking

2015-11-16 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> It was identified that hfi1_ioctl may sleep with a spin lock held. This was identified publicly here: http://www.spinics.net/lists/linux-rdma/msg29926.html As well as by our internal development. This series cleans up the code and parameter

[PATCH v2 1/7] staging/rdma/hfi1: diag.c Correct code style issues

2015-11-16 Thread ira . weiny
From: Jubin John <jubin.j...@intel.com> Correct the checks on diag.c with the latest checkpatch Reviewed-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Reviewed-by: Mike Marciniszyn <mike.marcinis...@intel.com> Signed-off-by: Jubin John <jubin.j...@intel.com>

[PATCH v2 6/7] staging/rdma/hfi1: Reduce snoop locking scope in IOCTL handler.

2015-11-16 Thread ira . weiny
Queue Reviewed-by: Mike Marciniszyn <mike.marcinis...@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from V1: Adjust to add the done label which can't be removed until a later patch

[PATCH v2 2/7] staging/rdma/hfi1: Fix camel case variables

2015-11-16 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> physState, linkState, and devState should be phys_state, link_state, and dev_state Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdm

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

2015-11-10 Thread ira . weiny
el.com> Signed-off-by: Mike Marciniszyn <mike.marcinis...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/chip.c | 74 - drivers/staging/rdma/hfi1/driver.c | 108 - drivers/staging/rdma/hfi

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

2015-11-10 Thread ira . weiny
niszyn <mike.marcinis...@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/diag.c | 27 ++- drivers/staging/rdma/hfi1/hfi.h | 20 ++ drivers/stagin

[PATCH 1/8] staging/rdma/hfi1: diag.c Correct code style issues

2015-11-10 Thread ira . weiny
From: Jubin John <jubin.j...@intel.com> Using the latest checkpatch correct the checks on diag.c Reviewed-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Reviewed-by: Mike Marciniszyn <mike.marcinis...@intel.com> Signed-off-by: Jubin John <jubin.j...@intel.com>

[PATCH 2/8] staging/rdma/hfi1: Fix camel case variables

2015-11-10 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> physState, linkState, and devState should be phys_state, link_state, and dev_state Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdm

[PATCH 0/8] Fix hfi1_ioctl locking

2015-11-10 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> It was identified that hfi1_ioctl may sleep with a spin lock held. This was identified publicly here: http://www.spinics.net/lists/linux-rdma/msg29926.html As well as by our internal development. This series cleans up the code and parameter

[PATCH 3/8] staging/rdma/hfi1: Return early from hfi1_ioctl parameter errors

2015-11-10 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Rather than have a switch in a large else clause make the parameter checks return immediately. Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma

[PATCH 5/8] staging/rdma/hfi1: return early if setlink state was specified

2015-11-10 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Set link state was not supported and so we can return early in the parameter checks rather than falling through the switch clause. Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.co

[PATCH 6/8] staging/rdma/hfi1: Further clean up hfi1_ioctl parameter checks

2015-11-10 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> Final clean up of the if/then/else clause for the parameter checks of hfi1_ioctl Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdm

[PATCH 8/8] staging/rdma/hfi1: Return immediately on error

2015-11-10 Thread ira . weiny
Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/diag.c | 59 1 file changed, 23 insertions(+), 36 deletions(-) diff --git a/drivers/staging/rdma/hfi1/diag.c b/drivers/stagin

[PATCH 4/8] staging/rdma/hfi1: remove unneeded goto done

2015-11-10 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> This goto done is followed by an if (ret) break in the outer switch clause. It is unnecessary. Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1

[PATCH 7/8] staging/rdma/hfi1: Reduce snoop locking scope in IOCTL handler.

2015-11-10 Thread ira . weiny
Queue Reported-by: Alexey Khoroshilov <khoroshi...@ispras.ru> Reviewed-by: Mike Marciniszyn <mike.marcinis...@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/diag.c | 10

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

2015-11-09 Thread ira . weiny
com> Signed-off-by: Vennila Megavannan<vennila.megavan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from V1: Redo commit message as well as Kconfig help to make it clear what the compile and module options do. Changes from V2: Re

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

2015-11-09 Thread ira . weiny
From: Dean Luick <dean.lu...@intel.com> 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 <john.s.summ...@intel.com> Signed-off-by: Dean Luick <dean.lu...@intel.com>

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

2015-11-09 Thread ira . weiny
number of sdma engines and with 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 <dennis.dalessan...@intel.com> Signed-off-by: Mike Marciniszyn <mike.marcinis...@intel.com>

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

2015-11-09 Thread ira . weiny
is...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- This patch was previously sent as #9/9 but 5/9 failed. I'm resending 7,8, and 9 as they did not explicitly depend on 5 and 6. drivers/staging/rdma/hfi1/qp.c| 27 +-- drivers/staging/rdma/hfi1

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

2015-11-09 Thread ira . weiny
From: Mike Marciniszyn <mike.marcinis...@intel.com> Move hfi1_migrate_qp from ruc.c to qp.[hc] in prep for modifying the QP workqueue. Signed-off-by: Mike Marciniszyn <mike.marcinis...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- This patch was previously se

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

2015-11-05 Thread ira . weiny
ed-off-by: Vennila Megavannan<vennila.megavan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from V1: Redo commit message as well as Kconfig help to make it clear what the compile and module options do. --- drivers/s

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

2015-11-04 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> 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 que

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

2015-11-04 Thread ira . weiny
a CNP, or adjusting the injection rate). Afterward, the packet will be processed normally. Reviewed-by: Mike Marciniszyn <mike.marcinis...@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessan...@intel.com> Signed-off-by: Arthur Kepner <arthur.kep...@intel.com> Signed-off-by: Ira We

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

2015-11-04 Thread ira . weiny
From: Dean Luick <dean.lu...@intel.com> 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 <john.s.summ...@intel.com> Signed-off-by: Dean Luick <dean.lu...@intel.com>

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

2015-11-04 Thread ira . weiny
Arthur Kepner <arthur.kep...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/driver.c | 13 +++-- drivers/staging/rdma/hfi1/hfi.h| 13 - 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/drivers/staging

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

2015-11-04 Thread ira . weiny
inis...@intel.com> Signed-off-by: Vennila Megavannan<vennila.megavan...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/Kconfig | 14 +++--- drivers/staging/rdma/hfi1/driver.c | 24 +--- 2 files changed, 24 in

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

2015-10-30 Thread ira . weiny
tation of the interaction with user space and makes use of these functions. Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/Kconfig| 1 + drivers/staging/rdma/hfi1/Makefile | 2 +- drivers

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

2015-10-30 Thread ira . weiny
is...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/qp.c| 27 +-- drivers/staging/rdma/hfi1/qp.h| 1 - drivers/staging/rdma/hfi1/ruc.c | 10 ++ drivers/staging/rdma/hfi1/ud.c| 1 + drivers/stagin

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

2015-10-30 Thread ira . weiny
From: Ira Weiny <ira.we...@intel.com> 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 <mitko.harala...@intel.com> Signed-off-b

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

2015-10-30 Thread ira . weiny
gned-off-by: Mitko Haralanov <mitko.harala...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes from V3: Reworked based on the removal of the file pointer macros Split out some prep patches and code clean up Changes from V2: Fix random Kc

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

2015-10-30 Thread ira . weiny
number of sdma engines and with 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 <dennis.dalessan...@intel.com> Signed-off-by: Mike Marciniszyn <mike.marcinis...@intel.com>

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

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn <mike.marcinis...@intel.com> Move hfi1_migrate_qp from ruc.c to qp.[hc] in prep for modifying the QP workqueue. Signed-off-by: Mike Marciniszyn <mike.marcinis...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma

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

2015-10-30 Thread ira . weiny
From: Mitko Haralanov <mitko.harala...@intel.com> These includes were not used in file_ops.c Signed-off-by: Mitko Haralanov <mitko.harala...@intel.com> Signed-off-by: Ira Weiny <ira.we...@intel.com> --- drivers/staging/rdma/hfi1/file_ops.c | 10 -- 1 file changed, 10

  1   2   3   4   5   6   7   8   9   >