[PATCH 0/4] ath10k: Add pktlog support

2014-10-02 Thread Rajkumar Manoharan
This implements the Packet log feature for ath10k. All tx and rx events and rx descriptor details are posted to user space by tracepoints. Rajkumar Manoharan (4): ath10k: Add support to configure pktlog filter ath10k: add tracing for ath10k_htt_pktlog ath10k: add tracing for rx descriptor

[PATCH 1/4] ath10k: Add support to configure pktlog filter

2014-10-02 Thread Rajkumar Manoharan
/phy*/ath10k/pktlog_filter Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.h | 2 ++ drivers/net/wireless/ath/ath10k/debug.c | 63 - drivers/net/wireless/ath/ath10k/debug.h | 9 + drivers/net/wireless/ath

[PATCH 3/4] ath10k: add tracing for rx descriptor

2014-10-02 Thread Rajkumar Manoharan
Upon the reception of frame, the descriptor status are reported to user space by tracepoint. This is useful for collecting rx statistics for pktlog. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/debug.c | 17 + drivers/net

[PATCH 4/4] ath10k: add tracing for tx msdu pktlog event

2014-10-02 Thread Rajkumar Manoharan
This is useful for collecting msdu statistics. For every msdu entry in the pktlog message, corresponding msdu length is determined. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/htt_rx.c | 48 drivers/net/wireless

Re: [PATCH 1/4] ath10k: Add support to configure pktlog filter

2014-10-02 Thread Rajkumar Manoharan
On Thu, Oct 02, 2014 at 02:37:13PM +0200, Michal Kazior wrote: On 2 October 2014 14:12, Rajkumar Manoharan rmano...@qti.qualcomm.com wrote: Add support to configure packet log filters (tx, rx, rate control) via debugfs. To disable htt pktlog events set the filters to 0. [...] +static

Re: [PATCH 1/4] ath10k: Add support to configure pktlog filter

2014-10-02 Thread Rajkumar Manoharan
On Thu, Oct 02, 2014 at 02:58:43PM +0200, Michal Kazior wrote: On 2 October 2014 14:53, Rajkumar Manoharan rmano...@qti.qualcomm.com wrote: On Thu, Oct 02, 2014 at 02:37:13PM +0200, Michal Kazior wrote: On 2 October 2014 14:12, Rajkumar Manoharan rmano...@qti.qualcomm.com wrote: Add

[PATCH v2 0/4] ath10k: Add pktlog support

2014-10-02 Thread Rajkumar Manoharan
This implements the Packet log feature for ath10k. All tx and rx events and rx descriptor details are posted to user space by tracepoints. v2: Addressed review comments and based on discussion with Michal dropped tx_msdu_id patch and added tx info changes Rajkumar Manoharan (4): ath10k

[PATCH v2 1/4] ath10k: Add support to configure pktlog filter

2014-10-02 Thread Rajkumar Manoharan
/phy*/ath10k/pktlog_filter Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.h | 2 + drivers/net/wireless/ath/ath10k/debug.c | 72 - drivers/net/wireless/ath/ath10k/debug.h | 9 + drivers/net/wireless/ath

[PATCH v2 2/4] ath10k: add tracing for ath10k_htt_pktlog

2014-10-02 Thread Rajkumar Manoharan
This is useful for collecting pktlog statistics of tx, rx and rate information, so add tracing for the API call. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/debug.h | 1 - drivers/net/wireless/ath/ath10k/htt.h| 2 +- drivers/net/wireless

[PATCH v2 4/4] ath10k: add tracing for tx info

2014-10-02 Thread Rajkumar Manoharan
The tx info such as msdu_id, frame len, vdev id and tid are reported to user space by tracepoint. This is useful for collecting tx statistics. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/htt_tx.c | 1 + drivers/net/wireless/ath/ath10k/trace.h

[PATCH 3/4] ath10k: add htt rx tracepoints

2014-10-06 Thread Rajkumar Manoharan
From: Michal Kazior michal.kaz...@tieto.com Although frame contents were printed via dbg_dump already it was not possible to easily filter them out for processing. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/htt_rx.c | 3 +++

Re: [PATCH v2] ath10k: add tracing for frame transmission

