Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5682971ybi; Wed, 31 Jul 2019 01:36:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXiC6nZdoHRMqvu4emxd1E8WB1MTG/oP+TNcceRF8cZkDge2FlxS4lNODR7R63glEJYbcT X-Received: by 2002:a17:902:a607:: with SMTP id u7mr120010233plq.43.1564562215562; Wed, 31 Jul 2019 01:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564562215; cv=none; d=google.com; s=arc-20160816; b=a1M8K64vxf6ulaHCU6DkAvMGWbheL1U3fi9WVKC1BAY6z18x85pdeti3UJSHe7NfLq x7lm7P8CNyhENFLnyioGo8iLEH7l6L7c7Qp5plxgi5KOcWdCndFA3fA5JVlubSSg2h6O k4ZKCl488hPMM5c6W4fBKZEyyA+FYPV/O3yCldYzuvWmggWER4BOVidFMMdcNg5W8e4R fpY2r+NSc6V8zxYbKvZcn0SvCxbVVCe4p1XcscaoIN1CUKEg+yyerFmy8B7ZIGyJMVhz 4Ctme8PP+rR8dRKuxaR/mVP/Rkcl7y0/JWYYu26U8+STEHbYJGCub3Uso2VGKninpokr vpCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=e9SaHAy9IXKDpOsebx3gqAo0OyUZVce8ZvWrShuNnYY=; b=srD77FxkfkGXGNSk3r9kXiHzUObLtyKHaf9E4qBz1obflq8RGBwiJQckRy+nvMDZMM GY/P/Nm+AJ8ay46Lj63LNWfZ654Mre22UHT+XpF0up/HJ0RoS69HtpTRP8aFADQQTpox svgbk8nuktVoRCcqXpL5Rbu6X1PyiJpBBeIHJf4NN18g6atrPZqvLxZPmTvRvvgp7o1X v585649U6d49/qalJShcoesMnUvkQxatcHQnVNIERp/NIlUWlm6nJECjyEv55e0kx6IV dC/e7wEf/9Yr5omT3a2I7IdWtRoTL47Y+f3riXe/VpGJuaygNl9m16Dgb1xH6bnnC0a1 Cazw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v186si31323156pgd.358.2019.07.31.01.36.29; Wed, 31 Jul 2019 01:36:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727201AbfGaIUF (ORCPT + 99 others); Wed, 31 Jul 2019 04:20:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35508 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbfGaIUF (ORCPT ); Wed, 31 Jul 2019 04:20:05 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DE61D308FBB1; Wed, 31 Jul 2019 08:20:04 +0000 (UTC) Received: from localhost (unknown [10.40.205.113]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E8CA60605; Wed, 31 Jul 2019 08:19:59 +0000 (UTC) Date: Wed, 31 Jul 2019 10:19:58 +0200 From: Stanislaw Gruszka To: Lorenzo Bianconi Cc: linux-wireless@vger.kernel.org, Felix Fietkau , Ryder Lee , Roy Luo Subject: Re: [RFC] mt76: fix tx hung regression on MT7630E Message-ID: <20190731081957.GA4096@redhat.com> References: <1564143056-14610-1-git-send-email-sgruszka@redhat.com> <20190729125351.GA3086@redhat.com> <20190729140241.GC4030@localhost.localdomain> <20190730135450.GA2361@redhat.com> <20190730145531.GA3813@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190730145531.GA3813@localhost.localdomain> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 31 Jul 2019 08:20:05 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Jul 30, 2019 at 04:55:31PM +0200, Lorenzo Bianconi wrote: > > > > diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c > > > > index 467b28379870..622251faa415 100644 > > > > --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c > > > > +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c > > > > @@ -170,7 +170,7 @@ static int mt76x02_poll_tx(struct napi_struct *napi, int budget) > > > > mt76.tx_napi); > > > > int i; > > > > > > > > - mt76x02_mac_poll_tx_status(dev, false); > > > > + mt76x02_mac_poll_tx_status(dev, true); > > > > > > I am not sure if we really need mt76x02_mac_poll_tx_status() here since we run > > > it in mt76x02_tx_complete_skb() and in mt76x02_tx_tasklet(). Anyway the only > > > difference doing so is we do not run mt76x02_send_tx_status(). > > > > I thought this is the problem, but it was my mistake during testing. > > I tested the above change together with mt76_txq_schedule(dev, txq->ac) > > change and get wrong impression it fixes the issue. But above change > > alone does not help. > > > > I tried to add some locking to avoid parallel execution of mt76x02_poll_tx() > > and mt76x02_tx_tasklet(), but it didn't help either. So far only patch > > originally posted here make the problem gone. > > so, in order to be on the same page, if you comment out mt76x02_mac_poll_tx_status() > in mt76x02_poll_tx() the issue will still occur. The only to 'fix' it is to run > mt76_txq_schedule_all() in mt76x02_poll_tx(), right? Yes. Stanislaw