Commit graph

298 commits

Author SHA1 Message Date
Kalle Valo
497200c3fd Update ath10k-check
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-06-03 13:14:41 +03:00
Kalle Valo
063dff9967 Update ath10k-fw-repo
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-10-13 14:24:20 +03:00
Kalle Valo
141f3b0e02 Update ath10k-bdencoder
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-10-13 14:24:20 +03:00
Kalle Valo
605442e9a8 Update ath10k.py
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-07-03 21:16:33 +03:00
Kalle Valo
99c601ea1f Update ath10k-fw-repo
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-07-03 21:16:33 +03:00
Kalle Valo
6c34812fc7 Update ath10k-bdencoder
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-07-03 21:16:33 +03:00
Kalle Valo
26f9460b33 Update ath10k-fwencoder
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-07-03 21:16:33 +03:00
Kalle Valo
f371c26cea Update ath10k-check
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-07-03 21:16:33 +03:00
Kalle Valo
db953a5381 Update ath10k_pktlog.py
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Kalle Valo
e1df87fd10 Update ath10k.py
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Kalle Valo
3ead7a23e8 Update ath10k-fw-repo
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Kalle Valo
e92ab4b9b9 Update ath10k-bdencoder
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Kalle Valo
a208017c60 Update ath10k-fwencoder
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Kalle Valo
30da9160b8 Update ath10k-check
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Maharaja Kennadyrajan
8a80300141 tracing: Fix pktlog support for QCA9888 & QCA9984 chipsets
This patch enables the support for parsing pktlog from trace
points taken on a QCA9888 & QCA9984 chipsets.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-08-15 12:09:27 +03:00
Kalle Valo
d9c3d5857a tools: ath10k-check: enable SYMBOLIC_PERMS checkpatch check
The issues in ath10k have been fixed now.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-05-05 10:46:58 +03:00
Kalle Valo
e23fbd3c96 tools: ath10k-check: enable BLOCK_COMMENT_STYLE checkpatch warning
Since ath10k commit 37ff1b0df37a ("ath10k: clean header files from bad block
comments", going to 4.12) ath10k has been cleaned with all block comment
issues. So now we can enable the checkpatch warning.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-04-05 11:42:37 +03:00
Kalle Valo
d278f25bc9 tools: update ath10k-[fw|bd]encoder
New features and bugfixes.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-10 13:05:18 +02:00
Kalle Valo
496c42817e tools: ath10k-check: add --extra command line switch
This is for running optional checks which we haven't fixed yet or might be
false positive. Currently enables only W=1 for kernel.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-08 11:28:04 +02:00
Kalle Valo
25d27878f4 tools: ath10k-check: document more ignored checkpatch warnings
I should clean up that at some point and try to reduce it.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-07 15:08:51 +02:00
Kalle Valo
ceb26e3416 tools: ath10k-check: apply --no-filter switch also for checkpatch filter
Just for consistency.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-07 15:00:07 +02:00
Kalle Valo
b9a32cfd44 tools: ath10k-check: add --version command line switch
To make it easier to check all versions.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-07 14:53:19 +02:00
Kalle Valo
f33d779002 scripts: ath10k-check: filter warnings not coming from ath directory
By default the script now does not show any warnings outside ath directory, but
with --no-filter that can be disabled:

$ ath10k-check
$ ath10k-check --no-filter
./arch/x86/include/asm/uaccess.h:714:18: warning: incorrect type in argument 1 (different modifiers)
./arch/x86/include/asm/uaccess.h:714:18:    expected void *<noident>
./arch/x86/include/asm/uaccess.h:714:18:    got void const *from
./include/linux/relay.h:209:16: warning: incorrect type in initializer (different address spaces)
./include/linux/relay.h:209:16:    expected void const [noderef] <asn:3>*__vpp_verify
./include/linux/relay.h:209:16:    got struct rchan_buf **<noident>
$

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-02 15:05:21 +02:00
Kalle Valo
4d0fe54348 scripts: ath10k-check: fix nproc command
For testing purposes I had used 'nproc2' but forgot to change that before
commit.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-02 14:45:36 +02:00
Kalle Valo
e07a588ad4 scripts: ath10k-check: add usage and installation instructions
Hopefully this is now easier for people to use. Also use nproc to get the
number of cores available.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-02 13:58:58 +02:00
Maharaja Kennadyrajan
cc5a3bd6f6 tracing: Fix the buf usage while parsing ath10k_htt_stats
This patch solves the buf usage prob when parsing the
ath10k_htt_stats and updated the ibf_VHT_TX_TxBF count.
2016-11-24 14:26:00 +02:00
Kalle Valo
d2a219ab16 tools: ath10k-check: run checkpatch in parallel
A lot faster now.
2016-08-31 10:02:35 +03:00
Ashok Raj Nagarajan
cf8d9a8c83 tracing: update hw revision enumeration
Updating the hw enumeration here to keep in sync with ath10k.

kvalo: ath10k accidentally broke the backwards compatibility in
hw revision in these commits:

e565c3125e03 ath10k: enable support for QCA9888
651b4cdcf97e ath10k: enable support for QCA9984

But this should not happen anymore. I added a comment to document
that.
2016-08-30 09:31:53 +03:00
Kalle Valo
a34666a4fc ath10k scripts: add ath10k-fw-repo
Add a script for installing firmware images from ath10k-firmware.git
repository and help with other firmware management related tasks.

usage: ath10k-fw-repo [-h] [--debug] [--dry-run] [--check] [--list]
                      [--install DESTINATION] [--unit-test]

Install firmware images from the ath10k-firmware git repository. Run it from
the top directory of the working tree.

optional arguments:
  -h, --help            show this help message and exit
  --debug               Enable debug messages.
  --dry-run             Do not run any actual commands.
  --check               Check the ath10k-firmware repository content for
                        validity.
  --list                List all files found from the ath10k-firmware
                        repository.
  --install DESTINATION
                        Install all ath10k firmware images to DESTINATION
                        folder, for example /lib/firmware.
  --unit-test           Run unit tests for this script.


Screenshot:

$ ath10k-fw-repo --install /lib/firmware
Unknown file: QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin
Unknown file: QCA99X0/hw2.0/boardData_AR900B_CUS260_2G_v2_002.bin
Installing QCA9377/hw1.0/firmware-5.bin (WLAN.TF.1.0-00267-1)
Installing QCA9377/hw1.0/notice_ath10k_firmware-5.txt (WLAN.TF.1.0-00267-1)
Installing QCA9377/hw1.0/board.bin
Installing QCA9377/hw1.0/board-2.bin
Installing QCA988X/hw2.0/firmware-5.bin (10.2.4.70.54)
Installing QCA988X/hw2.0/notice_ath10k_firmware-5.txt (10.2.4.70.54)
Installing QCA988X/hw2.0/board.bin
Installing QCA4019/hw1.0/firmware-5.bin (10.4-3.2-00080)
Installing QCA4019/hw1.0/notice_ath10k_firmware-5.txt (10.4-3.2-00080)
Installing QCA4019/hw1.0/board-2.bin
Installing QCA9888/hw2.0/firmware-5.bin (10.4-3.2-00072)
Installing QCA9888/hw2.0/board-2.bin
Installing QCA9887/hw1.0/firmware-5.bin (10.2.4-1.0-00013)
Installing QCA9887/hw1.0/notice_ath10k_firmware-5.txt (10.2.4-1.0-00013)
Installing QCA9887/hw1.0/board.bin
Installing QCA99X0/hw2.0/firmware-5.bin (10.4.1.00030-1)
Installing QCA99X0/hw2.0/notice_ath10k_firmware-5.txt (10.4.1.00030-1)
Installing QCA6174/hw3.0/firmware-4.bin (WLAN.RM.2.0-00180-QCARMSWPZ-1)
Installing QCA6174/hw3.0/notice_ath10k_firmware-4.txt (WLAN.RM.2.0-00180-QCARMSWPZ-1)
Installing QCA6174/hw3.0/board-2.bin
Installing QCA6174/hw3.0/board.bin
Installing QCA6174/hw2.1/firmware-5.bin (SW_RM.1.1.1-00157-QCARMSWPZ-1)
Installing QCA6174/hw2.1/notice_ath10k_firmware-5.txt (SW_RM.1.1.1-00157-QCARMSWPZ-1)
Installing QCA6174/hw2.1/board.bin
Installing QCA6174/hw2.1/board-2.bin
Installing QCA9984/hw1.0/firmware-5.bin (10.4-3.2-00072)
Installing QCA9984/hw1.0/notice_ath10k_firmware-5.txt (10.4-3.2-00072)
Installing QCA9984/hw1.0/board-2.bin
$
2016-08-23 14:08:06 +03:00
Ashok Raj Nagarajan
e5f25e1af0 tracing: don't throw exception when payload given is higher
With "ath10k: simplify pktlog htt event processing" approach, driver passes
entire payload stipping the htt_response header. By this method, we could
receive pktlog events that has payload size higher than mentioned in pktlog
header (for alignment reasons)

This issue is seen with 10.2 FW for ATH10K_PKTLOG_TYPE_TX_MSDU_ID type events.

So throw exception only when payload size is lesser than the one mentioned in
pktlog header
2016-06-22 14:05:56 +03:00
Rajkumar Manoharan
dfd83b4336 tracing: fix txctl handling
txctl log type manipulates pktlog header and log data as well. payload
length should be handled differently for 10.2 and 10.4 based firmware.
Not doing so, will generate invalid pktlog data file.
2016-06-22 14:05:53 +03:00
Rajkumar Manoharan
4b4ce97aa9 tracing: fix hw_type checks for qca40xx 2016-06-22 14:05:53 +03:00
Rajkumar Manoharan
40f0f7474b tracing: fix hw revision enumeration 2016-06-22 14:05:53 +03:00
Ashok Raj Nagarajan
17622eeb5d tracing: add pktlog support for QCA40xx chipsets
This patch enables the support for generate pktlog.dat from trace points
taken on a QCA40xx chipsets
2016-06-07 10:10:37 +03:00
Maharaja Kennadyrajan
25e5adbb2d tracing: ath10k: Add New Data Path related HTT stats support for QCA99XX & QCA40XX
Below stats are added in this patch
1.tx_desc stats 2.tx_fetch_mgr info stats 3.tx_pf_sched info stats

Signed-off-by: Maharaja Kennadyrajan <c_mkenna@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2016-04-12 15:36:16 +03:00
Maharaja Kennadyrajan
91c07af56b tracing: ath10k: Add SIFS resp info, Reset info and mac wdog related HTT stats support for QCA99XX & QCA40XX
Below stats are added in this patch
1.sifs_resp info stats 2.reset info stats 3.mac_wdog stats

Signed-off-by: Maharaja Kennadyrajan <c_mkenna@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2016-04-12 15:36:16 +03:00
Maharaja Kennadyrajan
7e2081c04b tracing: ath10k: Add Tx Beam Forming Mu-MIMO related HTT stats support for QCA99XX & QCA40XX
Below stats are added in this patch
1.txbf_data stats 2.txbf_send_info stats 3.tx_selfgen stats
4.tx_mu stats

Signed-off-by: Maharaja Kennadyrajan <c_mkenna@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2016-04-12 15:36:16 +03:00
Maharaja Kennadyrajan
4a20ff7a97 tracing: ath10k: Add Tx Rx and TIDS related HTT stats support for QCA99XX & QCA40XX
ath10k_htt_stats doesn't have all the htt stats support.
Below stats are added in this patch
1.pdev_txrx stats 2.rx_reorder stats 3.rx_rate_info stats
4.tx_rate_info stats 5.tidq stats

Signed-off-by: Maharaja Kennadyrajan <c_mkenna@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2016-04-12 15:36:16 +03:00
Kalle Valo
d610cee8b7 ath10k-check: add new checkpatch warnings to ignore
I updated checkpatch and saw quite a lot of new warnings. Disable the ones
which don't really make sense.
2016-03-24 16:24:53 +02:00
Ashok Raj Nagarajan
c991fcb638 tracing: extend plugin to support pktlog for 10.4 FW
Currently tracing plugin works only for QCA988X chipsets. This patch
extend the support to generate pktlog for QCA99X0.

With the ath10k commit "ath10k: add hw_rev to trace events to support
pktlog" we now have a new attribute passed with tracing events
"hw_type" that helps to determine the chipset used for taking the trace
points. This is helpful in getting FW variant used thereby generating
pktlog.dat accordingly.

To support backward compatibility for older versions of ath10k, assume the
default value of the hw_type, if not provided, to be HW_QCA988X (0).
2016-02-08 15:22:25 +02:00
Anilkumar Kolli
cfb531695a tracing: ath10k: fix htt_rx_desc for QCA988X
ath10k_htt_rx_desc has QCA988X,QCA99X0 and QCA6174 packet information.
ath10k_htt_rx_desc has QCA99X0 relted structures at various offsets. The current
script has not taken care of QCA99X0 changes.

This modification has fix for QCA988X chipsets.

We will fix this script for all the supported chipsets later by sending
one more trcing attribute from the driver.
2015-12-30 15:46:07 +02:00
Kalle Valo
b2b06517bb scripts: ath10k: add ath10k-fwencoder and ath10k-bdencoder
Scripts for handling ath10k firmware image container format.
2015-12-03 17:41:27 +02:00
Kalle Valo
41b194534b ath10k-check: fix object file deletion
It didn't work as I had forgetten to enable shell to get wildcard extensions
work.
2015-10-09 10:53:10 +03:00
Kalle Valo
587f0ca617 add ath10k-check 2015-10-01 12:15:40 +03:00
Rajkumar Manoharan
7903ede3c6 tracing: fix msdu_id processing pktlog_tx_msdu_id
Whenever trace record is started in middle of data flow, the
msdu_len_tbl is not fully populated. For the initial MSDU_ID log
types, msdu_id can not be found in msdu_len_tbl. If the entries
are not found set the msdu_len to 0. This will also fix below
errors.

  File "ath10k_pktlog.py", line 297, in <lambda>
    ath10k_htt_pktlog_handler(pevent, *args))
  File "ath10k_pktlog.py", line 238, in ath10k_htt_pktlog_handler
    pktlog_tx_msdu_id(buf)
  File "ath10k_pktlog.py", line 218, in pktlog_tx_msdu_id
    msdu_len = msdu_len_tbl[msdu_id]
2015-01-29 17:19:56 +02:00
Rajkumar Manoharan
04d7947835 tracing: fix rxdesc parsing in ath10k_pktlog.py
Since tsf is valid only for last mpdu and it is already part
of rx descriptor dump, tsf argument is removed from
ath10k_htt_rx_desc tracepoint in ath10k. Hence updating the
parser accordingly.
2015-01-12 20:20:43 +02:00
Kalle Valo
6e45f8edcd tracing: add ath10k_pktlog.py 2014-11-04 05:34:31 +02:00
Kalle Valo
6502f41f55 tracing: ath10k: add htt tx ppdu stats
Skeleton for parsing htt tx ppdu stats.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2014-10-09 10:21:04 +03:00
Luis R. Rodriguez
957c4b05fb qca-swiss-army-knife: add qca-wireless-regdb.txt
This is what we are trying to get in synch with on the
public wireless-regdb. Its our goal. Snapshot taken today.

Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-11-20 21:54:56 +01:00
Kalle Valo
604f47bec1 qca-swiss-army-knife: add ath10k trace-cmd plugin
This one's a skeleton as well.

[mcgrof: removed trailing white space from empty lines]
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-09-04 11:01:03 -07:00