Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp352887pxb; Wed, 8 Sep 2021 02:45:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNB1Ujom/vkhw/UPpmrHd82bObdYdfJY8KMop6JyhvNoVg1D24F35D2FTYK7mOuvAfvvxh X-Received: by 2002:a17:906:d789:: with SMTP id pj9mr3005443ejb.134.1631094310708; Wed, 08 Sep 2021 02:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631094310; cv=none; d=google.com; s=arc-20160816; b=RIBUOU7dk3DvyR/muIBQByRY1gqDuAJwXmmqnwr6xdcP1e2jNm7cNGdEHi9oPqdzXk WwFy8D2o/E1bcjxcfDZF5xRdV1/OL1pL0cskhhgq0MsitMf1ajW/9ymrmPY/UvCYb4q/ Qlv5SKMcauIaaPlEebopjRxzfNX1thU12geIXO5m5oFOyhvxnk0AezgviYFw9dCXPFkT WnrVlW/EwW/o72Sy3z33GEl834xSCPO1ShB7mZDd1otUKnPugfSg3fZdC51RArvLeez1 JBSaP6q920LfMVZ+/VPl7rswW9KEkV546oLoJugBvgFNfHazP1edCECCgugGO7Jand87 Cqig== 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=DWQo94vO2PdbGG6lsNhvcIwcdXr1Pl+Qusdx/qYcM31WJwDNTiK/LDSB+ON0BNuSK3 DyUqLfSu++ufySvPUfiqKGba/Y4J2KWeTGfGq8/ktYZ3GXiWM+S1vlT+9BvCIQmsF/Oy gO/oE56OxiU2j88duEOkXs3TLCsPyR3RVxcsL9388e6smSFjEGhEr384aTjog7Idt4Be LyOT2mNkVFwNJ1bIo24FRFYDP3LcGUJMeb+OF7NgRGSEiWyiTS/TXsbjBPNacBmUxSdb lY75qm7/LPwZhdHdoKlHhM/S7vimpqP0FhhkwViIFH+R/ysRCzt32wcKjYJkyvnyz2sd 6GMw== 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 n27si1643630ejl.103.2021.09.08.02.44.46; Wed, 08 Sep 2021 02:45:10 -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 S1348132AbhIHJoK (ORCPT + 99 others); Wed, 8 Sep 2021 05:44:10 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:42710 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1347951AbhIHJoH (ORCPT ); Wed, 8 Sep 2021 05:44:07 -0400 X-UUID: 37edaea9410843f9a899a36f1ed55d08-20210908 X-UUID: 37edaea9410843f9a899a36f1ed55d08-20210908 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1729541445; Wed, 08 Sep 2021 17:42:56 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Sep 2021 17:42:56 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkcas07.mediatek.inc (172.21.101.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Sep 2021 17:42:55 +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; Wed, 8 Sep 2021 17:42:55 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v3 7/8] mt76: mt7915: set VTA bit in tx descriptor Date: Wed, 8 Sep 2021 17:41:43 +0800 Message-ID: <20210908094144.25641-7-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210908094144.25641-1-shayne.chen@mediatek.com> References: <20210908094144.25641-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