Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2057826rwd; Thu, 15 Jun 2023 21:16:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cIhstvjyaD1rSePFfvLZtetNmwGIjHR98SQWZuyWQsqOhc+H4HlKwf/69tYaKF3gJDTza X-Received: by 2002:a05:6a21:3815:b0:119:be51:59de with SMTP id yi21-20020a056a21381500b00119be5159demr1045651pzb.7.1686889008632; Thu, 15 Jun 2023 21:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686889008; cv=none; d=google.com; s=arc-20160816; b=Eb5gnKeRVAlkLaf5kxOoT0qwda0AVirO+Z5Tk/WXadIWNoSPkojkpkmdIX2WZZyx/O loMXO4+DvxCFTOOj9mWR723DWKy87sY6TDdLrk9pYhUG3KMmN5HfpStmymrfCSCEHkvU qLN3xeTZyNdzy98h8IyZipwEvrG5HeDgg5YJid+epm97kfpboFsAf5n5j2YHhxxI2hEK LAyjLfH3TiiLRSQZ5fzf/YnXVBBV/x3DuNd1EOTK7nfHhkxnVC2OBIKk25EYlQfjmXtS EOIkm4Ryr93sqZbOwpZ2BxTltSSi9aEzpP6s4N3QgEWbhpYxib+XG2E8w4lbm+Q6TvKg EOAQ== 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=eModlR2MHsyh0JV+Ly2AyDVFf7d/aqpRfPHr9CRRFpQ=; b=RIL/q1a2LzrlYg7UNzcYM6IhypgQdXAODEmnN609Kuj/nh4FJHRDSr9r49QPJhZaN+ Emasz39Yp63mold9oDE/eQq8reZelTzJRsVLVqjo5PVo0NXTlxeSTRydvjUvksr0LG2Y qS8TMF8hy4etIwZOMxIRTwwlwPXGTm1ISe8RbyGCBW/cy7MXyLscNOnnowiWu1yeO42R s2Vkr2O5h/Utg0e/wOGPp6JNerUJZIz7vrLmd4+2CMAb5gqNF+dRzx5pkb2AP9sqqY3b X6HCuDQogEM8AZZGer0EvEDqcm+K9ZZ55V6RdgMwXu7I/N3l3o3rCK5vC4wv7+PUlQjg 9GKg== 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 a21-20020a170902b59500b001ac83d19265si13597174pls.291.2023.06.15.21.16.41; Thu, 15 Jun 2023 21:16:48 -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 S241248AbjFPDp3 (ORCPT + 61 others); Thu, 15 Jun 2023 23:45:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240318AbjFPDpZ (ORCPT ); Thu, 15 Jun 2023 23:45:25 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30DF418D for ; Thu, 15 Jun 2023 20:45:23 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 35G3iu8V3029341, 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 35G3iu8V3029341 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Fri, 16 Jun 2023 11:44:57 +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 11:45:15 +0800 Received: from [127.0.1.1] (172.21.69.188) 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 11:45:15 +0800 From: Ping-Ke Shih To: , CC: , Subject: [PATCH 3/6] wifi: rtw88: Skip high queue in hci_flush Date: Fri, 16 Jun 2023 11:44:28 +0800 Message-ID: <20230616034431.17403-4-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230616034431.17403-1-pkshih@realtek.com> References: <20230616034431.17403-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.188] 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 --- 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