2020-02-26 21:17:35

by Cale Collins

[permalink] [raw]
Subject: Re: ath10k_pci rawmode = 1 requires support from firmware

Hello Justin and Kalle,

Justin thank you very much for the reply, sorry it took me so long to
get back to you but I wanted to do more testing based on your
recommendations before I wrote.

I tried numerous versions of the firmware-6.bin file from the
linux-firmware git, and the repo you linked. I have been hitting the
same issue with nearly every version of firmware I try. I included
the output from WLAN.RM.4.4.1-00140-QCARMSWPZ-1, but the exact same
applies to WLAN.RMH.4.4.1-00042. Under normal circumstances I would
try to bisect this, but I can't because I don't have a "good"
(working) version of the firmware.

I'm doing this on behalf of one of our clients Rick Winscot, I added
him to this thread so he can offer his insight.

Here's the output from my testing with WLAN.RM.4.4.1-00140-QCARMSWPZ-1:

root@bionic-newport:~# ls /sys/class/net/
can0 eth0 eth1 lo
root@bionic-newport:~# dmesg |grep ath10k
[ 0.000000] Kernel command line: cma=64M coherent_pool=16M
net.ifnames=0 ath10k_core.rawmode=1 root=/dev/mmcblk0p2 rw rootwait
console=ttyAMA0,115200n8 earlycon=pl011,0x87e028000000
[ 12.356854] ath10k_pci 0001:58:00.0: pci irq msi oper_irq_mode 2
irq_mode 0 reset_mode 0
[ 12.762070] ath10k_pci 0001:58:00.0: Direct firmware load for
ath10k/pre-cal-pci-0001:58:00.0.bin failed with error -2
[ 12.762132] ath10k_pci 0001:58:00.0: Direct firmware load for
ath10k/cal-pci-0001:58:00.0.bin failed with error -2
[ 12.779272] ath10k_pci 0001:58:00.0: qca6174 hw3.2 target
0x05030000 chip_id 0x00340aff sub 168c:3363
[ 12.779280] ath10k_pci 0001:58:00.0: kconfig debug 0 debugfs 1
tracing 0 dfs 0 testmode 0
[ 12.780635] ath10k_pci 0001:58:00.0: firmware ver
WLAN.RM.4.4.1-00140-QCARMSWPZ-1 api 6 features wowlan,ignore-otp,mfp
crc32 29eb8ca1
[ 12.858884] ath10k_pci 0001:58:00.0: board_file api 2 bmi_id N/A
crc32 4ac0889b
[ 12.858894] ath10k_pci 0001:58:00.0: rawmode = 1 requires support
from firmware
[ 12.866282] ath10k_pci 0001:58:00.0: fatal problem with firmware
features: -22
[ 12.873670] ath10k_pci 0001:58:00.0: could not probe fw (-22)

root@bionic-newport:~# ls /sys/class/net/
can0 eth0 eth1 lo wlan0
root@bionic-newport:~# dmesg |grep ath10k
[ 11.981606] ath10k_pci 0001:58:00.0: pci irq msi oper_irq_mode 2
irq_mode 0 reset_mode 0
[ 12.310158] ath10k_pci 0001:58:00.0: Direct firmware load for
ath10k/pre-cal-pci-0001:58:00.0.bin failed with error -2
[ 12.310206] ath10k_pci 0001:58:00.0: Direct firmware load for
ath10k/cal-pci-0001:58:00.0.bin failed with error -2
[ 12.349306] ath10k_pci 0001:58:00.0: qca6174 hw3.2 target
0x05030000 chip_id 0x00340aff sub 168c:3363
[ 12.349314] ath10k_pci 0001:58:00.0: kconfig debug 0 debugfs 1
tracing 0 dfs 0 testmode 0
[ 12.350682] ath10k_pci 0001:58:00.0: firmware ver
WLAN.RM.4.4.1-00140-QCARMSWPZ-1 api 6 features wowlan,ignore-otp,mfp
crc32 29eb8ca1
[ 12.432281] ath10k_pci 0001:58:00.0: board_file api 2 bmi_id N/A
crc32 4ac0889b
[ 12.978328] ath10k_pci 0001:58:00.0: Unknown eventid: 3
[ 12.994313] ath10k_pci 0001:58:00.0: Unknown eventid: 118809
[ 12.997236] ath10k_pci 0001:58:00.0: Unknown eventid: 90118
[ 12.997886] ath10k_pci 0001:58:00.0: htt-ver 3.60 wmi-op 4 htt-op 3
cal otp max-sta 32 raw 0 hwcrypto 1


root@bionic-newport:~# iw phy phy0 interface add mesh0 type mp
root@bionic-newport:~# iw mesh0 info
Interface mesh0
ifindex 6
wdev 0x2
addr 94:92:d2:00:04:04
type mesh point
wiphy 0
txpower 0.00 dBm
root@bionic-newport:~# iw dev mesh0 set freq 5745 80 5775
root@bionic-newport:~# ifconfig mesh0 192.168.1.10
SIOCSIFFLAGS: Invalid argument
root@bionic-newport:~# dmesg |grep ath10k
[ 11.981606] ath10k_pci 0001:58:00.0: pci irq msi oper_irq_mode 2
irq_mode 0 reset_mode 0
[ 12.310158] ath10k_pci 0001:58:00.0: Direct firmware load for
ath10k/pre-cal-pci-0001:58:00.0.bin failed with error -2
[ 12.310206] ath10k_pci 0001:58:00.0: Direct firmware load for
ath10k/cal-pci-0001:58:00.0.bin failed with error -2
[ 12.349306] ath10k_pci 0001:58:00.0: qca6174 hw3.2 target
0x05030000 chip_id 0x00340aff sub 168c:3363
[ 12.349314] ath10k_pci 0001:58:00.0: kconfig debug 0 debugfs 1
tracing 0 dfs 0 testmode 0
[ 12.350682] ath10k_pci 0001:58:00.0: firmware ver
WLAN.RM.4.4.1-00140-QCARMSWPZ-1 api 6 features wowlan,ignore-otp,mfp
crc32 29eb8ca1
[ 12.432281] ath10k_pci 0001:58:00.0: board_file api 2 bmi_id N/A
crc32 4ac0889b
[ 12.978328] ath10k_pci 0001:58:00.0: Unknown eventid: 3
[ 12.994313] ath10k_pci 0001:58:00.0: Unknown eventid: 118809
[ 12.997236] ath10k_pci 0001:58:00.0: Unknown eventid: 90118
[ 12.997886] ath10k_pci 0001:58:00.0: htt-ver 3.60 wmi-op 4 htt-op 3
cal otp max-sta 32 raw 0 hwcrypto 1
[ 256.819171] ath10k_pci 0001:58:00.0: Unknown eventid: 3
[ 256.834413] ath10k_pci 0001:58:00.0: Unknown eventid: 118809
[ 256.837352] ath10k_pci 0001:58:00.0: Unknown eventid: 90118
[ 256.884876] ath10k_pci 0001:58:00.0: must load driver with
rawmode=1 to add mesh interfaces

Mahalo,

Cale Collins