Discussion:
qca6164 support
vvanpo
2015-08-03 18:45:29 UTC
Permalink
Hi,

I just got a Lenovo Yoga 3 11, only to find the wireless doesn't work.

The PCI id is 168c:0041:17aa:3545
I downloaded the driver (version 12.0.0.102, date 06/24/2015) from the
Lenovo website and extracted it in Wine (as I saw someone else do from
another thread), which resulted in the following bin files:
eeprom_ar6320_2p1_NFA324i_5.bin
eeprom_ar6320_2p1_NFA344i.bin
eeprom_ar6320_2p1_NFA344i_highTX.bin
eeprom_ar6320_2p1_NFA345i.bin
eeprom_ar6320_2p1_NFA345i_highTX.bin
eeprom_ar6320_2p1_NFA354xp.bin
eeprom_ar6320_2p1_NFA355i.bin
qca61x4_1_1_2.bin

In the netathr10x.inf file, my device and subsystem ids correspond to
section 'ATHR_DEV_OS63_988x_LE_NFA345_IPG.ndi', although I'm not sure
how that relates to which bin file and what a 'section' is exactly. I
chose to use the NFA345i.bin file, which I symlinked
/lib/firmware/ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin
to.

I used dissect.py/assemble.py to create firmware-5.bin:
./dissect.py < qca61x4_1_1_2.bin
./assemble.py atheros-12.0.0.102-fw 0 fw-2.bin fw-1.bin 4 > firmware-5.bin

I enabled skip_otp=y.
I compiled master at github.com/kvalo/ath, but with the modification
#define QCA6174_2_1_DEVICE_ID (0x0041)
so it would recognize my card.

On loading the ath10k_pci module I get a 'firmware crashed!' message,
and a firmware dump. Sometimes the dump itself must print garbage to
dmesg and turns my terminal into mojibake, which I think has to do
with the features string as here:
http://lists.infradead.org/pipermail/ath10k/2015-July/005703.html

As you can probably tell I'm haphazardly shooting in the dark without
much knowledge of whats actually going on. Is there a way I can
meaningfully contribute, or am I at the mercy of those with access to
documentation on how the qualcomm firmware works?
Some questions:
- when ath10k_print_driver_info gets called, my ar->chip_id is
printed as 0x003405ff, which should correspond to
QCA6174_HW_2_2_CHIP_ID_REV when masked (like in
ath10k_pci_get_num_banks). So why is it still referred to as hw2.1
(instead of hw2.2), and what do these revisions signify, anyway?
- how can I be sure I'm using the correct bin files, and is there
any documentation on the format of these files?
- what would need to be changed to add support for qca6164 in ath10k?

Thanks,
Victor
Enrico Tagliavini
2015-08-03 21:44:02 UTC
Permalink
Hi Victor,

I think you should have called your firmwware firmware-4.bin and not
-5.bin. In fact in the top of the file I have it says ">
firmware-4.bin". File names matters as far as I understood. Feel free
to check archives of this list I saw somebody talking about this
argument not long ago.

Good luck.
Enrico
Post by vvanpo
Hi,
I just got a Lenovo Yoga 3 11, only to find the wireless doesn't work.
The PCI id is 168c:0041:17aa:3545
I downloaded the driver (version 12.0.0.102, date 06/24/2015) from the
Lenovo website and extracted it in Wine (as I saw someone else do from
eeprom_ar6320_2p1_NFA324i_5.bin
eeprom_ar6320_2p1_NFA344i.bin
eeprom_ar6320_2p1_NFA344i_highTX.bin
eeprom_ar6320_2p1_NFA345i.bin
eeprom_ar6320_2p1_NFA345i_highTX.bin
eeprom_ar6320_2p1_NFA354xp.bin
eeprom_ar6320_2p1_NFA355i.bin
qca61x4_1_1_2.bin
In the netathr10x.inf file, my device and subsystem ids correspond to
section 'ATHR_DEV_OS63_988x_LE_NFA345_IPG.ndi', although I'm not sure
how that relates to which bin file and what a 'section' is exactly. I
chose to use the NFA345i.bin file, which I symlinked
/lib/firmware/ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin
to.
./dissect.py < qca61x4_1_1_2.bin
./assemble.py atheros-12.0.0.102-fw 0 fw-2.bin fw-1.bin 4 > firmware-5.bin
I enabled skip_otp=y.
I compiled master at github.com/kvalo/ath, but with the modification
#define QCA6174_2_1_DEVICE_ID (0x0041)
so it would recognize my card.
On loading the ath10k_pci module I get a 'firmware crashed!' message,
and a firmware dump. Sometimes the dump itself must print garbage to
dmesg and turns my terminal into mojibake, which I think has to do
http://lists.infradead.org/pipermail/ath10k/2015-July/005703.html
As you can probably tell I'm haphazardly shooting in the dark without
much knowledge of whats actually going on. Is there a way I can
meaningfully contribute, or am I at the mercy of those with access to
documentation on how the qualcomm firmware works?
- when ath10k_print_driver_info gets called, my ar->chip_id is
printed as 0x003405ff, which should correspond to
QCA6174_HW_2_2_CHIP_ID_REV when masked (like in
ath10k_pci_get_num_banks). So why is it still referred to as hw2.1
(instead of hw2.2), and what do these revisions signify, anyway?
- how can I be sure I'm using the correct bin files, and is there
any documentation on the format of these files?
- what would need to be changed to add support for qca6164 in ath10k?
Thanks,
Victor
_______________________________________________
ath10k mailing list
http://lists.infradead.org/mailman/listinfo/ath10k
Victor van Poppelen
2015-08-05 15:32:08 UTC
Permalink
Post by Enrico Tagliavini
I think you should have called your firmwware firmware-4.bin and not
-5.bin. In fact in the top of the file I have it says ">
firmware-4.bin". File names matters as far as I understood. Feel free
to check archives of this list I saw somebody talking about this
argument not long ago.
I admit I foolishly only changed the name to firmware-5.bin to prevent
the minute-long timeout (can we do something about that?), which is
probably the same reason why others were doing it. But in looking
through the code, I can't find anywhere where the value of ar->fw_api
actually affects driver behaviour. Could you point me to where this
value becomes important?

Victor
Alexandre Maloteaux
2015-08-05 17:10:11 UTC
Permalink
Hi Victor

Concerning the timeout issue; i faced it on Archlinux with kvalo kernel.
The issue was related to the kernel option
CONFIG_FW_LOADER_USER_HELPER_FALLBACK (Fallback user-helper invocation
for firmware loading). This option if activated will create a 1 minute
timeout on each firmware try as udev does not implemented this feature
anymore.

Best Regards
Post by Victor van Poppelen
Post by Enrico Tagliavini
I think you should have called your firmwware firmware-4.bin and not
-5.bin. In fact in the top of the file I have it says ">
firmware-4.bin". File names matters as far as I understood. Feel free
to check archives of this list I saw somebody talking about this
argument not long ago.
I admit I foolishly only changed the name to firmware-5.bin to prevent
the minute-long timeout (can we do something about that?), which is
probably the same reason why others were doing it. But in looking
through the code, I can't find anywhere where the value of ar->fw_api
actually affects driver behaviour. Could you point me to where this
value becomes important?
Victor
_______________________________________________
ath10k mailing list
http://lists.infradead.org/mailman/listinfo/ath10k
Michal Kazior
2015-08-04 05:18:03 UTC
Permalink
Post by vvanpo
Hi,
I just got a Lenovo Yoga 3 11, only to find the wireless doesn't work.
The PCI id is 168c:0041:17aa:3545
The qca6164 is not supported, yet. Arnd has been the first one to
report the problem. We tried a few things to get it running but gave
up for now. I don't have the card so it's difficult for me to do
trial-and-error testing.
Post by vvanpo
I downloaded the driver (version 12.0.0.102, date 06/24/2015) from the
Lenovo website and extracted it in Wine (as I saw someone else do from
eeprom_ar6320_2p1_NFA324i_5.bin
eeprom_ar6320_2p1_NFA344i.bin
eeprom_ar6320_2p1_NFA344i_highTX.bin
eeprom_ar6320_2p1_NFA345i.bin
eeprom_ar6320_2p1_NFA345i_highTX.bin
eeprom_ar6320_2p1_NFA354xp.bin
eeprom_ar6320_2p1_NFA355i.bin
qca61x4_1_1_2.bin
In the netathr10x.inf file, my device and subsystem ids correspond to
section 'ATHR_DEV_OS63_988x_LE_NFA345_IPG.ndi', although I'm not sure
how that relates to which bin file and what a 'section' is exactly. I
chose to use the NFA345i.bin file, which I symlinked
/lib/firmware/ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin
to.
./dissect.py < qca61x4_1_1_2.bin
./assemble.py atheros-12.0.0.102-fw 0 fw-2.bin fw-1.bin 4 > firmware-5.bin
Looks good.
Post by vvanpo
I enabled skip_otp=y.
I compiled master at github.com/kvalo/ath, but with the modification
#define QCA6174_2_1_DEVICE_ID (0x0041)
so it would recognize my card.
On loading the ath10k_pci module I get a 'firmware crashed!' message,
and a firmware dump. Sometimes the dump itself must print garbage to
dmesg and turns my terminal into mojibake, which I think has to do
http://lists.infradead.org/pipermail/ath10k/2015-July/005703.html
Whenever firmware crashes post the register dump, please. It is then
easier to cross-associate crashes from different reports.
Post by vvanpo
As you can probably tell I'm haphazardly shooting in the dark without
much knowledge of whats actually going on. Is there a way I can
meaningfully contribute, or am I at the mercy of those with access to
documentation on how the qualcomm firmware works?
You can either start disassembling the windows driver and/or
experimenting with ath10k driver values used for booting the device or
just wait..
Post by vvanpo
- when ath10k_print_driver_info gets called, my ar->chip_id is
printed as 0x003405ff, which should correspond to
QCA6174_HW_2_2_CHIP_ID_REV when masked (like in
ath10k_pci_get_num_banks). So why is it still referred to as hw2.1
(instead of hw2.2), and what do these revisions signify, anyway?
Within environment with limited information your decisions are
suboptimal. As a result we have "hw2.1" in the driver which refers to
hw2.2 as well.
Post by vvanpo
- how can I be sure I'm using the correct bin files, and is there
any documentation on the format of these files?
The format is defined in the driver (hw.h). There's no other
documentation I guess.
Post by vvanpo
- what would need to be changed to add support for qca6164 in ath10k?
If I knew the it would have been supported already ;-)


Michał
vvanpo
2015-08-04 20:45:28 UTC
Permalink
Thanks Michał, that clears things up quite a bit. Here is the dmesg
output (including firmware dump), using ath/master (HEAD at
5c4119ff7e9465309c8906f7dbec5591517f0686):

[ 8.912418] ath10k_pci 0000:02:00.0: pci probe
[ 8.913026] ath10k_pci 0000:02:00.0: boot pci_mem 0xffffc90002c00000
[ 8.914841] ath10k_pci 0000:02:00.0: pci irq msi-x interrupts 8
irq_mode 0 reset_mode 0
[ 8.915751] ath10k_pci 0000:02:00.0: boot qca6174 chip reset
[ 8.915755] ath10k_pci 0000:02:00.0: boot cold reset
[ 8.957546] ath10k_pci 0000:02:00.0: boot cold reset complete
[ 8.957555] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 8.957637] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 8.957645] ath10k_pci 0000:02:00.0: boot target initialised
[ 8.957649] ath10k_pci 0000:02:00.0: boot warm reset
[ 8.979816] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008cdb3000
[ 8.979976] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88008645a000
[ 8.980082] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff880086589000
[ 8.980287] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008dbdc000
[ 8.980521] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff8800910a0000
[ 8.980763] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff880086402000
[ 8.980878] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88008dbc1000
[ 8.980884] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 8.981031] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 8.991183] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 8.991190] ath10k_pci 0000:02:00.0: boot target initialised
[ 9.001829] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008cdb3000
[ 9.001988] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88008645a000
[ 9.002095] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff880086589000
[ 9.002300] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008dbdc000
[ 9.002533] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff8800910a0000
[ 9.002778] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff880086402000
[ 9.002893] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88008dbc1000
[ 9.002899] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 9.003046] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 9.013200] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 9.013206] ath10k_pci 0000:02:00.0: boot target initialised
[ 9.013207] ath10k_pci 0000:02:00.0: boot warm reset complete
[ 9.013208] ath10k_pci 0000:02:00.0: boot qca6174 chip reset complete (cold)
[ 9.013337] ath10k_pci 0000:02:00.0: boot hif power up
[ 9.013638] ath10k_pci 0000:02:00.0: boot qca6174 chip reset
[ 9.013640] ath10k_pci 0000:02:00.0: boot cold reset
[ 9.055603] ath10k_pci 0000:02:00.0: boot cold reset complete
[ 9.055612] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 9.055619] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 9.055630] ath10k_pci 0000:02:00.0: boot target initialised
[ 9.055634] ath10k_pci 0000:02:00.0: boot warm reset
[ 9.077639] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008cdb3000
[ 9.077661] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88008645a000
[ 9.077678] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff880086589000
[ 9.077697] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008dbdc000
[ 9.077720] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff8800910a0000
[ 9.077739] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff880086402000
[ 9.077754] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88008dbc1000
[ 9.077758] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 9.077764] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 9.087775] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 9.087782] ath10k_pci 0000:02:00.0: boot target initialised
[ 9.098652] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008cdb3000
[ 9.098674] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88008645a000
[ 9.098691] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff880086589000
[ 9.098710] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008dbdc000
[ 9.098734] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff8800910a0000
[ 9.098752] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff880086402000
[ 9.098768] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88008dbc1000
[ 9.098772] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 9.098777] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 9.108787] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 9.108793] ath10k_pci 0000:02:00.0: boot target initialised
[ 9.108795] ath10k_pci 0000:02:00.0: boot warm reset complete
[ 9.108796] ath10k_pci 0000:02:00.0: boot qca6174 chip reset complete (cold)
[ 9.108809] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008cdb3000
[ 9.108821] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88008645a000
[ 9.108832] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff880086589000
[ 9.108845] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008dbdc000
[ 9.108860] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff8800910a0000
[ 9.108873] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff880086402000
[ 9.108884] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88008dbc1000
[ 9.119969] ath10k_pci 0000:02:00.0: bmi get target info
[ 9.120217] ath10k_pci 0000:02:00.0: Hardware name qca6174 hw2.1
version 0x5010000
[ 9.120383] ath10k_pci 0000:02:00.0: Direct firmware load for
ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 9.120384] ath10k_pci 0000:02:00.0: Falling back to user helper
[ 69.163359] ath10k_pci 0000:02:00.0: found specific board file for
168c:0041:17aa:3545
[ 69.163368] ath10k_pci 0000:02:00.0: trying fw api 5
[ 69.165671] ath10k_pci 0000:02:00.0: found fw version atheros-12.0.0.102-fw
[ 69.165680] ath10k_pci 0000:02:00.0: found firmware features ie (4 B)
[ 69.165684] ath10k_pci 0000:02:00.0: features
[ 69.165690] ath10k_pci 0000:02:00.0: 00000000: 00 00 00 00 00 00 00
00 ........
[ 69.165694] ath10k_pci 0000:02:00.0: found fw ie wmi op version 4
[ 69.165697] ath10k_pci 0000:02:00.0: found fw image ie (466811 B)
[ 69.165701] ath10k_pci 0000:02:00.0: found otp image ie (29533 B)
[ 69.165705] ath10k_pci 0000:02:00.0: using fw api 5
[ 69.165709] ath10k_pci 0000:02:00.0: bmi start
[ 69.165714] ath10k_pci 0000:02:00.0: bmi write address 0x400800 length 4
[ 69.165737] ath10k_pci 0000:02:00.0: bmi read address 0x400810 length 4
[ 69.165819] ath10k_pci 0000:02:00.0: bmi write address 0x400810 length 4
[ 69.165831] ath10k_pci 0000:02:00.0: bmi write address 0x400844 length 4
[ 69.165877] ath10k_pci 0000:02:00.0: bmi write address 0x400904 length 4
[ 69.165920] ath10k_pci 0000:02:00.0: boot did not find a
calibration file, try DT next: -11
[ 69.165924] ath10k_pci 0000:02:00.0: boot did not find DT entry,
try OTP next: -2
[ 69.165928] ath10k_pci 0000:02:00.0: bmi read address 0x4008ac length 4
[ 69.166002] ath10k_pci 0000:02:00.0: boot push board extended data addr 0x0
[ 69.166006] ath10k_pci 0000:02:00.0: bmi read address 0x400854 length 4
[ 69.166064] ath10k_pci 0000:02:00.0: bmi write address 0x401d40 length 8124
[ 69.181900] ath10k_pci 0000:02:00.0: bmi write address 0x400858 length 4
[ 69.182062] ath10k_pci 0000:02:00.0: boot upload otp to 0x1234 len 29533
[ 69.182066] ath10k_pci 0000:02:00.0: bmi fast download address
0x1234 buffer 0xffffc90002f12fd0 length 29533
[ 69.182069] ath10k_pci 0000:02:00.0: bmi lz stream start address 0x1234
[ 69.182117] ath10k_pci 0000:02:00.0: bmi lz data buffer
0xffffc90002f12fd0 length 29532
[ 69.242913] ath10k_pci 0000:02:00.0: bmi lz data buffer
0xffff88015943bd2c length 4
[ 69.242992] ath10k_pci 0000:02:00.0: bmi lz stream start address 0x0
[ 69.243038] ath10k_pci 0000:02:00.0: bmi execute address 0x1234 param 0x0
[ 69.244628] ath10k_pci 0000:02:00.0: bmi execute result 0x3
[ 69.244632] ath10k_pci 0000:02:00.0: boot otp execute result 3
[ 69.244634] ath10k_pci 0000:02:00.0: boot using calibration mode otp
[ 69.244637] ath10k_pci 0000:02:00.0: boot uploading firmware image
ffffc90002ea104c len 466811 mode normal
[ 69.244640] ath10k_pci 0000:02:00.0: bmi fast download address
0x1234 buffer 0xffffc90002ea104c length 466811
[ 69.244642] ath10k_pci 0000:02:00.0: bmi lz stream start address 0x1234
[ 69.244651] ath10k_pci 0000:02:00.0: bmi lz data buffer
0xffffc90002ea104c length 466808
[ 70.308593] ath10k_pci 0000:02:00.0: bmi lz data buffer
0xffff88015943bd2c length 4
[ 70.308759] ath10k_pci 0000:02:00.0: bmi lz stream start address 0x0
[ 70.308806] ath10k_pci 0000:02:00.0: bmi write address 0x400814 length 4
[ 70.308843] ath10k_pci 0000:02:00.0: pci hif set callbacks
[ 70.308848] ath10k_pci 0000:02:00.0: pci hif get default pipe
[ 70.308852] ath10k_pci 0000:02:00.0: pci hif map service
[ 70.308857] ath10k_pci 0000:02:00.0: bmi done
[ 70.308883] ath10k_pci 0000:02:00.0: htt tx max num pending tx 1056
[ 70.308909] ath10k_pci 0000:02:00.0: htt rx ring size 2048 fill_level 1023
[ 70.308914] ath10k_pci 0000:02:00.0: boot hif start
[ 70.308929] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 70.308942] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 70.310913] ath10k_pci 0000:02:00.0: firmware crashed! (uuid
f4e9433b-0bf2-4cf9-8ffc-c1c22da14607)
[ 70.310927] ath10k_pci 0000:02:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545) fw atheros-12.0.0.102-fw api 5
htt-ver 0.0 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
features \xffffffa6m:^R\xfffffffbԂ\xffffffc4^E
[ 70.310933] ath10k_pci 0000:02:00.0: debug 1 debugfs 1 tracing 1
dfs 0 testmode 0
[ 70.313371] ath10k_pci 0000:02:00.0: firmware register dump:
[ 70.313377] ath10k_pci 0000:02:00.0: [00]: 0x05010000 0x000015B3
0x000A012D 0x00955B31
[ 70.313380] ath10k_pci 0000:02:00.0: [04]: 0x000A012D 0x00060330
0x00000016 0x87685006
[ 70.313383] ath10k_pci 0000:02:00.0: [08]: 0x00000000 0x00400000
0x00400600 0x00000001
[ 70.313385] ath10k_pci 0000:02:00.0: [12]: 0x00000009 0x00000000
0x00931C61 0x00931C7D
[ 70.313388] ath10k_pci 0000:02:00.0: [16]: 0x0096BDBC 0x009286B6
0x00000000 0x00000000
[ 70.313390] ath10k_pci 0000:02:00.0: [20]: 0x400A012D 0x0040E2B0
0x00955A00 0x00404590
[ 70.313393] ath10k_pci 0000:02:00.0: [24]: 0x809287D9 0x0040E310
0x7A508CF8 0xC00A012D
[ 70.313395] ath10k_pci 0000:02:00.0: [28]: 0x809288D7 0x0040E340
0x00000000 0xFFF08040
[ 70.313398] ath10k_pci 0000:02:00.0: [32]: 0x809290FE 0x0040E360
0x00400000 0x00400600
[ 70.313400] ath10k_pci 0000:02:00.0: [36]: 0x80929205 0x0040E380
0x00000000 0x00400600
[ 70.313403] ath10k_pci 0000:02:00.0: [40]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 70.313405] ath10k_pci 0000:02:00.0: [44]: 0x00000000 0x0040E3D0
0x009BB001 0x00040020
[ 70.313408] ath10k_pci 0000:02:00.0: [48]: 0x00401BF0 0x00000001
0x00404B9C 0x00400000
[ 70.313410] ath10k_pci 0000:02:00.0: [52]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 70.313412] ath10k_pci 0000:02:00.0: [56]: 0xAEF45900 0xF54C4613
0xA0B41E0F 0x4CFD5866
[ 71.309496] ath10k_pci 0000:02:00.0: failed to receive control
response completion, polling..
[ 71.309505] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 71.309807] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 71.309813] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 71.309818] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 71.309912] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 71.309918] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 71.309922] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 71.309926] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 72.310187] ath10k_pci 0000:02:00.0: ctl_resp never came in (-110)
[ 72.310197] ath10k_pci 0000:02:00.0: failed to connect to HTC: -110
[ 72.310202] ath10k_pci 0000:02:00.0: boot hif stop
[ 72.310206] ath10k_pci 0000:02:00.0: boot warm reset
[ 72.332479] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008cdb3000
[ 72.332638] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88008645a000
[ 72.332789] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff880086589000
[ 72.333040] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008dbdc000
[ 72.333419] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff8800910a0000
[ 72.333669] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff880086402000
[ 72.333780] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88008dbc1000
[ 72.333781] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 72.333883] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 72.344030] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 72.344036] ath10k_pci 0000:02:00.0: boot target initialised
[ 72.355499] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008cdb3000
[ 72.355757] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88008645a000
[ 72.355872] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff880086589000
[ 72.356084] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008dbdc000
[ 72.356363] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff8800910a0000
[ 72.356584] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff880086402000
[ 72.356839] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88008dbc1000
[ 72.356843] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 72.356946] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 72.367095] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 72.367201] ath10k_pci 0000:02:00.0: boot target initialised
[ 72.367203] ath10k_pci 0000:02:00.0: boot warm reset complete
[ 72.368107] ath10k_pci 0000:02:00.0: could not init core (-110)
[ 72.368140] ath10k_pci 0000:02:00.0: boot hif power down
[ 72.368141] ath10k_pci 0000:02:00.0: could not probe fw (-110)
[ 72.372355] ath10k_pci 0000:02:00.0: cannot restart a device that
hasn't been started

