[PATCH V2 00/10] Add QCA99X0 support

2015-06-18 Thread Vasanthakumar Thiagarajan
This patch set adds changes for QCA99X0 chip in pci probe, Copy Engine init and firmware downloads. Since it is still work in progress the support for this chip is not yet advertised in pci device table. Vasanthakumar Thiagarajan (10): ath10k: Add a table to store hw specific values ath10k

[PATCH 10/10] ath10k: Add BMI param value to execute otp to hw_param

2015-06-15 Thread Vasanthakumar Thiagarajan
BMI parameter value to execute downloaded otp binary is different for QCA99X0. Have a member in hw_params to hold hw specific BMI param. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/core.c | 8 +++- drivers/net/wireless/ath/ath10k/core.h | 1 + 2 files

[PATCH 09/10] ath10k: Add support for code swap

2015-06-15 Thread Vasanthakumar Thiagarajan
swap support for firmware binary. Code swap binary for firmware bin is available in ATH10K_FW_IE_FW_CODE_SWAP_IMAGE. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/Makefile | 3 +- drivers/net/wireless/ath/ath10k/core.c | 24 drivers/net/wireless/ath/ath10k

[PATCH 08/10] ath10k: Fix BMI communication timeout for QCA99X0

2015-06-15 Thread Vasanthakumar Thiagarajan
There is more than 1 sec delay in getting response from target through BMI in QCA99X0. Increase the BMI communication timeout to 2*HZ to fix BMI failures. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/bmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 07/10] ath10k: Extend CE src desc flags for interrupt indication

2015-06-15 Thread Vasanthakumar Thiagarajan
CE_DESC_FLAGS_META_DATA_LSB are based on the target type. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/ce.c | 1 + drivers/net/wireless/ath/ath10k/ce.h | 9 +++-- drivers/net/wireless/ath/ath10k/hw.c | 6 ++ drivers/net/wireless/ath/ath10k/hw.h | 2 ++ 4 files changed

[PATCH 06/10] ath10k: Add chip reset sequence for QCA99X0

2015-06-15 Thread Vasanthakumar Thiagarajan
QCA99X0 supports only cold reset. Also, made ath10k_pci_irq_msi_fw_mask() and ath10k_pci_irq_msi_fw_unmask() non-99X0 specific till we get proper register configuration to mask/unmask irq/MSI. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/pci.c | 81

[PATCH 03/10] ath10k: Add hw register/values for QCA99X0 chip

2015-06-15 Thread Vasanthakumar Thiagarajan
This is to prepare the driver for QCA99X0 chip support. This commit adds hw_params, hw register table and hw_values table for QCA99X0 chip. Please note this is only a partial patch adding support for QCA99X0, so the device id is not yet added to pci device table. Signed-off-by: Vasanthakumar

[PATCH 04/10] ath10k: Copy Engine related changes for QCA99X0

2015-06-15 Thread Vasanthakumar Thiagarajan
QCA99X0 supports upto 12 Copy engines. Host and target CE configuration table is updated to support new copy engine pipes. This also fixes the assumption of diagnostic CE by making CE_7 as the one instead of CE_COUNT - 1. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath

[PATCH 02/10] ath10k: Add new reg_address/mask to hw register table

2015-06-15 Thread Vasanthakumar Thiagarajan
Add more register address and mask which can be different for newer chip to hw_reg table. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/ce.h | 6 -- drivers/net/wireless/ath/ath10k/hw.c | 22 ++ drivers/net/wireless/ath/ath10k/hw.h | 17

[PATCH 05/10] ath10k: Make target cpu address to CE address conversion chip specific

2015-06-15 Thread Vasanthakumar Thiagarajan
Make the helper converting target virtual address space to CE address space a target type specific to support QCA99X0. Also make this as function instead of macro. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/pci.c | 25 ++--- drivers/net

[PATCH 00/10] Add QCA99X0 support

2015-06-15 Thread Vasanthakumar Thiagarajan
This patch set adds changes for QCA99X0 chip in pci probe, Copy Engine init and firmware downloads. Since it is still work in progress the support for this chip is not yet advertised in pci device table. Vasanthakumar Thiagarajan (10): ath10k: Add a table to store hw specific values ath10k

[PATCH 01/10] ath10k: Add a table to store hw specific values

2015-06-15 Thread Vasanthakumar Thiagarajan
This is to prepare ath10k to support newer chip set. Values like CE_COUNT, MSI_ASSIGN_CE_MAX and RTC_STATE_V_ON can be different for different chips. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/core.c | 2 ++ drivers/net/wireless/ath/ath10k/core.h | 1

[PATCH V5 2/2] ath10k: Fix interrupt storm

2015-03-02 Thread Vasanthakumar Thiagarajan
could fix management frame drop in fw due to unavailable buffers because in monitor mode device receives everything seen on the air. In noisy condition, disabling monitor mode helps assoc go through without any issue. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k

[PATCH V5 1/2] ath10k: Move ath10k_vdev_stop() up before ath10k_vdev_start_restart()

2015-03-02 Thread Vasanthakumar Thiagarajan
This patches does not modify any functionality. Just a code move so that ath10k_vdev_stop() can be used in ath10k_vdev_start_restart() for any failure cases which involves vdev_stop(). Signed-off-by: Vasanthakumar Thiagarajan --- V2: - Call ath10k_vdev_stop() when ath10k_monitor_recalc

[PATCH V4 2/2] ath10k: Fix interrupt storm

2015-03-02 Thread Vasanthakumar Thiagarajan
could fix management frame drop in fw due to unavailable buffers because in monitor mode device receives everything seen on the air. In noisy condition, disabling monitor mode helps assoc go through without any issue. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k

