[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 changed,

[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 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/sdm

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

2015-10-19 Thread ira . weiny
From: Easwar Hariharan The DC firmware overwrites the enable_lane_tx register and does not update it on a host request to go to Poll. This causes an infinite loop through the LNI state machine if a link width downgrade occurs. This patch re-sets the enable_lane_tx register to all 4 lanes. Review

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

2015-10-19 Thread ira . weiny
From: Niranjana Vishwanathapura This fixes transmit errors when the number of scatter gather elements in the request is more that the number of per packet descriptors supported by the hardware, allocate and coalesce the extra scatter gather elements into a single buffer. The last descriptor is re

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

2015-10-19 Thread ira . weiny
From: Caz Yokoyama Reset firmware instead of reloading Sbus firmware if it's already done for this ASIC. To work around thermal polling problem in firmware, don't reload Sbus firmware, instead, reset the firmware on the initialization of the second HFI. Reviewed-by: Easwar Hariharan Reviewed-b

[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(+) di

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

2015-10-19 Thread ira . weiny
From: Vennila Megavannan If packets stop egressing the hardware link, software can lock up. Implement a timeout for send context halt recovery. This patch increases the timeout for packet egress to 500 us and timer resets to zero if the packet occupancy changes. Also we bounce the link on time

[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/dr

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

2015-10-19 Thread ira . weiny
From: Mitko Haralanov User SDMA keeps track of progress into the submitted IO vectors by tracking an offset into the vectors when packets are submitted. This offset is updated after a successful submission of a txreq to the SDMA engine. The same offset was used when determining whether an IO vec

[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 14/22] staging/rdma/hfi1: Implement Expected Receive TID caching

2015-10-19 Thread ira . weiny
From: Mitko Haralanov 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 operation as it requires the driv

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

2015-10-19 Thread ira . weiny
From: Dean Luick When under heavy load, the receive interrupt handler can run too long with IRQs disabled. Add a mixed-mode threading scheme. Initially process packets in the handler for quick responses (latency). If there are too many packets to process move to a thread to continue (bandwidth

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

2015-10-19 Thread ira . weiny
From: Mitko Haralanov The SDMA engines were configured to generate progress interrupts every time they processed N/2 descriptors (where N is the size of the descriptor queue). This interval was too infrequent, leading to degraded performance. This commit adds a module parameter, which allows for

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

2015-10-19 Thread ira . weiny
From: Jubin John The name used to create the verbs txreq cache was not qualified with the unit number. This causes a panic when destroying the cache on a dual HFI systems. Create a unique name with the unit number with this patch Reviewed-by: Mike Marciniszyn Signed-off-by: Jubin John Signed-o

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

2015-10-19 Thread ira . weiny
From: Easwar Hariharan Using fw_sbus_load to control SBus firmware load doesn't scale across multiple HFI1 cards in a single system. This patch ensures that the SBus firmware is loaded once per ASIC. Reviewed-by: Dean Luick Reviewed-by: Dennis Dalessandro Signed-off-by: Easwar Hariharan Signe

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

2015-10-19 Thread ira . weiny
From: Dean Luick In preparation for threading the receive interrupt, add irqsaves in the packet processing path. When the receive interrupt is threaded, the packet processing path is no longer guaranteed to have IRQs disabled. Add irqsaves where needed on several locks in the packet processing

[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/hfi1

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

2015-10-19 Thread ira . weiny
From: Mike Marciniszyn The workqueue is currently single threaded per port which for a small number of SDMA engines is ok. For hfi1, the there are up to 16 SDMA engines that can be fed descriptors in parallel. This patch: - Converts to use alloc_workqueue - Changes the workqueue limit from 1 to

[PATCH V2 01/12] staging: wilc1000: change the type of wilc1000_initialized

2015-10-19 Thread Tony Cho
This patch changes the type of wilc1000_initialized in the struc wilc from int to bool and also renames it to the initialized. In addition, unnecessary wilc1000_initialized codes are removed in this patch. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 13 +--

[PATCH 00/12] WILC1000 V2 for the g_linux_wlan

2015-10-19 Thread Tony Cho
The series of V2 restore the global variable, wl to g_linux_wlan which is its original name becasue it will be replaced with local structure and deleted. Tony Cho (12): staging: wilc1000: change the type of wilc1000_initialized staging: wilc1000: rename u8NoIfcs in the struct wilc staging: w

[PATCH V2 06/12] staging: wilc1000: rename drvHandler in the struct wilc_vif

2015-10-19 Thread Tony Cho
This patch renames drvHandler in the struct wilc_vif to the hif_drv. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 24 +++ drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +- 3

[PATCH V2 04/12] staging: wilc1000: rename aSrcAddress in the struct wilc_vif

2015-10-19 Thread Tony Cho
This patch renames aSrcAddress in the struct wilc_vif to the src_addr. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 4 ++-- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +- 3 files changed

[PATCH V2 03/12] staging: wilc1000: rename strInterfaceInfo in the sturct wilc

2015-10-19 Thread Tony Cho
This patch renames strInterfaceInfo in the struct wilc to the vif. In addition, unnecessary print statements around it are removed in this patch. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 91 +++ drivers/staging/wilc1000/wilc_wfi_cfgopera

[PATCH V2 02/12] staging: wilc1000: rename u8NoIfcs in the struct wilc

2015-10-19 Thread Tony Cho
This patch renames u8NoIfcs of the struct wilc to the vif_num to avoid CamelCase naming convention. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 18 +- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +- 2 files changed, 10 insertions(+), 10 dele

[PATCH V2 07/12] staging: wilc1000: rename wilc_netdev in the struct wilc_vif

2015-10-19 Thread Tony Cho
This patch renames wilc_netdev in the struct wilc_vif to the ndev. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 50 +++ drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 34 +++ drivers/staging/wilc1000/wilc_wfi_netdevice.h

[PATCH V2 05/12] staging: wilc1000: rename aBSSID in the sturct wilc_vif

2015-10-19 Thread Tony Cho
This patch renames aBSSID in the struct wilc_vif to the bssid. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 14 +++--- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++--- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +- 3 files chan

[PATCH V2 09/12] staging: wilc1000: rename wilc_firmware in the struct wilc

2015-10-19 Thread Tony Cho
This patch renames wilc_firmware in the struct wilc to the firmware. In addition, null assignments to the wl->firmware after release_firmware are removed because it is not necessary. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 15 +++ drivers/staging/w

[PATCH V2 12/12] staging: wilc1000: assign pointer of g_linux_wlan to sdio device data

2015-10-19 Thread Tony Cho
This patch assigns wl pointer to sdio device data. The global variable g_linux_wlan will be removed finally. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 5 +++-- drivers/staging/wilc1000/linux_wlan_sdio.c| 5 +++-- drivers/staging/wilc1000/wilc_wfi_netdevice.h

[PATCH V2 10/12] staging: wilc1000: remove COMPLEMENT_BOOT

2015-10-19 Thread Tony Cho
This patch removes a preprocessor definition, COMPLEMENT_BOOT which is not used anymore. This is just workaround to avoid weird issue, which is that 11b core is not ready after the power is givin to the chip. However, this issue happened only in the unstable hardware a long time ago and no more see

[PATCH V2 08/12] staging: wilc1000: move clean up codes into wl_wlan_cleanup function

2015-10-19 Thread Tony Cho
This patch moves clean up codes from exit_wilc_driver into the wl_wlan_cleanup newly introduced in this patch. In addition, it is called by linux_sdio_remove function. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 95 --- drivers/staging/wilc

[PATCH V2 11/12] staging: wilc1000: introduce struct wilc_sdio for sdio data

2015-10-19 Thread Tony Cho
This patch introduces struct wilc_sdio for sdio driver data. The wilc_sdio is allocated and set as driver data when the sdio is probed and deallocated when the sdio is removed. Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan_sdio.c | 16 1 file changed, 16 insert

<    1   2