2014-10-07 Thread Rajkumar Manoharan
On Tue, Oct 07, 2014 at 05:32:30PM +0300, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: Add tracing support to forward management and data frames to user space for packet inspection. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com ! [ 80

Re: [PATCH v2] ath10k: add tracing for frame transmission

2014-10-07 Thread Rajkumar Manoharan
On Tue, Oct 07, 2014 at 07:19:05PM +0300, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: Add tracing support to forward management and data frames to user space for packet inspection. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com

[PATCH] ath10k: fix kernel panic while shutting down AP

2014-10-08 Thread Rajkumar Manoharan
...@tieto.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/mac.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c

Re: [PATCH] ath10k: fix kernel panic while shutting down AP

2014-10-08 Thread Rajkumar Manoharan
On Wed, Oct 08, 2014 at 11:45:38AM +0200, Michal Kazior wrote: On 8 October 2014 11:16, Rajkumar Manoharan rmano...@qti.qualcomm.com wrote: The commit ath10k: workaround fw beaconing bug is freeing DMA-coherent memory in irq context which is hitting BUG ON in ARM platforms. Fix

Re: [PATCH] ath10k: fix kernel panic while shutting down AP

2014-10-08 Thread Rajkumar Manoharan
On Wed, Oct 08, 2014 at 12:52:04PM +0300, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: The commit ath10k: workaround fw beaconing bug is freeing DMA-coherent memory in irq context which is hitting BUG ON in ARM platforms. Fix this by moving dma_free out of spin

Re: [PATCH] ath10k: fix kernel panic while shutting down AP

2014-10-08 Thread Rajkumar Manoharan
On Wed, Oct 08, 2014 at 12:50:28PM +0200, Michal Kazior wrote: On 8 October 2014 12:33, Rajkumar Manoharan rmano...@qti.qualcomm.com wrote: On Wed, Oct 08, 2014 at 11:45:38AM +0200, Michal Kazior wrote: On 8 October 2014 11:16, Rajkumar Manoharan rmano...@qti.qualcomm.com wrote

Re: [PATCH] ath10k: fix kernel panic while shutting down AP

2014-10-08 Thread Rajkumar Manoharan
On Wed, Oct 08, 2014 at 04:38:44PM +0530, Rajkumar Manoharan wrote: On Wed, Oct 08, 2014 at 12:50:28PM +0200, Michal Kazior wrote: On 8 October 2014 12:33, Rajkumar Manoharan rmano...@qti.qualcomm.com wrote: On Wed, Oct 08, 2014 at 11:45:38AM +0200, Michal Kazior wrote: On 8 October

[PATCH v2] ath10k: fix kernel panic while shutting down AP

2014-10-10 Thread Rajkumar Manoharan
. Fix this by changing GFP flag to atomic. Cc: Michal Kazior michal.kaz...@tieto.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b

[PATCH] ath10k: add tracing for tx ieee80211 header

2014-10-28 Thread Rajkumar Manoharan
For packet log, the transmitted frame 802.11 header alone is sufficient. Recording entire packet is also consuming lot of disk space. To optimize, add tracepoints for sending tx-ed 802.11 headers alone. Cc: Michal Kazior michal.kaz...@tieto.com Signed-off-by: Rajkumar Manoharan rmano

Re: [PATCH] ath10k: add tracing for tx ieee80211 header

2014-10-28 Thread Rajkumar Manoharan
On Tue, Oct 28, 2014 at 05:59:39PM +0100, Johannes Berg wrote: On Tue, 2014-10-28 at 22:18 +0530, Rajkumar Manoharan wrote: For packet log, the transmitted frame 802.11 header alone is sufficient. Recording entire packet is also consuming lot of disk space. To optimize, add tracepoints

[PATCH] ath10k: handle ieee80211 header and payload tracing separately

2014-10-29 Thread Rajkumar Manoharan
ath10k_tx_hdr To record complete packets trace-cmd record -e ath10k_tx_hdr -e ath10k_tx_payload Cc: Michal Kazior michal.kaz...@tieto.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/htt_rx.c | 5 +++-- drivers/net/wireless/ath/ath10k/htt_tx.c | 4

Re: [PATCH] ath10k: handle ieee80211 header and payload tracing separately

2014-10-30 Thread Rajkumar Manoharan
On Wed, Oct 29, 2014 at 04:05:44PM +0100, Johannes Berg wrote: On Wed, 2014-10-29 at 19:39 +0530, Rajkumar Manoharan wrote: + u32 hdr_len = ieee80211_hdrlen(hdr-frame_control); + trace_ath10k_rx_hdr(ar, hdr, hdr_len); + trace_ath10k_rx_payload(ar, skb-data + hdr_len, skb-len

Re: [PATCH v2] ath10k: handle ieee80211 header and payload tracing separately

2014-11-03 Thread Rajkumar Manoharan
On Tue, Nov 04, 2014 at 01:34:37AM +0200, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: For packet log, the transmitted frame 802.11 header alone is sufficient. Recording entire packet is also consuming lot of disk space. To optimize this, tx and rx data

Re: [PATCH v2] ath10k: handle ieee80211 header and payload tracing separately

2014-11-05 Thread Rajkumar Manoharan
On Wed, Nov 05, 2014 at 03:29:13AM +0200, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: On Tue, Nov 04, 2014 at 01:34:37AM +0200, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: -DECLARE_EVENT_CLASS(ath10k_data_event, +#define

Re: [PATCH v2] ath10k: handle ieee80211 header and payload tracing separately

2014-11-05 Thread Rajkumar Manoharan
On Wed, Nov 05, 2014 at 11:12:01AM +0100, Johannes Berg wrote: On Wed, 2014-11-05 at 15:14 +0530, Rajkumar Manoharan wrote: The macro is defined to ease readability and reduce # of line changes. I originally thought of naming the macro as IEEE80211_HDR_LEN. But such definition does

[PATCH v3] ath10k: handle ieee80211 header and payload tracing separately

2014-11-05 Thread Rajkumar Manoharan
ath10k_tx_hdr To record complete packets trace-cmd record -e ath10k_tx_hdr -e ath10k_tx_payload Cc: Michal Kazior michal.kaz...@tieto.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- v2: Move header len processing inside trace v3: Replace ATH10K_FRM_HDR_LEN by inline function

[PATCH 1/2] ath10k: add modpram 'skip_otp' to ignore empty otp error during BMI

2014-11-07 Thread Rajkumar Manoharan
This patch would help bring up wifi interface with default board data in case of failures in otp download. It is useful for initial caliberation. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH 2/2] ath10k: Advertise support for AP mode channel width changes

2014-11-07 Thread Rajkumar Manoharan
This will enable AP mode to change channel width dynamically based on 20/40 intolerance report sent by associated client. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/mac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless

[PATCH 0/5] ath10k: Add thermal mitigation support

2014-12-14 Thread Rajkumar Manoharan
temperature is available from 10.2.4 firmware onwards. The firmware can be downloaded from https://github.com/kvalo/ath10k-firmware/tree/master/10.2.4/untested Rajkumar Manoharan (5): ath10k: add 10.2.4 firmware support ath10k: add wmi support for pdev_set_quiet_mode ath10k: add thermal cooling

[PATCH 1/5] ath10k: add 10.2.4 firmware support

2014-12-14 Thread Rajkumar Manoharan
-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.c | 8 +++- drivers/net/wireless/ath/ath10k/core.h | 5 + drivers/net/wireless/ath/ath10k/hw.h | 1 + drivers/net/wireless/ath/ath10k/wmi.c | 1 + drivers/net/wireless/ath/ath10k/wmi.h | 7 ++- 5 files

[PATCH 2/5] ath10k: add wmi support for pdev_set_quiet_mode

2014-12-14 Thread Rajkumar Manoharan
Add WMI support to send pdev_set_quiet_mode command to target. This will be used for thermal mitigation purpose. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 22 ++ drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1

[PATCH 3/5] ath10k: add thermal cooling device support

2014-12-14 Thread Rajkumar Manoharan
be found under /sys/class/thermal/cooling_deviceX/. Corresponding soft link to this device can be found under phy folder. /sys/class/ieee80211/phy*/device/cooling_device. To set duty cycle as 40%, echo 40 /sys/class/ieee80211/phy*/device/cooling_device/cur_state Signed-off-by: Rajkumar Manoharan

[PATCH 4/5] ath10k: add wmi interface for pdev_get_temperature

2014-12-14 Thread Rajkumar Manoharan
Add WMI command support for reading temperature from the target and corresponding WMI temperature event handler. The pdev_get_temperature command is currently supported in 10.2 firmware alone. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi

[PATCH 5/5] ath10k: add thermal sensor device support

2014-12-14 Thread Rajkumar Manoharan
WMI command and wait for response. For reading temperature, cat /sys/class/ieee80211/phy*/device/hwmon/hwmon2/temp1_input Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.c| 2 + drivers/net/wireless/ath/ath10k/thermal.c | 83

[PATCH 0/8] ath10k: add per station debugfs support

2014-12-18 Thread Rajkumar Manoharan
/ stations/XX:XX:XX:XX:XX:XX/addba_resp And for delba, echo 0 1 37 /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/delba Rajkumar Manoharan (8): ath10k: add wmi support for addba_clear_resp ath10k: add wmi support for addba_send ath10k: add wmi support

[PATCH 1/8] ath10k: add wmi support for addba_clear_resp

2014-12-18 Thread Rajkumar Manoharan
Add WMI support for clearing addba response before switching aggregation mode (auto/manual) for debugging purpose. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 18 ++ drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1

[PATCH 2/8] ath10k: add wmi support for addba_send

2014-12-18 Thread Rajkumar Manoharan
Add WMI support for sending addba request. This command is meant for debugging purpose. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 19 +++ drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1 + drivers/net/wireless/ath

[PATCH 5/8] ath10k: Implement sta_add_debugfs

2014-12-18 Thread Rajkumar Manoharan
/sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/aggr_mode For manual mode, echo 1 /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/aggr_mode Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath

[PATCH 3/8] ath10k: add wmi support for addba_set_resp

2014-12-18 Thread Rajkumar Manoharan
Add WMI support for sending addba response manually. This command is used for debugging purpose. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 20 drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1 + drivers/net

[PATCH 4/8] ath10k: add wmi support for delba_send

2014-12-18 Thread Rajkumar Manoharan
Add WMI support for sending delba request. This command is used for debugging purpose. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 21 + drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1 + drivers/net/wireless/ath

[PATCH 6/8] ath10k: add support to send addba request

2014-12-18 Thread Rajkumar Manoharan
This per-station debugfs entry helps to send addba request in manual mode. Need to pass two configuration parameters (tid, buffer size) as input. To send addba, echo 1 32 /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/addba Signed-off-by: Rajkumar Manoharan

[PATCH 8/8] ath10k: ath10k: add support to send delba

2014-12-18 Thread Rajkumar Manoharan
This per-station debugfs entry helps to send delba in manual mode for debugging purpose. It accepts tid, initiator and reason code as inputs. To send delba, echo 0 1 37 /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/delba Signed-off-by: Rajkumar Manoharan

[PATCH v2 8/8] ath10k: add support to send delba

2014-12-22 Thread Rajkumar Manoharan
This per-station debugfs entry helps to send delba in manual mode for debugging purpose. It accepts tid, initiator and reason code as inputs. To send delba, echo 0 1 37 /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/delba Signed-off-by: Rajkumar Manoharan

[PATCH v2 0/8] ath10k: add per station debugfs support

2014-12-24 Thread Rajkumar Manoharan
/ stations/XX:XX:XX:XX:XX:XX/addba_resp And for delba, echo 0 1 37 /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/delba v2: Rebased on top of 10.2.4 WMI ops support Rajkumar Manoharan (8): ath10k: add wmi support for addba_clear_resp ath10k: add wmi

[PATCH v2 1/8] ath10k: add wmi support for addba_clear_resp

2014-12-24 Thread Rajkumar Manoharan
Add WMI support for clearing addba response before switching aggregation mode (auto/manual) for debugging purpose. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 18 ++ drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1

[PATCH v2 2/8] ath10k: add wmi support for addba_send

2014-12-24 Thread Rajkumar Manoharan
Add WMI support for sending addba request. This command is meant for debugging purpose. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 19 +++ drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1 + drivers/net/wireless/ath

[PATCH v2 6/8] ath10k: add support to send addba request

2014-12-24 Thread Rajkumar Manoharan
This per-station debugfs entry helps to send addba request in manual mode. Need to pass two configuration parameters (tid, buffer size) as input. To send addba, echo 1 32 /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/addba Signed-off-by: Rajkumar Manoharan

[PATCH v2 4/8] ath10k: add wmi support for delba_send

2014-12-24 Thread Rajkumar Manoharan
Add WMI support for sending delba request. This command is used for debugging purpose. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 21 + drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1 + drivers/net/wireless/ath

[PATCH v2 5/8] ath10k: Implement sta_add_debugfs

2014-12-24 Thread Rajkumar Manoharan
/sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/aggr_mode For manual mode, echo 1 /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/aggr_mode Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath

[PATCH v2 3/8] ath10k: add wmi support for addba_set_resp

2014-12-24 Thread Rajkumar Manoharan
Add WMI support for sending addba response manually. This command is used for debugging purpose. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 20 drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1 + drivers/net

[PATCH v2 7/8] ath10k: add support to send addba response

2014-12-24 Thread Rajkumar Manoharan
-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/debugfs_sta.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/debugfs_sta.c b/drivers/net/wireless/ath/ath10k/debugfs_sta.c index 89e5e5a..95eb5a1 100644

[PATCH v2 8/8] ath10k: add support to send delba

2014-12-24 Thread Rajkumar Manoharan
This per-station debugfs entry helps to send delba in manual mode for debugging purpose. It accepts tid, initiator and reason code as inputs. To send delba, echo 0 1 37 /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/delba Signed-off-by: Rajkumar Manoharan

[PATCH] ath10k: fix build error when hwmon is off

2014-12-24 Thread Rajkumar Manoharan
Place hwmon APIs inside CONFIG_HWMON switch to fix undefined errors when hwmon is not enabled. ERROR: devm_hwmon_device_register_with_groups [drivers/net/wireless/ath/ath10k/ath10k_core.ko] undefined! Reported-by: Kalle Valo kv...@qca.qualcomm.com Signed-off-by: Rajkumar Manoharan rmano

[PATCH] ath10k: fix target wakeup timeout

2015-01-26 Thread Rajkumar Manoharan
. With this changes, able to complete power down/up 100 iterations without any issues. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.h b

[PATCH 1/2] ath10k: Bypass PLL setting on target init for QCA9888

2015-02-06 Thread Rajkumar Manoharan
. Since 10.2.4 firmware is having this ROM patch, applying skip_clock_init only for 10.2.4 firmware versions. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net

[PATCH 2/2] ath10k: Increase copy engine entries for rx wmi

2015-02-06 Thread Rajkumar Manoharan
due to lower ring entries. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index e6972b0

[PATCH v2 2/2] ath10k: Increase copy engine entries for rx wmi

2015-02-08 Thread Rajkumar Manoharan
due to lower ring entries. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index e6972b0

[PATCH 1/2] ath10k: increase duty cycle maximum limit

2015-02-19 Thread Rajkumar Manoharan
Allow user to configure the duty cycle upto 100%. Since thermal mitigation algorithm is running in user space, remove the driver level limitation and let the user to control the temperature. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/thermal.h

[PATCH 2/2] ath10k: fix quiet duration configuration

2015-02-19 Thread Rajkumar Manoharan
Duty cycle is nothing but percentage of one period in which a signal is active. But it is wrongly interpreted as ratio of quiet duration. So fix the quiet duration to the remaining percentage of duty cycle (active ratio). Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers

[PATCH] ath10k: fix hwmon temperature input units

2015-01-12 Thread Rajkumar Manoharan
To be compliant with the hwmon interface the unit needs to be millidegree Celsius. Fix that. Reported-by: Matthias Kaehlcke m...@google.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/thermal.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v2] ath10k: fix hwmon temperature input units

2015-01-12 Thread Rajkumar Manoharan
To be compliant with the hwmon interface the unit needs to be millidegree Celsius. Fix that. Reported-by: Matthias Kaehlcke m...@google.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- v2: added new line for better readability. drivers/net/wireless/ath/ath10k/thermal.c | 3

[PATCH] ath10k: fix config_enabled check for hwmon

2015-01-13 Thread Rajkumar Manoharan
Because of wrong macro check in config_enabled, hwmon never be enabled. Fix that. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k

[PATCH] ath10k: fix duration calculation for quiet param

2015-01-13 Thread Rajkumar Manoharan
The duty cycle (% of quiet duration) is used to put the device in quiet mode for the given period. Currently the quiet duration is wrongly calculated which results in not enabling quiet mode. Fix the calculation as below duration = (period * duty cycle) / 100 Signed-off-by: Rajkumar

[PATCH 1/6] ath10k: add debugfs entry to configure quiet period

2015-03-15 Thread Rajkumar Manoharan
Add support to configure quiet period (in milliseconds) via debugfs. This is useful to experiment different quiet period values along with different throttle ratio. echo 100 /sys/kernel/debug/ieee80211/phyX/ath10k/quiet_period Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com

[PATCH 6/6] ath10k: move driver state check before setting throttle

2015-03-15 Thread Rajkumar Manoharan
, returning error status is confusing and misleading the user application. Hence moving the driver state check before sending wmi command to target. Reported-by: Matthias Kaehlcke m...@google.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/thermal.c

Re: [PATCH v2 1/2] ath10k: Bypass PLL setting on target init for QCA9888

2015-03-15 Thread Rajkumar Manoharan
On Thu, Mar 05, 2015 at 02:41:16PM +0200, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: Some of of qca988x solutions are having global reset issue during target initialization. Bypassing PLL setting before downloading firmware and letting the SoC run on REF_CLK

Re: [PATCH 2/3] ath10k: fix wrong symlink name on error path

2015-03-15 Thread Rajkumar Manoharan
On Thu, Mar 12, 2015 at 03:00:32PM +0200, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: Wrong symlink name is used on error path of thermal registration and also correcting the error message. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com Thanks

[PATCH] ath10k: move driver state check before setting throttle

2015-03-11 Thread Rajkumar Manoharan
, returning error status is confusing and misleading the user application. Hence moving the driver state check before sending wmi command to target. Reported-by: Matthias Kaehlcke m...@google.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/thermal.c

[PATCH 1/4] ath10k: Fix interpretation of cooling device state

2015-03-07 Thread Rajkumar Manoharan
Kaehlcke m...@google.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/thermal.c | 35 +-- drivers/net/wireless/ath/ath10k/thermal.h | 4 ++-- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/drivers/net

[PATCH 2/4] ath10k: configure thermal throttle while powering up

2015-03-07 Thread Rajkumar Manoharan
Thermal throttling is not handled in software restart and device bootup. Also it needs to be configured whenever quiet period got updated. Fix that. Reported-by: Matthias Kaehlcke m...@google.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k

[PATCH 3/4] ath10k: do not restrict thermal throttling to ap mode

2015-03-07 Thread Rajkumar Manoharan
Recently thermal mitigation is validated in station mode as well. Hence allowing thermal throttling for all interfaces. This enables user to validate thermal mitigation with different modes. Reported-by: Matthias Kaehlcke m...@google.com Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com

[PATCH 4/4] ath10k: cache throttle state when device is down

2015-03-07 Thread Rajkumar Manoharan
-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/thermal.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c index 7aef064..3720c86 100644

Re: [PATCH 3/3] ath10k: add symlink for hwmon device

2015-03-12 Thread Rajkumar Manoharan
On Thu, Mar 12, 2015 at 03:20:33PM +0200, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: On Tue, Mar 10, 2015 at 05:39:46PM +0200, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: Add symbloic link thermal_sensors for hwmon devices

Re: [PATCH 1/3] ath10k: add sysfs entry to configure quiet period

2015-03-12 Thread Rajkumar Manoharan
On Thu, Mar 12, 2015 at 03:21:34PM +0200, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: On Tue, Mar 10, 2015 at 05:43:58PM +0200, Kalle Valo wrote: Rajkumar Manoharan rmano...@qti.qualcomm.com writes: Add support to configure quiet period via sysfs entry

[PATCH] ath10k: fix htt t2h message conflicts among firmware revisions

2015-03-11 Thread Rajkumar Manoharan
Target to host HTT messages are conflicting between 10.x and other firmware revisions. By maintaining separate HTT T2H tables for each firmware revisions (main, 10x and tlv) similar to WMI abstraction, solves the conflicts. Cc: Michal Kazior michal.kaz...@tieto.com Signed-off-by: Rajkumar

[PATCH 2/2] ath10k: increase station kickout threshold

2015-03-03 Thread Rajkumar Manoharan
Since the station kickout threshold is also counting software reries (Default sw count in firmware is 16), increasing the threshold to try with already 20 data frames before kicking out the station. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k

[PATCH 1/2] ath10k: fix rts profile for second rate series

2015-03-03 Thread Rajkumar Manoharan
associated, this will impact the robustness. Also enabling RTS protection only for second rateset will not impact performance on clear environment. Fix that. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/mac.c | 6 -- 1 file changed, 4 insertions(+), 2

[RFC 1/2] nl80211: Add support to configure low ack threshold

2015-03-03 Thread Rajkumar Manoharan
-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- include/net/cfg80211.h | 3 +++ include/uapi/linux/nl80211.h | 8 +++- net/wireless/nl80211.c | 6 ++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 64e09e1

[RFC 2/2] mac80211: store low ack threshold in bss config

2015-03-03 Thread Rajkumar Manoharan
Store the low ack threshold configured by user in BSS config. This will be used by driver for triggering low ack event whenever the station is not ACKing the number of frames mentioned in threshold. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- include/net/mac80211.h | 3

[PATCH v2 1/2] ath10k: fix rts profile for second rate series

2015-03-03 Thread Rajkumar Manoharan
associated, this will impact the robustness. Also enabling RTS protection only for second rateset will not impact performance on clear environment. Fix that. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/mac.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH v2 2/2] ath10k: increase station kickout threshold