[PATCH V4 1/2] ath10k: Move ath10k_vdev_stop() up before ath10k_vdev_start_restart()

2015-03-02 Thread Vasanthakumar Thiagarajan
This patches does not modify any functionality. Just a code move so that ath10k_vdev_stop() can be used in ath10k_vdev_start_restart() for any failure cases which involves vdev_stop(). Signed-off-by: Vasanthakumar Thiagarajan --- V2: - Call ath10k_vdev_stop() when ath10k_monitor_recalc

Re: [PATCH V3 2/2] ath10k: Fix interrupt storm

2015-03-02 Thread Vasanthakumar Thiagarajan
@@ -3476,6 +3504,13 @@ static void ath10k_configure_filter(struct ieee80211_hw *hw, changed_flags &= SUPPORTED_FILTERS; *total_flags &= SUPPORTED_FILTERS; + if (*total_flags & FIF_PROMISC_IN_BSS) { + if (ar->num_started_vdevs) { + a

Re: [PATCH V3 2/2] ath10k: Fix interrupt storm

2015-03-02 Thread Vasanthakumar Thiagarajan
buffers because in monitor mode device receives everything seen on the air. In noisy condition, disabling monitor mode helps assoc go through without any issue. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/mac.c | 35 + 1

[PATCH V3 2/2] ath10k: Fix interrupt storm

2015-02-27 Thread Vasanthakumar Thiagarajan
could fix manangement frame drop in fw due to unavailable buffers because in monitor mode device receives everything seen on the air. In noisy condition, disabling monitor mode helps assoc go through without any issue. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k

[PATCH V3 1/2] ath10k: Move ath10k_vdev_stop() up before ath10k_vdev_start_restart()

2015-02-27 Thread Vasanthakumar Thiagarajan
This patches does not modify any functionality. Just a code move so that ath10k_vdev_stop() can be used in ath10k_vdev_start_restart() for any failure cases which involves vdev_stop(). Signed-off-by: Vasanthakumar Thiagarajan --- V2: - Call ath10k_vdev_stop() when ath10k_monitor_recalc

Re: [PATCH V2 2/2] ath10k: Fix interrupt storm

2015-02-17 Thread Vasanthakumar Thiagarajan
On Tuesday 17 February 2015 02:53 PM, Michal Kazior wrote: On 17 February 2015 at 08:43, Vasanthakumar Thiagarajan wrote: Promiscuous mode is enabled when wlan interface is added to bridge. ath10k creates a monitor mode when promiscuous mode is enabled. When monitor vdev is runing along with

[PATCH V2 2/2] ath10k: Fix interrupt storm

2015-02-16 Thread Vasanthakumar Thiagarajan
promiscuous(monitor) mode when already a vdev is running. This does not change the support of virtual interface of type monitor along with other vdevs. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/mac.c | 16 1 file changed, 16 insertions(+) diff --git a

[PATCH V2 1/2] ath10k: Move ath10k_vdev_stop() up before ath10k_vdev_start_restart()

2015-02-16 Thread Vasanthakumar Thiagarajan
This patches does not modify any functionality. Just a code move so that ath10k_vdev_stop() can be used in ath10k_vdev_start_restart() for any failure cases which involves vdev_stop(). Signed-off-by: Vasanthakumar Thiagarajan --- V2: - Call ath10k_vdev_stop() when ath10k_monitor_recalc

Re: [PATCH] ath10k: Fix interrupt storm

2015-02-12 Thread Vasanthakumar Thiagarajan
Moreover I'm pretty sure this patch breaks STA 4addr bridging. I'm worried it also breaks other stuff (e.g some IBSS usecases or even some AP usecases) but I don't have time to check this now. Can you please elaborate on this one?. I can review if we can for these cases as well before disabl

Re: [PATCH] ath10k: Fix interrupt storm

2015-02-11 Thread Vasanthakumar Thiagarajan
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index d6d2f0f..310e608 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -932,6 +932,14 @@ static int ath10k_vdev_start_restart(struct ath10k_vif *arvif,

[PATCH] ath10k: Fix interrupt storm

2015-02-11 Thread Vasanthakumar Thiagarajan
promiscuous(monitor) mode when already a vdev is running. This does not change the support of virtual interface of type monitor along with other vdevs. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/mac.c | 16 1 file changed, 16 insertions(+) diff --git a

Re: [PATCH RESEND] ath10k: Fix potential Rx ring corruption

2015-01-11 Thread Vasanthakumar Thiagarajan
done about 4500 station reconnects over the last 2 hours and no tx-credits hang issue so far. Could be my debugging code or that I'm getting lucky, but I'm hopeful that your patch actually fixed the problem I was seeing! Thanks, Ben On 01/09/2015 09:19 AM, Vasanthakumar Thiagaraj

[PATCH RESEND] ath10k: Fix potential Rx ring corruption

2015-01-09 Thread Vasanthakumar Thiagarajan
corruption due to done bit in rx attention flag not set. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/htt_rx.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index

[PATCH] ath10k: Fix potential Rx ring corruption

2015-01-09 Thread Vasanthakumar Thiagarajan
corruption due to done bit in rx attention flag not set. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath10k/htt_rx.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index

Re: [PATCH] ath10k: Make HTT fill size configurable

2015-01-07 Thread Vasanthakumar Thiagarajan
On Wednesday 07 January 2015 03:44 PM, Michal Kazior wrote: On 5 January 2015 at 05:39, Sujith Manoharan wrote: From: Sujith Manoharan The HTT RX ring is replenished with a maximum of 16 buffers, but this might be insufficient when RX traffic is high. Not having enough RX buffers throttles

<    1   2