Activity log for bug #1939937

Date Who What changed Old value New value Message
2021-08-14 08:22:51 sparks71 bug added bug
2021-08-14 08:41:42 sparks71 bug added subscriber Dimitri John Ledkov
2021-08-14 09:28:22 sparks71 bug added subscriber Kalle Valo
2021-08-14 09:33:59 sparks71 tags ath10k amd64
2021-08-14 09:34:53 sparks71 tags amd64 ath10k
2021-08-14 09:35:07 sparks71 tags ath10k
2021-08-14 09:36:20 sparks71 tags ath10k linux
2021-08-14 09:36:33 sparks71 tags ath10k linux amd64 ath10k linux
2021-08-14 09:36:58 sparks71 tags amd64 ath10k linux amd64 ath10k linux qca9984
2021-08-17 13:17:58 Dimitri John Ledkov tags amd64 ath10k linux qca9984 amd64 ath10k hirsute impish linux patch qca9984
2021-08-17 13:24:44 Dimitri John Ledkov linux (Ubuntu): status New Triaged
2021-08-19 15:50:56 You-Sheng Yang bug task added linux-oem-5.13 (Ubuntu)
2021-08-19 15:51:08 You-Sheng Yang nominated for series Ubuntu Hirsute
2021-08-19 15:51:08 You-Sheng Yang bug task added linux (Ubuntu Hirsute)
2021-08-19 15:51:08 You-Sheng Yang bug task added linux-oem-5.13 (Ubuntu Hirsute)
2021-08-19 15:51:08 You-Sheng Yang nominated for series Ubuntu Impish
2021-08-19 15:51:08 You-Sheng Yang bug task added linux (Ubuntu Impish)
2021-08-19 15:51:08 You-Sheng Yang bug task added linux-oem-5.13 (Ubuntu Impish)
2021-08-19 15:51:08 You-Sheng Yang nominated for series Ubuntu Focal
2021-08-19 15:51:08 You-Sheng Yang bug task added linux (Ubuntu Focal)
2021-08-19 15:51:08 You-Sheng Yang bug task added linux-oem-5.13 (Ubuntu Focal)
2021-08-19 15:51:18 You-Sheng Yang linux-oem-5.13 (Ubuntu Hirsute): status New Invalid
2021-08-19 15:51:23 You-Sheng Yang linux-oem-5.13 (Ubuntu Impish): status New Invalid
2021-08-19 15:51:29 You-Sheng Yang linux (Ubuntu Focal): status New Invalid
2021-08-20 09:26:49 You-Sheng Yang linux (Ubuntu Hirsute): status New In Progress
2021-08-20 09:26:52 You-Sheng Yang linux (Ubuntu Hirsute): importance Undecided High
2021-08-20 09:26:55 You-Sheng Yang linux (Ubuntu Hirsute): assignee You-Sheng Yang (vicamo)
2021-08-20 09:26:58 You-Sheng Yang linux (Ubuntu Impish): status Triaged In Progress
2021-08-20 09:27:00 You-Sheng Yang linux (Ubuntu Impish): importance Undecided High
2021-08-20 09:27:02 You-Sheng Yang linux (Ubuntu Impish): assignee You-Sheng Yang (vicamo)
2021-08-20 09:27:06 You-Sheng Yang linux-oem-5.13 (Ubuntu Focal): status New In Progress
2021-08-20 09:27:09 You-Sheng Yang linux-oem-5.13 (Ubuntu Focal): importance Undecided High
2021-08-20 09:27:11 You-Sheng Yang linux-oem-5.13 (Ubuntu Focal): assignee You-Sheng Yang (vicamo)
2021-08-20 10:51:06 You-Sheng Yang description Hello, I use Ubuntu 20.04.2 LTS. The kernel was recently updated to 5.11 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Since then the ath10k_core driver for my QCA9984 card is broken and only loads ~3 firmware versions from the 3.9.0.2 branch https://github.com/kvalo/ath10k-firmware/tree/master/QCA9984/hw1.0/3.9.0.2 The firmware versions 70 / 86 / 91 are functional (but these firmware versions are already 2 years old) Responsible for this is the defective patch "ath10k: add target IRAM recovery feature support" https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal/commit/?h=hwe-5.11&id=9af7c32ceca85da27867dd863697d2aafc80a3f8 If I understand the patch correctly then the driver tries to load firmware with the feature "iram recovery" into the memory of the host (for recvovery purposes). If this fails, the firmware is discarded and the network controller remains unusable. Of course, this is not a desirable behavior for optional firmware features. dmesg: [ 3.074952] ath: loading out-of-tree module taints kernel. [ 3.090522] ath: module verification failed: signature and/or required key missing - tainting kernel [ 3.110879] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [ 3.178741] ath10k_pci 0000:04:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [ 3.229944] ath10k_pci 0000:03:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [ 3.229948] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [ 3.230274] ath10k_pci 0000:03:00.0: firmware ver 10.4-3.9.0.2-00149 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 5f41acd7 [ 3.291329] ath10k_pci 0000:04:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [ 3.291333] ath10k_pci 0000:04:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [ 3.291678] ath10k_pci 0000:04:00.0: firmware ver 10.4-3.9.0.2-00149 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 5f41acd7 [ 4.463156] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id 0:1 crc32 85498734 [ 4.520649] ath10k_pci 0000:04:00.0: board_file api 2 bmi_id 0:2 crc32 85498734 [ 7.047910] ath10k_pci 0000:03:00.0: failed to copy target iram contents: -12 [ 7.103260] ath10k_pci 0000:03:00.0: could not init core (-12) [ 7.103267] ath10k_pci 0000:03:00.0: could not probe fw (-12) [ 7.108570] ath10k_pci 0000:04:00.0: failed to copy target iram contents: -12 [ 7.163247] ath10k_pci 0000:04:00.0: could not init core (-12) [ 7.163268] ath10k_pci 0000:04:00.0: could not probe fw (-12) In the ath10k mailing list I found a second patch which makes it possible to load the latest firmware on the card again. https://www.mail-archive.com/ath10k@lists.infradead.org/msg13655.html I have tested the patch and it works. dmesg: [18245.610112] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [18245.674800] ath10k_pci 0000:04:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [18245.731606] ath10k_pci 0000:03:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [18245.731620] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [18245.733172] ath10k_pci 0000:03:00.0: firmware ver 10.4-3.9.0.2-00152 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 723f9771 [18245.790380] ath10k_pci 0000:04:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [18245.790383] ath10k_pci 0000:04:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [18245.790703] ath10k_pci 0000:04:00.0: firmware ver 10.4-3.9.0.2-00152 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 723f9771 [18246.963760] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id 0:1 crc32 85498734 [18247.019699] ath10k_pci 0000:04:00.0: board_file api 2 bmi_id 0:2 crc32 85498734 [18249.514054] ath10k_pci 0000:03:00.0: No hardware memory [18249.514057] ath10k_pci 0000:03:00.0: failed to copy target iram contents: -12 [18249.570423] ath10k_pci 0000:04:00.0: No hardware memory [18249.570426] ath10k_pci 0000:04:00.0: failed to copy target iram contents: -12 [18249.620637] ath10k_pci 0000:03:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 512 raw 0 hwcrypto 1 [18249.678035] ath10k_pci 0000:04:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 512 raw 0 hwcrypto 1 Please include this patch in Ubuntu so that we can load current firmware versions on our QCA9984 cards again. additional reference: https://lists.infradead.org/pipermail/ath10k/2021-May/012626.html best regards [SRU Justification] [Impact] Commit 9af7c32ceca8 ("ath10k: add target IRAM recovery feature support") in v5.11 fails firmware loading without IRAM recovery feature. However, the latest firmware from https://github.com/kvalo/ath10k-firmware/tree/master/QCA9984/hw1.0/3.9.0.2 doesn't support IRAM, it follows new official ath10k firmwares may no longer be loadable for kernel newer than v5.11. [Fix] A fix is proposed to http://lists.infradead.org/pipermail/ath10k/2021-July/012729.html that turns the lack/failure of IRAM recovery support a warning instead. [Test Case] With this fix, kernel gives errors about the IRAM supportness, but proceeds to remaining procedures as before. ath10k_pci 0000:04:00.0: No hardware memory ath10k_pci 0000:04:00.0: failed to copy target iram contents: -12 ath10k_pci 0000:07:00.0: No hardware memory ath10k_pci 0000:07:00.0: failed to copy target iram contents: -12 [Where problems could occur] So the IRAM recovery feature may or may not be supported in the officially released firmware, and people meet problems when using non-IRAM supported firmware may still have a fallback to use older, but IRAM recovery supported ones. ========== original bug report ========== Hello, I use Ubuntu 20.04.2 LTS. The kernel was recently updated to 5.11 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Since then the ath10k_core driver for my QCA9984 card is broken and only loads ~3 firmware versions from the 3.9.0.2 branch https://github.com/kvalo/ath10k-firmware/tree/master/QCA9984/hw1.0/3.9.0.2 The firmware versions 70 / 86 / 91 are functional (but these firmware versions are already 2 years old) Responsible for this is the defective patch "ath10k: add target IRAM recovery feature support" https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal/commit/?h=hwe-5.11&id=9af7c32ceca85da27867dd863697d2aafc80a3f8 If I understand the patch correctly then the driver tries to load firmware with the feature "iram recovery" into the memory of the host (for recvovery purposes). If this fails, the firmware is discarded and the network controller remains unusable. Of course, this is not a desirable behavior for optional firmware features. dmesg: [ 3.074952] ath: loading out-of-tree module taints kernel. [ 3.090522] ath: module verification failed: signature and/or required key missing - tainting kernel [ 3.110879] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [ 3.178741] ath10k_pci 0000:04:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [ 3.229944] ath10k_pci 0000:03:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [ 3.229948] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [ 3.230274] ath10k_pci 0000:03:00.0: firmware ver 10.4-3.9.0.2-00149 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 5f41acd7 [ 3.291329] ath10k_pci 0000:04:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [ 3.291333] ath10k_pci 0000:04:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [ 3.291678] ath10k_pci 0000:04:00.0: firmware ver 10.4-3.9.0.2-00149 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 5f41acd7 [ 4.463156] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id 0:1 crc32 85498734 [ 4.520649] ath10k_pci 0000:04:00.0: board_file api 2 bmi_id 0:2 crc32 85498734 [ 7.047910] ath10k_pci 0000:03:00.0: failed to copy target iram contents: -12 [ 7.103260] ath10k_pci 0000:03:00.0: could not init core (-12) [ 7.103267] ath10k_pci 0000:03:00.0: could not probe fw (-12) [ 7.108570] ath10k_pci 0000:04:00.0: failed to copy target iram contents: -12 [ 7.163247] ath10k_pci 0000:04:00.0: could not init core (-12) [ 7.163268] ath10k_pci 0000:04:00.0: could not probe fw (-12) In the ath10k mailing list I found a second patch which makes it possible to load the latest firmware on the card again. https://www.mail-archive.com/ath10k@lists.infradead.org/msg13655.html I have tested the patch and it works. dmesg: [18245.610112] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [18245.674800] ath10k_pci 0000:04:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [18245.731606] ath10k_pci 0000:03:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [18245.731620] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [18245.733172] ath10k_pci 0000:03:00.0: firmware ver 10.4-3.9.0.2-00152 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 723f9771 [18245.790380] ath10k_pci 0000:04:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [18245.790383] ath10k_pci 0000:04:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [18245.790703] ath10k_pci 0000:04:00.0: firmware ver 10.4-3.9.0.2-00152 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 723f9771 [18246.963760] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id 0:1 crc32 85498734 [18247.019699] ath10k_pci 0000:04:00.0: board_file api 2 bmi_id 0:2 crc32 85498734 [18249.514054] ath10k_pci 0000:03:00.0: No hardware memory [18249.514057] ath10k_pci 0000:03:00.0: failed to copy target iram contents: -12 [18249.570423] ath10k_pci 0000:04:00.0: No hardware memory [18249.570426] ath10k_pci 0000:04:00.0: failed to copy target iram contents: -12 [18249.620637] ath10k_pci 0000:03:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 512 raw 0 hwcrypto 1 [18249.678035] ath10k_pci 0000:04:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 512 raw 0 hwcrypto 1 Please include this patch in Ubuntu so that we can load current firmware versions on our QCA9984 cards again. additional reference: https://lists.infradead.org/pipermail/ath10k/2021-May/012626.html best regards
2021-08-23 06:48:05 Timo Aaltonen linux-oem-5.13 (Ubuntu Focal): status In Progress Fix Committed
2021-08-31 16:16:31 Ubuntu Kernel Bot tags amd64 ath10k hirsute impish linux patch qca9984 amd64 ath10k hirsute impish linux patch qca9984 verification-needed-focal
2021-09-01 09:13:36 sparks71 tags amd64 ath10k hirsute impish linux patch qca9984 verification-needed-focal amd64 ath10k hirsute impish linux patch qca9984 verification-done-focal
2021-09-13 08:05:36 Launchpad Janitor linux-oem-5.13 (Ubuntu Focal): status Fix Committed Fix Released
2021-09-13 08:05:36 Launchpad Janitor cve linked 2021-3609
2021-09-27 06:00:36 You-Sheng Yang linux (Ubuntu Hirsute): status In Progress Triaged
2021-09-27 06:00:40 You-Sheng Yang linux (Ubuntu Impish): status In Progress Triaged
2022-01-26 21:55:09 Brian Murray linux (Ubuntu Hirsute): status Triaged Won't Fix
2022-07-05 08:59:21 Timo Aaltonen linux (Ubuntu Impish): status Triaged Fix Released
2022-07-05 08:59:24 Timo Aaltonen linux (Ubuntu): status Triaged Fix Released
2023-01-04 18:57:27 Anthony Wong nominated for series Ubuntu Jammy
2023-01-04 18:57:27 Anthony Wong bug task added linux (Ubuntu Jammy)
2023-01-04 18:57:27 Anthony Wong bug task added linux-oem-5.13 (Ubuntu Jammy)
2023-01-04 18:57:38 Anthony Wong linux (Ubuntu Jammy): status New Fix Released
2023-01-04 18:57:49 Anthony Wong linux-oem-5.13 (Ubuntu Jammy): status New Invalid