Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3215305pxk; Tue, 15 Sep 2020 13:11:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ2ADGTXvzDsuKcS0/atOzu5fMlN9260YpQ8PrZXa58PncEPppwy1KfKEhtBPh5yPZbmge X-Received: by 2002:a17:906:fccb:: with SMTP id qx11mr22444289ejb.429.1600200676395; Tue, 15 Sep 2020 13:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600200676; cv=none; d=google.com; s=arc-20160816; b=RLK1+WfentK34x165mpIkPeXqd/WDRRrHCybot6lXnYJTBPC/zL+XBgqTKzHd1NCYN j8HnBKJBmzNjbHJz6tsxexjcETnKeYT6EA/ej1dkPePzheBOfQOtyp1kI+mOWQpy0K98 Rk1AsRCDc3BnNfF7ug1/tLXp8bDFlKKVg2xnCBnEvaPAPdHrMMH4deL+wjX2WAisRp90 Q1rByuA9XqNGQz/qiFsf/iCFatjC7jlfgDAXiT+j4L0YgcIWCefpnQv6DMtQ8xZwbfn2 WnzZf2ZCWkG4OAbcWRAuvDHBpTyRSh50S9bmGapyRxgIQ1mRhua0+LnbSaoNuXX5FdDR PkQA== 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:references:cc:to:from:subject :dkim-signature:dkim-filter; bh=lkQky81oR5NHFTIYY5WJolakEHNp3/e/1qHeBu/CkbE=; b=ElcrxrCo5/egb2QN/D1SuC0JM43W1+kZWe4Dnbygh8q66oXTuC+t5+j3e/cvjw6n6D LRW4Dj2TmzxB1ezV/oWCDsiJOY6j5zMQBSwIvS77uSTAYhJ2TgiOgh4lgfYxtowCq4Ma Sbd0CT0AOfoXMjtefObi52Czaax6ny0ViEY3pWUBSusmUU+zv8QBTAwzVp2l2RGJqceC TygEkTV2GVkqxVhGwprTBvx48nL+8Dd0N/7M/Fg/NHs7D5W3eNG4tP+ONdQPkKfUonAx VJ0ivymEgwydwBOvaoFrdDee3vFyqj4NiAMbiO0mxfQ5wERCqsqzib5ftxddwNkjV2Tj brcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b="AfFRmST/"; 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 w23si9928530ejy.456.2020.09.15.13.10.41; Tue, 15 Sep 2020 13:11:16 -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="AfFRmST/"; 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 S1727909AbgIOUGS (ORCPT + 99 others); Tue, 15 Sep 2020 16:06:18 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:47614 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727913AbgIOUGF (ORCPT ); Tue, 15 Sep 2020 16:06:05 -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 1C5A713C2B0; Tue, 15 Sep 2020 13:00:06 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 1C5A713C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1600200006; bh=TsUfmCxdPOcuNxXZVA0Y6LPk6hZDg6C+JMlSURUtBPI=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=AfFRmST/tCf7BRrpDy/S6hr8D0Gj4fQohNL4LFpIU8K+Zz2xYD8pHVeyjuiqXL4rA 2AgzZd+HDJM9cABoBtBNAEN67BAfvBPgOlK3FbSKfoZSaSlNJYtlvgfdoTkcbIqlyC qIHXcBHyQklLxUoTgTq3BrDmQDSE0UUv/egSccaE= Subject: Re: [PATCH,v4] Revert "ath10k: fix DMA related firmware crashes on multiple devices" From: Ben Greear 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> <9389929a-cd65-6ed8-3a17-2826ef7b0a2f@candelatech.com> Organization: Candela Technologies Message-ID: Date: Tue, 15 Sep 2020 13:00:05 -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: <9389929a-cd65-6ed8-3a17-2826ef7b0a2f@candelatech.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 Hello Zhi, Do you know of any ways to detect in the driver what platforms need your patch and what ones break with it? Otherwise, we're stuck with external config (which is what I added so far as work-around). Thanks, Ben On 9/8/20 9:02 PM, Ben Greear wrote: > 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 >>>> >> > >