There are some unprintable characters in the features string.
Post by Michal Kazior
Post by vvanpo
Hi,
I just got a Lenovo Yoga 3 11, only to find the wireless doesn't work.
The PCI id is 168c:0041:17aa:3545
The qca6164 is not supported, yet. Arnd has been the first one to
report the problem. We tried a few things to get it running but gave
up for now. I don't have the card so it's difficult for me to do
trial-and-error testing.
Post by vvanpo
I downloaded the driver (version 12.0.0.102, date 06/24/2015) from the
Lenovo website and extracted it in Wine (as I saw someone else do from
eeprom_ar6320_2p1_NFA324i_5.bin
eeprom_ar6320_2p1_NFA344i.bin
eeprom_ar6320_2p1_NFA344i_highTX.bin
eeprom_ar6320_2p1_NFA345i.bin
eeprom_ar6320_2p1_NFA345i_highTX.bin
eeprom_ar6320_2p1_NFA354xp.bin
eeprom_ar6320_2p1_NFA355i.bin
qca61x4_1_1_2.bin
In the netathr10x.inf file, my device and subsystem ids correspond to
section 'ATHR_DEV_OS63_988x_LE_NFA345_IPG.ndi', although I'm not sure
how that relates to which bin file and what a 'section' is exactly. I
chose to use the NFA345i.bin file, which I symlinked
/lib/firmware/ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin
to.
./dissect.py < qca61x4_1_1_2.bin
./assemble.py atheros-12.0.0.102-fw 0 fw-2.bin fw-1.bin 4 > firmware-5.bin
Looks good.
Post by vvanpo
I enabled skip_otp=y.
I compiled master at github.com/kvalo/ath, but with the modification
#define QCA6174_2_1_DEVICE_ID (0x0041)
so it would recognize my card.
On loading the ath10k_pci module I get a 'firmware crashed!' message,
and a firmware dump. Sometimes the dump itself must print garbage to
dmesg and turns my terminal into mojibake, which I think has to do
http://lists.infradead.org/pipermail/ath10k/2015-July/005703.html
Whenever firmware crashes post the register dump, please. It is then
easier to cross-associate crashes from different reports.
Post by vvanpo
As you can probably tell I'm haphazardly shooting in the dark without
much knowledge of whats actually going on. Is there a way I can
meaningfully contribute, or am I at the mercy of those with access to
documentation on how the qualcomm firmware works?
You can either start disassembling the windows driver and/or
experimenting with ath10k driver values used for booting the device or
just wait..
Post by vvanpo
- when ath10k_print_driver_info gets called, my ar->chip_id is
printed as 0x003405ff, which should correspond to
QCA6174_HW_2_2_CHIP_ID_REV when masked (like in
ath10k_pci_get_num_banks). So why is it still referred to as hw2.1
(instead of hw2.2), and what do these revisions signify, anyway?
Within environment with limited information your decisions are
suboptimal. As a result we have "hw2.1" in the driver which refers to
hw2.2 as well.
Post by vvanpo
- how can I be sure I'm using the correct bin files, and is there
any documentation on the format of these files?
The format is defined in the driver (hw.h). There's no other
documentation I guess.
Post by vvanpo
- what would need to be changed to add support for qca6164 in ath10k?
If I knew the it would have been supported already ;-)
Michał
Michal Kazior
2015-08-06 05:20:47 UTC
Permalink
Post by vvanpo
Hi,
I just got a Lenovo Yoga 3 11, only to find the wireless doesn't work.
The PCI id is 168c:0041:17aa:3545
[...]
Post by vvanpo
- what would need to be changed to add support for qca6164 in ath10k?
Can you try the diff below, please? (warning, whitespace damage).

/me crosses fingers


Michał


diff --git a/drivers/net/wireless/ath/ath10k/core.c
b/drivers/net/wireless/ath/ath10k/core.c
index 29d2541d87dd..8c46338a90de 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -231,6 +231,15 @@ static int ath10k_init_configure_target(struct ath10k *ar)
return ret;
}

+ /* Some devices, e.g. qca6164 needs this host interest field to contain
+ * PCI Device ID in order to boot.
+ */
+ ret = ath10k_bmi_write32(ar, hi_hci_uart_pwr_mgmt_params, ar->dev_id);
+ if (ret) {
+ ath10k_err(ar, "failed to set pwr_mgmt_params: %d\n", ret);
+ return ret;
+ }
+
return 0;
}

diff --git a/drivers/net/wireless/ath/ath10k/core.h
b/drivers/net/wireless/ath/ath10k/core.h
index 35f40388b622..9776f0d85a35 100644
--- a/drivers/net/wireless/ath/ath10k/core.h
+++ b/drivers/net/wireless/ath/ath10k/core.h
@@ -554,6 +554,7 @@ struct ath10k {
u8 mac_addr[ETH_ALEN];

enum ath10k_hw_rev hw_rev;
+ u16 dev_id;
u32 chip_id;
u32 target_version;
u8 fw_version_major;
diff --git a/drivers/net/wireless/ath/ath10k/pci.c
b/drivers/net/wireless/ath/ath10k/pci.c
index a69bfa41c68b..1debb45e49d6 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -2920,6 +2920,7 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
ar_pci->pdev = pdev;
ar_pci->dev = &pdev->dev;
ar_pci->ar = ar;
+ ar->dev_id = pci_dev->device;

if (pdev->subsystem_vendor || pdev->subsystem_device)
scnprintf(ar->spec_board_id, sizeof(ar->spec_board_id),
Michal Kazior
2015-08-06 05:34:23 UTC
Permalink
Post by Michal Kazior
Post by vvanpo
Hi,
I just got a Lenovo Yoga 3 11, only to find the wireless doesn't work.
The PCI id is 168c:0041:17aa:3545
[...]
Post by vvanpo
- what would need to be changed to add support for qca6164 in ath10k?
Can you try the diff below, please? (warning, whitespace damage).
/me crosses fingers
Michał
diff --git a/drivers/net/wireless/ath/ath10k/core.c
b/drivers/net/wireless/ath/ath10k/core.c
index 29d2541d87dd..8c46338a90de 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -231,6 +231,15 @@ static int ath10k_init_configure_target(struct ath10k *ar)
return ret;
}
+ /* Some devices, e.g. qca6164 needs this host interest field to contain
+ * PCI Device ID in order to boot.
+ */
+ ret = ath10k_bmi_write32(ar, hi_hci_uart_pwr_mgmt_params, ar->dev_id);
Oops. Typo - I meant:

hi_hci_uart_pwr_mgmt_params_ext

(note the "_ext")


Michał
Victor van Poppelen
2015-08-06 16:59:57 UTC
Permalink
Still get a firmware crash after 'boot hif start', but different
behaviour this time. Here is the dmesg output:

[ 6.058379] ath10k_pci 0000:02:00.0: pci probe
[ 6.058933] ath10k_pci 0000:02:00.0: boot pci_mem 0xffffc90002c00000
[ 6.060960] ath10k_pci 0000:02:00.0: pci irq msi-x interrupts 8
irq_mode 0 reset_mode 0
[ 6.061846] ath10k_pci 0000:02:00.0: boot qca6174 chip reset
[ 6.061848] ath10k_pci 0000:02:00.0: boot cold reset
[ 6.103526] ath10k_pci 0000:02:00.0: boot cold reset complete
[ 6.103535] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 6.103615] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 6.103624] ath10k_pci 0000:02:00.0: boot target initialised
[ 6.103628] ath10k_pci 0000:02:00.0: boot warm reset
[ 6.125791] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008ccce000
[ 6.125951] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88003f748000
[ 6.126057] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff88008d673000
[ 6.126263] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008d7a7000
[ 6.126497] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff88008d860000
[ 6.126740] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff88008cd2b000
[ 6.126855] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88003f8f1000
[ 6.126862] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 6.127007] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 6.137156] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 6.137163] ath10k_pci 0000:02:00.0: boot target initialised
[ 6.147748] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008ccce000
[ 6.147907] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88003f748000
[ 6.148014] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff88008d673000
[ 6.148219] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008d7a7000
[ 6.148450] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff88008d860000
[ 6.148695] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff88008cd2b000
[ 6.148807] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88003f8f1000
[ 6.148811] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 6.148953] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 6.159102] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 6.159107] ath10k_pci 0000:02:00.0: boot target initialised
[ 6.159109] ath10k_pci 0000:02:00.0: boot warm reset complete
[ 6.159110] ath10k_pci 0000:02:00.0: boot qca6174 chip reset complete (cold)
[ 6.159238] ath10k_pci 0000:02:00.0: boot hif power up
[ 6.159393] ath10k_pci 0000:02:00.0: boot qca6174 chip reset
[ 6.159395] ath10k_pci 0000:02:00.0: boot cold reset
[ 6.201455] ath10k_pci 0000:02:00.0: boot cold reset complete
[ 6.201461] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 6.201466] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 6.201474] ath10k_pci 0000:02:00.0: boot target initialised
[ 6.201476] ath10k_pci 0000:02:00.0: boot warm reset
[ 6.223496] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008ccce000
[ 6.223510] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88003f748000
[ 6.223522] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff88008d673000
[ 6.223536] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008d7a7000
[ 6.223563] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff88008d860000
[ 6.223577] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff88008cd2b000
[ 6.223589] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88003f8f1000
[ 6.223591] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 6.223594] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 6.233607] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 6.233614] ath10k_pci 0000:02:00.0: boot target initialised
[ 6.244500] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008ccce000
[ 6.244518] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88003f748000
[ 6.244532] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff88008d673000
[ 6.244547] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008d7a7000
[ 6.244566] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff88008d860000
[ 6.244582] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff88008cd2b000
[ 6.244595] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88003f8f1000
[ 6.244597] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 6.244602] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 6.254616] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 6.254625] ath10k_pci 0000:02:00.0: boot target initialised
[ 6.254628] ath10k_pci 0000:02:00.0: boot warm reset complete
[ 6.254630] ath10k_pci 0000:02:00.0: boot qca6174 chip reset complete (cold)
[ 6.254647] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008ccce000
[ 6.254661] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88003f748000
[ 6.254675] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff88008d673000
[ 6.254691] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008d7a7000
[ 6.254710] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff88008d860000
[ 6.254726] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff88008cd2b000
[ 6.254740] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88003f8f1000
[ 6.265839] ath10k_pci 0000:02:00.0: bmi get target info
[ 6.266090] ath10k_pci 0000:02:00.0: Hardware name qca6174 hw2.1
version 0x5010000
[ 6.266278] ath10k_pci 0000:02:00.0: Direct firmware load for
ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 6.266282] ath10k_pci 0000:02:00.0: Falling back to user helper
[ 66.309769] ath10k_pci 0000:02:00.0: found specific board file for
168c:0041:17aa:3545
[ 66.309778] ath10k_pci 0000:02:00.0: trying fw api 5
[ 66.312858] ath10k_pci 0000:02:00.0: found fw version atheros-12.0.0.102-fw
[ 66.312865] ath10k_pci 0000:02:00.0: found firmware features ie (4 B)
[ 66.312868] ath10k_pci 0000:02:00.0: features
[ 66.312873] ath10k_pci 0000:02:00.0: 00000000: 00 00 00 00 00 00 00
00 ........
[ 66.312876] ath10k_pci 0000:02:00.0: found fw ie wmi op version 4
[ 66.312879] ath10k_pci 0000:02:00.0: found fw image ie (466811 B)
[ 66.312882] ath10k_pci 0000:02:00.0: found otp image ie (29533 B)
[ 66.312884] ath10k_pci 0000:02:00.0: using fw api 5
[ 66.312888] ath10k_pci 0000:02:00.0: bmi start
[ 66.312892] ath10k_pci 0000:02:00.0: bmi write address 0x400800 length 4
[ 66.312914] ath10k_pci 0000:02:00.0: bmi read address 0x400810 length 4
[ 66.312996] ath10k_pci 0000:02:00.0: bmi write address 0x400810 length 4
[ 66.313009] ath10k_pci 0000:02:00.0: bmi write address 0x400844 length 4
[ 66.313055] ath10k_pci 0000:02:00.0: bmi write address 0x400904 length 4
[ 66.313099] ath10k_pci 0000:02:00.0: bmi write address 0x4008bc length 4
[ 66.313141] ath10k_pci 0000:02:00.0: boot did not find a
calibration file, try DT next: -11
[ 66.313145] ath10k_pci 0000:02:00.0: boot did not find DT entry,
try OTP next: -2
[ 66.313149] ath10k_pci 0000:02:00.0: bmi read address 0x4008ac length 4
[ 66.313222] ath10k_pci 0000:02:00.0: boot push board extended data addr 0x0
[ 66.313226] ath10k_pci 0000:02:00.0: bmi read address 0x400854 length 4
[ 66.313285] ath10k_pci 0000:02:00.0: bmi write address 0x401d40 length 8124
[ 66.329096] ath10k_pci 0000:02:00.0: bmi write address 0x400858 length 4
[ 66.329258] ath10k_pci 0000:02:00.0: boot upload otp to 0x1234 len 29533
[ 66.329262] ath10k_pci 0000:02:00.0: bmi fast download address
0x1234 buffer 0xffffc90003152fd0 length 29533
[ 66.329265] ath10k_pci 0000:02:00.0: bmi lz stream start address 0x1234
[ 66.329299] ath10k_pci 0000:02:00.0: bmi lz data buffer
0xffffc90003152fd0 length 29532
[ 66.390076] ath10k_pci 0000:02:00.0: bmi lz data buffer
0xffff88008618bd2c length 4
[ 66.390154] ath10k_pci 0000:02:00.0: bmi lz stream start address 0x0
[ 66.390198] ath10k_pci 0000:02:00.0: bmi execute address 0x1234 param 0x0
[ 66.391772] ath10k_pci 0000:02:00.0: bmi execute result 0x3
[ 66.391775] ath10k_pci 0000:02:00.0: boot otp execute result 3
[ 66.391778] ath10k_pci 0000:02:00.0: boot using calibration mode otp
[ 66.391780] ath10k_pci 0000:02:00.0: boot uploading firmware image
ffffc900030e104c len 466811 mode normal
[ 66.391783] ath10k_pci 0000:02:00.0: bmi fast download address
0x1234 buffer 0xffffc900030e104c length 466811
[ 66.391785] ath10k_pci 0000:02:00.0: bmi lz stream start address 0x1234
[ 66.391795] ath10k_pci 0000:02:00.0: bmi lz data buffer
0xffffc900030e104c length 466808
[ 67.456079] ath10k_pci 0000:02:00.0: bmi lz data buffer
0xffff88008618bd2c length 4
[ 67.456247] ath10k_pci 0000:02:00.0: bmi lz stream start address 0x0
[ 67.456292] ath10k_pci 0000:02:00.0: bmi write address 0x400814 length 4
[ 67.456326] ath10k_pci 0000:02:00.0: pci hif set callbacks
[ 67.456330] ath10k_pci 0000:02:00.0: pci hif get default pipe
[ 67.456335] ath10k_pci 0000:02:00.0: pci hif map service
[ 67.456339] ath10k_pci 0000:02:00.0: bmi done
[ 67.456368] ath10k_pci 0000:02:00.0: htt tx max num pending tx 1056
[ 67.456396] ath10k_pci 0000:02:00.0: htt rx ring size 2048 fill_level 1023
[ 67.456400] ath10k_pci 0000:02:00.0: boot hif start
[ 67.456427] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 68.456939] ath10k_pci 0000:02:00.0: failed to receive control
response completion, polling..
[ 68.456948] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457253] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457265] ath10k_pci 0000:02:00.0: pci rx ce pipe 1 len 20
[ 68.457274] ath10k_pci 0000:02:00.0: pci rx: 00000000: 00 00 0c 00
00 00 00 00 01 00 02 00 00 07 16 00 ................
[ 68.457282] ath10k_pci 0000:02:00.0: pci rx: 00000010: 01 00 00 00
....
[ 68.457299] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457306] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457371] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457484] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457489] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457493] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457602] ath10k_pci 0000:02:00.0: Target ready! transmit
resources: 2 size:1792
[ 68.457606] ath10k_pci 0000:02:00.0: pci hif map service
[ 68.457611] ath10k_pci 0000:02:00.0: boot htc service 'Control' ul
pipe 0 dl pipe 1 eid 0 ready
[ 68.457615] ath10k_pci 0000:02:00.0: boot htc ep 0 ul polled 0 dl polled 0
[ 68.457619] ath10k_pci 0000:02:00.0: boot htc service 'Control' eid
0 TX flow control disabled
[ 68.457624] ath10k_pci 0000:02:00.0: boot htc service HTT Data does
not allocate target credits
[ 68.457630] ath10k_pci 0000:02:00.0: ath10k_htc_build_tx_ctrl_skb:
skb ffff880152473d00
[ 68.457635] ath10k_pci 0000:02:00.0: pci tx item 0 paddr 0x97f0c000
len 16 n_items 1
[ 68.457640] ath10k_pci 0000:02:00.0: pci tx data: 00000000: 00 01
08 00 00 00 00 00 02 00 00 03 08 00 00 00 ................
[ 68.457908] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 68.457919] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 69.457557] ath10k_pci 0000:02:00.0: Service connect timeout
[ 69.457568] ath10k_pci 0000:02:00.0: failed to connect htt (-110)
[ 69.457573] ath10k_pci 0000:02:00.0: boot hif stop
[ 69.457577] ath10k_pci 0000:02:00.0: boot warm reset
[ 69.480831] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008ccce000
[ 69.480990] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88003f748000
[ 69.481136] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff88008d673000
[ 69.481392] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008d7a7000
[ 69.481768] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff88008d860000
[ 69.482006] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff88008cd2b000
[ 69.482271] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88003f8f1000
[ 69.482278] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 69.482443] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 69.492581] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 69.492589] ath10k_pci 0000:02:00.0: boot target initialised
[ 69.503855] ath10k_pci 0000:02:00.0: boot init ce src ring id 0
entries 16 base_addr ffff88008ccce000
[ 69.504115] ath10k_pci 0000:02:00.0: boot ce dest ring id 1 entries
512 base_addr ffff88003f748000
[ 69.504346] ath10k_pci 0000:02:00.0: boot ce dest ring id 2 entries
128 base_addr ffff88008d673000
[ 69.504722] ath10k_pci 0000:02:00.0: boot init ce src ring id 3
entries 32 base_addr ffff88008d7a7000
[ 69.504994] ath10k_pci 0000:02:00.0: boot init ce src ring id 4
entries 4096 base_addr ffff88008d860000
[ 69.505254] ath10k_pci 0000:02:00.0: boot init ce src ring id 7
entries 2 base_addr ffff88008cd2b000
[ 69.505553] ath10k_pci 0000:02:00.0: boot ce dest ring id 7 entries
2 base_addr ffff88003f8f1000
[ 69.505556] ath10k_pci 0000:02:00.0: boot waiting target to initialise
[ 69.505703] ath10k_pci 0000:02:00.0: boot target indicator 0
[ 69.515842] ath10k_pci 0000:02:00.0: boot target indicator 2
[ 69.515849] ath10k_pci 0000:02:00.0: boot target initialised
[ 69.515851] ath10k_pci 0000:02:00.0: boot warm reset complete
[ 69.516808] ath10k_pci 0000:02:00.0:
ath10k_htc_notify_tx_completion: ep 0 skb ffff880152473d00
[ 69.517268] ath10k_pci 0000:02:00.0: could not init core (-110)
[ 69.517321] ath10k_pci 0000:02:00.0: boot hif power down
[ 69.517326] ath10k_pci 0000:02:00.0: could not probe fw (-110)
Post by Michal Kazior
Post by Michal Kazior
Post by vvanpo
Hi,
I just got a Lenovo Yoga 3 11, only to find the wireless doesn't work.
The PCI id is 168c:0041:17aa:3545
[...]
Post by vvanpo
- what would need to be changed to add support for qca6164 in ath10k?
Can you try the diff below, please? (warning, whitespace damage).
/me crosses fingers
Michał
diff --git a/drivers/net/wireless/ath/ath10k/core.c
b/drivers/net/wireless/ath/ath10k/core.c
index 29d2541d87dd..8c46338a90de 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -231,6 +231,15 @@ static int ath10k_init_configure_target(struct ath10k *ar)
return ret;
}
+ /* Some devices, e.g. qca6164 needs this host interest field to contain
+ * PCI Device ID in order to boot.
+ */
+ ret = ath10k_bmi_write32(ar, hi_hci_uart_pwr_mgmt_params, ar->dev_id);
hi_hci_uart_pwr_mgmt_params_ext
(note the "_ext")
Michał
Michal Kazior
2015-08-07 04:53:22 UTC
Permalink
Post by Victor van Poppelen
Still get a firmware crash after 'boot hif start', but different
[ 6.058379] ath10k_pci 0000:02:00.0: pci probe
[ 6.058933] ath10k_pci 0000:02:00.0: boot pci_mem 0xffffc90002c00000
[ 6.060960] ath10k_pci 0000:02:00.0: pci irq msi-x interrupts 8
irq_mode 0 reset_mode 0
Can you load ath10k_pci with irq_mode=1 module parameter, please?

