Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp38788pxk; Tue, 8 Sep 2020 21:03:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym6ReM+NsFUQ2Q9mjUaGOSe0o03Xq5SKr/2hYwpsKAIs+3T//B8fRzzykXxjRfqhhiMo05 X-Received: by 2002:a05:6402:1818:: with SMTP id g24mr2123787edy.332.1599624210743; Tue, 08 Sep 2020 21:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599624210; cv=none; d=google.com; s=arc-20160816; b=ee6u1Ck1PeYpMBVqogDGWk1QTf/DQP8bK3LYrySJMtn38Z9qjzeRJClV0qhBAHKWdG N2gl5DX1Cm5DwUv0lSlS2C0brbmDJlBYCwXoAocd3WYSrz3TTJ7utgasxECRt4jFDLqd sfKdePyyuLSkhCb14QJhn8N8Wo+GY3X2c1FfIGi9x4ZSUE+k9CAm6r7gQ+vgRMEl2Wvy joKjW/EbSW1gFUW+h+3q+iwlMgQHKtolxJ5y+odTv9DfIgWu9uaVIDl5IpszNm5kJFC9 JxuO1YpvPW7bNx+cqmgsjXxzSUbYpvCuli1dXQ05w6jGjVhA/ozyfbgkiv3AJYogSAtI iLZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:dkim-filter; bh=3BCZ6PrXgeXtig/RfufhyCQ2bSKcY5xT1b2IIBBxs7k=; b=plMgsEffSn/zutn7X5v2haL2LXl1xGDcKaLCVFRsL6fzQY1+tz5+Ugcz92Ynsw/Oct 3yoW2iywSladNEyso9u3a+BolMWpu9MfB1qv9dHFMMZR7UOdvZQyNhu0P8ccUezQZB8F IfRRDUyQB/n2nbHuTSgLxXHe7DUkeMkXdPkfoJ8kU2kBHT7hiKF4wRLo0C1MWj+waGbl /ndvBky26qC9TzAT52IkYaHjjPo+N65Bf4S9xtbNpzrtwoZBoeBD4QzK8RV8oLyXLs7Z Qp+x7yP85fy3AQ414KZEjsKhx28wHJwRaJrxhptdFlYL+twDXbIvwyYhnc8MmOJVEzX5 BKmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b="It/1NpjZ"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf11si694927ejb.48.2020.09.08.21.02.55; Tue, 08 Sep 2020 21:03:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b="It/1NpjZ"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725863AbgIIECb (ORCPT + 99 others); Wed, 9 Sep 2020 00:02:31 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:35202 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725300AbgIIEC1 (ORCPT ); Wed, 9 Sep 2020 00:02:27 -0400 Received: from [192.168.254.6] (unknown [50.34.202.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 3C8FD13C2B1; Tue, 8 Sep 2020 21:02:26 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 3C8FD13C2B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1599624146; bh=PbuE9WkOi+5TRZpi6cPckvQQo/VistsjoG4TvO/KZrE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=It/1NpjZE0RiLWpEtDwWVCeHiay9WNc1FarS09YuCc+CYcP1Iv932D8/94NI1G9hY ErGUo12lyC3dsVsE1mWox4ZETZv/nIovQZ2PJ/yDufLhndvABjMHypBr0jsVTridWf xTepWkmFl6YH5qtYF9aIgHsoP/t0EF1jCLQ63LnU= Subject: Re: [PATCH,v4] Revert "ath10k: fix DMA related firmware crashes on multiple devices" To: Zhi Chen Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org References: <1578976521-6104-1-git-send-email-zhichen@codeaurora.org> <79a88865-6df5-e7a4-deb6-6025cc9d87e4@candelatech.com> <01010174709bb20f-026d2835-333e-43b0-aaa7-5f1ff46332b1-000000@us-west-2.amazonses.com> From: Ben Greear Organization: Candela Technologies Message-ID: <9389929a-cd65-6ed8-3a17-2826ef7b0a2f@candelatech.com> Date: Tue, 8 Sep 2020 21:02:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <01010174709bb20f-026d2835-333e-43b0-aaa7-5f1ff46332b1-000000@us-west-2.amazonses.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Please see this bug report, and feel free to ask the reporter for more details if you don't find everything you need there. Seems a basic ping test reproduces packet loss in their case... https://github.com/greearb/ath10k-ct/issues/153 I don't actually have the platform in question. Thanks, Ben On 9/8/20 7:04 PM, Zhi Chen wrote: > Hi Ben, >   Thanks for your information. The DMA issue is host related. We never hit this issue with X86 platform. And it was only seen in stress cases with 50+ > STAs(association and disassociation repeatedly). What's the host platform you are using? And how was the issue reproduced? > > Thanks, > Zhi > > On 2020-09-09 01:48, Ben Greear wrote: >> Hello, >> >> Just FYI:  I added this patch to my ath10k-ct driver, and a user >> reported it causes >> regressions on his particular 9888 system when using ath10k-ct wave-2 firmware: >> >> [   21.204868] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target >> 0x01000000 chip_id 0x00000000 sub 0000:0000 >> [   21.214437] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 >> tracing 0 dfs 1 testmode 0 >> [   21.233298] ath10k_pci 0000:00:00.0: firmware ver >> 10.4b-ct-9888-tH-13-8c5b2baa2 api 5 features >> mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,htt-mgt-CT,set-special-CT,no-bmiss-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT >> >> crc32 a00b5f36 >> [   21.596684] ath10k_pci 0000:00:00.0: board_file api 2 bmi_id 0:20 >> crc32 5bb32c02[   23.546156] ath10k_pci 0000:00:00.0: unsupported HTC >> service id: 1536 >> >> I'll revert this for the 9888 chipset (at least) in my driver, >> possibly you need to do similar. >> >> https://github.com/greearb/ath10k-ct/issues/153 >> >> Thanks, >> Ben >> >> On 1/13/20 8:35 PM, Zhi Chen wrote: >>> This reverts commit 76d164f582150fd0259ec0fcbc485470bcd8033e. >>> PCIe hung issue was observed on multiple platforms. The issue was reproduced >>> when DUT was configured as AP and associated with 50+ STAs. >>> >>> For QCA9984/QCA9888, the DMA_BURST_SIZE register controls the AXI burst size >>> of the RD/WR access to the HOST MEM. >>> 0 - No split , RAW read/write transfer size from MAC is put out on bus >>>      as burst length >>> 1 - Split at 256 byte boundary >>> 2,3 - Reserved >>> >>> With PCIe protocol analyzer, we can see DMA Read crossing 4KB boundary when >>> issue happened. It broke PCIe spec and caused PCIe stuck. So revert >>> the default value from 0 to 1. >>> >>> Tested:  IPQ8064 + QCA9984 with firmware 10.4-3.10-00047 >>>           QCS404 + QCA9984 with firmware 10.4-3.9.0.2--00044 >>>           Synaptics AS370 + QCA9888  with firmware 10.4-3.9.0.2--00040 >>> >>> Signed-off-by: Zhi Chen >>> --- >>> v2: restored 10.2 register configuration >>> v3: modified commit message >>> v4: resolved conflicts >>> --- >>>   drivers/net/wireless/ath/ath10k/hw.h | 2 +- >>>   1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h >>> index 21b7a2a..775fd62 100644 >>> --- a/drivers/net/wireless/ath/ath10k/hw.h >>> +++ b/drivers/net/wireless/ath/ath10k/hw.h >>> @@ -816,7 +816,7 @@ ath10k_is_rssi_enable(struct ath10k_hw_params *hw, >>>     #define TARGET_10_4_TX_DBG_LOG_SIZE        1024 >>>   #define TARGET_10_4_NUM_WDS_ENTRIES        32 >>> -#define TARGET_10_4_DMA_BURST_SIZE        0 >>> +#define TARGET_10_4_DMA_BURST_SIZE        1 >>>   #define TARGET_10_4_MAC_AGGR_DELIM        0 >>>   #define TARGET_10_4_RX_SKIP_DEFRAG_TIMEOUT_DUP_DETECTION_CHECK 1 >>>   #define TARGET_10_4_VOW_CONFIG            0 >>> > -- Ben Greear Candela Technologies Inc http://www.candelatech.com