QCA6174 seemingly randomly fails to wake
Hello,
I am having issues with the ath10k driver and the Qualcomm Atheros QCA6174 network adapter. Seemingly randomly, the wireless connection on my laptop stops working. dmesg outputs a long series of:
[11061.645929] ath10k_pci 0000:07:00.0: failed to wake target for write32 of 0x0000025c at 0x0003543c: -110
Rarely a reboot fixes this and I can use the network adapter again, but more often than not, after a reboot, there is no output related to ath10k in dmesg and the laptop is behaving as if the network adapter is not present. The adapter eventually starts working again - I have not noticed a specific pattern, sometimes it is after a few hours, sometimes I couldn't get it working for days.
I have tried thoroughly searching online but was unable to find anything that would be of help. I do admit I am a little out of my depth here, but I will happily provide any further information necessary in order to diagnose and fix this.
I am on Xubuntu 15.10, kernel 4.2.0-16-generic.
Thanks.
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 8 lines · On 4 November 2015 at 01:00, <[email protected]> wrote:
Hello,
I am having issues with the ath10k driver and the Qualcomm Atheros QCA6174 network adapter. Seemingly randomly, the wireless connection on my laptop stops working. dmesg outputs a long series of:
[11061.645929] ath10k_pci 0000:07:00.0: failed to wake target for write32 of
0x0000025cat0x0003543c: -110
This looks very similar to how QCA99X0 failed when PCI PS was enabled for the card:
http://lists.infradead.org/pipermail/ath10k/2015-September/005939.html
As far as I know the reason of failure is not really understood and it simply was disabled to fix reliability.
It seems that QCA6174 suffers from this as well - at least on your platform. This is rather sad as we'll probably need to disable it by default for QCA6174 now as well which will increase power consumption a little bit.
Quoted 7 lines
Rarely a reboot fixes this and I can use the network adapter again, but more often than not, after a reboot, there is no output related to ath10k in dmesg and the laptop is behaving as if the network adapter is not present. The adapter eventually starts working again - I have not noticed a specific pattern, sometimes it is after a few hours, sometimes I couldn't get it working for days.
Quoted 6 lines
I have tried thoroughly searching online but was unable to find anything that would be of help. I do admit I am a little out of my depth here, but I will happily provide any further information necessary in order to diagnose and fix this.
I am on Xubuntu 15.10, kernel 4.2.0-16-generic.
Can you perhaps try compiling the kernel from:
git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
with the following diff applied:
(quoted diff) +0 -0
b/drivers/net/wireless/ath/ath10k/pci.c
index 3fca200b986c..edf7a7637d88 100644
drivers/net/wireless/ath/ath10k/pci.c +1 -1
@@ -2968,7 +2968,7 @@ static int ath10k_pci_probe(struct pci_dev *pdev,case QCA6164_2_1_DEVICE_ID :case QCA6174_2_1_DEVICE_ID : hw_rev =ATH10K_HW_QCA6174 ; - pci_ps = true; + pci_ps = false;break ;case QCA99X0_2_0_DEVICE_ID : hw_rev =ATH10K_HW_QCA99X0 ;
and report back if this fixes the problem for you, please?
Michał
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Sorry about the late response, I was without my laptop due to an unrelated problem.
The patch seems to have fixed the issue - it didn't occur again after applying it. I did however use driver backports and applied the patch to those myself, as opposed to compiling the entire kernel from the repository you provided.
Quoted 63 lines · Michal Kazior
Quoted 8 lines · On 4 November 2015 at 01:00, <[email protected]> wrote:
Hello,
I am having issues with the ath10k driver and the Qualcomm Atheros QCA6174 network adapter. Seemingly randomly, the wireless connection on my laptop stops working. dmesg outputs a long series of:
[11061.645929] ath10k_pci 0000:07:00.0: failed to wake target for write32 of
0x0000025cat0x0003543c: -110This looks very similar to how QCA99X0 failed when PCI PS was enabled for the card:
http://lists.infradead.org/pipermail/ath10k/2015-September/005939.html
As far as I know the reason of failure is not really understood and it simply was disabled to fix reliability.
It seems that QCA6174 suffers from this as well - at least on your platform. This is rather sad as we'll probably need to disable it by default for QCA6174 now as well which will increase power consumption a little bit.
Quoted 7 lines
Rarely a reboot fixes this and I can use the network adapter again, but more often than not, after a reboot, there is no output related to ath10k in dmesg and the laptop is behaving as if the network adapter is not present. The adapter eventually starts working again - I have not noticed a specific pattern, sometimes it is after a few hours, sometimes I couldn't get it working for days.
Quoted 6 lines
I have tried thoroughly searching online but was unable to find anything that would be of help. I do admit I am a little out of my depth here, but I will happily provide any further information necessary in order to diagnose and fix this.
I am on Xubuntu 15.10, kernel 4.2.0-16-generic.
Can you perhaps try compiling the kernel from:
git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.gitwith the following diff applied:
drivers/net/wireless/ath/ath10k/pci.c +1
-1@@ -2968,7 +2968,7 @@ static int ath10k_pci_probe(struct pci_dev *pdev,case QCA6164_2_1_DEVICE_ID :case QCA6174_2_1_DEVICE_ID : hw_rev =ATH10K_HW_QCA6174 ; - pci_ps = true; + pci_ps = false;break ;case QCA99X0_2_0_DEVICE_ID : hw_rev =ATH10K_HW_QCA99X0 ;and report back if this fixes the problem for you, please?
Quoted 6 lines
Michał
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 7 lines · On 10 January 2016 at 00:26, <[email protected]> wrote:
Sorry about the late response, I was without my laptop due to an unrelated problem.
The patch seems to have fixed the issue - it didn't occur again after applying it. I did however use driver backports and applied the patch to those myself, as opposed to compiling the entire kernel from the repository you provided.
That's good news (to users like you who have broken qca6174). Is my understanding correct that you double-checked that *without* the patch qca6174 fails to work? There could be something else that fixed the problem for you otherwise.
Michał
Quoted 74 lines · Michal Kazior
Quoted 73 lines · On 4 November 2015 at 01:00, <[email protected]> wrote:
Quoted 11 lines
Hello,
I am having issues with the ath10k driver and the Qualcomm Atheros QCA6174
network adapter. Seemingly randomly, the wireless connection on my laptop stops working. dmesg outputs a long series of:[11061.645929] ath10k_pci 0000:07:00.0: failed to wake target for write32of
0x0000025cat0x0003543c: -110This looks very similar to how QCA99X0 failed when PCI PS was enabled for the card:
http://lists.infradead.org/pipermail/ath10k/2015-September/005939.html
As far as I know the reason of failure is not really understood and it simply was disabled to fix reliability.
It seems that QCA6174 suffers from this as well - at least on your platform. This is rather sad as we'll probably need to disable it by default for QCA6174 now as well which will increase power consumption a little bit.
Quoted 10 lines
Rarely a reboot fixes this and I can use the network adapter again, but more
often than not, after a reboot, there is no output related to ath10k in dmesg and the laptop is behaving as if the network adapter is not present.
The adapter eventually starts working again - I have not noticed a specific
pattern, sometimes it is after a few hours, sometimes I couldn't get it working for days.Quoted 8 lines
I have tried thoroughly searching online but was unable to find anything that would be of help. I do admit I am a little out of my depth here, but I
will happily provide any further information necessary in order to diagnose
and fix this.I am on Xubuntu 15.10, kernel 4.2.0-16-generic.
Can you perhaps try compiling the kernel from:
git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.gitwith the following diff applied:
drivers/net/wireless/ath/ath10k/pci.c +1
-1@@ -2968,7 +2968,7 @@ static int ath10k_pci_probe(struct pci_dev *pdev,case QCA6164_2_1_DEVICE_ID :case QCA6174_2_1_DEVICE_ID : hw_rev =ATH10K_HW_QCA6174 ; - pci_ps = true; + pci_ps = false;break ;case QCA99X0_2_0_DEVICE_ID : hw_rev =ATH10K_HW_QCA99X0 ;and report back if this fixes the problem for you, please?
Quoted 8 lines
Quoted 6 lines
Michał
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Hi,
Hm. I recall there are bugs handling PCI-PS state stuff in hardware. We should check with QCA. It .. keeps changing.
(Who has access to the current windows reference driver? They may know.)
-a
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k