From patchwork Wed Nov 4 07:30:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 7548331 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ADF80BEEA4 for ; Wed, 4 Nov 2015 07:31:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4C5520421 for ; Wed, 4 Nov 2015 07:30:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 45817203F3 for ; Wed, 4 Nov 2015 07:30:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZtsWr-0001HN-9A; Wed, 04 Nov 2015 07:30:45 +0000 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZtsWo-0001ET-Kp for ath10k@lists.infradead.org; Wed, 04 Nov 2015 07:30:44 +0000 Received: by wicll6 with SMTP id ll6so84079555wic.0 for ; Tue, 03 Nov 2015 23:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=SYmWAt9Zc7K8ZLZNb8sk8QjvPxkklTgzSpysn7eyHac=; b=EhHzS3mbQLv3oaE+jw0kO9yyt2m1jbooBmUkjGc+3hrS0a/yAe3DxgS9e334DByy8i bMnAdEwyXcjLyIraQ1mkJtxsiTZNSyMakbgbjjEuHZW7uEnUY7Wu6ZT2qlzTGONj0ejd yAMWt7I4WfZGycr6tNIE/2REGuIWmaA68VnSA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SYmWAt9Zc7K8ZLZNb8sk8QjvPxkklTgzSpysn7eyHac=; b=c1SAoxWzCR+D/ek1qQ3v6G7PUtv8RRU9RdSyE+NEoe6AktqGGQerfKq5OyeHpicb4V xYExRSmWp8dtPb3z0TejwQaxvKutN4OxfHXsuU55FvXZU0z9S4XCcO9hCAKMnGflhjB/ HwJ65QZElFZLEa8JKo/ajlLfyi+neQWMCdHv8JihR+WZyqGscelAoAi/VRFbLtZJvECS BD9NtSbBuqI4Z+mZFaIIYrMIYYmsr9+yoJyfMB6G4zaxqA+O89qdCtzfNo5hi0yvp6gl SBXpucbdzipJpwQEXp2wQG/m+vK2EkHY3Tkf14xtm28LiL+InhOYWjUgS7BAVZpaZDjU 1tyg== X-Gm-Message-State: ALoCoQmxYz8x9uWPurD3LbaPL0AqPzKf4OBJPQCUGULXrIWv4d2V5TL0IRyrzuOaX6J9enXHgcScX+dXWB3OGxZRuhvyL7zVrgpeFPC+EGRGc4q0bi0e6xcBLY1rIrjoZpXx6rwfMCKV MIME-Version: 1.0 X-Received: by 10.194.82.39 with SMTP id f7mr32430634wjy.157.1446622210065; Tue, 03 Nov 2015 23:30:10 -0800 (PST) Received: by 10.194.2.98 with HTTP; Tue, 3 Nov 2015 23:30:10 -0800 (PST) In-Reply-To: <45672dcebea40166c2e5edc31c818b96@openmailbox.org> References: <45672dcebea40166c2e5edc31c818b96@openmailbox.org> Date: Wed, 4 Nov 2015 08:30:10 +0100 Message-ID: Subject: Re: QCA6174 seemingly randomly fails to wake From: Michal Kazior To: theros@openmailbox.org X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151103_233043_035273_8D92E8A2 X-CRM114-Status: GOOD ( 19.20 ) X-Spam-Score: -2.7 (--) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "ath10k@lists.infradead.org" Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 4 November 2015 at 01:00, 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 > 0x0000025c at 0x0003543c: -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. > 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. 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: and report back if this fixes the problem for you, please? Micha? diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 3fca200b986c..edf7a7637d88 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -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;