CSI info from ath10k 9984

Ben Greear greearb at candelatech.com
Tue Oct 24 15:25:27 PDT 2017


I've added some hacks to dump some CSI info from probe responses,
but I'm not really sure what to do with the output.

Anyone know if this output look like it might be correct?  I would not be
surprised if there were byte-swap issues, at least.

The raw data, dumped by prink from firmware looks like this.  The first 32
bits are a sequence-number, and after that, it is packed up in a fairly organized
manner by the firmware (I didn't write that FW packing, but rather used some
existing code with a few improvements).

[492780.270273] ath10k_pci 0000:04:00.0: ath10k_pci ATH10K_CSI_BUFFER:
[492780.270275] ath10k: [0000]: 00000001 54525453 4452544E 00000000 0F21F004 0000C33B 444E4544 54525453
[492780.270277] ath10k: [0008]: 53445254 00000001 0F21F004 0F03C33B 1EFFF207 1F0004B5 8D918E10 8D578D54
[492780.270279] ath10k: [0016]: 8E5A8DD8 80988F5A 765E81D5 84408408 83ED8476 90AE82E4 9EAA9FAC 9C699D69
[492780.270280] ath10k: [0024]: 9AED9BAB 9A339AB0 9A7A9A37 9BFE9A7A 8A3E88BE 79B38BBC 7BE67AEC 8DAD8DEF
[492780.270282] ath10k: [0032]: 8C2C8D2B 8AF58B70 8AC28ABB 8CD38B8A 815F8EDA 935191D1 960D948F 97849709
[492780.270283] ath10k: [0040]: 97FF97FF 97FF97FF 97FF97FF 002097FF 00200020 00200020 343C0020 0800343C
[492780.270286] ath10k: [0048]: 24002600 24080800 20101C10 10101020 24382400 00002628 14302C18 08203E14
[492780.270288] ath10k: [0056]: 14003220 4F903E28 08002020 14100800 08202E28 08001020 00000820 10100800
[492780.270289] ath10k: [0064]: 14000020 00200000 24301800 14000820 00201430 14000800 00000020 00000800
[492780.270291] ath10k: [0072]: 1C101C10 1C101C10 18000800 14001410 1C200820 1C200020 00000000 00200000
[492780.270292] ath10k: [0080]: 08200000 00000020 00201410 10100000 10101020 00200020 08201430 14200820
[492780.270294] ath10k: [0088]: 10100000 00201830 00000820 08200000 24000800 00000000 18001430 00200020
[492780.270296] ath10k: [0096]: 08000000 1C200000 08201010 08201830 00000000 00000000 00000000 343C0000
[492780.270298] ath10k: [0104]: 343C343C 343C343C 343C343C 18101810 14302A08 22281420 08001020 18200820
[492780.270299] ath10k: [0112]: 10201430 10101420 18000000 14101020 14000020 14301C20 18301400 28001830
[492780.270301] ath10k: [0120]: 14002400 26381830 24381430 18002430 08200800 10201020 1C200800 1C101400
[492780.270302] ath10k: [0128]: 24380020 14301400 08001400 00200800 10201020 E6A6662F 11981405 444E4543
[492780.270304] ath10k: [0136]: 8C148BCE 8DDF8CDA 90119F90 831F90D0 84D7841B 84CC8512 76C68447 647B7480
[492780.270305] ath10k: [0144]: 6B3E4F26 7AC87BC3 7A537A4E 7C5A7B57 7F987E1B 65987F98 67EF6746 72E073EC
[492780.270307] ath10k: [0152]: 8FA780AB 8CE38E64 8A238BA2 88A98965 8832882E 88FC8837 8B0189FF 7AC37884
[492780.270309] ath10k: [0160]: 5B6F6A03 61E0606C 712A712A 712A712A 712A712A 1010712A 10101010 10101010
[492780.270311] ath10k: [0168]: 24001010 1C103634 00001410 37382438 26381410 14102838 08202E28 14002A00
[492780.270312] ath10k: [0176]: 08202438 14001430 14001830 24081830 18102A30 1C101810 14301020 2A301810
[492780.270314] ath10k: [0184]: 14200820 14300020 14202400 10100020 1C100020 08000800 18100800 1C101400
[492780.270316] ath10k: [0192]: 1C201420 00000820 18001800 18001800 00200000 14101020 00201410 08001830
[492780.270317] ath10k: [0200]: 08200000 00200000 10100800 08201010 14000020 24001C10 1C100820 10200000
[492780.270319] ath10k: [0208]: 08200000 00000820 00000800 00000020 08000020 00201410 00200000 1C101C10
[492780.270321] ath10k: [0216]: 10200800 10100000 08000020 14001C10 00201010 10201010 00000000 00000000
[492780.270323] ath10k: [0224]: 00000000 00200000 00200020 00200020 1C100020 24080000 18200000 18001C10
[492780.270324] ath10k: [0232]: 26001800 08001800 14302430 1C101430 2A181C10 24000820 00200000 18200000
[492780.270326] ath10k: [0240]: 10200000 00201020 10101020 10100000 08001C10 00201400 1C101820 00202E28
[492780.270328] ath10k: [0248]: 14100020 08000820 22102618 26082400 3B381830 24302A38 24302430 00009FFD
[492780.270330] ath10k: [0256]: BCEF0BED 444E4543 7F117F95 6A156C9B 79877B88 8B457808 8A4A8AC7 8A908A4E
[492780.270332] ath10k: [0264]: 8BD38B12 8D538C93 7EDA8E91 62557053 636C57C1 706371AC 8EEC8F6E 8DAB8EEC
[492780.270333] ath10k: [0272]: 8CAE8D2C 7AA679E1 7DAE7BEA 722F6FA0 76A674AD 84EC8471 85248528 91EE84A0
[492780.270335] ath10k: [0280]: 90EE916E 8FA3906F 8E2F8EA9 69B37C2B 58DB58DB 58DB58DB 58DB58DB 000058DB
[492780.270337] ath10k: [0288]: 00000000 00000000 24180000 1C203514 1C101C10 30142210 30140020 1C103F28
[492780.270339] ath10k: [0296]: 08202438 00002E20 18302210 00002010 14101420 3A042638 10202430 18301020
[492780.270341] ath10k: [0304]: 24083500 08200820 00200020 00001400 14002218 14102210 08200020 00002010
[492780.270342] ath10k: [0312]: 18300820 14000000 08000800 00000000 08200820 08200820 00201820 00002E10
[492780.270344] ath10k: [0320]: 14000820 08202210 08201410 08200820 08000020 14000800 00001010 14000000
[492780.270345] ath10k: [0328]: 00001020 08000800 08200020 00000820 14100000 00200000 00000000 00201400
[492780.270347] ath10k: [0336]: 10101010 14101010 08000000 00001020 14000000 00000020 10201400 10200820
[492780.270349] ath10k: [0344]: 18301830 18301830 18301830 00001830 00000000 00000000 08200000 00000000
[492780.270350] ath10k: [0352]: 08002028 1C103F10 1C202210 24382210 18202E28 24081020 00201010 00000800
[492780.270352] ath10k: [0360]: 14000800 00200020 1C101430 08201C10 14001410 00201800 10200800 00201C10
[492780.270353] ath10k: [0368]: 10101410 1C101810 00201010 1C102228 00202438 10202430 08001400 00200820
[492780.270355] ath10k: [0376]: 10101010 9E8BF1D4 1D144B9A 444E4543 8F6C8E67 742570E0 85F58434 94B88773
[492780.270357] ath10k: [0384]: 957494F6 952F9571 942E94AE 85A0936F 82EE8425 66F7746B 741D661D 839E8257
[492780.270358] ath10k: [0392]: 93129291 93D29312 944F9411 8716940D 844F85D2 709B745B 8C527C1D 895B8A95
[492780.270360] ath10k: [0400]: 9C129C50 9C969C55 9D979D17 9ED39E55 8F578EDE 6CD17F5C 6A306A30 6A306A30
[492780.270362] ath10k: [0408]: 6A306A30 08206A30 08200820 08200820 3B2C0820 22103928 20280020 3F201C20
[492780.270364] ath10k: [0416]: 3F240800 10203F1C 18102808 14003010 2010302C 1C102020 00202A10 36342808
[492780.270366] ath10k: [0424]: 14102808 24001410 1830393C 00001C10 00201C10 00200000 18301C20 00001C20
[492780.270368] ath10k: [0432]: 20100000 00000020 22100820 1C101C10 10100820 2E100000 10101010 10101010
[492780.270369] ath10k: [0440]: 00200800 08000800 08202028 00201C10 00000000 00000000 00000000 10200800
[492780.270371] ath10k: [0448]: 00200800 1C100020 00000820 10200800 00201830 08200020 08000000 08000020
[492780.270373] ath10k: [0456]: 00000800 10202438 14001400 00000000 18000800 08000000 08200820 00200020
[492780.270375] ath10k: [0464]: 18000000 08000020 08000800 08000800 08000800 14000800 14001400 14001400
[492780.270376] ath10k: [0472]: 00001400 10101400 1C202010 22282028 22102E20 2E283F2C 10102418 08202010
[492780.270378] ath10k: [0480]: 1C200020 18100800 18000800 2A000020 26281830 24302628 08002E10 18000000
[492780.270380] ath10k: [0488]: 08200800 00000800 14102010 10201020 00000820 10100820 08000800 00000800
[492780.270382] ath10k: [0496]: 08201010 18300000 00200020 C4302C06 BF7B7E35 444E4543 444E4544
[492780.270383] ath10k_pci 0000:04:00.0: ATH10K_END