Something broke in recent kernel for msi-ranged irqs on ath10k. Enrico
is trying to bisect.

In the meantime forcing shared interrupts is the only workaround.


[...]
Post by Victor van Poppelen
[ 67.456339] ath10k_pci 0000:02:00.0: bmi done
[ 67.456368] ath10k_pci 0000:02:00.0: htt tx max num pending tx 1056
[ 67.456396] ath10k_pci 0000:02:00.0: htt rx ring size 2048 fill_level 1023
[ 67.456400] ath10k_pci 0000:02:00.0: boot hif start
[ 67.456427] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 68.456939] ath10k_pci 0000:02:00.0: failed to receive control
response completion, polling..
[ 68.456948] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457253] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457265] ath10k_pci 0000:02:00.0: pci rx ce pipe 1 len 20
[ 68.457274] ath10k_pci 0000:02:00.0: pci rx: 00000000: 00 00 0c 00
00 00 00 00 01 00 02 00 00 07 16 00 ................
[ 68.457282] ath10k_pci 0000:02:00.0: pci rx: 00000010: 01 00 00 00
....
[ 68.457299] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457306] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457371] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457484] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457489] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457493] ath10k_pci 0000:02:00.0: pci hif send complete check
[ 68.457602] ath10k_pci 0000:02:00.0: Target ready! transmit
resources: 2 size:1792
This looks like good news! HTC Control service responded with a
message to host. This means firmware code has finally run. Previously
it did not run at all - instead ROM code crashed before even starting
the uploaded firmware blob.


Michał
Victor van Poppelen
2015-08-07 16:04:26 UTC
Permalink
Post by Michal Kazior
Can you load ath10k_pci with irq_mode=1 module parameter, please?
Something broke in recent kernel for msi-ranged irqs on ath10k. Enrico
is trying to bisect.
In the meantime forcing shared interrupts is the only workaround.
It works!
Anish Tondwalkar
2015-08-10 04:36:28 UTC
Permalink
Post by Victor van Poppelen
Post by Michal Kazior
Can you load ath10k_pci with irq_mode=1 module parameter, please?
Something broke in recent kernel for msi-ranged irqs on ath10k. Enrico
is trying to bisect.
In the meantime forcing shared interrupts is the only workaround.
It works!
I'm trying this with ath10k_pci irq_mode=1 and ath10k_core skip_otp=y on
kernel 22f8a4083883eca3e8a3175315d67d2a04392466 from
https://github.com/vvanpo/linux/commit (I think that's just kvalo/ath with
Michał's changes) on my Lenovo Z70-80. It's not working (did I extract the
firmware wrong? can someone send me the correct fw?)

Here's dmesg: (I think the enp2s0 error are probably unrelated)