2015-03-03 Thread Rajkumar Manoharan
Since the station kickout threshold is also counting software reries (Default sw count in firmware is 16), increasing the threshold to try with atleast 20 data frames before kicking out the station. Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k

Re: [PATCH 2/2] ath10k: fix quiet duration configuration

2015-03-05 Thread Rajkumar Manoharan
On Thu, Feb 19, 2015 at 11:25:06PM +0530, Rajkumar Manoharan wrote: Duty cycle is nothing but percentage of one period in which a signal is active. But it is wrongly interpreted as ratio of quiet duration. So fix the quiet duration to the remaining percentage of duty cycle (active ratio

Re: [RFC] mac80211: clear radar_required while setting up sdata

2015-04-21 Thread Rajkumar Manoharan
On Tue, Apr 21, 2015 at 07:02:05PM +0530, Rajkumar Manoharan wrote: The commit mac80211: don't defer scans in case of radar detection drops scan requests when interface is running on radar channel. Once the AP interface is brought up on DFS channel, sdata-radar_required never be cleared

[PATCH] ath10k: Add debugfs support to configure beacon tx mode

2015-05-14 Thread Rajkumar Manoharan
. By default, staggered mode is selected. To select bursted mode echo 1 /sys/kernel/debug/ieee80211/phyX/ath10k/beacon_tx_mode For staggered mode, echo 0 /sys/kernel/debug/ieee80211/phyX/ath10k/beacon_tx_mode Signed-off-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- drivers/net/wireless/ath

Re: [PATCH 1/2] nl80211: Add support to configure low ack threshold

2015-05-21 Thread Rajkumar Manoharan
On Tue, May 19, 2015 at 09:29:39AM +0200, Johannes Berg wrote: On Thu, 2015-05-14 at 16:17 +0530, Rajkumar Manoharan wrote: Add a new nl80211 attribute to configure low ack threshold (number of consecutive frames) not being acked by station. This threshold is used to kickout station

[PATCH v2 1/2] nl80211: Add support to configure low ack threshold

2015-05-28 Thread Rajkumar Manoharan
-by: Rajkumar Manoharan rmano...@qti.qualcomm.com --- include/net/cfg80211.h | 3 +++ include/uapi/linux/nl80211.h | 9 + net/wireless/nl80211.c | 13 + 3 files changed, 25 insertions(+) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index f8d6813..4e42b09

[PATCH v2 4/4] ath10k: remove shadow copy of CE descriptors for source ring

2015-10-23 Thread Rajkumar Manoharan
descriptors. This will also reduce driver memory consumption by 33KB during on device probing. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/ce.c | 22 -- drivers/net/wireless/ath/ath10k/ce.h | 6 -- drivers/net/wi

[PATCH v2 2/4] ath10k: remove send completion validation in diag read/write

2015-10-23 Thread Rajkumar Manoharan
CE diag window access is serialized (it has to be by design) so there's no way to get a different send completion. so there's no need for post completion validation. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/pci.

[PATCH v2 1/4] ath10k: use local memory instead of shadow descriptor in ce_send

2015-10-23 Thread Rajkumar Manoharan
and make a one-shot copy into the "uncached" descriptor. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- v2: * Since ce_send is not using shadow, fix send completion as well. drivers/net/wireless/ath/ath10k/ce.c | 13 ++--- 1 file changed, 6 insertions

[PATCH v2 3/4] ath10k: cleanup copy engine send completion

2015-10-23 Thread Rajkumar Manoharan
from CE send completion. This change is needed before removing the shadow copy of copy engine (CE) descriptors in follow up patch. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/ce.c | 24 +++- drivers/net/wireless/ath/

[PATCH v2 0/4] ath10k: remove shadow copy engine descriptors

2015-10-23 Thread Rajkumar Manoharan
Below series remove shadow copy of CE descriptors for source ring. Removing the shadow copy should reduce d-cache pressure and memory usage of the driver. v2: * Since ce_send is not using shadow, fix send completion as well. Rajkumar Manoharan (4): ath10k: use local memory instead of shadow

[PATCH 1/4] ath10k: remove supported chain mask

2015-10-27 Thread Rajkumar Manoharan
Removing supported chainmask fields as it can be always derived from num_rf_chains. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/core.h | 2 -- drivers/net/wireless/ath/ath10k/mac.c | 17 + drivers/net/wireless/ath/

[PATCH 3/4] ath10k: move static HT/VHT capability setup functions

2015-10-27 Thread Rajkumar Manoharan
Move HT and VHT capabiltity setup static functions to avoid forward declaration. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/mac.c | 280 +- 1 file changed, 140 insertions(+), 140 deletions(-) diff

[PATCH 0/4] ath10k: remove shadow copy engine descriptors

2015-10-22 Thread Rajkumar Manoharan
Below series remove shadow copy of CE descriptors for source ring. Removing the shadow copy should reduce d-cache pressure and memory usage of the driver. Rajkumar Manoharan (4): ath10k: use local memory instead of shadow descriptor in ce_send ath10k: remove send completion validation in diag

[PATCH 2/4] ath10k: remove send completion validation in diag read/write

2015-10-22 Thread Rajkumar Manoharan
CE diag window access is serialized (it has to be by design) so there's no way to get a different send completion. so there's no need for post completion validation. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/pci.

[PATCH 1/4] ath10k: use local memory instead of shadow descriptor in ce_send

2015-10-22 Thread Rajkumar Manoharan
and make a one-shot copy into the "uncached" descriptor. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/ce.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/

[PATCH 3/4] ath10k: cleanup copy engine send completion

2015-10-22 Thread Rajkumar Manoharan
from CE send completion. This change is needed before removing the shadow copy of copy engine (CE) descriptors in follow up patch. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/ce.c | 24 +++- drivers/net/wireless/ath/

[PATCH 4/4] ath10k: remove shadow copy of CE descriptors for source ring

2015-10-22 Thread Rajkumar Manoharan
descriptors. This will also reduce driver memory consumption by 33KB during on device probing. Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/ce.c | 22 -- drivers/net/wireless/ath/ath10k/ce.h | 6 -- drivers/net/wi

[PATCH] ath10k: poll HTT send completion when CE 5 is unused

2015-11-11 Thread Rajkumar Manoharan
led to transmit packet, dropping: -105" errors. Fix this by processing send completion from CE 1 service routine instead of CE 5. Tested-by: Ryan Hsu <ryan...@qca.qualcomm.com> Signed-off-by: Rajkumar Manoharan <rmano...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/pci.c |

  1   2   3   >