From patchwork Thu Jun 2 17:03:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 9150997 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 238A76074E for ; Thu, 2 Jun 2016 17:04:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1060B282ED for ; Thu, 2 Jun 2016 17:04:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0508028310; Thu, 2 Jun 2016 17:04:35 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 89D5A282ED for ; Thu, 2 Jun 2016 17:04:34 +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 1b8W2e-0001cl-6U; Thu, 02 Jun 2016 17:04:20 +0000 Received: from wolverine02.qualcomm.com ([199.106.114.251]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8W2b-0001Zv-Rv for ath10k@lists.infradead.org; Thu, 02 Jun 2016 17:04:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1464887057; x=1496423057; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=j5Oy0e7DF5gLArcAXfc9V4hJZe1rmyDIvcZ/Csfrifc=; b=kOP9/eilEBJYlWtZHTcy1WJOR00cxDtmbPCEh4qR1D3Vn7wxFOVh0DVU 6G7VKp5i7pp0JiEea65zXmjpSpmJzA7kJk6YlJHjtVqyu1Ny7j+9SAYkP O+3KafF8LU9VssLQw6bHH5HY1PotP8Tp5HVkXgJ8rZSo8rA19iWe88+ri s=; X-IronPort-AV: E=Sophos;i="5.26,407,1459839600"; d="scan'208";a="292852986" Received: from ironmsg02-r-new.qualcomm.com (HELO ironmsg02-R.qualcomm.com) ([10.53.140.106]) by wolverine02.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Jun 2016 10:03:53 -0700 X-IronPort-AV: E=McAfee;i="5700,7163,8183"; a="742718964" Received: from nasanexm02d.na.qualcomm.com ([10.85.0.44]) by ironmsg02-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 02 Jun 2016 10:03:52 -0700 Received: from eusanexr01e.eu.qualcomm.com (10.85.0.100) by NASANEXM02D.na.qualcomm.com (10.85.0.44) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 2 Jun 2016 10:03:52 -0700 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by eusanexr01e.eu.qualcomm.com (10.85.0.100) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 2 Jun 2016 10:03:49 -0700 Received: from aphydexm01b.ap.qualcomm.com ([10.252.127.11]) by aphydexm01b.ap.qualcomm.com ([10.252.127.11]) with mapi id 15.00.1178.000; Thu, 2 Jun 2016 22:33:46 +0530 From: "Manoharan, Rajkumar" To: Ben Greear , "Valo, Kalle" , "ath10k@lists.infradead.org" , Rajkumar Manoharan Subject: Re: Bug 119151 - [regression] ath10k no longer authenitcates and freezes system Thread-Topic: Bug 119151 - [regression] ath10k no longer authenitcates and freezes system Thread-Index: AQHRvNX9Tv+kgWt0IkS2YUzn04xnSZ/V7w2AgAByqsE= Date: Thu, 2 Jun 2016 17:03:46 +0000 Message-ID: <1464887026467.72937@qti.qualcomm.com> References: <8760trzoiw.fsf@kamboji.qca.qualcomm.com> <871t4fzn1x.fsf@kamboji.qca.qualcomm.com>, <57504F05.3040200@candelatech.com> In-Reply-To: <57504F05.3040200@candelatech.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [199.106.107.6] MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160602_100418_016521_4E07D2BC X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. 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: "mike@fireburn.co.uk" , "linux-wireless@vger.kernel.org" Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On Thursday, June 2, 2016 8:51 PM, Ben Greear wrote: > On 06/02/2016 07:24 AM, Valo, Kalle wrote: >> Kalle Valo writes: >> >>> there's a regression in ath10k: >>> >>> https://bugzilla.kernel.org/show_bug.cgi?id=119151 >>> >>> Reporter bisected it to this: >>> >>> 5c86d97bcc1d42ce7f75685a61be4dad34ee8183 is the first bad commit >>> commit 5c86d97bcc1d42ce7f75685a61be4dad34ee8183 >>> Author: Rajkumar Manoharan >>> Date: Tue Mar 22 17:22:19 2016 +0530 >>> >>> ath10k: combine txrx and replenish task >>> >>> Since tx completion and rx indication processing are moved out >>> of txrx tasklet and rx ring lock contention also removed from txrx >>> for rx_ind messages, it would be efficient to combine both replenish >>> and txrx tasks. Refill threshold is adjusted for both AP135 and AP148 >>> (low and high end systems). With this adjustment in AP135, TCP DL is >>> improved from 603 Mbps to 620 Mbps and UDP DL is improved from 758 Mbps >>> to 803 Mbps. Also no watchdog are observed on UDP BiDi. >>> >>> Signed-off-by: Rajkumar Manoharan >>> Signed-off-by: Kalle Valo >> >> Adding Mike, the bug reporter. > Mike, Sorry for the regression. Since the patch combines both txrx and replenish tasklet, it is validated in low end embedded devices like AP135 (single core 720 MHz MIPS processor). It seems yours is octa core processor. So CPU is not bottleneck here. Need your help to fix this issue asap. Can you please try reducing rx refill threshold as below. > > I found a lot of problems with this code as well, and the 5 patches > starting from the URL below fixed the issues for me. > Ben, Can you please explain the sort of issues you have observed with this change? -Rajkumar diff --git a/drivers/net/wireless/ath/ath10k/htt.h b/drivers/net/wireless/ath/ath10k/htt.h index 2aa407160859..d35d3d48ae6c 100644 --- a/drivers/net/wireless/ath/ath10k/htt.h +++ b/drivers/net/wireless/ath/ath10k/htt.h @@ -1734,7 +1734,7 @@ struct htt_rx_desc { /* Refill a bunch of RX buffers for each refill round so that FW/HW can handle * aggregated traffic more nicely. */ -#define ATH10K_HTT_MAX_NUM_REFILL 100 +#define ATH10K_HTT_MAX_NUM_REFILL 16 From your log attachment from bug report, I found few timed out messages. May 30 21:09:26 axion kernel: wlan0: deauthenticating from a0:63:91:a7:3c:9f by local choice (Reason: 3=DEAUTH_LEAVING) May 30 21:09:32 axion kernel: ath10k_pci 0000:3c:00.0: failed to flush transmit queue (skip 0 ar-state 1): 0 May 30 21:09:35 axion kernel: ath10k_pci 0000:3c:00.0: failed to delete peer a0:63:91:a7:3c:9f for vdev 0: -110 May 30 21:09:35 axion kernel: ath10k_pci 0000:3c:00.0: found sta peer a0:63:91:a7:3c:9f entry on vdev 0 after it was supposed Try disabling pci power save for qca6174 as below. diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 852f2c18cd11..5e3ba37a8c6a 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -2979,7 +2979,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;