[ 0.181385] PCI host bridge to bus 0000:00
[ 0.181387] pci_bus 0000:00: root bus resource [bus 00-fe]
[ 0.181389] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.181391] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.181393] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff
window]
[ 0.181395] pci_bus 0000:00: root bus resource [mem 0xa0000000-0xfeafffff
window]
[ 0.181401] pci 0000:00:00.0: [8086:1604] type 00 class 0x060000
[ 0.181636] pci 0000:00:02.0: [8086:1616] type 00 class 0x030000
[ 0.181650] pci 0000:00:02.0: reg 0x10: [mem 0xc0000000-0xc0ffffff 64bit]
[ 0.181656] pci 0000:00:02.0: reg 0x18: [mem 0xb0000000-0xbfffffff 64bit
pref]
[ 0.181660] pci 0000:00:02.0: reg 0x20: [io 0x4000-0x403f]
[ 0.181893] pci 0000:00:03.0: [8086:160c] type 00 class 0x040300
[ 0.181905] pci 0000:00:03.0: reg 0x10: [mem 0xc1310000-0xc1313fff 64bit]
[ 0.182149] pci 0000:00:14.0: [8086:9cb1] type 00 class 0x0c0330
[ 0.182172] pci 0000:00:14.0: reg 0x10: [mem 0xc1300000-0xc130ffff 64bit]
[ 0.182216] pci 0000:00:14.0: PME# supported from D3hot D3cold
[ 0.183298] pci 0000:00:14.0: System wakeup disabled by ACPI
[ 0.183333] pci 0000:00:16.0: [8086:9cba] type 00 class 0x078000
[ 0.183360] pci 0000:00:16.0: reg 0x10: [mem 0xc131a000-0xc131a01f 64bit]
[ 0.183413] pci 0000:00:16.0: PME# supported from D0 D3hot D3cold
[ 0.183637] pci 0000:00:1b.0: [8086:9ca0] type 00 class 0x040300
[ 0.183659] pci 0000:00:1b.0: reg 0x10: [mem 0xc1314000-0xc1317fff 64bit]
[ 0.183702] pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
[ 0.183894] pci 0000:00:1b.0: System wakeup disabled by ACPI
[ 0.183926] pci 0000:00:1c.0: [8086:9c90] type 01 class 0x060400
[ 0.183979] pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
[ 0.184196] pci 0000:00:1c.0: System wakeup disabled by ACPI
[ 0.184229] pci 0000:00:1c.2: [8086:9c94] type 01 class 0x060400
[ 0.184283] pci 0000:00:1c.2: PME# supported from D0 D3hot D3cold
[ 0.184500] pci 0000:00:1c.2: System wakeup disabled by ACPI
[ 0.184533] pci 0000:00:1c.3: [8086:9c96] type 01 class 0x060400
[ 0.184588] pci 0000:00:1c.3: PME# supported from D0 D3hot D3cold
[ 0.184800] pci 0000:00:1c.3: System wakeup disabled by ACPI
[ 0.184839] pci 0000:00:1f.0: [8086:9cc3] type 00 class 0x060100
[ 0.185149] pci 0000:00:1f.2: [8086:9c83] type 00 class 0x010601
[ 0.185167] pci 0000:00:1f.2: reg 0x10: [io 0x4088-0x408f]
[ 0.185174] pci 0000:00:1f.2: reg 0x14: [io 0x4094-0x4097]
[ 0.185180] pci 0000:00:1f.2: reg 0x18: [io 0x4080-0x4087]
[ 0.185187] pci 0000:00:1f.2: reg 0x1c: [io 0x4090-0x4093]
[ 0.185193] pci 0000:00:1f.2: reg 0x20: [io 0x4060-0x407f]
[ 0.185199] pci 0000:00:1f.2: reg 0x24: [mem 0xc1318000-0xc13187ff]
[ 0.185221] pci 0000:00:1f.2: PME# supported from D3hot
[ 0.185433] pci 0000:00:1f.3: [8086:9ca2] type 00 class 0x0c0500
[ 0.185447] pci 0000:00:1f.3: reg 0x10: [mem 0xc1319000-0xc13190ff 64bit]
[ 0.185465] pci 0000:00:1f.3: reg 0x20: [io 0x4040-0x405f]
[ 0.185729] pci 0000:00:1c.0: PCI bridge to [bus 01]
[ 0.185792] pci 0000:02:00.0: [10ec:8168] type 00 class 0x020000
[ 0.185829] pci 0000:02:00.0: reg 0x10: [io 0x3000-0x30ff]
[ 0.185857] pci 0000:02:00.0: reg 0x18: [mem 0xc1204000-0xc1204fff 64bit]
[ 0.185874] pci 0000:02:00.0: reg 0x20: [mem 0xc1200000-0xc1203fff 64bit]
[ 0.185933] pci 0000:02:00.0: supports D1 D2
[ 0.185935] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.185963] pci 0000:02:00.0: System wakeup disabled by ACPI
[ 0.191060] pci 0000:00:1c.2: PCI bridge to [bus 02]
[ 0.191063] pci 0000:00:1c.2: bridge window [io 0x3000-0x3fff]
[ 0.191066] pci 0000:00:1c.2: bridge window [mem 0xc1200000-0xc12fffff]
[ 0.191265] pci 0000:03:00.0: [168c:0041] type 00 class 0x028000
[ 0.191328] pci 0000:03:00.0: reg 0x10: [mem 0xc1000000-0xc11fffff 64bit]
[ 0.191485] pci 0000:03:00.0: PME# supported from D0 D3hot D3cold
[ 0.191521] pci 0000:03:00.0: System wakeup disabled by ACPI
[ 0.197875] pci 0000:00:1c.3: PCI bridge to [bus 03]
[ 0.197879] pci 0000:00:1c.3: bridge window [mem 0xc1000000-0xc11fffff]
[ 0.199000] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 10 11 12 14 15)
*7
[ 0.199042] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 *10 11 12 14
15)
[ 0.199081] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 10 *11 12 14
15)
[ 0.199120] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 *10 11 12 14
15)
[ 0.199159] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 10 11 12 14 15)
*0, disabled.
[ 0.199199] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 10 11 12 14 15)
*0, disabled.
[ 0.199240] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 10 *11 12 14
15)
[ 0.199281] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 10 11 12 14 15)
*0, disabled.
[ 0.199529] ACPI: Enabled 5 GPEs in block 00 to 7F
[ 0.199571] ACPI : EC: GPE = 0x7, I/O: command/status = 0x66, data = 0x62
[ 0.199675] vgaarb: setting as boot device: PCI:0000:00:02.0
[ 0.199677] vgaarb: device added:
PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[ 0.199679] vgaarb: loaded
[ 0.199680] vgaarb: bridge control possible 0000:00:02.0
[ 0.199768] PCI: Using ACPI for IRQ routing
[ 0.204974] PCI: pci_cache_line_size set to 64 bytes
[ 0.205138] e820: reserve RAM buffer [mem 0x0009e800-0x0009ffff]
[ 0.205139] e820: reserve RAM buffer [mem 0x96eda000-0x97ffffff]
[ 0.205140] e820: reserve RAM buffer [mem 0x9c8ef000-0x9fffffff]
[ 0.205142] e820: reserve RAM buffer [mem 0x9d000000-0x9fffffff]
[ 0.205143] e820: reserve RAM buffer [mem 0x25f000000-0x25fffffff]
[ 0.205237] NetLabel: Initializing
[ 0.205238] NetLabel: domain hash size = 128
[ 0.205239] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.205251] NetLabel: unlabeled traffic allowed by default
[ 0.205280] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[ 0.205284] hpet0: 8 comparators, 64-bit 14.318180 MHz counter
[ 0.207306] clocksource: Switched to clocksource hpet
[ 0.212056] pnp: PnP ACPI init
[ 0.213354] system 00:00: [io 0x0680-0x069f] has been reserved
[ 0.213357] system 00:00: [io 0xffff] has been reserved
[ 0.213358] system 00:00: [io 0xffff] has been reserved
[ 0.213360] system 00:00: [io 0xffff] has been reserved
[ 0.213361] system 00:00: [io 0x1800-0x18fe] could not be reserved
[ 0.213363] system 00:00: [io 0x164e-0x164f] has been reserved
[ 0.213366] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active)
[ 0.213403] pnp 00:01: Plug and Play ACPI device, IDs PNP0b00 (active)
[ 0.213435] system 00:02: [io 0x1854-0x1857] has been reserved
[ 0.213437] system 00:02: Plug and Play ACPI device, IDs INT3f0d PNP0c02
(active)
[ 0.213478] pnp 00:03: Plug and Play ACPI device, IDs PNP0303 (active)
[ 0.213505] pnp 00:04: Plug and Play ACPI device, IDs SYN2b37 PNP0f13
SYN0002 SYN2b00 (active)
[ 0.213776] system 00:05: [mem 0xfed1c000-0xfed1ffff] has been reserved
[ 0.213778] system 00:05: [mem 0xfed10000-0xfed17fff] has been reserved
[ 0.213780] system 00:05: [mem 0xfed18000-0xfed18fff] has been reserved
[ 0.213781] system 00:05: [mem 0xfed19000-0xfed19fff] has been reserved
[ 0.213783] system 00:05: [mem 0xe0000000-0xefffffff] has been reserved
[ 0.213784] system 00:05: [mem 0xfed20000-0xfed3ffff] has been reserved
[ 0.213786] system 00:05: [mem 0xfed90000-0xfed93fff] could not be
reserved
[ 0.213788] system 00:05: [mem 0xfed45000-0xfed8ffff] has been reserved
[ 0.213789] system 00:05: [mem 0xff000000-0xffffffff] could not be
reserved
[ 0.213791] system 00:05: [mem 0xfee00000-0xfeefffff] could not be
reserved
[ 0.213792] system 00:05: [mem 0xa0010000-0xa001ffff] has been reserved
[ 0.213794] system 00:05: [mem 0xa0000000-0xa000ffff] has been reserved
[ 0.213796] system 00:05: Plug and Play ACPI device, IDs PNP0c02 (active)
[ 0.214005] pnp: PnP ACPI: found 6 devices
[ 0.220010] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff,
max_idle_ns: 2085701024 ns
[ 0.220024] pci 0000:00:1c.0: bridge window [io 0x1000-0x0fff] to [bus
01] add_size 1000
[ 0.220028] pci 0000:00:1c.0: bridge window [mem 0x00100000-0x000fffff
64bit pref] to [bus 01] add_size 200000 add_align 100000
[ 0.220030] pci 0000:00:1c.0: bridge window [mem 0x00100000-0x000fffff]
to [bus 01] add_size 200000 add_align 100000
[ 0.220044] pci 0000:00:1c.0: res[14]=[mem 0x00100000-0x000fffff]
res_to_dev_res add_size 200000 min_align 100000
[ 0.220046] pci 0000:00:1c.0: res[14]=[mem 0x00100000-0x002fffff]
res_to_dev_res add_size 200000 min_align 100000
[ 0.220048] pci 0000:00:1c.0: res[15]=[mem 0x00100000-0x000fffff 64bit
pref] res_to_dev_res add_size 200000 min_align 100000
[ 0.220049] pci 0000:00:1c.0: res[15]=[mem 0x00100000-0x002fffff 64bit
pref] res_to_dev_res add_size 200000 min_align 100000
[ 0.220051] pci 0000:00:1c.0: res[13]=[io 0x1000-0x0fff] res_to_dev_res
add_size 1000 min_align 1000
[ 0.220053] pci 0000:00:1c.0: res[13]=[io 0x1000-0x1fff] res_to_dev_res
add_size 1000 min_align 1000
[ 0.220056] pci 0000:00:1c.0: BAR 14: assigned [mem 0xa0100000-
0xa02fffff]
[ 0.220060] pci 0000:00:1c.0: BAR 15: assigned [mem 0xa0300000-0xa04fffff
64bit pref]
[ 0.220062] pci 0000:00:1c.0: BAR 13: assigned [io 0x2000-0x2fff]
[ 0.220065] pci 0000:00:1c.0: PCI bridge to [bus 01]
[ 0.220067] pci 0000:00:1c.0: bridge window [io 0x2000-0x2fff]
[ 0.220071] pci 0000:00:1c.0: bridge window [mem 0xa0100000-0xa02fffff]
[ 0.220074] pci 0000:00:1c.0: bridge window [mem 0xa0300000-0xa04fffff
64bit pref]
[ 0.220079] pci 0000:00:1c.2: PCI bridge to [bus 02]
[ 0.220081] pci 0000:00:1c.2: bridge window [io 0x3000-0x3fff]
[ 0.220085] pci 0000:00:1c.2: bridge window [mem 0xc1200000-0xc12fffff]
[ 0.220091] pci 0000:00:1c.3: PCI bridge to [bus 03]
[ 0.220095] pci 0000:00:1c.3: bridge window [mem 0xc1000000-0xc11fffff]
[ 0.220102] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
[ 0.220103] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
[ 0.220105] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff
window]
[ 0.220106] pci_bus 0000:00: resource 7 [mem 0xa0000000-0xfeafffff
window]
[ 0.220108] pci_bus 0000:01: resource 0 [io 0x2000-0x2fff]
[ 0.220109] pci_bus 0000:01: resource 1 [mem 0xa0100000-0xa02fffff]
[ 0.220110] pci_bus 0000:01: resource 2 [mem 0xa0300000-0xa04fffff 64bit
pref]
[ 0.220112] pci_bus 0000:02: resource 0 [io 0x3000-0x3fff]
[ 0.220113] pci_bus 0000:02: resource 1 [mem 0xc1200000-0xc12fffff]
[ 0.220115] pci_bus 0000:03: resource 1 [mem 0xc1000000-0xc11fffff]
[ 0.220142] NET: Registered protocol family 2
[ 0.220303] TCP established hash table entries: 65536 (order: 7, 524288
bytes)
[ 0.220445] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.220607] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.220631] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[ 0.220668] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[ 0.220723] NET: Registered protocol family 1
[ 0.220737] pci 0000:00:02.0: Video device with shadowed ROM
[ 0.220811] pci 0000:00:14.0: can't derive routing for PCI INT A
[ 0.220813] pci 0000:00:14.0: PCI INT A: no GSI
[ 0.222388] PCI: CLS 64 bytes, default 64
[ 0.222435] Unpacking initramfs...
[ 0.280595] Freeing initrd memory: 3496K (ffff88003791c000 -
ffff880037c86000)
[ 0.280615] DMAR: Failed to find handle for ACPI object \_SB.PCI0.SDMA
[ 0.280620] DMAR: Failed to find handle for ACPI object \_SB.PCI0.SDHC
[ 0.280631] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.280633] software IO TLB [mem 0x988ef000-0x9c8ef000] (64MB) mapped at
[ffff8800988ef000-ffff88009c8eefff]
[ 0.280685] RAPL PMU detected, API unit is 2^-32 Joules, 4 fixed counters
655360 ms ovfl timer
[ 0.280687] hw unit of domain pp0-core 2^-14 Joules
[ 0.280688] hw unit of domain package 2^-14 Joules
[ 0.280689] hw unit of domain dram 2^-14 Joules
[ 0.280689] hw unit of domain pp1-gpu 2^-14 Joules
[ 0.280791] microcode: CPU0 sig=0x306d4, pf=0x40, revision=0x1d
[ 0.280798] microcode: CPU1 sig=0x306d4, pf=0x40, revision=0x1d
[ 0.280804] microcode: CPU2 sig=0x306d4, pf=0x40, revision=0x1d
[ 0.280809] microcode: CPU3 sig=0x306d4, pf=0x40, revision=0x1d
[ 0.280849] microcode: Microcode Update Driver: v2.00
<***@aivazian.fsnet.co.uk>, Peter Oruba
[ 0.280916] Scanning for low memory corruption every 60 seconds
[ 0.281162] futex hash table entries: 2048 (order: 5, 131072 bytes)
[ 0.281184] Initialise system trusted keyring
[ 0.281504] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.282856] zpool: loaded
[ 0.282859] zbud: loaded
[ 0.283016] VFS: Disk quotas dquot_6.6.0
[ 0.283045] VFS: Dquot-cache hash table entries: 512 (order 0, 4096
bytes)
[ 0.283182] Key type big_key registered
[ 0.283303] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 250)
[ 0.283340] io scheduler noop registered
[ 0.283342] io scheduler deadline registered
[ 0.283372] io scheduler cfq registered (default)
[ 0.283836] pcieport 0000:00:1c.0: Signaling PME through PCIe PME
interrupt
[ 0.283841] pcie_pme 0000:00:1c.0:pcie01: service driver pcie_pme loaded
[ 0.283856] pcieport 0000:00:1c.2: Signaling PME through PCIe PME
interrupt
[ 0.283857] pci 0000:02:00.0: Signaling PME through PCIe PME interrupt
[ 0.283860] pcie_pme 0000:00:1c.2:pcie01: service driver pcie_pme loaded
[ 0.283875] pcieport 0000:00:1c.3: Signaling PME through PCIe PME
interrupt
[ 0.283876] pci 0000:03:00.0: Signaling PME through PCIe PME interrupt
[ 0.283879] pcie_pme 0000:00:1c.3:pcie01: service driver pcie_pme loaded
[ 0.283885] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.283895] pciehp 0000:00:1c.0:pcie04: Slot #0 AttnBtn- PwrCtrl- MRL-
AttnInd- PwrInd- HotPlug+ Surprise+ Interlock- NoCompl+ LLActRep+
[ 0.283917] pciehp 0000:00:1c.0:pcie04: service driver pciehp loaded
[ 0.283921] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.283931] vesafb: mode is 1920x1080x32, linelength=7680, pages=0
[ 0.283932] vesafb: scrolling: redraw
[ 0.283933] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[ 0.283953] vesafb: framebuffer at 0xb0000000, mapped to
0xffffc90001000000, using 8128k, total 8128k
[ 0.463914] Console: switching to colour frame buffer device 240x67
[ 0.643090] fb0: VESA VGA frame buffer device
[ 0.643105] intel_idle: MWAIT substates: 0x11142120
[ 0.643106] intel_idle: v0.4 model 0x3D
[ 0.643107] intel_idle: lapic_timer_reliable_states 0xffffffff
[ 0.643322] GHES: HEST is not enabled!
[ 0.643383] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.643734] Linux agpgart interface v0.103
[ 0.644005] rtc_cmos 00:01: RTC can wake from S4
[ 0.644121] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[ 0.644147] rtc_cmos 00:01: alarms up to one month, 242 bytes nvram, hpet
irqs
[ 0.644158] Intel P-state driver initializing.
[ 0.644262] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.645011] NET: Registered protocol family 10
[ 0.645417] NET: Registered protocol family 17
[ 0.646308] Loading compiled-in X.509 certificates
[ 0.646338] registered taskstats version 1
[ 0.646359] zswap: loading zswap
[ 0.646364] zswap: using zbud pool
[ 0.646374] zswap: using lzo compressor
[ 0.647426] Magic number: 11:555:512
[ 0.647564] rtc_cmos 00:01: setting system clock to 2015-08-10 03:32:09
UTC (1439177529)
[ 0.647796] PM: Hibernation image not present or could not be loaded.
[ 0.648434] Freeing unused kernel memory: 1172K (ffffffff818e6000 -
ffffffff81a0b000)
[ 0.648438] Write protecting the kernel read-only data: 8192k
[ 0.649045] Freeing unused kernel memory: 564K (ffff880001573000 -
ffff880001600000)
[ 0.649260] Freeing unused kernel memory: 296K (ffff8800017b6000 -
ffff880001800000)
[ 0.659084] random: systemd-tmpfile urandom read with 5 bits of entropy
available
[ 0.681234] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at
0x60,0x64 irq 1,12
[ 0.694601] ACPI: bus type USB registered
[ 0.694627] usbcore: registered new interface driver usbfs
[ 0.694638] usbcore: registered new interface driver hub
[ 0.694662] usbcore: registered new device driver usb
[ 0.694676] SCSI subsystem initialized
[ 0.695578] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.695604] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.696303] xhci_hcd 0000:00:14.0: can't derive routing for PCI INT A
[ 0.696305] xhci_hcd 0000:00:14.0: PCI INT A: no GSI
[ 0.696325] xhci_hcd 0000:00:14.0: xHCI Host Controller
[ 0.696330] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus
number 1
[ 0.696395] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version
0x100 quirks 0x00009810
[ 0.696400] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported
[ 0.697429] hub 1-0:1.0: USB hub found
[ 0.697436] libata version 3.00 loaded.
[ 0.697448] hub 1-0:1.0: 11 ports detected
[ 0.700930] xhci_hcd 0000:00:14.0: xHCI Host Controller
[ 0.700934] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus
number 2
[ 0.701070] hub 2-0:1.0: USB hub found
[ 0.701077] hub 2-0:1.0: 4 ports detected
[ 0.701847] usb: failed to peer usb2-port3 and usb1-port4 by location
(usb2-port3:none) (usb1-port4:usb2-port2)
[ 0.701849] usb usb2-port3: failed to peer to usb1-port4 (-16)
[ 0.701850] usb: port power management may be unreliable
[ 0.702118] usb: failed to peer usb2-port4 and usb1-port4 by location
(usb2-port4:none) (usb1-port4:usb2-port2)
[ 0.702120] usb usb2-port4: failed to peer to usb1-port4 (-16)
[ 0.702181] ahci 0000:00:1f.2: version 3.0
[ 0.713857] input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input0
[ 0.714425] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 4 ports 6 Gbps 0x3
impl SATA mode
[ 0.714429] ahci 0000:00:1f.2: flags: 64bit ncq pm led clo only pio slum
part deso sadm sds apst
[ 0.714835] scsi host0: ahci
[ 0.714923] scsi host1: ahci
[ 0.714994] scsi host2: ahci
[ 0.715063] scsi host3: ahci
[ 0.715100] ata1: SATA max UDMA/133 abar ***@0xc1318000 port 0xc1318100
irq 46
[ 0.715103] ata2: SATA max UDMA/133 abar ***@0xc1318000 port 0xc1318180
irq 46
[ 0.715104] ata3: DUMMY
[ 0.715104] ata4: DUMMY
[ 1.034711] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1.034728] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 1.036828] ata2.00: ATAPI: HL-DT-ST DVDRAM GUC0N, T.02, max UDMA/133
[ 1.038215] ata2.00: configured for UDMA/133
[ 1.058056] usb 1-4: new high-speed USB device number 2 using xhci_hcd
[ 1.092959] ata1.00: ATA-9: ST1000LM014-SSHD-8GB, LVD4, max UDMA/133
[ 1.092962] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32), AA
[ 1.137370] ata1.00: configured for UDMA/133
[ 1.137566] scsi 0:0:0:0: Direct-Access ATA ST1000LM014-SSHD
LVD4 PQ: 0 ANSI: 5
[ 1.140495] scsi 1:0:0:0: CD-ROM HL-DT-ST DVDRAM GUC0N
T.02 PQ: 0 ANSI: 5
[ 1.154904] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00
TB/931 GiB)
[ 1.154909] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 1.154936] sd 0:0:0:0: [sda] Write Protect is off
[ 1.154939] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1.154949] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
[ 1.157115] Alternate GPT is invalid, using primary GPT.
[ 1.157125] sda: sda1 sda2 sda3 sda4 sda5 sda6
[ 1.157412] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.169071] sr 1:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram
cd/rw xa/form2 cdda tray
[ 1.169074] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 1.169264] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 1.234307] usbcore: registered new interface driver rtsx_usb
[ 1.281513] tsc: Refined TSC clocksource calibration: 2394.457 MHz
[ 1.281516] clocksource: tsc: mask: 0xffffffffffffffff max_cycles:
0x2283c360c9e, max_idle_ns: 440795302742 ns
[ 1.391616] usb 1-6: new high-speed USB device number 3 using xhci_hcd
[ 1.391701] EXT4-fs (sda4): mounted filesystem with ordered data mode.
Opts: (null)
[ 1.739501] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.739548] systemd[1]: Inserted module 'ip_tables'
[ 1.743462] systemd[1]: systemd 224 running in system mode. (+PAM -AUDIT
-SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT
+GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN)
[ 1.743579] systemd[1]: Detected architecture x86-64.
[ 1.745234] usb 1-7: new full-speed USB device number 4 using xhci_hcd
[ 1.747752] systemd[1]: Set hostname to <hertz>.
[ 1.954441] systemd[1]: bluetooth.service: Cannot add dependency job,
ignoring: Unit bluetooth.service failed to load: No such file or directory.
[ 1.954447] systemd[1]: NetworkManager.service: Cannot add dependency
job, ignoring: Unit NetworkManager.service failed to load: No such file or
directory.
[ 1.954464] systemd[1]: display-manager.service: Cannot add dependency
job, ignoring: Unit display-manager.service failed to load: No such file or
directory.
[ 1.954787] systemd[1]: Reached target Swap.
[ 1.954990] systemd[1]: Created slice Root Slice.
[ 1.955081] systemd[1]: Created slice System Slice.
[ 1.955164] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 1.955201] systemd[1]: Listening on Journal Socket.
[ 1.955554] systemd[1]: Mounting Debug File System...
[ 1.955939] systemd[1]: Mounting POSIX Message Queue File System...
[ 1.956411] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 1.956443] systemd[1]: Listening on LVM2 metadata daemon socket.
[ 1.956468] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ 1.956487] systemd[1]: Listening on Journal Socket (/dev/log).
[ 1.956509] systemd[1]: Listening on udev Kernel Socket.
[ 1.956565] systemd[1]: Started Dispatch Password Requests to Console
Directory Watch.
[ 1.956575] systemd[1]: Reached target Encrypted Volumes.
[ 1.956910] systemd[1]: Starting Setup Virtual Console...
[ 1.994949] systemd[1]: Starting Journal Service...
[ 2.005795] systemd[1]: Starting Load Kernel Modules...
[ 2.005896] systemd[1]: Created slice system-getty.slice.
[ 2.008647] systemd[1]: Mounting Temporary Directory...
[ 2.008852] systemd[1]: Set up automount Arbitrary Executable File
Formats File System Automount Point.
[ 2.009685] systemd[1]: Starting Create list of required static device
nodes for the current kernel...
[ 2.010112] systemd[1]: Mounting Huge Pages File System...
[ 2.010189] systemd[1]: Created slice User and Session Slice.
[ 2.010204] systemd[1]: Reached target Slices.
[ 2.010242] systemd[1]: Listening on /dev/initctl Compatibility Named
Pipe.
[ 2.010257] systemd[1]: Reached target Remote File Systems.
[ 2.010302] systemd[1]: Started Forward Password Requests to Wall
Directory Watch.
[ 2.010312] systemd[1]: Reached target Paths.
[ 2.010348] systemd[1]: Listening on udev Control Socket.
[ 2.020568] systemd[1]: Started Setup Virtual Console.
[ 2.021061] systemd[1]: Mounted POSIX Message Queue File System.
[ 2.021362] systemd[1]: Mounted Debug File System.
[ 2.021381] systemd[1]: Mounted Temporary Directory.
[ 2.021553] systemd[1]: Mounted Huge Pages File System.
[ 2.021568] EXT4-fs (sda4): re-mounted. Opts: errors=remount-ro
[ 2.021976] systemd[1]: Started Remount Root and Kernel File Systems.
[ 2.022332] systemd[1]: Starting Load/Save Random Seed...
[ 2.024017] systemd[1]: Starting udev Coldplug all Devices...
[ 2.033379] systemd[1]: systemd-modules-load.service: Main process
exited, code=exited, status=1/FAILURE
[ 2.033534] systemd[1]: Failed to start Load Kernel Modules.
[ 2.035547] systemd[1]: systemd-modules-load.service: Unit entered failed
state.
[ 2.035550] systemd[1]: systemd-modules-load.service: Failed with result
'exit-code'.
[ 2.035908] systemd[1]: Starting Apply Kernel Variables...
[ 2.036900] systemd[1]: Mounting Configuration File System...
[ 2.038191] systemd[1]: Mounted Configuration File System.
[ 2.071670] systemd[1]: Started Load/Save Random Seed.
[ 2.083967] systemd[1]: Started Create list of required static device
nodes for the current kernel.
[ 2.085975] systemd[1]: Starting Create Static Device Nodes in /dev...
[ 2.087862] random: nonblocking pool is initialized
[ 2.101216] systemd[1]: Started Apply Kernel Variables.
[ 2.109426] systemd[1]: Started udev Coldplug all Devices.
[ 2.229941] systemd[1]: Started Create Static Device Nodes in /dev.
[ 2.231443] systemd[1]: Reached target Local File Systems (Pre).
[ 2.232482] systemd[1]: Starting udev Kernel Device Manager...
[ 2.282487] clocksource: Switched to clocksource tsc
[ 2.364383] systemd[1]: Started udev Kernel Device Manager.
[ 2.485151] input: Lid Switch as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
[ 2.485187] ACPI: Lid Switch [LID0]
[ 2.485385] input: Power Button as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input3
[ 2.485389] ACPI: Power Button [PWRB]
[ 2.485430] input: Power Button as
/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
[ 2.485432] ACPI: Power Button [PWRF]
[ 2.487244] ACPI: AC Adapter [ADP0] (on-line)
[ 2.586523] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 2.627614] ACPI Warning: SystemIO range 0x0000000000004040-
0x000000000000405F conflicts with OpRegion 0x0000000000004040-
0x000000000000404F (\_SB_.PCI0.SBUS.SMBI) (20150619/utaddress-254)
[ 2.627622] ACPI: If an ACPI driver is available for this device, you
should use it instead of the native driver
[ 2.666273] [drm] Initialized drm 1.1.0 20060810
[ 2.682868] AVX2 version of gcm_enc/dec engaged.
[ 2.682871] AES CTR mode by8 optimization enabled
[ 2.689287] ath10k_pci 0000:03:00.0: limiting irq mode to: 1
[ 2.689292] ath10k_pci 0000:03:00.0: pci irq legacy interrupts 0 irq_mode
1 reset_mode 0
[ 2.702556] kvm: disabled by bios
[ 2.716199] intel_rapl: Found RAPL domain package
[ 2.716201] intel_rapl: Found RAPL domain core
[ 2.716202] intel_rapl: Found RAPL domain uncore
[ 2.716203] intel_rapl: Found RAPL domain dram
[ 2.722634] snd_hda_codec_conexant hdaudioC1D0: CX20751/2: BIOS auto-
probing.
[ 2.722939] snd_hda_codec_conexant hdaudioC1D0: autoconfig for CX20751/2:
line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[ 2.722942] snd_hda_codec_conexant hdaudioC1D0: speaker_outs=0
(0x0/0x0/0x0/0x0/0x0)
[ 2.722944] snd_hda_codec_conexant hdaudioC1D0: hp_outs=1
(0x16/0x0/0x0/0x0/0x0)
[ 2.722946] snd_hda_codec_conexant hdaudioC1D0: mono: mono_out=0x0
[ 2.722947] snd_hda_codec_conexant hdaudioC1D0: inputs:
[ 2.722950] snd_hda_codec_conexant hdaudioC1D0: Internal Mic=0x1a
[ 2.722953] snd_hda_codec_conexant hdaudioC1D0: Mic=0x19
[ 2.723736] snd_hda_codec_conexant hdaudioC1D0: Enable sync_write for
stable communication
[ 2.749821] input: PC Speaker as /devices/platform/pcspkr/input/input7
[ 2.780401] ACPI: Battery Slot [BAT0] (battery present)
[ 2.806374] iTCO_vendor_support: vendor-support=0
[ 2.807112] ppdev: user-space parallel port driver
[ 2.823434] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 2.826921] input: Ideapad extra buttons as
/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/input/input8
[ 2.830481] r8169 0000:02:00.0 eth0: RTL8168g/8111g at
0xffffc90000e9e000, 68:f7:28:e2:28:96, XID 10900800 IRQ 49
[ 2.830484] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes,
tx checksumming: ko]
[ 2.830923] input: HDA Digital PCBeep as
/devices/pci0000:00/0000:00:1b.0/sound/card1/input6
[ 2.831056] input: HDA Intel PCH Mic as
/devices/pci0000:00/0000:00:1b.0/sound/card1/input9
[ 2.831094] input: HDA Intel PCH Headphone as
/devices/pci0000:00/0000:00:1b.0/sound/card1/input10
[ 2.833811] r8169 0000:02:00.0 enp2s0: renamed from eth0
[ 2.834959] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[ 2.835112] iTCO_wdt: Found a Wildcat Point_LP TCO device (Version=2,
TCOBASE=0x1860)
[ 2.835302] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 2.846009] systemd[1]: Created slice system-systemd\x2drfkill.slice.
[ 2.847103] systemd[1]: Starting Load/Save RF Kill Switch Status of
rfkill0...
[ 2.847878] systemd[1]: Reached target Sound Card.
[ 2.862774] systemd[1]: Starting Load/Save RF Kill Switch Status of
rfkill1...
[ 2.867378] i915: unknown parameter 'i915_enable_rc6' ignored
[ 2.867906] [drm] Memory usable by graphics device = 4096M
[ 2.867911] checking generic (b0000000 7f0000) vs hw (b0000000 10000000)
[ 2.867912] fb: switching to inteldrmfb from VESA VGA
[ 2.867928] Console: switching to colour dummy device 80x25
[ 2.867993] [drm] Replacing VGA console driver
[ 2.872902] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.872905] [drm] Driver supports precise vblank timestamp query.
[ 2.873029] vgaarb: device changed decodes:
PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 2.875129] systemd[1]: Started Load/Save RF Kill Switch Status of
rfkill0.
[ 2.881755] systemd[1]: Started Load/Save RF Kill Switch Status of
rfkill1.
[ 2.885369] fbcon: inteldrmfb (fb0) is primary device
[ 2.885802] ACPI: Video Device [GFX0] (multi-head: yes rom: no post:
no)
[ 2.885983] input: Video Bus as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input11
[ 2.886101] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops
i915_audio_component_bind_ops [i915])
[ 2.886104] [drm] Initialized i915 1.6.0 20150522 for 0000:00:02.0 on
minor 0
[ 2.993042] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-
pci-0000:03:00.0.bin failed with error -2
[ 2.993043] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 3.031751] systemd[1]: Created slice system-systemd\x2dbacklight.slice.
[ 3.043835] Non-volatile memory driver v1.3
[ 3.046172] thinkpad_acpi: ThinkPad ACPI Extras v0.25
[ 3.046173] thinkpad_acpi: http://ibm-acpi.sf.net/
[ 3.046173] thinkpad_acpi: ThinkPad BIOS ABCN80WW, EC unknown
[ 3.046174] thinkpad_acpi: Lenovo Lenovo Z70-80, model 80FG
[ 3.046430] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
[ 3.046481] thinkpad_acpi: Standard ACPI backlight interface available,
not loading native one
[ 3.046546] thinkpad_acpi: Console audio control enabled, mode: monitor
(read only)
[ 3.047303] input: ThinkPad Extra Buttons as
/devices/platform/thinkpad_acpi/input/input12
[ 3.156410] ------------[ cut here ]------------
[ 3.156418] WARNING: CPU: 3 PID: 95 at drivers/gpu/drm/drm_irq.c:1162
drm_wait_one_vblank+0x16e/0x1c0 [drm]()
[ 3.156419] vblank not available on crtc 0, ret=-22
[ 3.156446] Modules linked in: thinkpad_acpi nvram msr i915 iTCO_wdt
r8169 mii iTCO_vendor_support ppdev drm_kms_helper pcspkr ideapad_laptop
snd_hda_codec_conexant snd_hda_codec_generic intel_rapl iosf_mbi
x86_pkg_temp_thermal intel_powerclamp coretemp kvm crct10dif_pclmul
crc32_pclmul crc32c_intel ath10k_pci ghash_clmulni_intel evdev ath10k_core
ath aesni_intel aes_x86_64 mac80211 lrw gf128mul glue_helper ablk_helper
input_leds cryptd psmouse mac_hid serio_raw drm cfg80211 intel_gtt mei_me
sparse_keymap snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm
snd_timer snd mei i2c_i801 i2c_algo_bit parport_pc rfkill soundcore battery
i2c_core parport lpc_ich shpchp video snd_soc_sst_acpi acpi_pad processor ac
button sch_fq_codel ip_tables x_tables ext4 crc16 mbcache jbd2
rtsx_usb_sdmmc led_class
[ 3.156452] mmc_core rtsx_usb sr_mod sd_mod cdrom atkbd libps2 ahci
libahci libata xhci_pci xhci_hcd usbcore scsi_mod usb_common i8042 serio
[ 3.156453] CPU: 3 PID: 95 Comm: kworker/u16:2 Not tainted 4.2.0-rc5-wl-
ath-g22f8a40 #1
[ 3.156454] Hardware name: LENOVO 80FG/Lenovo Z70-80, BIOS ABCN80WW
05/18/2015
[ 3.156457] Workqueue: events_unbound async_run_entry_fn
[ 3.156459] 0000000000000000 0000000012d6a20e ffff880097f6b6e8
ffffffff815665e9
[ 3.156460] 0000000000000000 ffff880097f6b740 ffff880097f6b728
ffffffff810737a6
[ 3.156462] 0000000100000000 ffff8802542d0800 ffff8802542d0800
0000000000000000
[ 3.156462] Call Trace:
[ 3.156466] [<ffffffff815665e9>] dump_stack+0x4c/0x6e
[ 3.156468] [<ffffffff810737a6>] warn_slowpath_common+0x86/0xc0
[ 3.156470] [<ffffffff81073835>] warn_slowpath_fmt+0x55/0x70
[ 3.156474] [<ffffffffa04103fe>] drm_wait_one_vblank+0x16e/0x1c0 [drm]
[ 3.156501] [<ffffffffa0719c92>] intel_finish_crtc_commit+0x162/0x170
[i915]
[ 3.156505] [<ffffffffa06041c0>]
drm_atomic_helper_commit_planes+0x170/0x200 [drm_kms_helper]
[ 3.156528] [<ffffffffa071aebd>] __intel_set_mode+0x8ad/0xb80 [i915]
[ 3.156550] [<ffffffffa0721d89>] intel_crtc_set_config+0x2c9/0x600
[i915]
[ 3.156556] [<ffffffffa04189f6>] drm_mode_set_config_internal+0x66/0x100
[drm]
[ 3.156558] [<ffffffffa0607542>] restore_fbdev_mode+0xc2/0xf0
[drm_kms_helper]
[ 3.156560] [<ffffffffa06094a9>]
drm_fb_helper_restore_fbdev_mode_unlocked+0x29/0x70 [drm_kms_helper]
[ 3.156562] [<ffffffffa0609512>] drm_fb_helper_set_par+0x22/0x40
[drm_kms_helper]
[ 3.156584] [<ffffffffa073060a>] intel_fbdev_set_par+0x1a/0x60 [i915]
[ 3.156587] [<ffffffff8131c8e8>] fbcon_init+0x538/0x5c0
[ 3.156589] [<ffffffff81395cee>] visual_init+0xce/0x130
[ 3.156591] [<ffffffff8139781e>] do_bind_con_driver+0x1be/0x3e0
[ 3.156593] [<ffffffff81397d79>] do_take_over_console+0x149/0x1a0
[ 3.156595] [<ffffffff8156578e>] ? printk+0x55/0x6b
[ 3.156597] [<ffffffff8131c9c7>] do_fbcon_takeover+0x57/0xb0
[ 3.156598] [<ffffffff81320b80>] fbcon_event_notify+0x660/0x760
[ 3.156599] [<ffffffff810920de>] notifier_call_chain+0x4e/0x80
[ 3.156601] [<ffffffff8109249b>]
__blocking_notifier_call_chain+0x4b/0x70
[ 3.156602] [<ffffffff810924d6>] blocking_notifier_call_chain+0x16/0x20
[ 3.156604] [<ffffffff8132697b>] fb_notifier_call_chain+0x1b/0x20
[ 3.156605] [<ffffffff81328b75>] register_framebuffer+0x215/0x350
[ 3.156607] [<ffffffffa060978f>]
drm_fb_helper_initial_config+0x25f/0xad0 [drm_kms_helper]
[ 3.156630] [<ffffffffa07310bb>] intel_fbdev_initial_config+0x1b/0x20
[i915]
[ 3.156631] [<ffffffff81093c1c>] async_run_entry_fn+0x4c/0x160
[ 3.156633] [<ffffffff8108b49b>] process_one_work+0x14b/0x440
[ 3.156635] [<ffffffff8108b7d8>] worker_thread+0x48/0x4a0
[ 3.156636] [<ffffffff8108b790>] ? process_one_work+0x440/0x440
[ 3.156638] [<ffffffff81091378>] kthread+0xd8/0xf0
[ 3.156640] [<ffffffff810912a0>] ? kthread_worker_fn+0x170/0x170
[ 3.156642] [<ffffffff8156bf5f>] ret_from_fork+0x3f/0x70
[ 3.156644] [<ffffffff810912a0>] ? kthread_worker_fn+0x170/0x170
[ 3.156645] ---[ end trace 1cec8dfb935ac1eb ]---
[ 3.625876] psmouse serio1: synaptics: queried max coordinates: x
[..5670], y [..4794]
[ 3.674485] psmouse serio1: synaptics: queried min coordinates: x
[1314..], y [1098..]
[ 3.771918] psmouse serio1: synaptics: Touchpad model: 1, fw: 8.1, id:
0x1e2b1, caps: 0xd00123/0x840300/0x2a800/0x0, board id: 2848, fw id: 1581875
[ 3.833163] input: SynPS/2 Synaptics TouchPad as
/devices/platform/i8042/serio1/input/input5
[ 3.834872] mousedev: PS/2 mouse device common for all mice
[ 3.960580] Console: switching to colour frame buffer device 240x67
[ 3.964619] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 3.964621] i915 0000:00:02.0: registered panic notifier
[ 3.965241] systemd[1]: Starting Load/Save Screen Backlight Brightness of
backlight:intel_backlight...
[ 3.965433] systemd[1]: Started Journal Service.
[ 4.054638] input: HDA Intel HDMI HDMI/DP,pcm=3 as
/devices/pci0000:00/0000:00:03.0/sound/card0/input13
[ 4.054714] input: HDA Intel HDMI HDMI/DP,pcm=7 as
/devices/pci0000:00/0000:00:03.0/sound/card0/input14
[ 4.054779] input: HDA Intel HDMI HDMI/DP,pcm=8 as
/devices/pci0000:00/0000:00:03.0/sound/card0/input15
[ 4.080021] systemd-journald[153]: Received request to flush runtime
journal from PID 1
[ 4.344252] Bluetooth: Core ver 2.20
[ 4.344269] NET: Registered protocol family 31
[ 4.344270] Bluetooth: HCI device and connection manager initialized
[ 4.344273] Bluetooth: HCI socket layer initialized
[ 4.344275] Bluetooth: L2CAP socket layer initialized
[ 4.344280] Bluetooth: SCO socket layer initialized
[ 4.347280] usbcore: registered new interface driver btusb
[ 4.348408] Bluetooth: hci0: using rampatch file:
qca/rampatch_usb_00000200.bin
[ 4.348410] Bluetooth: hci0: QCA: patch rome 0x200 build 0x299, firmware
rome 0x200 build 0x111
[ 4.394940] Bluetooth: hci0: using NVM file: qca/nvm_usb_00000200.bin
[ 4.458266] media: Linux media interface: v0.10
[ 4.466741] Linux video capture interface: v2.00
[ 4.511447] EXT4-fs (sda2): mounted filesystem with ordered data mode.
Opts: (null)
[ 4.574392] uvcvideo: Found UVC 1.00 device Lenovo EasyCamera (174f:14be)
[ 4.575619] input: Lenovo EasyCamera as
/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input16
[ 4.575676] usbcore: registered new interface driver uvcvideo
[ 4.575677] USB Video Class driver (1.1.1)
[ 4.636685] EXT4-fs (sda1): mounted filesystem with ordered data mode.
Opts: (null)
[ 5.194817] NET: Registered protocol family 3
[ 10.074119] r8169 0000:02:00.0 enp2s0: link down
[ 10.074156] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[ 11.435634] sha1_ssse3: Using AVX2 optimized SHA-1 implementation
[ 11.473436] Key type trusted registered
[ 11.481185] sha256_ssse3: Using AVX2 optimized SHA-256 implementation
[ 11.512271] Key type encrypted registered
[ 20.829248] snd_hda_intel 0000:00:1b.0: IRQ timing workaround is
activated for card #1. Suggest a bigger bdl_pos_adj.
[ 53.114596] r8169 0000:02:00.0 enp2s0: link up
[ 53.114603] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
[ 63.057634] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 63.057637] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 123.103317] ath10k_pci 0000:03:00.0: failed to load spec board file,
falling back to generic: -11
[ 125.144847] ath10k_pci 0000:03:00.0: unable to write to the device
[ 125.144851] ath10k_pci 0000:03:00.0: could not write otp (-110)
[ 125.144853] ath10k_pci 0000:03:00.0: failed to run otp: -110
[ 125.144854] ath10k_pci 0000:03:00.0: could not init core (-110)
[ 125.144871] ath10k_pci 0000:03:00.0: could not probe fw (-110)
[ 139.078214] r8169 0000:02:00.0 enp2s0: link down
[ 157.200178] r8169 0000:02:00.0 enp2s0: link up
[ 200.401123] r8169 0000:02:00.0 enp2s0: link down
[ 214.639115] r8169 0000:02:00.0 enp2s0: link up
[ 226.533452] ------------[ cut here ]------------
[ 226.533469] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:303
dev_watchdog+0x235/0x240()
[ 226.533472] NETDEV WATCHDOG: enp2s0 (r8169): transmit queue 0 timed out
[ 226.533473] Modules linked in: drbg ansi_cprng ecb ecryptfs cbc
sha256_ssse3 sha256_generic encrypted_keys sha1_mb mcryptd sha1_ssse3
sha1_generic hmac trusted tpm ax25 uvcvideo videobuf2_vmalloc
videobuf2_memops videobuf2_core v4l2_common videodev rtsx_usb_ms media
memstick btusb btrtl btbcm btintel bluetooth snd_hda_codec_hdmi joydev
mousedev thinkpad_acpi nvram msr i915 iTCO_wdt r8169 mii iTCO_vendor_support
ppdev drm_kms_helper pcspkr ideapad_laptop snd_hda_codec_conexant
snd_hda_codec_generic intel_rapl iosf_mbi x86_pkg_temp_thermal
intel_powerclamp coretemp kvm crct10dif_pclmul crc32_pclmul crc32c_intel
ath10k_pci ghash_clmulni_intel evdev ath10k_core ath aesni_intel aes_x86_64
mac80211 lrw gf128mul glue_helper ablk_helper input_leds cryptd psmouse
mac_hid serio_raw drm cfg80211 intel_gtt mei_me
[ 226.533517] sparse_keymap snd_hda_intel snd_hda_codec snd_hda_core
snd_hwdep snd_pcm snd_timer snd mei i2c_i801 i2c_algo_bit parport_pc rfkill
soundcore battery i2c_core parport lpc_ich shpchp video snd_soc_sst_acpi
acpi_pad processor ac button sch_fq_codel ip_tables x_tables ext4 crc16
mbcache jbd2 rtsx_usb_sdmmc led_class mmc_core rtsx_usb sr_mod sd_mod cdrom
atkbd libps2 ahci libahci libata xhci_pci xhci_hcd usbcore scsi_mod
usb_common i8042 serio
[ 226.533548] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W
4.2.0-rc5-wl-ath-g22f8a40 #1
[ 226.533549] Hardware name: LENOVO 80FG/Lenovo Z70-80, BIOS ABCN80WW
05/18/2015
[ 226.533551] 0000000000000000 b6f451eb2b6fc5f0 ffff88025ec43d48
ffffffff815665e9
[ 226.533554] 0000000000000000 ffff88025ec43da0 ffff88025ec43d88
ffffffff810737a6
[ 226.533557] ffff88025ec43db8 0000000000000000 ffff880253f7a680
0000000000000001
[ 226.533559] Call Trace:
[ 226.533564] <IRQ> [<ffffffff815665e9>] dump_stack+0x4c/0x6e
[ 226.533571] [<ffffffff810737a6>] warn_slowpath_common+0x86/0xc0
[ 226.533574] [<ffffffff81073835>] warn_slowpath_fmt+0x55/0x70
[ 226.533577] [<ffffffff81491e25>] dev_watchdog+0x235/0x240
[ 226.533579] [<ffffffff81491bf0>] ? qdisc_rcu_free+0x40/0x40
[ 226.533585] [<ffffffff810dc269>] call_timer_fn+0x39/0x130
[ 226.533587] [<ffffffff81491bf0>] ? qdisc_rcu_free+0x40/0x40
[ 226.533590] [<ffffffff810dc587>] run_timer_softirq+0x227/0x2d0
[ 226.533593] [<ffffffff8104daf2>] ? lapic_next_deadline+0x32/0x40
[ 226.533596] [<ffffffff8107754f>] __do_softirq+0xcf/0x290
[ 226.533599] [<ffffffff81077883>] irq_exit+0xa3/0xb0
[ 226.533604] [<ffffffff8156e6b6>] smp_apic_timer_interrupt+0x46/0x60
[ 226.533607] [<ffffffff8156c9bb>] apic_timer_interrupt+0x6b/0x70
[ 226.533609] <EOI> [<ffffffff81428f14>] ?
cpuidle_enter_state+0x124/0x290
[ 226.533614] [<ffffffff81428eef>] ? cpuidle_enter_state+0xff/0x290
[ 226.533617] [<ffffffff814290b7>] cpuidle_enter+0x17/0x20
[ 226.533620] [<ffffffff810b4c62>] call_cpuidle+0x32/0x60
[ 226.533623] [<ffffffff81429093>] ? cpuidle_select+0x13/0x20
[ 226.533626] [<ffffffff810b4f24>] cpu_startup_entry+0x294/0x370
[ 226.533628] [<ffffffff8104c5ba>] start_secondary+0x18a/0x1c0
[ 226.533631] ---[ end trace 1cec8dfb935ac1ec ]---
[ 226.548960] r8169 0000:02:00.0 enp2s0: link up
[ 230.388663] r8169 0000:02:00.0 enp2s0: link down
[ 230.388669] r8169 0000:02:00.0 enp2s0: link down
Anish Tondwalkar
2015-08-10 04:53:25 UTC
Permalink
Post by Anish Tondwalkar
kernel 22f8a4083883eca3e8a3175315d67d2a04392466 from
https://github.com/vvanpo/linux/commit
Oops, that's https://github.com/vvanpo/linux/tree/fork-ath , sorry
Michal Kazior
2015-08-10 06:15:31 UTC
Permalink
Post by Anish Tondwalkar
Post by Victor van Poppelen
Post by Michal Kazior
Can you load ath10k_pci with irq_mode=1 module parameter, please?
Something broke in recent kernel for msi-ranged irqs on ath10k. Enrico
is trying to bisect.
In the meantime forcing shared interrupts is the only workaround.
It works!
I'm trying this with ath10k_pci irq_mode=1 and ath10k_core skip_otp=y on
kernel 22f8a4083883eca3e8a3175315d67d2a04392466 from
https://github.com/vvanpo/linux/commit (I think that's just kvalo/ath with
Michał's changes) on my Lenovo Z70-80. It's not working (did I extract the
firmware wrong? can someone send me the correct fw?)
Here's dmesg: (I think the enp2s0 error are probably unrelated)
[...]
Post by Anish Tondwalkar
[ 63.057634] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 63.057637] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 123.103317] ath10k_pci 0000:03:00.0: failed to load spec board file,
falling back to generic: -11
[ 125.144847] ath10k_pci 0000:03:00.0: unable to write to the device
[ 125.144851] ath10k_pci 0000:03:00.0: could not write otp (-110)
[ 125.144853] ath10k_pci 0000:03:00.0: failed to run otp: -110
[ 125.144854] ath10k_pci 0000:03:00.0: could not init core (-110)
[ 125.144871] ath10k_pci 0000:03:00.0: could not probe fw (-110)
Looks like you've assembled the firmware binary incorrectly. The otp
binary is too big. You might want to try unofficial fw binary from
this pull request instead:

