Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2619296rwd; Fri, 16 Jun 2023 06:13:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6oGmxvQQ/yOx5l0UQ8aq0Hu+zYrd2zp30mfc/FM9PKRbRaIvKbofgypp1CQ3msPgRMpT/x X-Received: by 2002:a17:902:daca:b0:1af:c1a7:3bb5 with SMTP id q10-20020a170902daca00b001afc1a73bb5mr2136544plx.4.1686921204129; Fri, 16 Jun 2023 06:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686921204; cv=none; d=google.com; s=arc-20160816; b=I2XbOUUSiGH+UB8a3dV6rkwAJNBblUHLJDnaI1cQXpBfJkSVKG42lgXyv6majwdENl KE3+vv0MRnAawZUwfXmSaFxMhqNpCUOPqiU9LobRseUyKU+c40Y4GvlfaCYCS4XmKtMz Eo9bdryYASoGvw8fPoSzIeOtoFC5BT98AdWgYcEyek8FTTgXFZJ+it0Vdqj7DI4ySPp4 7L9X9CnOnyBDY2FPIS5gV5c6ZPtlfAPERdqxewwH4zInr/epGUY+brQyG3vk5bENohb+ X8hCq90GCOVrMF4U2BA0hJSsoPn/B28hb+D9zjbM9XsF6PDPkHiiL4U93EuxSEjdnxtS H01A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=K9XV2GgGhQosfbNSboqfmdAiCrP404hMaTcq9jfZeq4=; b=JrpEu4lFb+Rz56hB+9ngyB6jBgu5fRiYTGdjZXZItcOU7FTP+7jLqhtM7PDwTaxCYJ 7gEp48jeOPzo35yIf4TdvyJvb/XfdmFkKX7uz6PNGS/bLnlaZZnIzWCHHXmGo9hQw9lU pZeizzLfsR6y4Kp1z+y+Zc9gSFSFrQYp+fg/7d+2rpEa5WhnvWQRdc92E93oLH/2IoL/ dW2GtTtF/CWaEh2K9Ef+EKY0sqkyb3EUFFmvlYIfnTr1SJiLjfIP/P1/dJxEVvTjeFlP cIrnSdRlfulOjiNnuiJ+1Gn4GNU3abxBbAFzyXeQ+Xg3QqQ2eWqYRlqz7Xjt0bn/cP+3 SVPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a170903018b00b001b50ddfb1bbsi4706913plg.368.2023.06.16.06.13.16; Fri, 16 Jun 2023 06:13:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345506AbjFPM4h (ORCPT + 61 others); Fri, 16 Jun 2023 08:56:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345494AbjFPM4e (ORCPT ); Fri, 16 Jun 2023 08:56:34 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EEA9358E for ; Fri, 16 Jun 2023 05:56:33 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 35GCu0AW1024343, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 35GCu0AW1024343 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Fri, 16 Jun 2023 20:56:00 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 16 Jun 2023 20:56:19 +0800 Received: from [127.0.1.1] (172.16.16.227) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 16 Jun 2023 20:56:19 +0800 From: Ping-Ke Shih To: , CC: , Subject: [PATCH v2 3/6] wifi: rtw88: Skip high queue in hci_flush Date: Fri, 16 Jun 2023 20:55:37 +0800 Message-ID: <20230616125540.36877-4-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230616125540.36877-1-pkshih@realtek.com> References: <20230616125540.36877-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.16.227] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Po-Hao Huang The flush period may not always intersect with DTIM and when that happens, an error log "timed out to flush pci TX ring[6]" is shown. Bypass this since hardware will do proper transmission on the next DTIM period for broadcast/multicast packets in high queue. Signed-off-by: Po-Hao Huang Signed-off-by: Ping-Ke Shih --- v2: no change --- drivers/net/wireless/realtek/rtw88/pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c index 672ddde808160..44a8fff34cddf 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.c +++ b/drivers/net/wireless/realtek/rtw88/pci.c @@ -738,8 +738,9 @@ static void __rtw_pci_flush_queues(struct rtw_dev *rtwdev, u32 pci_queues, u8 q; for (q = 0; q < RTK_MAX_TX_QUEUE_NUM; q++) { - /* It may be not necessary to flush BCN and H2C tx queues. */ - if (q == RTW_TX_QUEUE_BCN || q == RTW_TX_QUEUE_H2C) + /* Unnecessary to flush BCN, H2C and HI tx queues. */ + if (q == RTW_TX_QUEUE_BCN || q == RTW_TX_QUEUE_H2C || + q == RTW_TX_QUEUE_HI0) continue; if (pci_queues & BIT(q)) -- 2.25.1