Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp993356lqb; Wed, 17 Apr 2024 18:06:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4jWyECoxS8IgWlmAwWoBL9js4GHYmQ2sQ6O3G3LhfanlxCo/XlXfxUjcLvqLINXdZ/IgtbZVJpQXCv6TeyTmAzkJBUSruqWUs7XU9yg== X-Google-Smtp-Source: AGHT+IEymbxQDz1Y8k8WGmQIwK57bd1/a8gLMOSQfV5eFSFvf2986l/bhd/HwzNcZ39xow1AswkN X-Received: by 2002:a05:620a:a5e:b0:78f:5e9:d54d with SMTP id j30-20020a05620a0a5e00b0078f05e9d54dmr1235871qka.37.1713402370059; Wed, 17 Apr 2024 18:06:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713402370; cv=pass; d=google.com; s=arc-20160816; b=aBsm0TlxOVoY5rq1yWdfqU6HpVIkjQ4xo0iBy8fW7E1bsCiXhE3pYRyNesojtE6jDX BjFpWZKvQBWVLr7mI1XW9z/n9amI0lj2mff5555SOA0dfAds7GeCS36IWhqO7Yropkhl AUQyQokCP2OTwOa0B2wMXH7C8ghGRZ4R6btZ/XyC+eOe6/Qip78X9BC2jDyPYeMhvSMX SAk3o/t2KyqTS8duhBQuWGh5C/BZeB3znLdOauFjIwt4zjvhz5oUBDvoIKaCzrRVmxTE xc98u/N5X4NRCFEYXqf9DAihAnFHYOmSKcZpIHZImipE4O1tMsrM04yKMn8txMk4bLfI idpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:in-reply-to:subject:to:from; bh=q+96dY8U6OFQBdADSNG8MucoLa7wJDdepmRhsHUvpHw=; fh=r4ENiFzv8sfsaHjEaC5Eod/Y/wWo58HiAtKc2y9c0KQ=; b=NIiYInlW3KZHTvpkn/jRR/D7zscJaEMrYxkDrMRFFcLZ8mguSk3mJ51BHIPlnPBDpr VhDV8iVWlnrN7m5/Mv660WqEFJsuyUFqpgxxt6Wf6OG0Mk0+zPnqg4v1aBFc3BY5jReL iokOESLoPlMZGsnKfP/IXa28GI2sB8J2xLkqEnTP/LtLBibWKcvouoE+LndRAWkvRos5 0J87R4ta0wLJXB7eZJUZfM7RxfyfOhYGxkmTIm+5lKbL1aaHjKciB+WrhakGrchQ0rwl NFWe06WjGBDV7Lj26tS+ZhhndzQNwwRqjxbEuxwgcz35O8ijFFydeZYECQPXL0ZF3r6j u2LA==; 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-6475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6475-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pc25-20020a05620a841900b0078eec775435si410978qkn.612.2024.04.17.18.06.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 18:06:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6475-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 AC6721C212B6 for ; Thu, 18 Apr 2024 01:06:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1A6A611B; Thu, 18 Apr 2024 01:06:06 +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 32A6D259C for ; Thu, 18 Apr 2024 01:06:03 +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=1713402366; cv=none; b=dHquoAUlZxP7j/qV94lxUQuWccTzy09R+jooDhOGQCZZekWoLkAI9fUsy6PedLBoZWd98P/amDkvMwNNon0M8eAJzqGBSpMJgORgvzf+4aSJEYOnkVe4y9awkyozaNMx3CX1AGffhxPqfAa12KOc4exCO1Nd88CMOj/wQS0cVjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713402366; c=relaxed/simple; bh=/CTByZg9VUqsdjqzvTnZQpvuzT3VKGW4PHwXNUWFV3g=; h=From:To:Subject:In-Reply-To:References:MIME-Version:Content-Type: Message-ID:Date; b=VsPkm9gEvM2Hx8PLL3l0jpi/C0ExiiW32HFwYlzZxx08/8+JuDUUhw3vuhK701AvKVMnrviTnzuvkFEKnW1wj+8n7UpyrwnLS/LhUg+C4U/vJ+Qa6g0gaE+a7Nchm60giE6uDPJrRdnsGRJnn7td8PmlGKrC1on9W57X9chwDwI= 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 43I161yX43915268, 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 43I161yX43915268 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 18 Apr 2024 09:06:01 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) 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; Thu, 18 Apr 2024 09:06:02 +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; Thu, 18 Apr 2024 09:06:01 +0800 From: Ping-Ke Shih To: Ping-Ke Shih , Subject: Re: [PATCH] wifi: rtw89: pci: correct TX resource checking for PCI DMA channel of firmware command In-Reply-To: <20240410011316.9906-1-pkshih@realtek.com> References: <20240410011316.9906-1-pkshih@realtek.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Message-ID: Date: Thu, 18 Apr 2024 09:06:01 +0800 X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) Ping-Ke Shih wrote: > The DMA channel of firmware command doesn't use TX WD (WiFi descriptor), so > don't need to consider number of TX WD as factor of TX resource. Otherwise, > during pause state (a transient state to switch to/from low power mode) > firmware commands could be dropped and driver throws warnings suddenly: > > rtw89_8852ce 0000:04:00.0: no tx fwcmd resource > rtw89_8852ce 0000:04:00.0: failed to send h2c > > The case we met is that driver sends RSSI strength of firmware command at > RX path that could be running concurrently with switching low power mode. > The missing of this firmware command doesn't affect user experiences, > because the RSSI strength will be updated again after a while. > > The DMA descriptors of normal packets has three layers like: > 1 patch(es) applied to rtw-next branch of rtw.git, thanks. c6330b129786 wifi: rtw89: pci: correct TX resource checking for PCI DMA channel of firmware command --- https://github.com/pkshih/rtw.git