https://github.com/kvalo/ath10k-firmware/pull/2


Michal
Anish Tondwalkar
2015-08-10 06:41:20 UTC
Permalink
No dice. Do note that I'm on 0014 not 003e, so I wouldn't expect that
to work. This is using sumdog's board.bin and firmware-4.bin saved as
both firmware-4.bin and firmware-5.bin (I think Victor's patched
kernel uses -5 rather than -4). Here's dmesg:

[ 2.101023] random: nonblocking pool is initialized
[ 2.103269] systemd[1]: Started udev Kernel Device Manager.
[ 2.225591] input: Lid Switch as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
[ 2.225635] ACPI: Lid Switch [LID0]
[ 2.225688] input: Power Button as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input3
[ 2.225691] ACPI: Power Button [PWRB]
[ 2.225746] input: Power Button as
/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
[ 2.225748] ACPI: Power Button [PWRF]
[ 2.226934] ACPI: AC Adapter [ADP0] (on-line)
[ 2.288391] clocksource: Switched to clocksource tsc
[ 2.298991] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 2.313748] ACPI Warning: SystemIO range
0x0000000000004040-0x000000000000405F conflicts with OpRegion
0x0000000000004040-0x000000000000404F (\_SB_.PCI0.SBUS.SMBI)
(20150619/utaddress-254)
[ 2.313756] ACPI: If an ACPI driver is available for this device,
you should use it instead of the native driver
[ 2.325804] [drm] Initialized drm 1.1.0 20060810
[ 2.361576] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 2.369430] r8169 0000:02:00.0 eth0: RTL8168g/8111g at
0xffffc90000e9c000, 68:f7:28:e2:28:96, XID 10900800 IRQ 48
[ 2.369435] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200
bytes, tx checksumming: ko]
[ 2.382334] ACPI: Battery Slot [BAT0] (battery present)
[ 2.444234] i915: unknown parameter 'i915_enable_rc6' ignored
[ 2.444929] [drm] Memory usable by graphics device = 4096M
[ 2.444932] checking generic (b0000000 7f0000) vs hw (b0000000 10000000)
[ 2.444933] fb: switching to inteldrmfb from VESA VGA
[ 2.444953] Console: switching to colour dummy device 80x25
[ 2.445033] [drm] Replacing VGA console driver
[ 2.450559] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.450561] [drm] Driver supports precise vblank timestamp query.
[ 2.450651] vgaarb: device changed decodes:
PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 2.455450] snd_hda_codec_conexant hdaudioC1D0: CX20751/2: BIOS auto-probing.
[ 2.455751] snd_hda_codec_conexant hdaudioC1D0: autoconfig for
CX20751/2: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[ 2.455754] snd_hda_codec_conexant hdaudioC1D0: speaker_outs=0
(0x0/0x0/0x0/0x0/0x0)
[ 2.455757] snd_hda_codec_conexant hdaudioC1D0: hp_outs=1
(0x16/0x0/0x0/0x0/0x0)
[ 2.455759] snd_hda_codec_conexant hdaudioC1D0: mono: mono_out=0x0
[ 2.455760] snd_hda_codec_conexant hdaudioC1D0: inputs:
[ 2.455763] snd_hda_codec_conexant hdaudioC1D0: Internal Mic=0x1a
[ 2.455765] snd_hda_codec_conexant hdaudioC1D0: Mic=0x19
[ 2.456546] snd_hda_codec_conexant hdaudioC1D0: Enable sync_write
for stable communication
[ 2.460126] input: HDA Digital PCBeep as
/devices/pci0000:00/0000:00:1b.0/sound/card1/input5
[ 2.460263] input: HDA Intel PCH Mic as
/devices/pci0000:00/0000:00:1b.0/sound/card1/input6
[ 2.460299] input: HDA Intel PCH Headphone as
/devices/pci0000:00/0000:00:1b.0/sound/card1/input7
[ 2.465447] fbcon: inteldrmfb (fb0) is primary device
[ 2.465741] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 2.466047] input: Video Bus as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input8
[ 2.466116] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops
i915_audio_component_bind_ops [i915])
[ 2.466119] [drm] Initialized i915 1.6.0 20150522 for 0000:00:02.0 on minor 0
[ 2.491339] systemd[1]: Found device ST1000LM014-SSHD-8GB 1.
[ 2.496511] input: PC Speaker as /devices/platform/pcspkr/input/input9
[ 2.499787] input: Ideapad extra buttons as
/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/input/input10
[ 2.506026] AVX2 version of gcm_enc/dec engaged.
[ 2.506027] AES CTR mode by8 optimization enabled
[ 2.544300] input: HDA Intel HDMI HDMI/DP,pcm=3 as
/devices/pci0000:00/0000:00:03.0/sound/card0/input12
[ 2.544322] input: HDA Intel HDMI HDMI/DP,pcm=7 as
/devices/pci0000:00/0000:00:03.0/sound/card0/input13
[ 2.544342] input: HDA Intel HDMI HDMI/DP,pcm=8 as
/devices/pci0000:00/0000:00:03.0/sound/card0/input14
[ 2.551358] ath10k_pci 0000:03:00.0: limiting irq mode to: 1
[ 2.551360] ath10k_pci 0000:03:00.0: pci irq legacy interrupts 0
irq_mode 1 reset_mode 0
[ 2.577100] iTCO_vendor_support: vendor-support=0
[ 2.577740] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[ 2.577773] iTCO_wdt: Found a Wildcat Point_LP TCO device
(Version=2, TCOBASE=0x1860)
[ 2.577859] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 2.591630] r8169 0000:02:00.0 enp2s0: renamed from eth0
[ 2.593051] kvm: disabled by bios
[ 2.660744] ppdev: user-space parallel port driver
[ 2.663243] intel_rapl: Found RAPL domain package
[ 2.663244] intel_rapl: Found RAPL domain core
[ 2.663245] intel_rapl: Found RAPL domain uncore
[ 2.663246] intel_rapl: Found RAPL domain dram
[ 2.732055] ------------[ cut here ]------------
[ 2.732062] WARNING: CPU: 2 PID: 108 at
drivers/gpu/drm/drm_irq.c:1162 drm_wait_one_vblank+0x16e/0x1c0 [drm]()
[ 2.732062] vblank not available on crtc 0, ret=-22
[ 2.732085] Modules linked in: intel_rapl iosf_mbi ppdev
x86_pkg_temp_thermal intel_powerclamp coretemp kvm iTCO_wdt
iTCO_vendor_support evdev ath10k_pci ath10k_core ath
snd_hda_codec_hdmi input_leds mac_hid serio_raw mac80211
crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel
aesni_intel aes_x86_64 psmouse lrw gf128mul pcspkr ideapad_laptop
glue_helper ablk_helper cryptd cfg80211 snd_hda_codec_conexant
snd_hda_codec_generic sparse_keymap i915 snd_hda_intel parport_pc
r8169 mii snd_hda_codec rfkill drm_kms_helper snd_hda_core snd_hwdep
snd_pcm snd_timer snd drm intel_gtt i2c_algo_bit i2c_i801 parport
mei_me mei soundcore battery shpchp i2c_core lpc_ich video
snd_soc_sst_acpi processor ac acpi_pad button sch_fq_codel ip_tables
x_tables ext4 crc16 mbcache jbd2 rtsx_usb_sdmmc led_class mmc_core
[ 2.732089] rtsx_usb sr_mod cdrom sd_mod atkbd libps2 ahci libahci
xhci_pci libata xhci_hcd usbcore scsi_mod usb_common i8042 serio
[ 2.732091] CPU: 2 PID: 108 Comm: kworker/u16:3 Not tainted
4.2.0-rc5-wl-ath-g22f8a40 #1
[ 2.732092] Hardware name: LENOVO 80FG/Lenovo Z70-80, BIOS ABCN80WW
05/18/2015
[ 2.732095] Workqueue: events_unbound async_run_entry_fn
[ 2.732097] 0000000000000000 0000000085441b82 ffff880097f9b6e8
ffffffff815665e9
[ 2.732098] 0000000000000000 ffff880097f9b740 ffff880097f9b728
ffffffff810737a6
[ 2.732099] 0000000100000000 ffff880253fa1000 ffff880253fa1000
0000000000000000
[ 2.732099] Call Trace:
[ 2.732104] [<ffffffff815665e9>] dump_stack+0x4c/0x6e
[ 2.732106] [<ffffffff810737a6>] warn_slowpath_common+0x86/0xc0
[ 2.732108] [<ffffffff81073835>] warn_slowpath_fmt+0x55/0x70
[ 2.732113] [<ffffffffa02f33fe>] drm_wait_one_vblank+0x16e/0x1c0 [drm]
[ 2.732143] [<ffffffffa0444c92>] intel_finish_crtc_commit+0x162/0x170 [i915]
[ 2.732147] [<ffffffffa03931c0>]
drm_atomic_helper_commit_planes+0x170/0x200 [drm_kms_helper]
[ 2.732170] [<ffffffffa0445ebd>] __intel_set_mode+0x8ad/0xb80 [i915]
[ 2.732193] [<ffffffffa044cd89>] intel_crtc_set_config+0x2c9/0x600 [i915]
[ 2.732200] [<ffffffffa02fb9f6>]
drm_mode_set_config_internal+0x66/0x100 [drm]
[ 2.732203] [<ffffffffa0396542>] restore_fbdev_mode+0xc2/0xf0
[drm_kms_helper]
[ 2.732206] [<ffffffffa03984a9>]
drm_fb_helper_restore_fbdev_mode_unlocked+0x29/0x70 [drm_kms_helper]
[ 2.732208] [<ffffffffa0398512>] drm_fb_helper_set_par+0x22/0x40
[drm_kms_helper]
[ 2.732229] [<ffffffffa045b60a>] intel_fbdev_set_par+0x1a/0x60 [i915]
[ 2.732233] [<ffffffff8131c8e8>] fbcon_init+0x538/0x5c0
[ 2.732235] [<ffffffff81395cee>] visual_init+0xce/0x130
[ 2.732236] [<ffffffff8139781e>] do_bind_con_driver+0x1be/0x3e0
[ 2.732238] [<ffffffff81397d79>] do_take_over_console+0x149/0x1a0
[ 2.732241] [<ffffffff8156578e>] ? printk+0x55/0x6b
[ 2.732243] [<ffffffff8131c9c7>] do_fbcon_takeover+0x57/0xb0
[ 2.732244] [<ffffffff81320b80>] fbcon_event_notify+0x660/0x760
[ 2.732246] [<ffffffff810920de>] notifier_call_chain+0x4e/0x80
[ 2.732247] [<ffffffff8109249b>] __blocking_notifier_call_chain+0x4b/0x70
[ 2.732249] [<ffffffff810924d6>] blocking_notifier_call_chain+0x16/0x20
[ 2.732251] [<ffffffff8132697b>] fb_notifier_call_chain+0x1b/0x20
[ 2.732253] [<ffffffff81328b75>] register_framebuffer+0x215/0x350
[ 2.732256] [<ffffffffa039878f>]
drm_fb_helper_initial_config+0x25f/0xad0 [drm_kms_helper]
[ 2.732277] [<ffffffffa045c0bb>] intel_fbdev_initial_config+0x1b/0x20 [i915]
[ 2.732278] [<ffffffff81093c1c>] async_run_entry_fn+0x4c/0x160
[ 2.732280] [<ffffffff8108b49b>] process_one_work+0x14b/0x440
[ 2.732282] [<ffffffff8108b7d8>] worker_thread+0x48/0x4a0
[ 2.732284] [<ffffffff8108b790>] ? process_one_work+0x440/0x440
[ 2.732286] [<ffffffff81091378>] kthread+0xd8/0xf0
[ 2.732288] [<ffffffff810912a0>] ? kthread_worker_fn+0x170/0x170
[ 2.732290] [<ffffffff8156bf5f>] ret_from_fork+0x3f/0x70
[ 2.732292] [<ffffffff810912a0>] ? kthread_worker_fn+0x170/0x170
[ 2.732293] ---[ end trace f2c5c96804cf7499 ]---
[ 2.819150] Non-volatile memory driver v1.3
[ 2.821075] thinkpad_acpi: ThinkPad ACPI Extras v0.25
[ 2.821076] thinkpad_acpi: http://ibm-acpi.sf.net/
[ 2.821076] thinkpad_acpi: ThinkPad BIOS ABCN80WW, EC unknown
[ 2.821077] thinkpad_acpi: Lenovo Lenovo Z70-80, model 80FG
[ 2.821460] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
[ 2.821512] thinkpad_acpi: Standard ACPI backlight interface
available, not loading native one
[ 2.821575] thinkpad_acpi: Console audio control enabled, mode:
monitor (read only)
[ 2.822344] input: ThinkPad Extra Buttons as
/devices/platform/thinkpad_acpi/input/input15
[ 2.837490] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 2.837491] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 3.456357] psmouse serio1: synaptics: queried max coordinates: x
[..5670], y [..4794]
[ 3.503665] psmouse serio1: synaptics: queried min coordinates: x
[1314..], y [1098..]
[ 3.556396] Console: switching to colour frame buffer device 240x67
[ 3.560013] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 3.560013] i915 0000:00:02.0: registered panic notifier
[ 3.560277] systemd[1]: Started Journal Service.
[ 3.597423] psmouse serio1: synaptics: Touchpad model: 1, fw: 8.1,
id: 0x1e2b1, caps: 0xd00123/0x840300/0x2a800/0x0, board id: 2848, fw
id: 1581875
[ 3.645737] systemd-journald[182]: Received request to flush
runtime journal from PID 1
[ 3.654655] input: SynPS/2 Synaptics TouchPad as
/devices/platform/i8042/serio1/input/input11
[ 3.812532] mousedev: PS/2 mouse device common for all mice
[ 3.881734] EXT4-fs (sda1): mounted filesystem with ordered data
mode. Opts: (null)
[ 4.129158] media: Linux media interface: v0.10
[ 4.147627] Linux video capture interface: v2.00
[ 4.150048] Bluetooth: Core ver 2.20
[ 4.150068] NET: Registered protocol family 31
[ 4.150070] Bluetooth: HCI device and connection manager initialized
[ 4.150073] Bluetooth: HCI socket layer initialized
[ 4.150076] Bluetooth: L2CAP socket layer initialized
[ 4.150086] Bluetooth: SCO socket layer initialized
[ 4.160999] usbcore: registered new interface driver btusb
[ 4.167040] Bluetooth: hci0: using rampatch file:
qca/rampatch_usb_00000200.bin
[ 4.167043] Bluetooth: hci0: QCA: patch rome 0x200 build 0x299,
firmware rome 0x200 build 0x111
[ 4.186750] EXT4-fs (sda2): mounted filesystem with ordered data
mode. Opts: (null)
[ 4.223526] Bluetooth: hci0: using NVM file: qca/nvm_usb_00000200.bin
[ 4.243536] uvcvideo: Found UVC 1.00 device Lenovo EasyCamera (174f:14be)
[ 4.244648] input: Lenovo EasyCamera as
/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input16
[ 4.244717] usbcore: registered new interface driver uvcvideo
[ 4.244720] USB Video Class driver (1.1.1)
[ 7.078266] sha1_ssse3: Using AVX2 optimized SHA-1 implementation
[ 7.112608] Key type trusted registered
[ 7.120399] sha256_ssse3: Using AVX2 optimized SHA-256 implementation
[ 7.151521] Key type encrypted registered
[ 19.782015] snd_hda_intel 0000:00:1b.0: IRQ timing workaround is
activated for card #1. Suggest a bigger bdl_pos_adj.
[ 29.442534] r8169 0000:02:00.0 enp2s0: link down
[ 29.442580] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[ 31.750952] r8169 0000:02:00.0 enp2s0: link up
[ 31.750961] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
[ 56.041855] r8169 0000:02:00.0 enp2s0: link down
[ 62.884606] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with
error -2
[ 62.884609] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 70.304540] r8169 0000:02:00.0 enp2s0: link up
[ 122.932551] ath10k_pci 0000:03:00.0: failed to load spec board
file, falling back to generic: -11
[ 124.112139] ath10k_pci 0000:03:00.0: firmware crashed! (uuid
8a379073-8ebc-49bc-a0a3-dcdcaa2f375a)
[ 124.112154] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545 fallback) fw killer-n1525-fw api 5
htt-ver 0.0 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
features
[ 124.112156] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
[ 124.114175] ath10k_pci 0000:03:00.0: firmware register dump:
[ 124.114177] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x000015B3
0x000A012D 0x00955B31
[ 124.114179] ath10k_pci 0000:03:00.0: [04]: 0x000A012D 0x00060330
0x00000016 0x84785006
[ 124.114181] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00400000
0x00400600 0x00000001
[ 124.114182] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000
0x00931C61 0x00931C7D
[ 124.114184] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x009287BD
0x00931DBA 0x00000000
[ 124.114186] ath10k_pci 0000:03:00.0: [20]: 0x400A012D 0x0040E2B0
0x00955A00 0x00404590
[ 124.114187] ath10k_pci 0000:03:00.0: [24]: 0x809287D9 0x0040E310
0x7A508DF8 0xC00A012D
[ 124.114189] ath10k_pci 0000:03:00.0: [28]: 0x809288D7 0x0040E340
0x00000000 0xFFF08040
[ 124.114191] ath10k_pci 0000:03:00.0: [32]: 0x809290FE 0x0040E360
0x00400000 0x00400600
[ 124.114192] ath10k_pci 0000:03:00.0: [36]: 0x80929205 0x0040E380
0x00000000 0x00400600
[ 124.114194] ath10k_pci 0000:03:00.0: [40]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 124.114196] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x0040E3D0
0x009BB001 0x00040020
[ 124.114197] ath10k_pci 0000:03:00.0: [48]: 0x00401BF0 0x00000001
0x00404B9C 0x00400000
[ 124.114199] ath10k_pci 0000:03:00.0: [52]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 124.114201] ath10k_pci 0000:03:00.0: [56]: 0xFAD50700 0xE43458C2
0x9DCD6B13 0x887A8F31
[ 125.110848] ath10k_pci 0000:03:00.0: failed to receive control
response completion, polling..
[ 126.111661] ath10k_pci 0000:03:00.0: ctl_resp never came in (-110)
[ 126.111665] ath10k_pci 0000:03:00.0: failed to connect to HTC: -110
[ 126.192421] ath10k_pci 0000:03:00.0: could not init core (-110)
[ 126.192458] ath10k_pci 0000:03:00.0: could not probe fw (-110)
[ 126.201743] ath10k_pci 0000:03:00.0: cannot restart a device that
hasn't been started
[ 126.345199] r8169 0000:02:00.0 enp2s0: link down
[ 136.200348] r8169 0000:02:00.0 enp2s0: link up
[ 148.466435] ------------[ cut here ]------------
[ 148.466442] WARNING: CPU: 2 PID: 0 at net/sched/sch_generic.c:303
dev_watchdog+0x235/0x240()
[ 148.466444] NETDEV WATCHDOG: enp2s0 (r8169): transmit queue 0 timed out
[ 148.466445] Modules linked in: drbg ansi_cprng ecb ecryptfs cbc
sha256_ssse3 sha256_generic encrypted_keys sha1_mb mcryptd sha1_ssse3
sha1_generic hmac trusted tpm uvcvideo videobuf2_vmalloc btusb
videobuf2_memops btrtl videobuf2_core btbcm btintel v4l2_common
bluetooth videodev rtsx_usb_ms media memstick joydev mousedev
thinkpad_acpi nvram msr intel_rapl iosf_mbi ppdev x86_pkg_temp_thermal
intel_powerclamp coretemp kvm iTCO_wdt iTCO_vendor_support evdev
ath10k_pci ath10k_core ath snd_hda_codec_hdmi input_leds mac_hid
serio_raw mac80211 crct10dif_pclmul crc32_pclmul crc32c_intel
ghash_clmulni_intel aesni_intel aes_x86_64 psmouse lrw gf128mul pcspkr
ideapad_laptop glue_helper ablk_helper cryptd cfg80211
snd_hda_codec_conexant snd_hda_codec_generic sparse_keymap i915
snd_hda_intel parport_pc r8169
[ 148.466481] mii snd_hda_codec rfkill drm_kms_helper snd_hda_core
snd_hwdep snd_pcm snd_timer snd drm intel_gtt i2c_algo_bit i2c_i801
parport mei_me mei soundcore battery shpchp i2c_core lpc_ich video
snd_soc_sst_acpi processor ac acpi_pad button sch_fq_codel ip_tables
x_tables ext4 crc16 mbcache jbd2 rtsx_usb_sdmmc led_class mmc_core
rtsx_usb sr_mod cdrom sd_mod atkbd libps2 ahci libahci xhci_pci libata
xhci_hcd usbcore scsi_mod usb_common i8042 serio
[ 148.466507] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G W
4.2.0-rc5-wl-ath-g22f8a40 #1
[ 148.466509] Hardware name: LENOVO 80FG/Lenovo Z70-80, BIOS ABCN80WW
05/18/2015
[ 148.466510] 0000000000000000 65df9dde1ccac394 ffff88025ec83d48
ffffffff815665e9
[ 148.466512] 0000000000000000 ffff88025ec83da0 ffff88025ec83d88
ffffffff810737a6
[ 148.466514] 0000000000000023 0000000000000000 ffff880253b62680
0000000000000002
[ 148.466516] Call Trace:
[ 148.466517] <IRQ> [<ffffffff815665e9>] dump_stack+0x4c/0x6e
[ 148.466524] [<ffffffff810737a6>] warn_slowpath_common+0x86/0xc0
[ 148.466526] [<ffffffff81073835>] warn_slowpath_fmt+0x55/0x70
[ 148.466529] [<ffffffff81491e25>] dev_watchdog+0x235/0x240
[ 148.466531] [<ffffffff81491bf0>] ? qdisc_rcu_free+0x40/0x40
[ 148.466533] [<ffffffff810dc269>] call_timer_fn+0x39/0x130
[ 148.466535] [<ffffffff81491bf0>] ? qdisc_rcu_free+0x40/0x40
[ 148.466537] [<ffffffff810dc587>] run_timer_softirq+0x227/0x2d0
[ 148.466539] [<ffffffff8104daf2>] ? lapic_next_deadline+0x32/0x40
[ 148.466542] [<ffffffff8107754f>] __do_softirq+0xcf/0x290
[ 148.466544] [<ffffffff81077883>] irq_exit+0xa3/0xb0
[ 148.466546] [<ffffffff8156e6b6>] smp_apic_timer_interrupt+0x46/0x60
[ 148.466548] [<ffffffff8156c9bb>] apic_timer_interrupt+0x6b/0x70
[ 148.466549] <EOI> [<ffffffff810de612>] ? hrtimer_get_next_event+0x42/0x70
[ 148.466554] [<ffffffff81428f14>] ? cpuidle_enter_state+0x124/0x290
[ 148.466556] [<ffffffff81428eef>] ? cpuidle_enter_state+0xff/0x290
[ 148.466559] [<ffffffff814290b7>] cpuidle_enter+0x17/0x20
[ 148.466561] [<ffffffff810b4c62>] call_cpuidle+0x32/0x60
[ 148.466563] [<ffffffff81429093>] ? cpuidle_select+0x13/0x20
[ 148.466565] [<ffffffff810b4f24>] cpu_startup_entry+0x294/0x370
[ 148.466568] [<ffffffff8104c5ba>] start_secondary+0x18a/0x1c0
[ 148.466569] ---[ end trace f2c5c96804cf749a ]---
[ 148.482004] r8169 0000:02:00.0 enp2s0: link up
Post by Michal Kazior
Post by Anish Tondwalkar
Post by Victor van Poppelen
Post by Michal Kazior
Can you load ath10k_pci with irq_mode=1 module parameter, please?
Something broke in recent kernel for msi-ranged irqs on ath10k. Enrico
is trying to bisect.
In the meantime forcing shared interrupts is the only workaround.
It works!
I'm trying this with ath10k_pci irq_mode=1 and ath10k_core skip_otp=y on
kernel 22f8a4083883eca3e8a3175315d67d2a04392466 from
https://github.com/vvanpo/linux/commit (I think that's just kvalo/ath with
Michał's changes) on my Lenovo Z70-80. It's not working (did I extract the
firmware wrong? can someone send me the correct fw?)
Here's dmesg: (I think the enp2s0 error are probably unrelated)
[...]
Post by Anish Tondwalkar
[ 63.057634] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 63.057637] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 123.103317] ath10k_pci 0000:03:00.0: failed to load spec board file,
falling back to generic: -11
[ 125.144847] ath10k_pci 0000:03:00.0: unable to write to the device
[ 125.144851] ath10k_pci 0000:03:00.0: could not write otp (-110)
[ 125.144853] ath10k_pci 0000:03:00.0: failed to run otp: -110
[ 125.144854] ath10k_pci 0000:03:00.0: could not init core (-110)
[ 125.144871] ath10k_pci 0000:03:00.0: could not probe fw (-110)
Looks like you've assembled the firmware binary incorrectly. The otp
binary is too big. You might want to try unofficial fw binary from
https://github.com/kvalo/ath10k-firmware/pull/2
Michal
--
Anish

