2021-11-01 08:38:05

by 尤晓杰

[permalink] [raw]
Subject: qca9984 fails to work



before update, everthing is ok, after update kernel, qca9984 fails to work.
dmesg|grep ath10k:

[    4.764210] ath10k_pci 0000:07:00.0: enabling device (0000 -> 0002)

[    4.765527] ath10k_pci 0000:07:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0

[    4.886828] ath10k_pci 0000:07:00.0: firmware: direct-loading firmware ath10k/pre-cal-pci-0000:07:00.0.bin

[    4.886844] ath10k_pci 0000:07:00.0: firmware: failed to load ath10k/QCA9984/hw1.0/firmware-6.bin (-2)

[    4.888769] ath10k_pci 0000:07:00.0: firmware: direct-loading firmware ath10k/QCA9984/hw1.0/firmware-5.bin

[    4.888774] ath10k_pci 0000:07:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe

[    4.888777] ath10k_pci 0000:07:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0

[    4.889124] ath10k_pci 0000:07:00.0: firmware ver 10.4-3.9.0.2-00131 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,
iram-recovery crc32 23bd9e43

[    7.170482] ath10k_pci 0000:07:00.0: firmware: direct-loading firmware ath10k/QCA9984/hw1.0/board-2.bin

[    7.170600] ath10k_pci 0000:07:00.0: board_file api 2 bmi_id 0:1 crc32 85498734

[   10.810016] ath10k_pci 0000:07:00.0: failed to copy target iram contents: -12

[   10.865295] ath10k_pci 0000:07:00.0: could not init core (-12)

[   10.865332] ath10k_pci 0000:07:00.0: could not probe fw (-12)

kernel:
[ 0.000000] Linux version 5.14.0-3-amd64 ([email protected]) (gcc-10 (Debian 10.3.0-11) 10.3.0, GNU ld (GNU Binutils for Debian) 2.37) #1 SMP Debian 5.14.12-1 (2021-10-14)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.14.0-3-amd64 root=UUID=6ad1bda4-9feb-4849-b1d9-4311c76e3522 ro quiet
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256



2021-11-05 12:49:25

by Kalle Valo

[permalink] [raw]
Subject: Re: qca9984 fails to work

尤晓杰 <[email protected]> writes:

> before update, everthing is ok, after update kernel, qca9984 fails to work.
> dmesg|grep ath10k:
>
> [    4.764210] ath10k_pci 0000:07:00.0: enabling device (0000 -> 0002)
>
> [    4.765527] ath10k_pci 0000:07:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
>
> [    4.886828] ath10k_pci 0000:07:00.0: firmware: direct-loading
> firmware ath10k/pre-cal-pci-0000:07:00.0.bin
>
> [    4.886844] ath10k_pci 0000:07:00.0: firmware: failed to load ath10k/QCA9984/hw1.0/firmware-6.bin (-2)
>
> [    4.888769] ath10k_pci 0000:07:00.0: firmware: direct-loading
> firmware ath10k/QCA9984/hw1.0/firmware-5.bin
>
> [    4.888774] ath10k_pci 0000:07:00.0: qca9984/qca9994 hw1.0 target
> 0x01000000 chip_id 0x00000000 sub 168c:cafe
>
> [    4.888777] ath10k_pci 0000:07:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
>
> [    4.889124] ath10k_pci 0000:07:00.0: firmware ver
> 10.4-3.9.0.2-00131 api 5 features
> no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,
> iram-recovery crc32 23bd9e43
>
> [    7.170482] ath10k_pci 0000:07:00.0: firmware: direct-loading firmware ath10k/QCA9984/hw1.0/board-2.bin
>
> [    7.170600] ath10k_pci 0000:07:00.0: board_file api 2 bmi_id 0:1 crc32 85498734
>
> [   10.810016] ath10k_pci 0000:07:00.0: failed to copy target iram contents: -12
>
> [   10.865295] ath10k_pci 0000:07:00.0: could not init core (-12)
>
> [   10.865332] ath10k_pci 0000:07:00.0: could not probe fw (-12)
>
> kernel:
> [ 0.000000] Linux version 5.14.0-3-amd64
> ([email protected]) (gcc-10 (Debian 10.3.0-11) 10.3.0,
> GNU ld (GNU Binutils for Debian) 2.37) #1 SMP Debian 5.14.12-1
> (2021-10-14)
> [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.14.0-3-amd64
> root=UUID=6ad1bda4-9feb-4849-b1d9-4311c76e3522 ro quiet
> [ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
> [ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
> [ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
> [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256

This commit should fix it:

https://git.kernel.org/linus/6f8c8bf4c7c9

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches