Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp337080lqb; Tue, 16 Apr 2024 18:40:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8rDfvlbSRIrL385WSLqgZ8rVVnRDIsBnqi/0TMYtaW7BNxX4ImGxPrRqgFi24kehMPdtSxqFTeHL/mNqzb8mU7J0eaNUh3ABWw+/5oQ== X-Google-Smtp-Source: AGHT+IG92A49Asotm+vOWs+94QxRFN/5qmKnSj2LScDr3G2/0hq6CtiVwNshoEAa/JgP3P4qaXIH X-Received: by 2002:a05:620a:294b:b0:78e:fcff:adde with SMTP id n11-20020a05620a294b00b0078efcffaddemr2061368qkp.34.1713318051462; Tue, 16 Apr 2024 18:40:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713318051; cv=pass; d=google.com; s=arc-20160816; b=mSd7scGFrCBmM/Y72jEofq2Rc/0+As3jZR6lAkXpho5ME4dgA/1joV8vXWLzVG8pk8 Y6YlkSPvin3pEO3bBLJkp/eEybvFHKx0NCJb9+owNEq5Ajrx9dYEDK8r0sa9W3azLbHY 4PvJnzQhgDpkmsJZMz4lb98Ta8O3OSW/SUOjzphUH6hIqKj0tD4xM+iD/Y4Dit7gpaiI 34oM9d6sPCea2NwtQ7QeKSEzwLXJ2+kRRJh6IPGFImsIohlqyMfBEYWSKu2FdIGqFGrC 0AUt1Ss6Z0FXBNO6faNukuDTnRZba2Kzpe3/mkwU6f7x41A1UPa8t9+tkHH8Pe6BX/z7 B3Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=gJwB3QHrlJGyTmCHlcqf1lB1ECK+H9c+iEhKl4BXBEc=; fh=LtQnubVPZKRsfSoE/cEmqA5ZquQaeNYe+Q0VHCzkEvc=; b=qEvjCVsdE1pPPIwJfb9Y8arLOPEat/p//3mpXWqJ+MnY1eerkqfIB+MdofT4vwY/1A 8B6lAbhgV+LUx4Pmp7TGTVtnV5JktPEcamiyHySqCcMNydFLDEg4JlW3OU+lGZitTStL QGt6tf9XF/+tKQJCcYWteYsJwb5NmTbjA4/ThPcMX/UOZT7gymMq/1FCpdXxzZ73UInh M9Bpfw6IjRwef1+TVBx3p5Olq3ui64O+sm+yzdstEkuot8zpOU7T4S2xXokpDc/l9BDu ldIT/4GrJXd9Bq5+qTfF2quDJVqkLpSSCq/lXCGh/qBxbjlMCTzFGo/M3GEsN1WHvlR5 icGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6411-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a1-20020a05620a02e100b0078d76c0caa2si13522975qko.568.2024.04.16.18.40.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 18:40:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6411-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 30EAB1C20B88 for ; Wed, 17 Apr 2024 01:40:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 144A14690; Wed, 17 Apr 2024 01:40:48 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C9C946A4 for ; Wed, 17 Apr 2024 01:40:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713318048; cv=none; b=snpSUZOkHkmybKFxUv6QLx5HajiuqCqMKYbkOgT9/45DH8HwBs2NhZMEP/A8n4rEwXHBGYxKzkUJUNpPi/b7K4PcDexDBl/YKFTlpFHxNhlK3ms7qkT0mj+nAE2D4QgPn8wKmjcBK5G0zxOUcDpvGKdJsTrK2rZ33+nXA8lMggU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713318048; c=relaxed/simple; bh=X4RDF4UkXIqxFvUC7saWO7gIoegak0X4KYI/kUYAW8c=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=lkAOswC1HfXotZtrmht9YQyxiYk1PGqN2Qn5R6dWaxb8WWt34S0l5E0G4wREl7e7DZlpRquF9GmbEXsCfLuOoDJQEOb33iOFb8YmsNf9lWsKWw14wqgJYkd2XgipHf9O8wDoX8MKIDUK3aJB5QNOnQTjH/IqJS/e5DUMQizRDck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 43H1efr972820312, 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.95/5.92) with ESMTPS id 43H1efr972820312 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Apr 2024 09:40:41 +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_256_GCM_SHA384) id 15.1.2507.35; Wed, 17 Apr 2024 09:40:41 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 17 Apr 2024 09:40:41 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH] wifi: rtw88: suppress messages of failed to flush queue Date: Wed, 17 Apr 2024 09:40:36 +0800 Message-ID: <20240417014036.11234-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) 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 Driver throws messages when scanning with a lot of traffic, because packets in TX buffer can not be transmitted in time. Since this is a common occurrence, change them to debug message with special debug mask that developers can turn on this mask by default for further analysis. Cc: Lewis Robbins Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw88/debug.h | 1 + drivers/net/wireless/realtek/rtw88/mac.c | 3 ++- drivers/net/wireless/realtek/rtw88/pci.c | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/debug.h b/drivers/net/wireless/realtek/rtw88/debug.h index f20c0471c82a..eb69006c463e 100644 --- a/drivers/net/wireless/realtek/rtw88/debug.h +++ b/drivers/net/wireless/realtek/rtw88/debug.h @@ -26,6 +26,7 @@ enum rtw_debug_mask { RTW_DBG_STATE = 0x00020000, RTW_DBG_SDIO = 0x00040000, + RTW_DBG_UNEXP = 0x80000000, RTW_DBG_ALL = 0xffffffff }; diff --git a/drivers/net/wireless/realtek/rtw88/mac.c b/drivers/net/wireless/realtek/rtw88/mac.c index 699ae3048c6b..1fa273012b9c 100644 --- a/drivers/net/wireless/realtek/rtw88/mac.c +++ b/drivers/net/wireless/realtek/rtw88/mac.c @@ -1046,7 +1046,8 @@ static void __rtw_mac_flush_prio_queue(struct rtw_dev *rtwdev, * And it requires like ~2secs to flush the full priority queue. */ if (!drop) - rtw_warn(rtwdev, "timed out to flush queue %d\n", prio_queue); + rtw_dbg(rtwdev, RTW_DBG_UNEXP, + "timed out to flush queue %d\n", prio_queue); } static void rtw_mac_flush_prio_queues(struct rtw_dev *rtwdev, diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c index 9986a4cb37eb..7a093f3d5f74 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.c +++ b/drivers/net/wireless/realtek/rtw88/pci.c @@ -729,7 +729,8 @@ static void __pci_flush_queue(struct rtw_dev *rtwdev, u8 pci_q, bool drop) } if (!drop) - rtw_warn(rtwdev, "timed out to flush pci tx ring[%d]\n", pci_q); + rtw_dbg(rtwdev, RTW_DBG_UNEXP, + "timed out to flush pci tx ring[%d]\n", pci_q); } static void __rtw_pci_flush_queues(struct rtw_dev *rtwdev, u32 pci_queues, -- 2.25.1