Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1072170pxb; Fri, 1 Oct 2021 02:54:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwCSZVptj1FkCIOzsLwHdClbsMFlznxFFi41s9Xg3YTUTEL776rZd3xRyIZa5d7NpOF76T X-Received: by 2002:a62:15c3:0:b0:43d:e6be:156a with SMTP id 186-20020a6215c3000000b0043de6be156amr9244613pfv.1.1633082098799; Fri, 01 Oct 2021 02:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633082098; cv=none; d=google.com; s=arc-20160816; b=RiITUZEuThH8kG2xQfyTWVFVhuLDiOCtRdaPJEgvkRU+eWCahFsBfDCfgbvH1+bRsP nGuYZ0yujUEN9cpsT+49T8+/Jd0E8/vj8cmsL6P2X5U+THPSZIZQQIpyc362/FB7GpGx AatxNILmHi40a5TerdQ7kUOCeOLuOQcfMd2D/0OOe/XkTJkDII1mmPhIdEgaokKTf+78 jDIuqHaoTCcUlSwgixEnfhy2YlxFeZSKN9GeTmcbGXHAOB9OUaxk57FEEc/FBdA4cK/U d6RCxCbnHqr64lYt8nnax4Vcb5ro56J5GU5AVfWfL7QsBqHMIxSN9R4RbTl/aBGU3vxQ dHIg== 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=1DKj5vboGTEknVbWWr+6T17EjLQJTO5VvsFFYfBmzIs=; b=NoDvv1+cATZ5UBJzJpxleBww35LmgnrTDPRFiWrfjoQOcjIhWeW3+hdFpkVVp5iqLA 8znvTqRXkiwfpEfc59pQ88O4kqZcXME3kCednWtrCCu7ZzijU5ivIvgnrE5K42dKUZMP zIPp6un5EmLKUnta124pZ671FyLJ2LKmG0ty9pL7NdF1tz7IY5/qxO1DhtR04Q7DxHv/ X/jnh6ttliRN6JXgSkKxsE7v9bO2XAsatCESLrLMNNJP4AvLDX7wUfC17djqlgc/JG9A ovUNUp8vEvE9+P6tgMHCNhs7GDaWdK5ZQ2IEoBQh9gV0NGa69rrKezSagLUS791s88co VGsA== 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 e4si6420997plo.22.2021.10.01.02.54.48; Fri, 01 Oct 2021 02:54:58 -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 S1353258AbhJAJzx (ORCPT + 77 others); Fri, 1 Oct 2021 05:55:53 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34194 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1353214AbhJAJzu (ORCPT ); Fri, 1 Oct 2021 05:55:50 -0400 X-UUID: a9705f17a66545f9ab2f8b10b6060d45-20211001 X-UUID: a9705f17a66545f9ab2f8b10b6060d45-20211001 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2042522711; Fri, 01 Oct 2021 17:54:02 +0800 Received: from mtkexhb01.mediatek.inc (172.21.101.102) 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; Fri, 1 Oct 2021 17:54:01 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 1 Oct 2021 17:54:01 +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; Fri, 1 Oct 2021 17:54:01 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v5 7/8] mt76: mt7915: set VTA bit in tx descriptor Date: Fri, 1 Oct 2021 17:53:54 +0800 Message-ID: <20211001095355.10598-7-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211001095355.10598-1-shayne.chen@mediatek.com> References: <20211001095355.10598-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 5e29707a5464..39c3abad4b1e 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -1067,7 +1067,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