Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp430894pxa; Tue, 4 Aug 2020 08:54:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNBEFEz4nqEyF1Oo/l03RH/+0hmkOgisACPyAcWcQViNRBuBBGO7iS6v7in8waVRK5RKyW X-Received: by 2002:a17:906:b015:: with SMTP id v21mr11507619ejy.507.1596556454369; Tue, 04 Aug 2020 08:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596556454; cv=none; d=google.com; s=arc-20160816; b=cW7oCeydaiTlFyOc0in4TMM6De4EJjqmPcuCKrPz9ahQ70ME3WhD/yYk8IURrioEgm Ro7PSWRo9CUpDPe4mCJ5haRGf06phMrI80gO39AG6ua+n911VBeQyZojo7wr4bLt1ZSd Csjga0WMDdSV6WW3efiU5MoBtwnwIJO9f6tmLzuDP1XeO4SvA2v3u1bcqH7l2TqL5TXg sh4pG31uS6vyBtAyfAHbnLkHypBGgsDs+JtQh1rx19EjuWLv5Hd1AIS2DtIg0SgPlFGq OXYxnvPlk4QevkYy6vFo9mHw3ypQaAUYPXXbnWbXirwIcSu4CbPSGll5sPMiOJYkn4UI OlIg== 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=sRCHmaRWrj71+p+/CjUrSN9Jr6wXyLPJ7hErKYgqGA4=; b=iKDs0GfkhD7cuHcljHFJjYYbUImrIp9vHjegDv3xdEilTd2/xODl4MCvmr9XX01pQZ mJuPL3YoCZAEjom/ZgKunLOYgvQFQRAMe1gW/EXAoAP+MWRypD+lC29vCsshwZwhf0Sk UWKfkuBMp+mc5ShV8zP4KVQSOQsZscdhKfYqBiGnPAuzuITg/dH1x3HkO+kU+LSaH2bL IDqgqIHbClKKjL5EHJg1WAkzyxd4xi6Qp9kzMQGULhJlkJSb9vcBCrp1YWH9S/Pw09+n LQuWvW7S79S8XYZtfXb4dbc5g0ntpWIAhpcqUz94FWOm2WNkPG6LipRIHkyZcMJH3itB dmOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D1ATvsot; 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 y8si13139434edm.463.2020.08.04.08.53.39; Tue, 04 Aug 2020 08:54:14 -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=D1ATvsot; 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 S1728467AbgHDPxb (ORCPT + 99 others); Tue, 4 Aug 2020 11:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728157AbgHDPxY (ORCPT ); Tue, 4 Aug 2020 11:53:24 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 124BEC06174A for ; Tue, 4 Aug 2020 08:53:24 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id 185so33929831ljj.7 for ; Tue, 04 Aug 2020 08:53:23 -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=sRCHmaRWrj71+p+/CjUrSN9Jr6wXyLPJ7hErKYgqGA4=; b=D1ATvsotv6H5IFowhT8XoO+WT+quO4nRfXwAp9F5eUg+fjoZKZBIFrJ1XZBsX2foTV oEAbgunCskKneycUlZmF4PXlVx/5AfiGbzjkxK5iWVC5kKIjrzdauos7gWmEMzjnENQH UlSOyOis97IFwU2tAMcDjmZzGqyrFyzjraaS0v7Pos7+6PdfLmKREd7pENZzbBncH7x3 RHgR5a8DLpQbHExpgLZllr4eydaz2ncLY4PxaeCbq3n2brA0JffuUSsA5lqXRHb/+XWs JcBxrpzv4Uyz5aAR5UlivNUT8PTJDF76kMau7tPhkuV2v5mieZDH8SRNxTxIw85Jb3oi kU7Q== 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=sRCHmaRWrj71+p+/CjUrSN9Jr6wXyLPJ7hErKYgqGA4=; b=iD6vkcOQM/1kks4QxmJtsm/zUfIwZ1+qH8PQIG3BFzm1CiZXMCS0Zy5TKjWpyZkl4c Hhkdsi3FHzbn0HIHCMCHqnBBQTG4lBHWkjh5o1ZgyxDUdjUhr0do0SLY05z4ZgM9YYDQ /2PNOxzK9QaLwv2sEnqlv+Gl8aUr0njX9z0oYBbYLFQtWNpS+AF2Gq+Go5zuuXGzsOke Jba3csKBdZH71niK6jhgJvKwhKOTbv7HYXIYBErMQw55Qn3448T2Z3H5U+6n2IfHsdi5 hnCS0/Ds4laKIlDDpfhQbSf4Z0wKYcBet8AwxrhvRWwmKpomstNGoj2ZZp2ye44xqJsI +jyg== X-Gm-Message-State: AOAM533wKy5aq7/VtQDYd9IE+5tcska3empMaL2pEV8MH1USVHgYGSAm lSv0yEthW1RUpdxkKFfsMoY= X-Received: by 2002:a2e:9acc:: with SMTP id p12mr11116397ljj.363.1596556402524; Tue, 04 Aug 2020 08:53:22 -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 a7sm3381785ljk.2.2020.08.04.08.53.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Aug 2020 08:53:21 -0700 (PDT) Subject: Re: [PATCH V2 3/6] brcmfmac: reserve 2 credits for host tx control path To: Kalle Valo Cc: Chi-Hsien Lin , 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> From: Dmitry Osipenko Message-ID: Date: Tue, 4 Aug 2020 18:53:20 +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: <875z9yr7lg.fsf@codeaurora.org> 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 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.