From patchwork Tue Mar 28 17:45:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Guilherme_=C3=8Dscaro?= X-Patchwork-Id: 9650303 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 34529601E9 for ; Tue, 28 Mar 2017 17:46:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DC5628456 for ; Tue, 28 Mar 2017 17:46:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 107DB2845F; Tue, 28 Mar 2017 17:46:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6BA1A28456 for ; Tue, 28 Mar 2017 17:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:To: Subject:Message-ID:Date:From:References:In-Reply-To:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zAglU8yP9v0mSs2zuXYn3sgfmma3jLvHHdWKtGFl+Rg=; b=ETz9vYLez6TJGmMQCv3p4r7yz 6jq958BoD5E2YcHPQb6FlovNM6HSi4B1eMSyMkWFt34a7dDKFqGLfqI5pyyJEWXUM5OutxEwqlc9d Ytl9m/1M2J2gzQJ4GskVBzjNeR12AvpUKFuY9c8xA2VZcntAYt87oSIlTycxotxcrPhmiuO2vGEsi uO/1KRGOwqcp3LEpuZHCVH6oxViaubQnFhQEaz7c+t4MKSEHGGV4dU/K2Wi9e9sraR9SHo5lWXB0+ 5mHBJ+f+Ip+baxaQCjAQZ7EuBnxBMKV0XeRMzdLtrRan1TLTzWXwUUreolC0Wy2sP3kPGvjqnJpts GF6LJavZg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1csvCL-0007m5-Pv; Tue, 28 Mar 2017 17:46:25 +0000 Received: from mail-it0-x22e.google.com ([2607:f8b0:4001:c0b::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1csvCH-0007kZ-Er for ath10k@lists.infradead.org; Tue, 28 Mar 2017 17:46:23 +0000 Received: by mail-it0-x22e.google.com with SMTP id y18so28816293itc.1 for ; Tue, 28 Mar 2017 10:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Z6/dn+kurLTYNpN64CrV7l+LMfKM3KIe3yF7wi1at/U=; b=smMNh0fkG5omr+FRCgms4VAEgMRjKQgiaKsKwATaD3H5kywU6+H7rYygJp8c3MVk2W w0bKreIhiAF2AYhcWOp9PFgm6zYmAJ9BPq+TBwHsYsvC8xNOgKEBZnl3KrRvZeGJh9JF ZwP0PB8zLLtoFOA00eobSxisa0+UgwSHfhsXRkULuXf+fdCRcUqrngtrEgyw+wfg3gfG 56ukE0i0tNrlC+dHVO+8BmqwGKkWOGBV7JfA7cKpskDieqi7MRFkuh0DYRh/IQZYGwyi lqfEzNvRdneMgQ1vc5S01iDerQVZaXBumsc8O6SuQKoMSbWUHW/CH0vc7hOm25Kujk+M L3JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Z6/dn+kurLTYNpN64CrV7l+LMfKM3KIe3yF7wi1at/U=; b=NbO9aH9XYB2awiIq6YfSVMIPi68Zap4D9IbKvgordLCJZLIIA8ISMF/6Tf9uM+wPdU KDAC5Dpx5UfrjxRDxiPskPZR9mPALqNO0htxL/RLWZJ6k6nuzk5vJu9O6/V6Bsb0srbb 1xW5QK2t4rC/pWTpiSbhhaUnwQoDSTGBLIupXQkdnNEUTGr9dQyuYamhSsPwwPNOOMtM SPkzLbrFTUx/IhJbz12Ag4EWJS2xfKRaBs3mmcZw9E+b0927qORYBw1QuidrcKQ0NVE7 k22C3IzdP+bF4pOCfhDR2FLSDOrQsUw9cmLLA9xsVLK6hTy71GPtUk7ErPEns5FeB9yx +RSw== X-Gm-Message-State: AFeK/H1KvY1mOvTD5HCbR05JxmgErpIJieDaH8oSBnsZpcaOEaI3JWNIKBLnMJVzwI4AWGSicyG+oSurNaXX7Q== X-Received: by 10.107.137.226 with SMTP id t95mr28101481ioi.79.1490723160028; Tue, 28 Mar 2017 10:46:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.135.33 with HTTP; Tue, 28 Mar 2017 10:45:59 -0700 (PDT) In-Reply-To: References: <43883e2c701b437e9785b89faaaf848b@NALASEXR01G.na.qualcomm.com> <1490309165963.76201@qca.qualcomm.com> From: =?UTF-8?Q?Guilherme_=C3=8Dscaro?= Date: Tue, 28 Mar 2017 14:45:59 -0300 Message-ID: Subject: Re: Reporting a bug for QCA6174 802.11ac To: Ryan Hsu X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170328_104621_578808_8F694294 X-CRM114-Status: GOOD ( 25.63 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 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-Virus-Scanned: ClamAV using ClamSMTP Hello everyone, I would like to inform that I "fixed" the problem. After my last email, I cloned the linux repo and started to hack around the driver source code. By looking at the dmesg output that I provided to you guys, I noticed that for some reason the board was not being properly awake ( ath10k_pci_wake_wait() returns ETIMEOUT). I so sick with this problem that I hardcoded "ar_pci->pci_ps" to false, thus the board can't sleep now. Please, send some thoughts. I attached the patch so you guys can take a look. Thanks. 2017-03-23 20:11 GMT-03:00 Guilherme Íscaro : > Hello Ryan, thanks for your contact. > > My AP is a D-link DMG 6661. I'll try another wifi settings and check > if it happens and if it happens I'll provide de ftrace logs. > > Btw, just after I read your email the bug happened. Here's the full > dmesg. After the "failed to wake target" problem happens it keeps > flooding dmesg forever. There are no other error indications. > > I guess that the dmesg output will not help us, maybe ftrace will be > more helpful. Anyway, here's the dmesg... > > Thanks for your help > > 2017-03-23 19:46 GMT-03:00 Ryan Hsu : >> Let's start from the basic, could you provide the ftrace logs and also the AP model you're using? try without security or different phy mode to see if it would behave differently? >> >> The last thing is, your previous logs only stuffed with the register access failure logs, can you share a full dmesg logs as well? >> >> Ryan >> ________________________________________ >> From: Guilherme Íscaro >> Sent: Wednesday, March 22, 2017 3:17 PM >> To: Ryan Hsu >> Cc: ath10k@lists.infradead.org >> Subject: Re: Reporting a bug for QCA6174 802.11ac >> >> Hi, unfortunately the problem happened with the new drivers and firmware. :[ >> I really don't know what to do anymore..... >> >> thanks. >> >> 2017-03-22 10:56 GMT-03:00 Guilherme Íscaro : >>> I've installed the new firmware/driver. I'll send a new email in some >>> days to tell you guys if the new driver/firmware resolved the problem. >>> >>> Thanks for the help. >>> >>> 2017-03-21 15:58 GMT-03:00 Guilherme Íscaro : >>>> Hello Ryan, Thanks for your response. >>>> >>>> My AP is in the same room that I use my notebook, it's right in front >>>> of me. There's no specific scenario for this failure to happen. >>>> Sometimes it does not happens for days, but sometimes it happens 3/4 >>>> times in the same day. >>>> It looks like that there is not specific scenario, sometimes it >>>> happens while I'm using firefox, sometimes it happens when my laptop >>>> is "doing nothing". (Was it helpful?) >>>> >>>> I'm using WiFi 802.11n, 2.4ghz with AES. >>>> >>>> I'll try this new firmware/driver. >>>> >>>> Thanks. >>>> >>>> >>>> >>>> 2017-03-21 15:35 GMT-03:00 Ryan Hsu : >>>>> Iscaro, >>>>> >>>>> Not sure how exactly the issue and scenario of your usage. >>>>> >>>>> e.g how far the AP from you and is there any specific scenario you're seeing the failure open? >>>>> >>>>> Also would you mind try to pick up the latest firmware to see if that help? >>>>> https://github.com/kvalo/ath10k-firmware/tree/master/QCA6174/hw3.0/4.4 >>>>> >>>>> With the latest firmware, you might also need to get the latest driver backport package. >>>>> http://buildbot.w1.fi/backports-wireless-testing/ >>>>> >>>>> Ryan >>>>> >>>>>> -----Original Message----- >>>>>> From: ath10k [mailto:ath10k-bounces@lists.infradead.org] On Behalf Of >>>>>> Guilherme Íscaro >>>>>> Sent: Monday, March 20, 2017 08:32 AM >>>>>> To: ath10k@lists.infradead.org >>>>>> Subject: Reporting a bug for QCA6174 802.11ac >>>>>> >>>>>> Hello everyone, I would like to report a bug for QCA6174. >>>>>> >>>>>> I use WiFi everyday, but from time to time I lose my connection. This might be >>>>>> related to a firmware problem, because after I lose my connection the firmware >>>>>> keeps flooding dmesg about problems. >>>>>> >>>>>> I have this problem since I bought my laptop (which was last year) and I do >>>>>> regular updates in my system. >>>>>> >>>>>> P.S: dmest output attached. >>>>>> >>>>>> My system: >>>>>> >>>>>> Dist: Arch Linux. >>>>>> Kernel: 4.10.3-1 >>>>>> Linux-firmware version: 20170309.695f2d6-1 (commit 695f2d6d82173f4e... >>>>>> from linux-firmware) >>>>>> Board: 02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac >>>>>> Wireless Network Adapter (rev 32) >>>>>> >>>>>> >>>>>> Please, let me know if I should provide more info. >>>>>> >>>>>> Thanks. From c3bc3e52998d8b6189da00391570359e17d1d359 Mon Sep 17 00:00:00 2001 From: Guilherme Iscaro Date: Tue, 21 Mar 2017 10:05:40 -0300 Subject: [PATCH] FIX BUG. --- drivers/net/wireless/ath/ath10k/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index b541a1c74488..0da470b0aee4 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -3187,7 +3187,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; pci_soft_reset = ath10k_pci_warm_reset; pci_hard_reset = ath10k_pci_qca6174_chip_reset; break; -- 2.12.1