Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp101030pxb; Fri, 15 Oct 2021 01:21:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS6ghZtQrxCWwuhWcu7YubSo6jhCKuzcR0IS+QeR0yXbD1ehIVLXL/v7nJ5yLr42sD4UEH X-Received: by 2002:a05:6a00:24c8:b0:44c:654b:403b with SMTP id d8-20020a056a0024c800b0044c654b403bmr9816759pfv.55.1634286080079; Fri, 15 Oct 2021 01:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634286080; cv=none; d=google.com; s=arc-20160816; b=c2EARtCu3zhfFFEyNpbqHW5Y42HVy3W65XbNkEsb2W9vOer6g5QUwUFEIJmE0eMUFh On33ppz++jJFl9i4Yig6pYsFizD8fZBFHydOWMJ5v1RboACv2ZLe3YseRlAQAzE/2ART e2vR+Qv4hMaYs15kbbfvFPFRbqNdzyEDvqrIVASV9+lUhdxOMLw0hIV2hNu6FW2oivxT EnulOREZspjvduJcQxg21E8ybIDFHs+zVEiuuWbYFmwQJS0rcA16PcZhEVPzrCzWkGj7 mkNm1s2k2xuKGbWzRpiKBwYjy1thbLc6MA4oIXz/Dc2nWsSqA8AIpFd3N+QYjzpmbvQ9 qdmw== 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=VBb/KdHob+E6wWkThGqfBOTAvt9Tg7LJDehmAhfj/N8=; b=nP+ReKrlizv4oRNvCi9RGcl1/xMZ5l321pias5894v9wVMMcB2EsPoyaKJ30rjPnn+ IuOsd10E57l5S6P2DZzLyBEVDtsLzi3vpJN/Gut6vyAM3bEsSVo6VZp0KwwbJ+h5eWaB qVOiU3slizTCJ9J5PE4dTsMtEtiYKaojiXpnMFS8JGpyE6/xNqA0kidGs5uBWVo7MNyp y+nVx+fjdJ/o+5AQNyQ5XkWDA4DB7uwI3OdWeSFWmK8yyExPhBwpCDRRhgLgu68QLDbZ 7t6XDpscYh1cXEPylM8GbB3WlF/aR4Ugs7ajSr2YA212Z75GRIbXnwqYAdjzc2aLtJCI LtTQ== 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 i5si9271717plr.63.2021.10.15.01.21.11; Fri, 15 Oct 2021 01:21:20 -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 S234199AbhJODct (ORCPT + 63 others); Thu, 14 Oct 2021 23:32:49 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:47228 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234152AbhJODct (ORCPT ); Thu, 14 Oct 2021 23:32:49 -0400 X-UUID: 8264b49b6c1f4694b55261c87dc5c7af-20211015 X-UUID: 8264b49b6c1f4694b55261c87dc5c7af-20211015 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 971098581; Fri, 15 Oct 2021 11:30:40 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) 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, 15 Oct 2021 11:30:40 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 15 Oct 2021 11:30:40 +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, 15 Oct 2021 11:30:40 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v6 7/8] mt76: mt7915: set VTA bit in tx descriptor Date: Fri, 15 Oct 2021 11:29:37 +0800 Message-ID: <20211015032938.7493-7-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211015032938.7493-1-shayne.chen@mediatek.com> References: <20211015032938.7493-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 b992fdd..d3d220f 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.25.1