Received: by 2002:a17:90a:37a3:0:0:0:0 with SMTP id v32csp13091549pjb; Fri, 26 Jul 2019 05:11:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGcEs9YAT49r6XPu5CpcjDT3duWRoj2IHpGlpG/kev0/VB/nisOE5G5dqLYXms23hjO3nh X-Received: by 2002:a17:902:4623:: with SMTP id o32mr94431674pld.112.1564143113206; Fri, 26 Jul 2019 05:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564143113; cv=none; d=google.com; s=arc-20160816; b=0PPfkkUbD3fkaawak+73V7UIJ1zrQG0Cmo+rgTLC/CftjPwjYe/tzigavL1SznGRVg qinlSRGrUObCp2EDfcsPyoRtGkLF4LMe3jVu0IEV6JDHT9deuLTfd2Dg8i5PpMeraBh1 cCfIozW9RHlDltt799ucdnNw8fLfO6qA3Cn+S6QefuWGO6zQ0xbeTIee/8Vspu7ZciGj zCdETWHC1YIZhFt8vMhX67P1AAx0+xLrzA8WlZYhCmW60pswo8e1igTYtl0BfTufhrwO 1ENtnPfe8sfodZRjuezee+l91ltqaZuKpUreZnpv+FS4LR40unTtkld+sW05EnH+u8qK KQag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=aEqBlNZLihW+ebRVb1Tg02A3BWhB4/JEscORaGS2Umc=; b=p7n+j8bPQi6otdt4CWJPf0UEmnsrlHU9uCVovezKXDK1L3l34V82Pbid50N12+GYlv rTfwzh03vGaJPiiTQS2rOknNAIqpRJBo1yyomd7IBCRMSp9K2YL91LX4p+Xa0WOKN2vR SKPiswZOmfClgoxC4wb7/WCwgI5QYweh+eWBr8t9SqDt7z6vIwiFX0UOOk5S/6VrQ3ZT qifpWJjrQfF3+PDNBZtZOX50E6lvsy+bRY2PBqAkQHte/0zmUGIDJkZNydvqBOCYsymf 977WjWtZ2WBlwwcRkg40/b/x19/XZat33vn+/0AizFb1DH9JrrAdzopSY5CsbaGFCJ1a SfMw== 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 p13si18427866plo.33.2019.07.26.05.11.36; Fri, 26 Jul 2019 05:11:53 -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 S1726827AbfGZMLB (ORCPT + 99 others); Fri, 26 Jul 2019 08:11:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44510 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbfGZMLB (ORCPT ); Fri, 26 Jul 2019 08:11:01 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1ACB84ACDF; Fri, 26 Jul 2019 12:11:01 +0000 (UTC) Received: from localhost (unknown [10.43.2.114]) by smtp.corp.redhat.com (Postfix) with ESMTP id 381A45F9DD; Fri, 26 Jul 2019 12:10:58 +0000 (UTC) From: Stanislaw Gruszka To: linux-wireless@vger.kernel.org Cc: Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Roy Luo Subject: [RFC] mt76: fix tx hung regression on MT7630E Date: Fri, 26 Jul 2019 14:10:56 +0200 Message-Id: <1564143056-14610-1-git-send-email-sgruszka@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 26 Jul 2019 12:11:01 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Since 41634aa8d6db ("mt76: only schedule txqs from the tx tasklet") I can observe firmware hangs on MT7630E on station mode: tx stop functioning after minor activity (rx keep working) and on module unload device fail to stop with messages: [ 5446.141413] mt76x0e 0000:06:00.0: TX DMA did not stop [ 5449.176764] mt76x0e 0000:06:00.0: TX DMA did not stop Loading module again results in failure to associate with AP. Only machine power off / power on cycle can make device work again. I have no idea why the commit caused F/W hangs. Most likely some proper fix is needed of changing registers programming (or assuring proper order of actions), but so far I can not came up with any better fix than a partial revert of 41634aa8d6db. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/tx.c b/drivers/net/wireless/mediatek/mt76/tx.c index 5397827668b9..fefe0ee52584 100644 --- a/drivers/net/wireless/mediatek/mt76/tx.c +++ b/drivers/net/wireless/mediatek/mt76/tx.c @@ -598,7 +598,7 @@ void mt76_wake_tx_queue(struct ieee80211_hw *hw, struct ieee80211_txq *txq) if (!test_bit(MT76_STATE_RUNNING, &dev->state)) return; - tasklet_schedule(&dev->tx_tasklet); + mt76_txq_schedule(dev, txq->ac); } EXPORT_SYMBOL_GPL(mt76_wake_tx_queue); -- 1.9.3