Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2754630pxb; Mon, 6 Sep 2021 04:48:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDVR1kbnEaKgFtFmyXuLaI1QLIq7SmfXp9KPfMwVwS+wrZOUY8sXwt7vd1ImsIxoHTOUdp X-Received: by 2002:a5e:c30c:: with SMTP id a12mr9220352iok.52.1630928880088; Mon, 06 Sep 2021 04:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630928880; cv=none; d=google.com; s=arc-20160816; b=B2tLITygAZDBnUIVzMQbMSO4CTZKYveB+HfpnKbYTyYLDfpoBq4kFcKPDpSgja/03z xqXa6tGbeakRBSJiKQGgsty8Z0WMuCA2qIZVLOTnlIHWnD7x+PCbj1OGzusSC9Fclmp0 pxTnpaSPKozyL5IyW3ketuSJ/OuJsCof9KjSQ+jyR1YWx1DzWaJ/2WJpPhaY29I0yXJt rqdNJxrRLLUtlRtGlDxwF6iU6JeC3Bj9vKoxxloqHiRqEVOCAWV4hTk5o9NFUn40Op4l zUI4otBFBmrMKWf6jQov+aXtEAX+f41LAL2Lq8CfrgSDFTB5U37woMm975RclkbRGNo0 qSbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=3wdm6bqzWysPDYEynWNKKdOvZB/dvrtb0snSQAOZJPU=; b=ZY7f1MWbxL5m9cKY9QQ07lL8IZCsXKUr3ufrqWv3gRNVyFQnhkujLWFaR2GwdfEbET ry5SamOa3tTjU+3aGqtPRcLZIDuVDzrV63oI8h54zwAADaYFTqnKRLwElHicbT+b/CAP RyNeWrDY5GvV8Cz84QOA7AmfB3tTc9hhacSlJRzj/W74/hNN1OFIMaZ601+BWom0Ba/j rVh0k5O3WN16XGbLChU3HKyNmplxcDX4fPZ3+86jFn+i6/MiBknM5H5hQtujRcge9zII bHjvEM80031rUgUgxqVpi8tjzsDurhKFNe8aA1U1NVwiRMv5PMnHYD0Qo4ARYhfd+79L m0+w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si6806870ilm.108.2021.09.06.04.47.48; Mon, 06 Sep 2021 04:48:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241374AbhIFLqQ (ORCPT + 99 others); Mon, 6 Sep 2021 07:46:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38858 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S239056AbhIFLqP (ORCPT ); Mon, 6 Sep 2021 07:46:15 -0400 X-UUID: 900a2da1fcee444e82c130f8977e40a6-20210906 X-UUID: 900a2da1fcee444e82c130f8977e40a6-20210906 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1419260704; Mon, 06 Sep 2021 19:45:08 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 6 Sep 2021 19:45:06 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 6 Sep 2021 19:45:06 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v2 7/8] mt76: mt7915: set VTA bit in tx descriptor Date: Mon, 6 Sep 2021 19:44:22 +0800 Message-ID: <20210906114423.13646-7-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210906114423.13646-1-shayne.chen@mediatek.com> References: <20210906114423.13646-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The VTA (Valid for Txd Arrival time) bit should be set in tx descriptor, which is necessary for WM fw to schedule SPL (station priority list) normally before generating txcmd. If it's not set, some unexpected wcids may be involved in SPL. Suggested-by: Nelson Chang Signed-off-by: Shayne Chen --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index 1b8e37e265cb..497ae9935116 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -1034,7 +1034,7 @@ void mt7915_mac_write_txwi(struct mt7915_dev *dev, __le32 *txwi, FIELD_PREP(MT_TXD0_Q_IDX, q_idx); txwi[0] = cpu_to_le32(val); - val = MT_TXD1_LONG_FORMAT | + val = MT_TXD1_LONG_FORMAT | MT_TXD1_VTA | FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) | FIELD_PREP(MT_TXD1_OWN_MAC, omac_idx); -- 2.25.1