Q: Why is this email two sentences or less?
A: http://two.sentenc.es
Michal Kazior
2015-08-10 08:15:59 UTC
Permalink
Post by Anish Tondwalkar
No dice. Do note that I'm on 0014 not 003e, so I wouldn't expect that
to work. This is using sumdog's board.bin and firmware-4.bin saved as
both firmware-4.bin and firmware-5.bin (I think Victor's patched
[...]
Post by Anish Tondwalkar
[ 62.884606] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 62.884609] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 70.304540] r8169 0000:02:00.0 enp2s0: link up
[ 122.932551] ath10k_pci 0000:03:00.0: failed to load spec board
file, falling back to generic: -11
[ 124.112139] ath10k_pci 0000:03:00.0: firmware crashed! (uuid
8a379073-8ebc-49bc-a0a3-dcdcaa2f375a)
[ 124.112154] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545 fallback) fw killer-n1525-fw api 5
htt-ver 0.0 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
features
[ 124.112156] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
[ 124.114177] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x000015B3
0x000A012D 0x00955B31
[ 124.114179] ath10k_pci 0000:03:00.0: [04]: 0x000A012D 0x00060330
0x00000016 0x84785006
[ 124.114181] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00400000
0x00400600 0x00000001
[ 124.114182] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000
0x00931C61 0x00931C7D
[ 124.114184] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x009287BD
0x00931DBA 0x00000000
[ 124.114186] ath10k_pci 0000:03:00.0: [20]: 0x400A012D 0x0040E2B0
0x00955A00 0x00404590
[ 124.114187] ath10k_pci 0000:03:00.0: [24]: 0x809287D9 0x0040E310
0x7A508DF8 0xC00A012D
[ 124.114189] ath10k_pci 0000:03:00.0: [28]: 0x809288D7 0x0040E340
0x00000000 0xFFF08040
[ 124.114191] ath10k_pci 0000:03:00.0: [32]: 0x809290FE 0x0040E360
0x00400000 0x00400600
[ 124.114192] ath10k_pci 0000:03:00.0: [36]: 0x80929205 0x0040E380
0x00000000 0x00400600
[ 124.114194] ath10k_pci 0000:03:00.0: [40]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 124.114196] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x0040E3D0
0x009BB001 0x00040020
[ 124.114197] ath10k_pci 0000:03:00.0: [48]: 0x00401BF0 0x00000001
0x00404B9C 0x00400000
[ 124.114199] ath10k_pci 0000:03:00.0: [52]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 124.114201] ath10k_pci 0000:03:00.0: [56]: 0xFAD50700 0xE43458C2
0x9DCD6B13 0x887A8F31
[ 125.110848] ath10k_pci 0000:03:00.0: failed to receive control
response completion, polling..
This register dump (0x000A012D) suggests you dont have the necessary
patch for qca6164. Both qca6164 and qca6174 sould work fine with the
same firmware.

