Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp794107pxa; Wed, 5 Aug 2020 12:57:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzytm3zvRZtuc+710VxLQG2bG58npzpp5vGYC2jah+0k04VPAT6eejjpQM1sw3GJvMFfBmF X-Received: by 2002:a17:906:b2d0:: with SMTP id cf16mr945735ejb.476.1596657444711; Wed, 05 Aug 2020 12:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596657444; cv=none; d=google.com; s=arc-20160816; b=OFueYvZQoOzDS1QKEQl9XDyE0YK/86tdwFg5bUtLL1Aq9mLs64XMl4cusm7CFMPdmG fcriKXKF/yaM+pwt+VWEhUSpZxapBFZdm4rLVc2x5CKVhop49sjU2iqRKrlC+39msBmF Pa/Jeqt6k6IYkA+wTkNOs9/y/NLa4LdFTtRqbhHKYmSZZXjv2pRsYh5XCYN7PKUxQ4oC 2sOMLiWy7S4UzuSzeCOh49p6wuu/awOZnIdKNsKvQEhjiPOB5+CLISgKFulIW2QCSYQ8 JuqXw7tsHdP858QnokXHbnrOBc82t9eFqMTOA4eC0KOvSjjMwZoR/q8zQmsx+2adktNK hvgA== 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:from:references:cc:to:subject:dkim-signature; bh=1iOZ+P++d3lrufGqurBgPCXRh6ZcH1g+4KMY8qM0WU0=; b=NYX7vfhIfn1xIQfXRXKu9TCNbWLo5rSjgwJ68H7ppeWxXwMFVV6nYLJgLzmSneo29W jNwtnItGQ8tSrHWJkKyOJO/sl+Jmb8198SUcg/NbO54qVwdSapz6Io9S2SQYp7K+QXoe LO5dszF91yvGEOBbEFLRelGHMNmEK+x1yjRgqPhZM4rlo/nuHZ1A4Hlml++ZGA/3gPF4 +tPfexjsprGEo5lXmMh+jOjQ2ItIYR9JCyxnI0m2x02tl+eu3rXkzlXjwwZcfQYoJmuD f8R7qurGVwyg4ISM6hmWHN8S5Hjf+XLP216fgWputBhbbahQxpxPQr7pWxbyWXnTb/LX w5QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lwg4a84I; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si2031911edg.217.2020.08.05.12.57.00; Wed, 05 Aug 2020 12:57:24 -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=@gmail.com header.s=20161025 header.b=Lwg4a84I; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728055AbgHETzd (ORCPT + 99 others); Wed, 5 Aug 2020 15:55:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727824AbgHEQqz (ORCPT ); Wed, 5 Aug 2020 12:46:55 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E8FDC0A889C for ; Wed, 5 Aug 2020 07:01:07 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id i19so24308479lfj.8 for ; Wed, 05 Aug 2020 07:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1iOZ+P++d3lrufGqurBgPCXRh6ZcH1g+4KMY8qM0WU0=; b=Lwg4a84I6HeDaQ4x1UJ4L4QCAJGWNrUYiyCQwvRVv8L/0kaKsv1olAIETmn7Hw1ea9 F4W1dvoe2WUvpOg3e/8UedL/FUCMs2YIXWW+yuR6GwyuM1PH944zUAfWTygIKAygkS6J 3xg+NRZlLlOmDH1bhEEoOVGLhlKrwIokqZV7+YCeZnRnOQdDfoBrzj1MX2BQXvjABhGj FzoEvGbBR6w1cg1j5WaXxsOau5uYKDKCHnahl3cE5jvI+4t7aopJlN+N7/rFpKr36wLn QP6gCEojx4xiM+U/fFL5oCGpEMT9oxTZKvl10b/tuLl+m7zD5ABpUz1nnKTo5649criW jpJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1iOZ+P++d3lrufGqurBgPCXRh6ZcH1g+4KMY8qM0WU0=; b=Ak4EVABbvhxdbtoGGAG3efSOGgeKrtQkppRStYnQy09akKmnXCt0JyvP+dFVMbxSqu e4wJf4Bns9ecbpUzLhJGG3fwpQYo1ogp5+Gx5VWhtAkE1dBmAeYkY5ndPFlGWq0s961i O8C5k0lzai1OBtxLYC8nHdYL7w6Gux0kaoRlAKktwZTAHABvEX4HRlOS21s1FPINX/FY ZFKaY4+VXdOzBS0EiP6SDClfYyMgye/NC/NAMVQVLeAcaByVdSIg0vxXNi/ouvpcXyh1 UairzyA7kwnB9RepIR/EIHCt67JFwt+qHZ1b6CwI24EqZFlF2L41qyvaK9gONJaB/a7M bwow== X-Gm-Message-State: AOAM5335EUtjkLbOgNVVLn3Km2uDJNFfNAGGww1W1TEbkkv1W4jQ6gG0 nio7v68EgesfMvwSIHOkNXY= X-Received: by 2002:a19:c1d6:: with SMTP id r205mr1627463lff.141.1596636065715; Wed, 05 Aug 2020 07:01:05 -0700 (PDT) Received: from [192.168.2.145] (94-29-41-50.dynamic.spd-mgts.ru. [94.29.41.50]) by smtp.googlemail.com with ESMTPSA id c21sm1145501lfh.38.2020.08.05.07.01.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Aug 2020 07:01:04 -0700 (PDT) Subject: Re: [PATCH V2 3/6] brcmfmac: reserve 2 credits for host tx control path To: Chi-Hsien Lin , Kalle Valo Cc: linux-wireless@vger.kernel.org, brcm80211-dev-list@broadcom.com, brcm80211-dev-list@cypress.com, Arend van Spriel , Franky Lin , Hante Meuleman , Wright Feng , Amar Shankar , Jia-Shyr Chuang References: <20200610152106.175257-1-chi-hsien.lin@cypress.com> <20200610152106.175257-4-chi-hsien.lin@cypress.com> <875z9yr7lg.fsf@codeaurora.org> <87a6zapbqp.fsf@codeaurora.org> <0923f45f-03e3-a870-3d2a-35f982482e1a@cypress.com> From: Dmitry Osipenko Message-ID: Date: Wed, 5 Aug 2020 17:01:04 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <0923f45f-03e3-a870-3d2a-35f982482e1a@cypress.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 05.08.2020 11:24, Chi-Hsien Lin пишет: > > On 8/5/2020 1:22 AM, Kalle Valo wrote: >> Dmitry Osipenko writes: >> >>> 04.08.2020 14:08, Kalle Valo пишет: >>>> Dmitry Osipenko writes: >>>> >>>>> 10.06.2020 18:21, Chi-Hsien Lin пишет: >>>>>> From: Amar Shankar >>>>>> >>>>>> It is observed that sometimes when sdiod is low in tx credits in low >>>>>> rssi scenarios, the data path consumes all sdiod rx all credits and >>>>>> there is no sdiod rx credit available for control path causing host >>>>>> and card to go out of sync resulting in link loss between host and >>>>>> card. So in order to prevent it some credits are reserved for control >>>>>> path. >>>>>> >>>>>> Note that TXCTL_CREDITS can't be larger than the firmware default >>>>>> credit update threshold 2; otherwise there will be a deadlock for >>>>>> both >>>>>> side waiting for each other. >>>>>> >>>>>> Signed-off-by: Amar Shankar >>>>>> Signed-off-by: Jia-Shyr Chuang >>>>>> Signed-off-by: Chi-Hsien Lin >>>> [...] >>>> >>>>> This patch causes a severe WiFi performance regression on BCM4329. >>>>> Please fix or revert this patch, thanks in advance. >>>>> >>>>> Before this patch: >>>>> - - - - - - - - - - - - - - - - - - - - - - - - - >>>>> [ ID] Interval           Transfer     Bitrate         Retr >>>>> [  5]   0.00-10.00  sec  17.2 MBytes  14.4 Mbits/sec    >>>>> 0             sender >>>>> [  5]   0.00-10.04  sec  16.9 MBytes  14.1 Mbits/sec >>>>> receiver >>>>> >>>>> >>>>> After this patch: >>>>> - - - - - - - - - - - - - - - - - - - - - - - - - >>>>> [ ID] Interval           Transfer     Bitrate         Retr >>>>> [  5]   0.00-10.00  sec  1.05 MBytes   881 Kbits/sec    >>>>> 3             sender >>>>> [  5]   0.00-14.01  sec   959 KBytes   561 Kbits/sec >>>>> receiver >>>> Can someone please send a revert patch (with the explanation above) >>>> if a >>>> fix is not quickly found? The commit id is: >>>> >>>> commit b41c232d33666191a1db11befc0f040fcbe664e9 >>>> Author:     Amar Shankar >>>> AuthorDate: Wed Jun 10 10:21:03 2020 -0500 >>>> Commit:     Kalle Valo >>>> CommitDate: Tue Jul 14 12:46:43 2020 +0300 >>>> >>>>      brcmfmac: reserve 2 credits for host tx control path >>>> >>> Hello Kalle, >>> >>> I'll send the revert if nobody will stand up to address the problem in a >>> two weeks, thanks. >> Thanks. Then I should be able to get the revert to v5.9 so that the >> release won't be broken. (v5.8 is unaffected) > > Dmitry/Kalle, > > We'll take a look and revert/fix it in a few days. Good to know, thank you.