QCA6164 in Fedora
Hello people,
I recently bought a Lenovo U31 laptop for work, and was surprised wireless didn't work out of the box.
Fortunately thanks to you the card (supposedly) works in linux, but I have yet to get mine to work.
I've patched the Fedora 4.1.6 kernel
https://bugzilla.redhat.com/attachment.cgi?id=1069561&action=diff
to add support for the card, which I adapted from
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940
However, I'm having trouble loading the firmware. I took the firmware files from
https://github.com/atondwal/ath10k-firmware/commit/88fca85ef59d708b9874e5b7885416b58aef9ee7
and installed them into /lib/firmware/ath10k/QCA6174/hw2.1/, renaming firmare-5.bin to firmware-4.bin.
I also have added the necessary kernel option
$ cat /etc/modprobe.d/ath10k.conf options ath10k_core skip_otp=y
After these changes, the kernel does detect the card, but it fails to load the firmware.
[10967.516277] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2 [10968.660851] ath10k_pci 0000:03:00.0: firmware crashed! (uuid 47cbe9a4-5fcd-41ae-b8ff-91e93702d083) [10968.660862] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000, 0x003405ff) fw atheros-12.0.0.102-fw api 4 htt 0.0 wmi 4 cal otp max_sta 32 [10968.660865] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0 dfs 0 testmode 0 [10968.662882] ath10k_pci 0000:03:00.0: firmware register dump: [10968.662884] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x000015B3 0x000A012D 0x00955B31 [10968.662886] ath10k_pci 0000:03:00.0: [04]: 0x000A012D 0x00060330 0x00000016 0x8C605006 [10968.662888] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00400000 0x00400600 0x00000001 [10968.662890] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000 0x00931C61 0x00931C7D [10968.662892] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x0097F8C6 0x00000000 0x00000000 [10968.662894] ath10k_pci 0000:03:00.0: [20]: 0x400A012D 0x0040E2B0 0x00955A00 0x00404590 [10968.662896] ath10k_pci 0000:03:00.0: [24]: 0x809287D9 0x0040E310 0x7A508BF8 0xC00A012D [10968.662898] ath10k_pci 0000:03:00.0: [28]: 0x809288D7 0x0040E340 0x00000000 0xFFF08040 [10968.662899] ath10k_pci 0000:03:00.0: [32]: 0x809290FE 0x0040E360 0x00400000 0x00400600 [10968.662901] ath10k_pci 0000:03:00.0: [36]: 0x80929205 0x0040E380 0x00000000 0x00400600 [10968.662903] ath10k_pci 0000:03:00.0: [40]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0 [10968.662905] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x0040E3D0 0x009BB001 0x00040020 [10968.662907] ath10k_pci 0000:03:00.0: [48]: 0x00401BF0 0x00000001 0x00404B9C 0x00400000 [10968.662909] ath10k_pci 0000:03:00.0: [52]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0 [10968.662910] ath10k_pci 0000:03:00.0: [56]: 0x51196000 0xEAB3E3DF 0x36E760CE 0xE34A47DC [10969.660666] ath10k_pci 0000:03:00.0: failed to receive control response completion, polling..
The card in question is
03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)
What might be the problem?
Signature · 8 lines
Susi Lehtola Fedora Project Contributor [email protected] _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 14 lines · Susi Lehtola
Hello people,
I recently bought a Lenovo U31 laptop for work, and was surprised wireless didn't work out of the box.
Fortunately thanks to you the card (supposedly) works in linux, but I have yet to get mine to work.
I've patched the Fedora 4.1.6 kernel
https://bugzilla.redhat.com/attachment.cgi?id=1069561&action=diff
to add support for the card, which I adapted from
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940
Quoted 6 lines
However, I'm having trouble loading the firmware. I took the firmware files from
https://github.com/atondwal/ath10k-firmware/commit/88fca85ef59d708b9874e5b7885416b58aef9ee7
and installed them into/lib/firmware/ath10k/QCA6174/hw2.1/, renaming firmare-5.bin to firmware-4.bin.
FYI This is asking for problems. You can't just go around renaming firmware files like that. There's a reason why there are different numbers in the filename.
Quoted 49 lines
I also have added the necessary kernel option
$ cat /etc/modprobe.d/ath10k.conf options ath10k_core skip_otp=yAfter these changes, the kernel does detect the card, but it fails to load the firmware.
[10967.516277] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2 [10968.660851] ath10k_pci 0000:03:00.0: firmware crashed! (uuid 47cbe9a4-5fcd-41ae-b8ff-91e93702d083) [10968.660862] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000, 0x003405ff) fw atheros-12.0.0.102-fw api 4 htt 0.0 wmi 4 cal otp max_sta 32 [10968.660865] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0 dfs 0 testmode 0 [10968.662882] ath10k_pci 0000:03:00.0: firmware register dump: [10968.662884] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x000015B3 0x000A012D 0x00955B31 [10968.662886] ath10k_pci 0000:03:00.0: [04]: 0x000A012D 0x00060330 0x00000016 0x8C605006 [10968.662888] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00400000 0x00400600 0x00000001 [10968.662890] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000 0x00931C61 0x00931C7D [10968.662892] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x0097F8C6 0x00000000 0x00000000 [10968.662894] ath10k_pci 0000:03:00.0: [20]: 0x400A012D 0x0040E2B0 0x00955A00 0x00404590 [10968.662896] ath10k_pci 0000:03:00.0: [24]: 0x809287D9 0x0040E310 0x7A508BF8 0xC00A012D [10968.662898] ath10k_pci 0000:03:00.0: [28]: 0x809288D7 0x0040E340 0x00000000 0xFFF08040 [10968.662899] ath10k_pci 0000:03:00.0: [32]: 0x809290FE 0x0040E360 0x00400000 0x00400600 [10968.662901] ath10k_pci 0000:03:00.0: [36]: 0x80929205 0x0040E380 0x00000000 0x00400600 [10968.662903] ath10k_pci 0000:03:00.0: [40]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0 [10968.662905] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x0040E3D0 0x009BB001 0x00040020 [10968.662907] ath10k_pci 0000:03:00.0: [48]: 0x00401BF0 0x00000001 0x00404B9C 0x00400000 [10968.662909] ath10k_pci 0000:03:00.0: [52]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0 [10968.662910] ath10k_pci 0000:03:00.0: [56]: 0x51196000 0xEAB3E3DF 0x36E760CE 0xE34A47DC [10969.660666] ath10k_pci 0000:03:00.0: failed to receive control response
Quoted 7 lines
completion, polling..
The card in question is
03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev
20)What might be the problem?
You're surely using wrong board.bin. The qca6164 will not work with the board.bin for qca6174.
The board.bin problem is currently being addressed. In the meantime you need to get an adequate eeprom_* file from windows driver and put it as hw2.1/board.bin. You'll need to look into .inf file from the windows driver and output of lspci -vvnn to understand which eeprom file suits your device.
Michał
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 14 lines · Susi Lehtola
Hello people,
I recently bought a Lenovo U31 laptop for work, and was surprised wireless didn't work out of the box.
Fortunately thanks to you the card (supposedly) works in linux, but I have yet to get mine to work.
I've patched the Fedora 4.1.6 kernel
https://bugzilla.redhat.com/attachment.cgi?id=1069561&action=diff
to add support for the card, which I adapted from
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940
Quoted 6 lines
However, I'm having trouble loading the firmware. I took the firmware files from
https://github.com/atondwal/ath10k-firmware/commit/88fca85ef59d708b9874e5b7885416b58aef9ee7
and installed them into
/lib/firmware/ath10k/QCA6174/hw2.1/
I can confirm the card works with the linux-next tree, using a snapshot I took today.
However, it would be nice to get this working in the 4.1.6 kernel which supposedly supports the 6174 chip.
The problem in the Fedora kernel is that the direct firmware load fails, althoug the same firmware works with the linux-next tree.
What would need to be backported to the 4.1 tree in order to get the card working?
Signature · 8 lines
Susi Lehtola Fedora Project Contributor [email protected] _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 2 lines · Susi Lehtola
I can confirm the card works with the linux-next tree, using a snapshot I took today.
However, the card only seems to make a 1Mbps connection in the same situation where my old laptop made a 55Mbps one...
Signature · 8 lines
Susi Lehtola Fedora Project Contributor [email protected] _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 28 lines · Susi Lehtola
Quoted 15 lines · Susi Lehtola
Hello people,
I recently bought a Lenovo U31 laptop for work, and was surprised wireless didn't work out of the box.
Fortunately thanks to you the card (supposedly) works in linux, but I have yet to get mine to work.
I've patched the Fedora 4.1.6 kernel
https://bugzilla.redhat.com/attachment.cgi?id=1069561&action=diff
to add support for the card, which I adapted from
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940Quoted 7 lines
However, I'm having trouble loading the firmware. I took the firmware files from
https://github.com/atondwal/ath10k-firmware/commit/88fca85ef59d708b9874e5b7885416b58aef9ee7
and installed them into
/lib/firmware/ath10k/QCA6174/hw2.1/I can confirm the card works with the linux-next tree, using a snapshot I took today.
Quoted 8 lines
However, it would be nice to get this working in the 4.1.6 kernel which supposedly supports the 6174 chip.
The problem in the Fedora kernel is that the direct firmware load fails, althoug the same firmware works with the linux-next tree.
What would need to be backported to the 4.1 tree in order to get the card working?
You need to cherry-pick at least this patch:
https://github.com/kvalo/ath/commit/36582e5d4daeccf68a8a3cef9bc37b60fb7d45b9
The problem is qca6164 requires a different board.bin and will not work with one from qca6174. The driver uses the same firmware filepath for both. There's a per-pci-vid/pid board lookup but it's broken I would discourage using it until we come up with a better solution.
Michał
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 8 lines · Susi Lehtola
Quoted 3 lines · Susi Lehtola
I can confirm the card works with the linux-next tree, using a snapshot I took today.
However, the card only seems to make a 1Mbps connection in the same situation where my old laptop made a 55Mbps one...
How did you measure this? iw tool reports invalid tx bitrate for ath10k due to firmware limitation. Did you test the actual performance (iperf/wget)? Is it downlink or uplink? Are both as bad?
Michał
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 8 lines · Michal Kazior
Quoted 6 lines · Susi Lehtola
Quoted 3 lines · Susi Lehtola
I can confirm the card works with the linux-next tree, using a snapshot I took today.
Quoted 6 lines
Quoted 2 lines
However, the card only seems to make a 1Mbps connection in the same situation where my old laptop made a 55Mbps one...
How did you measure this?
iwtool reports invalid tx bitrate for ath10k due to firmware limitation. Did you test the actual performance (iperf/wget)? Is it downlink or uplink? Are both as bad?
This was the link speed reported by NetworkManager. But yes, actual performance is much better, seeing 2.2 MB/sec is not uncommon [the internet connection is pretty slow].
Signature · 8 lines
Susi Lehtola Fedora Project Contributor [email protected] _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 8 lines · Michal Kazior
Quoted 5 lines · Susi Lehtola
The problem in the Fedora kernel is that the direct firmware load fails, althoug the same firmware works with the linux-next tree.
What would need to be backported to the 4.1 tree in order to get the card working?
Quoted 7 lines
You need to cherry-pick at least this patch:
https://github.com/kvalo/ath/commit/36582e5d4daeccf68a8a3cef9bc37b60fb7d45b9The problem is qca6164 requires a different board.bin and will not work with one from qca6174. The driver uses the same firmware filepath for both. There's a per-pci-vid/pid board lookup but it's broken I would discourage using it until we come up with a better solution.
I tried that but it didn't work; the card was detected but the firmware failed to load. The patch I formed is at
https://bugzilla.redhat.com/attachment.cgi?id=1069561
The exact same firmware and board.bin works with the linux-next tree.
However, now that the development version of Fedora comes with kernel 4.3, I can just recompile the package for my laptop. This problem should solve itself with time..
Signature · 8 lines
Susi Lehtola Fedora Project Contributor [email protected] _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k