Do note that firmware -X numbering yields no functional changes.


Michal
Michal Kazior
2015-08-10 08:48:54 UTC
Permalink
Post by Michal Kazior
This register dump (0x000A012D) suggests you dont have the necessary
patch for qca6164.
This patch?
https://github.com/vvanpo/linux/commit/22f8a4083883eca3e8a3175315d67d2a04392466
Yes. Make sure you have the right (i.e. including the change) ath10k
module loaded, please.


Michal
Kalle Valo
2015-08-10 12:14:35 UTC
Permalink
Post by Michal Kazior
This patch?
https://github.com/vvanpo/linux/commit/22f8a4083883eca3e8a3175315d67d2a04392466
Yes. Make sure you have the right (i.e. including the change) ath10k
module loaded, please.
For test patches I recommend adding a printk to make it easier to verify
that the patch is really used. It's so easy to do something wrong and
use wrong module.
--
Kalle Valo
Anish Tondwalkar
2015-08-10 13:45:41 UTC
Permalink
Post by Michal Kazior
Yes. Make sure you have the right (i.e. including the change) ath10k
module loaded, please.
/l/modules ❯❯❯ modinfo ath10k_core

filename:
/lib/modules/4.2.0-rc5-wl-ath-g22f8a40/kernel/drivers/net/wireless/ath/ath10k/ath10k_core.ko.gz
license: Dual BSD/GPL
description: Core module for QCA988X PCIe devices.
author: Qualcomm Atheros
depends: mac80211,cfg80211,ath
intree: Y
vermagic: 4.2.0-rc5-wl-ath-g22f8a40 SMP preempt mod_unload modversions
parm: debug_mask:Debugging mask (uint)
parm: uart_print:Uart target debugging (bool)
parm: skip_otp:Skip otp failure for calibration in testmode (bool)
parm: cryptmode:Crypto mode: 0-hardware, 1-software (uint)


afiak this should be right. I'll add a printk just to be sure and send
out that dmesg log after I get to work.
--
Anish
Michal Kazior
2015-08-10 14:00:45 UTC
Permalink
Post by Anish Tondwalkar
Post by Michal Kazior
Yes. Make sure you have the right (i.e. including the change) ath10k
module loaded, please.
/l/modules ❯❯❯ modinfo ath10k_core

/lib/modules/4.2.0-rc5-wl-ath-g22f8a40/kernel/drivers/net/wireless/ath/ath10k/ath10k_core.ko.gz
license: Dual BSD/GPL
description: Core module for QCA988X PCIe devices.
author: Qualcomm Atheros
depends: mac80211,cfg80211,ath
intree: Y
vermagic: 4.2.0-rc5-wl-ath-g22f8a40 SMP preempt mod_unload modversions
parm: debug_mask:Debugging mask (uint)
parm: uart_print:Uart target debugging (bool)
parm: skip_otp:Skip otp failure for calibration in testmode (bool)
parm: cryptmode:Crypto mode: 0-hardware, 1-software (uint)
afiak this should be right. I'll add a printk just to be sure and send
out that dmesg log after I get to work
If you intend to compare the git commit id included in the vermagic
you might want to make sure you're running the right kernel as well
with `uname -r`.

Nevertheless as Kalle said - it's also a good idea to add a printk()
to make sure the code itself is really there.


Michal
Anish Tondwalkar
2015-08-10 14:05:12 UTC
Permalink
Post by Michal Kazior
If you intend to compare the git commit id included in the vermagic
you might want to make sure you're running the right kernel as well
with `uname -r`.
~/src ❯❯❯ uname -a
Linux hertz 4.2.0-rc5-wl-ath-g22f8a40 #1 SMP PREEMPT Sun Aug 9
20:31:48 EDT 2015 x86_64 GNU/Linux

So, I'm definitely running the right kernel.

