Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1811825lqp; Mon, 15 Apr 2024 19:58:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdMO3E5EnNgln3O3uce1rZv2WZxtgujp0fjZqoiswBW/LqH+8Mcj/jLHkV/QlUMIRFARk8ziGGzYv4x6rv50un2LEIw159teybpkH1Yw== X-Google-Smtp-Source: AGHT+IFSZhOyS1lngR1HWPEU9/nkWOk2EQGViPQ+xKGn9Z7vvFsm7C6+sW6FPfoGxx34d/lAmMLU X-Received: by 2002:a05:6a00:2d22:b0:6ec:e733:c66f with SMTP id fa34-20020a056a002d2200b006ece733c66fmr13587905pfb.0.1713236300080; Mon, 15 Apr 2024 19:58:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713236300; cv=pass; d=google.com; s=arc-20160816; b=GNaAFmySsP4ue2PUssSPEIvTyZ607ti7nATmLkkAB0x3rz7FRnVtftfZrPVOu+Cyt0 VVuRybZZw3RZs4j1q9AN8UuQSvAnSd6Ik56uWrm+lVf8fzNoGe96LOvwm2yszsj17mvl 8SwM4LYu/jzmd6Hjaz5yJb+iYZuwYwIjqTblEEJJAAQ1y0VRRfZcpm01eBuokOedhkxp zlU6wgu37l0zavSl5QTUq+M7AuRX8S81+u0gdka/NgQZJHUNUu9d2wTU48ft0TPa8aVO zomrxcZGP1DT91PdVKZ6YO02hmgTTCrXIuagVPZPQHigTzUXa3I0PNCdxNhff47v+6Fn sLuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=kzzxL8PRi1kwcNbGM6+YW9/lhovKhqh+OMOd+UnQukc=; fh=GXMMBZnXEd/QivPyNX7BSfeAWLjMG/Aqwy6WwNULMho=; b=FW7UgTpBPjbLoech3CyVi6EnsOxPBSyZs3F5jzYkyvOf4BU7I6hWldrFiuklCMWA+n IUYsIF03nq5DIBq7nVi4V4JXTQwwv/myCda4SWKyqRX58VAUTz/2b8EYSnA4mzVC8to5 Fwq2Pgxdp8d3+8FygjFi4ENoPTxobZsfxdvEQt4o6LuKtGMSIFKKuTHY2XAYu4WrNKrC x2E4FOAO3ngAAA6ds3/+mvw3pLcSunDTk7KHx8BqJ4S1N/LFU6+y4ss4QlQlT550mTH6 t0rc4QffArWTlcJeTs+gmJjV6bAg3+SKk2gbsky3eiRlCW9PiOM72KBoSX342b/0zb6e Q9rA==; 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-6359-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6359-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w29-20020aa79a1d000000b006ed41e29bffsi9074595pfj.224.2024.04.15.19.58.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 19:58:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6359-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6359-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6359-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3BE852819DB for ; Tue, 16 Apr 2024 02:58:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F40F1171D; Tue, 16 Apr 2024 02:58:15 +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 E2E0CAD55; Tue, 16 Apr 2024 02:58:12 +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=1713236295; cv=none; b=YzCQPbyGCA99l5ZoQR9r9sJb2NrFd+eBs+0Ejwb5njnrQDH86pOTjqmr2HdMK0EwH7E7GEO51AhoTlz3Ai5XNDYy09QhAtm/Iuo66xU+PmJNVPDUyzbwYaXGaHFK/oW3Eia4l1mcX0qE/4uUIK3NZJEmVOGAsO6KUpB9inLob/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713236295; c=relaxed/simple; bh=kzzxL8PRi1kwcNbGM6+YW9/lhovKhqh+OMOd+UnQukc=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=sFleOUokJ0JCd0HKbczeqqSek+K8d4NZ3f547qWkXLJpLn9UKbIcFLgN1RE6JCc+9W60+fn8fEMFd3h0Ej9a5F7lOKS1oqzHuVG9qMi3LL0eim3IROTFc8Ev0ifYeq+dFKdUSQlv5PxhWMt4DViVTURihyXFjNdY3LP6x0IxuGk= 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 43G2vvlK71765271, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 43G2vvlK71765271 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Apr 2024 10:57:57 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 16 Apr 2024 10:57:57 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 16 Apr 2024 10:57:57 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7]) by RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7%5]) with mapi id 15.01.2507.035; Tue, 16 Apr 2024 10:57:57 +0800 From: Ping-Ke Shih To: Lewis Robbins , "kvalo@kernel.org" CC: "linux-kernel@vger.kernel.org" , "linux-wireless@vger.kernel.org" Subject: RE: [PATCH] wifi: rtw88: reduce failed to flush queue severity Thread-Topic: [PATCH] wifi: rtw88: reduce failed to flush queue severity Thread-Index: AQHajfcTVqg9i2byzkGmq7L8YOsC/LFojyVQgAD1gD3///KZAIAAvNSw Date: Tue, 16 Apr 2024 02:57:57 +0000 Message-ID: References: <87le5ey52e.fsf@kernel.org> <20240415232837.388945-2-lewis.robbins2@gmail.com> In-Reply-To: <20240415232837.388945-2-lewis.robbins2@gmail.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-kse-serverinfo: RTEXMBS03.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback Lewis Robbins wrote: >=20 > Ping-Ke Shih writes: >=20 > > Lewis Robbins wrote: > >> > >> Reduce the log message severity when we fail to flush device priority > >> queue. If a system has a lot of traffic, we may fail to flush the queu= e > >> in time. This generates a lot of messages in the kernel ring buffer. A= s > >> this is a common occurrence, we should use dev_info instead of dev_war= n. > >> > >> Signed-off-by: Lewis Robbins > > > > Acked-by: Ping-Ke Shih > > > > I'd like to know situations of " If a system has a lot of traffic...". > > Did you scan or do something during traffic? >=20 > So, after digging a bit more, it seems you're right this only happens dur= ing a > scan. The log message itself is repeated about 5-10x. That is the same as my test before.=20 >=20 > I'm not sure as to the cause. If the flush operation takes a long time do= we > need to release any mutexes etc? And if this is just a hardware issue, th= en we > can do a debug print as you say. The cause is because packets in hardware TX queue that can't be sent out in= time, and flush ops with 'drop =3D false', so driver throws one warning. I don't = have good idea for now. Maybe, we can add a special debug mask to replace this k= ind of verbose warning with uncertain solution.=20