Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2768820pxb; Mon, 18 Oct 2021 01:08:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz/K7K+PRebn4ULnEIpMza5X9vXglul1/gFMtLFV2ZfetknmPjFZOkYjtXQ4S3bD6tXncN X-Received: by 2002:a17:90a:353:: with SMTP id 19mr32041103pjf.83.1634544521384; Mon, 18 Oct 2021 01:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634544521; cv=none; d=google.com; s=arc-20160816; b=DvOCCxhiePgtcLwo89ZOrEPC+M1hacSRPUUugzf8XvxjURdBo1cjkT8guZa/3eUofo laMCWqkr7OyuRNrtLI/F5kaVkvIS9y5gW6PdywNM6dGn7Tj0NlD0RnouO4If5iEwFY7l 7EZgL2TrcRhrBT4se0hUv9BjsgN5xkvPmJPsWRJQqg7pfsJRevtJyvglmXUQBCeoz9kp DDLYv3nou3JanVGnoSjdauwtaQbzJOtY1BUetwz57aYlUZ5DlT0qid8mH5EsSox7hYvu ejSB+f1m8Vj0ipq5/zcpjxEuaXmxzN8FhcrJZoqKyDpnASmG3vjEvUs6bPNx7q8k9Svp GYdg== 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=2v7CYjyblfjWQK2si08Ink8aNjvCzjspfBxss2KRlpU=; b=xiI7yGR8TJDly5hpPXfCz5Gj9RGbTc6fHhf0DHdiqL0WjmgEICr2915W7fE6j3RVOL 1FyC4FUI+eerCTB+I+tTnUHJguTJoggMbF3V2gfOa5hH8J7vbulk+mJuWn9x96YYuy+v yHsfBuxN5T57xSo6T7v8/OaTLqhmdgLFKVrlT50mSpkYiX6xWxjPEQDJkDaHH/WTk+rD ektCiuZ6JaG/f9k4zZgo5MK6IpoRIarGBEvDKKK5Cy4Dr0tnYGp4Thh1T+oCXST/rFzv 7uKqRTzlkxKX3F7voH5Si0+F8UOBdcuxJTJfHxwo4i1zVHjSdwg4VmuD6ts31yRAmMf2 wvww== 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 f185si19444081pgc.274.2021.10.18.01.08.28; Mon, 18 Oct 2021 01:08:41 -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 S231225AbhJRIKe (ORCPT + 64 others); Mon, 18 Oct 2021 04:10:34 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:52558 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230392AbhJRIKd (ORCPT ); Mon, 18 Oct 2021 04:10:33 -0400 X-UUID: b716edd82363481184eee39476a134d1-20211018 X-UUID: b716edd82363481184eee39476a134d1-20211018 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1811182813; Mon, 18 Oct 2021 16:08:20 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Mon, 18 Oct 2021 16:08:20 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 18 Oct 2021 16:08:19 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v7 7/8] mt76: mt7915: set VTA bit in tx descriptor Date: Mon, 18 Oct 2021 16:07:05 +0800 Message-ID: <20211018080706.11401-7-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211018080706.11401-1-shayne.chen@mediatek.com> References: <20211018080706.11401-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 b992fdd338e2..d3d220f2f493 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -1068,7 +1068,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.29.2