I'm rebuilding my kernel from a freshly cloned source tree
(https://github.com/atondwal/linux) with the printk to really
idiot-proof the kernel build process, but I'm really convinced that I
was running the right kernel to begin with.
--
Anish
Anish Tondwalkar
2015-08-10 16:04:22 UTC
Permalink
kernel is definitely patched...


[ 5.544894] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 5.544897] ath10k_pci 0000:03:00.0: Falling back to user helper


[...]

[ 59.341227] r8169 0000:02:00.0 enp2s0: link down
[ 65.621229] This the patched kernel -Anish
[ 66.765815] ath10k_pci 0000:03:00.0: firmware crashed! (uuid
68f55675-f554-45a8-8c9f-eecac09a5cb9)
[ 66.765868] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545) fw killer-n1525-fw api 5 htt-ver 0.0
wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features
[ 66.765871] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
[ 66.767894] ath10k_pci 0000:03:00.0: firmware register dump:
[ 66.767920] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x000015B3
0x000A012D 0x00955B31
[ 66.767942] ath10k_pci 0000:03:00.0: [04]: 0x000A012D 0x00060330
0x00000016 0x84785006
[ 66.767966] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00400000
0x00400600 0x00000001
[ 66.767989] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000
0x00931C61 0x00931C7D
[ 66.768010] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x009286B6
0x00931E74 0x00000000
[ 66.768032] ath10k_pci 0000:03:00.0: [20]: 0x400A012D 0x0040E2B0
0x00955A00 0x00404590
[ 66.768054] ath10k_pci 0000:03:00.0: [24]: 0x809287D9 0x0040E310
0x7A508DF8 0xC00A012D
[ 66.768076] ath10k_pci 0000:03:00.0: [28]: 0x809288D7 0x0040E340
0x00000000 0xFFF08040
[ 66.768098] ath10k_pci 0000:03:00.0: [32]: 0x809290FE 0x0040E360
0x00400000 0x00400600
[ 66.768120] ath10k_pci 0000:03:00.0: [36]: 0x80929205 0x0040E380
0x00000000 0x00400600
[ 66.768144] ath10k_pci 0000:03:00.0: [40]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 66.768166] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x0040E3D0
0x009BB001 0x00040020
[ 66.768188] ath10k_pci 0000:03:00.0: [48]: 0x00401BF0 0x00000001
0x00404B9C 0x00400000
[ 66.768211] ath10k_pci 0000:03:00.0: [52]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 66.768233] ath10k_pci 0000:03:00.0: [56]: 0xF2D10700 0xE4B458C2
0x85CC6B13 0xE8728F30
[ 67.764773] ath10k_pci 0000:03:00.0: failed to receive control
response completion, polling..
[ 68.765592] ath10k_pci 0000:03:00.0: ctl_resp never came in (-110)
[ 68.765667] ath10k_pci 0000:03:00.0: failed to connect to HTC: -110
[ 68.846102] ath10k_pci 0000:03:00.0: could not init core (-110)
[ 68.846156] ath10k_pci 0000:03:00.0: could not probe fw (-110)
[ 68.858977] ath10k_pci 0000:03:00.0: cannot restart a device that
hasn't been started
Anish Tondwalkar
2015-08-10 23:05:25 UTC
Permalink
Got it working! Sort of! I asked vvanpo for his firmware, and with
that I can see the wireless device after I boot. But I still can't
connect to any networks or see them.

Here's the firmware:
https://github.com/atondwal/ath10k-firmware/commit/88fca85ef59d708b9874e5b7885416b58aef9ee7


[ 66.267355] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with
error -2
[ 66.267358] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 126.315169] ath10k_pci 0000:03:00.0: failed to load spec board
file, falling back to generic: -11
[ 126.349113] This the patched kernel -Anish
[ 127.514569] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545 fallback) fw atheros-12.0.0.102-fw api
5 htt-ver 3.25 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
features
[ 127.514574] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
[ 127.593699] ath: EEPROM regdomain: 0x6c
[ 127.593702] ath: EEPROM indicates we should expect a direct regpair map
[ 127.593703] ath: Country alpha2 being used: 00
[ 127.593704] ath: Regpair used: 0x6c
[ 127.605414] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0

~ ❯❯❯ sudo iwconfig wlp3s0 essid wahoo ap any
~ ❯❯❯ sudo iwconfig wlp3s0
wlp3s0 IEEE 802.11abgn ESSID:"wahoo"
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

~ ❯❯❯ sudo iwconfig wlp3s0 essid wahoo ap any
~ ❯❯❯ sudo dhcpcd wlp3s0
wlp3s0: adding address fe80::1851:cd3e:2790:ed4f
wlp3s0: starting wpa_supplicant
wlp3s0: failed to start wpa_supplicant
wlp3s0: Successfully initialized wpa_supplicant
Line 1182: unknown EAP method 'SIM'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1182: failed to parse eap 'SIM'.
Line 1185: failed to parse network block.
Line 1192: unknown EAP method 'PSK'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1192: failed to parse eap 'PSK'.
Line 1196: failed to parse network block.
Line 1228: unknown EAP method 'IKEV2'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1228: failed to parse eap 'IKEV2'.
Line 1231: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
wlp3s0: if_up: Operation not possible due to RF-kill
wlp3s0: waiting for carrier
timed out
dhcpcd exited

On Mon, Aug 10, 2015 at 12:04 PM, Anish Tondwalkar
Post by Anish Tondwalkar
kernel is definitely patched...
[ 5.544894] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 5.544897] ath10k_pci 0000:03:00.0: Falling back to user helper
[...]
[ 59.341227] r8169 0000:02:00.0 enp2s0: link down
[ 65.621229] This the patched kernel -Anish
[ 66.765815] ath10k_pci 0000:03:00.0: firmware crashed! (uuid
68f55675-f554-45a8-8c9f-eecac09a5cb9)
[ 66.765868] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545) fw killer-n1525-fw api 5 htt-ver 0.0
wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features
[ 66.765871] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
[ 66.767920] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x000015B3
0x000A012D 0x00955B31
[ 66.767942] ath10k_pci 0000:03:00.0: [04]: 0x000A012D 0x00060330
0x00000016 0x84785006
[ 66.767966] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00400000
0x00400600 0x00000001
[ 66.767989] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000
0x00931C61 0x00931C7D
[ 66.768010] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x009286B6
0x00931E74 0x00000000
[ 66.768032] ath10k_pci 0000:03:00.0: [20]: 0x400A012D 0x0040E2B0
0x00955A00 0x00404590
[ 66.768054] ath10k_pci 0000:03:00.0: [24]: 0x809287D9 0x0040E310
0x7A508DF8 0xC00A012D
[ 66.768076] ath10k_pci 0000:03:00.0: [28]: 0x809288D7 0x0040E340
0x00000000 0xFFF08040
[ 66.768098] ath10k_pci 0000:03:00.0: [32]: 0x809290FE 0x0040E360
0x00400000 0x00400600
[ 66.768120] ath10k_pci 0000:03:00.0: [36]: 0x80929205 0x0040E380
0x00000000 0x00400600
[ 66.768144] ath10k_pci 0000:03:00.0: [40]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 66.768166] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x0040E3D0
0x009BB001 0x00040020
[ 66.768188] ath10k_pci 0000:03:00.0: [48]: 0x00401BF0 0x00000001
0x00404B9C 0x00400000
[ 66.768211] ath10k_pci 0000:03:00.0: [52]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 66.768233] ath10k_pci 0000:03:00.0: [56]: 0xF2D10700 0xE4B458C2
0x85CC6B13 0xE8728F30
[ 67.764773] ath10k_pci 0000:03:00.0: failed to receive control
response completion, polling..
[ 68.765592] ath10k_pci 0000:03:00.0: ctl_resp never came in (-110)
[ 68.765667] ath10k_pci 0000:03:00.0: failed to connect to HTC: -110
[ 68.846102] ath10k_pci 0000:03:00.0: could not init core (-110)
[ 68.846156] ath10k_pci 0000:03:00.0: could not probe fw (-110)
[ 68.858977] ath10k_pci 0000:03:00.0: cannot restart a device that
hasn't been started
--
Anish

Q: Why is this email two sentences or less?
A: http://two.sentenc.es
Ben Greear
2015-08-10 23:43:37 UTC
Permalink
Post by Anish Tondwalkar
Got it working! Sort of! I asked vvanpo for his firmware, and with
that I can see the wireless device after I boot. But I still can't
connect to any networks or see them.
https://github.com/atondwal/ath10k-firmware/commit/88fca85ef59d708b9874e5b7885416b58aef9ee7
[ 66.267355] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 66.267358] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 126.315169] ath10k_pci 0000:03:00.0: failed to load spec board
file, falling back to generic: -11
[ 126.349113] This the patched kernel -Anish
[ 127.514569] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545 fallback) fw atheros-12.0.0.102-fw api
5 htt-ver 3.25 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
features
[ 127.514574] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
[ 127.593699] ath: EEPROM regdomain: 0x6c
[ 127.593702] ath: EEPROM indicates we should expect a direct regpair map
[ 127.593703] ath: Country alpha2 being used: 00
[ 127.593704] ath: Regpair used: 0x6c
[ 127.605414] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0
~ ❯❯❯ sudo iwconfig wlp3s0 essid wahoo ap any
~ ❯❯❯ sudo iwconfig wlp3s0
wlp3s0 IEEE 802.11abgn ESSID:"wahoo"
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
~ ❯❯❯ sudo iwconfig wlp3s0 essid wahoo ap any
~ ❯❯❯ sudo dhcpcd wlp3s0
wlp3s0: adding address fe80::1851:cd3e:2790:ed4f
wlp3s0: starting wpa_supplicant
wlp3s0: failed to start wpa_supplicant
wlp3s0: Successfully initialized wpa_supplicant
Line 1182: unknown EAP method 'SIM'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1182: failed to parse eap 'SIM'.
Line 1185: failed to parse network block.
Line 1192: unknown EAP method 'PSK'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1192: failed to parse eap 'PSK'.
Line 1196: failed to parse network block.
Line 1228: unknown EAP method 'IKEV2'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1228: failed to parse eap 'IKEV2'.
Line 1231: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
You have a bad supplicant config file. This is not directly related to any
problems you might be having with the firmware.

Thanks,
Ben
--
Ben Greear <***@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
Anish Tondwalkar
2015-08-11 02:09:03 UTC
Permalink
Update: firmware works and I have internet! Thanks everyone (especially Michal)!
Post by Ben Greear
Post by Anish Tondwalkar
Got it working! Sort of! I asked vvanpo for his firmware, and with
that I can see the wireless device after I boot. But I still can't
connect to any networks or see them.
https://github.com/atondwal/ath10k-firmware/commit/88fca85ef59d708b9874e5b7885416b58aef9ee7
[ 66.267355] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 66.267358] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 126.315169] ath10k_pci 0000:03:00.0: failed to load spec board
file, falling back to generic: -11
[ 126.349113] This the patched kernel -Anish
[ 127.514569] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545 fallback) fw atheros-12.0.0.102-fw api
5 htt-ver 3.25 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
features
[ 127.514574] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
[ 127.593699] ath: EEPROM regdomain: 0x6c
[ 127.593702] ath: EEPROM indicates we should expect a direct regpair map
[ 127.593703] ath: Country alpha2 being used: 00
[ 127.593704] ath: Regpair used: 0x6c
[ 127.605414] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0
~ ❯❯❯ sudo iwconfig wlp3s0 essid wahoo ap any
~ ❯❯❯ sudo iwconfig wlp3s0
wlp3s0 IEEE 802.11abgn ESSID:"wahoo"
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
~ ❯❯❯ sudo iwconfig wlp3s0 essid wahoo ap any
~ ❯❯❯ sudo dhcpcd wlp3s0
wlp3s0: adding address fe80::1851:cd3e:2790:ed4f
wlp3s0: starting wpa_supplicant
wlp3s0: failed to start wpa_supplicant
wlp3s0: Successfully initialized wpa_supplicant
Line 1182: unknown EAP method 'SIM'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1182: failed to parse eap 'SIM'.
Line 1185: failed to parse network block.
Line 1192: unknown EAP method 'PSK'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1192: failed to parse eap 'PSK'.
Line 1196: failed to parse network block.
Line 1228: unknown EAP method 'IKEV2'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1228: failed to parse eap 'IKEV2'.
Line 1231: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
You have a bad supplicant config file. This is not directly related to any
problems you might be having with the firmware.
Thanks,
Ben
--
Candela Technologies Inc http://www.candelatech.com
--
Anish

Q: Why is this email two sentences or less?
A: http://two.sentenc.es
Michal Kazior
2015-08-11 06:00:25 UTC
Permalink
Post by Anish Tondwalkar
Got it working! Sort of! I asked vvanpo for his firmware, and with
that I can see the wireless device after I boot. But I still can't
connect to any networks or see them.
https://github.com/atondwal/ath10k-firmware/commit/88fca85ef59d708b9874e5b7885416b58aef9ee7
Apparently it is important to have an adequate board.bin or otp.bin to
even boot qca6164. I suspect it's only board.bin but it'd be nice to
know for sure what triggers the device crash.

Can you verify this by using firmware-X.bin from sumdog and board.bin
from vvanpo, and then the opposite, i.e. firmware-X.bin from vvanpo
and board.bin from sumdog and report which one of the two worked,
please?


Michal
Post by Anish Tondwalkar
[ 66.267355] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 66.267358] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 126.315169] ath10k_pci 0000:03:00.0: failed to load spec board
file, falling back to generic: -11
[ 126.349113] This the patched kernel -Anish
[ 127.514569] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545 fallback) fw atheros-12.0.0.102-fw api
5 htt-ver 3.25 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
features
[ 127.514574] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
[ 127.593699] ath: EEPROM regdomain: 0x6c
[ 127.593702] ath: EEPROM indicates we should expect a direct regpair map
[ 127.593703] ath: Country alpha2 being used: 00
[ 127.593704] ath: Regpair used: 0x6c
[ 127.605414] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0
~ ❯❯❯ sudo iwconfig wlp3s0 essid wahoo ap any
~ ❯❯❯ sudo iwconfig wlp3s0
wlp3s0 IEEE 802.11abgn ESSID:"wahoo"
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
~ ❯❯❯ sudo iwconfig wlp3s0 essid wahoo ap any
~ ❯❯❯ sudo dhcpcd wlp3s0
wlp3s0: adding address fe80::1851:cd3e:2790:ed4f
wlp3s0: starting wpa_supplicant
wlp3s0: failed to start wpa_supplicant
wlp3s0: Successfully initialized wpa_supplicant
Line 1182: unknown EAP method 'SIM'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1182: failed to parse eap 'SIM'.
Line 1185: failed to parse network block.
Line 1192: unknown EAP method 'PSK'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1192: failed to parse eap 'PSK'.
Line 1196: failed to parse network block.
Line 1228: unknown EAP method 'IKEV2'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1228: failed to parse eap 'IKEV2'.
Line 1231: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
wlp3s0: if_up: Operation not possible due to RF-kill
wlp3s0: waiting for carrier
timed out
dhcpcd exited
On Mon, Aug 10, 2015 at 12:04 PM, Anish Tondwalkar
Post by Anish Tondwalkar
kernel is definitely patched...
[ 5.544894] ath10k_pci 0000:03:00.0: Direct firmware load for
ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 5.544897] ath10k_pci 0000:03:00.0: Falling back to user helper
[...]
[ 59.341227] r8169 0000:02:00.0 enp2s0: link down
[ 65.621229] This the patched kernel -Anish
[ 66.765815] ath10k_pci 0000:03:00.0: firmware crashed! (uuid
68f55675-f554-45a8-8c9f-eecac09a5cb9)
[ 66.765868] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
0x003405ff, 168c:0041:17aa:3545) fw killer-n1525-fw api 5 htt-ver 0.0
wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features
[ 66.765871] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
[ 66.767920] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x000015B3
0x000A012D 0x00955B31
[ 66.767942] ath10k_pci 0000:03:00.0: [04]: 0x000A012D 0x00060330
0x00000016 0x84785006
[ 66.767966] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00400000
0x00400600 0x00000001
[ 66.767989] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000
0x00931C61 0x00931C7D
[ 66.768010] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x009286B6
0x00931E74 0x00000000
[ 66.768032] ath10k_pci 0000:03:00.0: [20]: 0x400A012D 0x0040E2B0
0x00955A00 0x00404590
[ 66.768054] ath10k_pci 0000:03:00.0: [24]: 0x809287D9 0x0040E310
0x7A508DF8 0xC00A012D
[ 66.768076] ath10k_pci 0000:03:00.0: [28]: 0x809288D7 0x0040E340
0x00000000 0xFFF08040
[ 66.768098] ath10k_pci 0000:03:00.0: [32]: 0x809290FE 0x0040E360
0x00400000 0x00400600
[ 66.768120] ath10k_pci 0000:03:00.0: [36]: 0x80929205 0x0040E380
0x00000000 0x00400600
[ 66.768144] ath10k_pci 0000:03:00.0: [40]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 66.768166] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x0040E3D0
0x009BB001 0x00040020
[ 66.768188] ath10k_pci 0000:03:00.0: [48]: 0x00401BF0 0x00000001
0x00404B9C 0x00400000
[ 66.768211] ath10k_pci 0000:03:00.0: [52]: 0x40928024 0x0040E3B0
0x0040D3D0 0x0040D3D0
[ 66.768233] ath10k_pci 0000:03:00.0: [56]: 0xF2D10700 0xE4B458C2
0x85CC6B13 0xE8728F30
[ 67.764773] ath10k_pci 0000:03:00.0: failed to receive control
response completion, polling..
[ 68.765592] ath10k_pci 0000:03:00.0: ctl_resp never came in (-110)
[ 68.765667] ath10k_pci 0000:03:00.0: failed to connect to HTC: -110
[ 68.846102] ath10k_pci 0000:03:00.0: could not init core (-110)
[ 68.846156] ath10k_pci 0000:03:00.0: could not probe fw (-110)
[ 68.858977] ath10k_pci 0000:03:00.0: cannot restart a device that
hasn't been started
--
Anish
Q: Why is this email two sentences or less?
A: http://two.sentenc.es
Anish Tondwalkar
2015-08-11 16:25:06 UTC
Permalink
Post by Michal Kazior
Apparently it is important to have an adequate board.bin or otp.bin to
even boot qca6164. I suspect it's only board.bin but it'd be nice to
know for sure what triggers the device crash.
Can you verify this by using firmware-X.bin from sumdog and board.bin
from vvanpo, and then the opposite, i.e. firmware-X.bin from vvanpo
and board.bin from sumdog and report which one of the two worked,
please?
You are correct. vvanpo board.bin + sumdog firmware-5.bin works perfectly!
--
Anish

Q: Why is this email two sentences or less?
A: http://two.sentenc.es
Loading...