I tried to write a decoder:

   STRT
       hdr: NTRD  seqno: 0  peer: 04:f0:21:0f:3b:c3
       hdr: TRDS  seqno: 1  peer: 04:f0:21:0f:3b:c3
       bw: 3 chain-mask: 0xf ts0: 0x1efff207  ts1: 0x1f0004b5
       ath10k_pci tones for chain: 0 bw: VHT_80 tone-count: 242
          0x8e108d91  0x8d548d57  0x8dd88e5a  0x8f5a8098  0x81d5765e  0x84088440  0x847683ed  0x82e490ae
          0x9fac9eaa  0x9d699c69  0x9bab9aed  0x9ab09a33  0x9a379a7a  0x9a7a9bfe  0x88be8a3e  0x8bbc79b3
          0x7aec7be6  0x8def8dad  0x8d2b8c2c  0x8b708af5  0x8abb8ac2  0x8b8a8cd3  0x8eda815f  0x91d19351
          0x948f960d  0x97099784  0x97ff97ff  0x97ff97ff  0x97ff97ff  0x97ff0020  0x00200020  0x00200020
          0x0020343c  0x343c0800  0x26002400  0x08002408  0x1c102010  0x10201010  0x24002438  0x26280000
          0x2c181430  0x3e140820  0x32201400  0x3e284f90  0x20200800  0x08001410  0x2e280820  0x10200800
          0x08200000  0x08001010  0x00201400  0x00000020  0x18002430  0x08201400  0x14300020  0x08001400
          0x00200000  0x08000000  0x1c101c10  0x1c101c10  0x08001800  0x14101400  0x08201c20  0x00201c20
          0x00000000  0x00000020  0x00000820  0x00200000  0x14100020  0x00001010  0x10201010  0x00200020
          0x14300820  0x08201420  0x00001010  0x18300020  0x08200000  0x00000820  0x08002400  0x00000000
          0x14301800  0x00200020  0x00000800  0x00001c20  0x10100820  0x18300820  0x00000000  0x00000000
          0x00000000  0x0000343c  0x343c343c  0x343c343c  0x343c343c  0x18101810  0x2a081430  0x14202228
          0x10200800  0x08201820  0x14301020  0x14201010  0x00001800  0x10201410  0x00201400  0x1c201430
          0x14001830  0x18302800  0x24001400  0x18302638  0x14302438  0x24301800  0x08000820  0x10201020
          0x08001c20  0x14001c10  0x00202438  0x14001430  0x14000800  0x08000020  0x10201020  0x662fe6a6
          0x14051198
       ath10k_pci tones for chain: 1 bw: VHT_80 tone-count: 242
          0x8bce8c14  0x8cda8ddf  0x9f909011  0x90d0831f  0x841b84d7  0x851284cc  0x844776c6  0x7480647b
          0x4f266b3e  0x7bc37ac8  0x7a4e7a53  0x7b577c5a  0x7e1b7f98  0x7f986598  0x674667ef  0x73ec72e0
          0x80ab8fa7  0x8e648ce3  0x8ba28a23  0x896588a9  0x882e8832  0x883788fc  0x89ff8b01  0x78847ac3
          0x6a035b6f  0x606c61e0  0x712a712a  0x712a712a  0x712a712a  0x712a1010  0x10101010  0x10101010
          0x10102400  0x36341c10  0x14100000  0x24383738  0x14102638  0x28381410  0x2e280820  0x2a001400
          0x24380820  0x14301400  0x18301400  0x18302408  0x2a301810  0x18101c10  0x10201430  0x18102a30
          0x08201420  0x00201430  0x24001420  0x00201010  0x00201c10  0x08000800  0x08001810  0x14001c10
          0x14201c20  0x08200000  0x18001800  0x18001800  0x00000020  0x10201410  0x14100020  0x18300800
          0x00000820  0x00000020  0x08001010  0x10100820  0x00201400  0x1c102400  0x08201c10  0x00001020
          0x00000820  0x08200000  0x08000000  0x00200000  0x00200800  0x14100020  0x00000020  0x1c101c10
          0x08001020  0x00001010  0x00200800  0x1c101400  0x10100020  0x10101020  0x00000000  0x00000000
          0x00000000  0x00000020  0x00200020  0x00200020  0x00201c10  0x00002408  0x00001820  0x1c101800
          0x18002600  0x18000800  0x24301430  0x14301c10  0x1c102a18  0x08202400  0x00000020  0x00001820
          0x00001020  0x10200020  0x10201010  0x00001010  0x1c100800  0x14000020  0x18201c10  0x2e280020
          0x00201410  0x08200800  0x26182210  0x24002608  0x18303b38  0x2a382430  0x24302430  0x9ffd0000
          0x0bedbcef
       ath10k_pci tones for chain: 2 bw: VHT_80 tone-count: 242
          0x7f957f11  0x6c9b6a15  0x7b887987  0x78088b45  0x8ac78a4a  0x8a4e8a90  0x8b128bd3  0x8c938d53
          0x8e917eda  0x70536255  0x57c1636c  0x71ac7063  0x8f6e8eec  0x8eec8dab  0x8d2c8cae  0x79e17aa6
          0x7bea7dae  0x6fa0722f  0x74ad76a6  0x847184ec  0x85288524  0x84a091ee  0x916e90ee  0x906f8fa3
          0x8ea98e2f  0x7c2b69b3  0x58db58db  0x58db58db  0x58db58db  0x58db0000  0x00000000  0x00000000
          0x00002418  0x35141c20  0x1c101c10  0x22103014  0x00203014  0x3f281c10  0x24380820  0x2e200000
          0x22101830  0x20100000  0x14201410  0x26383a04  0x24301020  0x10201830  0x35002408  0x08200820
          0x00200020  0x14000000  0x22181400  0x22101410  0x00200820  0x20100000  0x08201830  0x00001400
          0x08000800  0x00000000  0x08200820  0x08200820  0x18200020  0x2e100000  0x08201400  0x22100820
          0x14100820  0x08200820  0x00200800  0x08001400  0x10100000  0x00001400  0x10200000  0x08000800
          0x00200820  0x08200000  0x00001410  0x00000020  0x00000000  0x14000020  0x10101010  0x10101410
          0x00000800  0x10200000  0x00001400  0x00200000  0x14001020  0x08201020  0x18301830  0x18301830
          0x18301830  0x18300000  0x00000000  0x00000000  0x00000820  0x00000000  0x20280800  0x3f101c10
          0x22101c20  0x22102438  0x2e281820  0x10202408  0x10100020  0x08000000  0x08001400  0x00200020
          0x14301c10  0x1c100820  0x14101400  0x18000020  0x08001020  0x1c100020  0x14101010  0x18101c10
          0x10100020  0x22281c10  0x24380020  0x24301020  0x14000800  0x08200020  0x10101010  0xf1d49e8b
          0x4b9a1d14
       ath10k_pci tones for chain: 3 bw: VHT_80 tone-count: 242
          0x8e678f6c  0x70e07425  0x843485f5  0x877394b8  0x94f69574  0x9571952f  0x94ae942e  0x936f85a0
          0x842582ee  0x746b66f7  0x661d741d  0x8257839e  0x92919312  0x931293d2  0x9411944f  0x940d8716
          0x85d2844f  0x745b709b  0x7c1d8c52  0x8a95895b  0x9c509c12  0x9c559c96  0x9d179d97  0x9e559ed3
          0x8ede8f57  0x7f5c6cd1  0x6a306a30  0x6a306a30  0x6a306a30  0x6a300820  0x08200820  0x08200820
          0x08203b2c  0x39282210  0x00202028  0x1c203f20  0x08003f24  0x3f1c1020  0x28081810  0x30101400
          0x302c2010  0x20201c10  0x2a100020  0x28083634  0x28081410  0x14102400  0x393c1830  0x1c100000
          0x1c100020  0x00000020  0x1c201830  0x1c200000  0x00002010  0x00200000  0x08202210  0x1c101c10
          0x08201010  0x00002e10  0x10101010  0x10101010  0x08000020  0x08000800  0x20280820  0x1c100020
          0x00000000  0x00000000  0x00000000  0x08001020  0x08000020  0x00201c10  0x08200000  0x08001020
          0x18300020  0x00200820  0x00000800  0x00200800  0x08000000  0x24381020  0x14001400  0x00000000
          0x08001800  0x00000800  0x08200820  0x00200020  0x00001800  0x00200800  0x08000800  0x08000800
          0x08000800  0x08001400  0x14001400  0x14001400  0x14000000  0x14001010  0x20101c20  0x20282228
          0x2e202210  0x3f2c2e28  0x24181010  0x20100820  0x00201c20  0x08001810  0x08001800  0x00202a00
          0x18302628  0x26282430  0x2e100800  0x00001800  0x08000820  0x08000000  0x20101410  0x10201020
          0x08200000  0x08201010  0x08000800  0x08000000  0x10100820  0x00001830  0x00200020  0x2c06c430
          0x7e35bf7b
       end: DEND

Thanks,
Ben

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com




More information about the ath10k mailing list