Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1938357rdb; Sat, 20 Jan 2024 23:19:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAC4M0oq1ajklWb4uRPL6WLcEBBb6FcM//S7h02tLKUeIcOIyhiFpSRo+R52As60ys48wo X-Received: by 2002:a17:906:cd0d:b0:a2e:9a82:be97 with SMTP id oz13-20020a170906cd0d00b00a2e9a82be97mr1197227ejb.142.1705821552491; Sat, 20 Jan 2024 23:19:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705821552; cv=pass; d=google.com; s=arc-20160816; b=bbatqazk9D0p6LFk0uVuEZV2fjLehUo09/npBToB6oXL7476iJBw1Fbk1nPiGxXugD hIA1ePNH2ub+ob+QYySIp2srTOLVX6rx7sQTGPUpHHcTB5tA3PBkptPcrJi7c4sa1ZgA zCYZBhiIAJ9BAX38PcRsMxy2DKu2FxXs5YMGJGEhIYsC2UijqoPNGI3iA/QgIAPe2jih lnp796IDi+ahh/Ziem9a1QVflwA9wTrUM2/q9bU6BjBStCD/yBKG2yeVq/ZObaKihU6s mLd2B/b9aJI5eB1K3+V0TevxHDFv4mmvGnhL5mEseNpB5pwj59CyJvQBjLHem3NZvQFG Bcsw== 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=IJfnn5xC7pFRVkPUL3scVYKypKF0r4HZS1clfGgn82k=; fh=TSuyMlfOTyCx0zt3ucDyTttlN37QPvmvgk5pf20rBgY=; b=l3sA0K8uEHZ6gpnuh3a2Rm42RuGaAe7g9PxL0U3KYPEOp3ZrL2yP+kv6DSOg33rtiQ 3N9rfN5f9k5Xz0gyKr5opVHCoNp4MIdzplS0gr63/f1FbklxIVtpaAMW8aF0C21GrDRF KIAVTHrQlpEugCOAE3fwAzLA/fVltajN+8JiaxeMLsndPtqifxphA1i6+8SMn6H5C8bp hXrfctOhgN1FK/6VuQvLWCpXN5lCu7vHjt3+dOrI+hX4NUec6TL4YZQQEdwJ7OzQII9j VtaKe8VJS7o2LtMZ6eRXi7WxZc1o/Cznf/4cvlrpeS0xxFVcXz8RDONW/SbkKcMf0bZv phtg== 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-2293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2293-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p3-20020a1709061b4300b00a26eea528f6si9548321ejg.324.2024.01.20.23.19.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 23:19:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-2293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2293-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 313A61F232B9 for ; Sun, 21 Jan 2024 07:19:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30F3E3613A; Sun, 21 Jan 2024 07:19:08 +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 56E89394 for ; Sun, 21 Jan 2024 07:19:05 +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=1705821548; cv=none; b=rUl7dPl73cl/s/7g6pWa3Fucv0zdeJNz7C5fhTsCWHNF+xhl58quP+ZTv3mQIwpwikOowinw+SCEPqbZOlH6YZL3TYKa4/4QNSrk0Nqkrcw3f9OyXHguiSqklFRrz4JJ88H8j7BAuePqkJX42wdYelSUH5CKXIH/a06a6eVv0bI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705821548; c=relaxed/simple; bh=NuDruUuJ+6epCQaTUhNkJD5ZsZpFo3qnYKcGFQOFcks=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=E3C3CJhDieYDrqDvkl7QNaVQEMejwhADDM6NzZlu+2p+RqBNPcVpM4h9ajDbvF2Lw36rDpHBBgYCN3eIbbNYHI5I/NeGKaVtYnwFDo3pV0tpZwRSWGcp8y+EpVLfd0xdDMRJUPhhLetMfRXFBPzPlbB0QRmLCopF66J+q/dpty4= 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 40L7IoubE3102111, 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 40L7IoubE3102111 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 21 Jan 2024 15:18:51 +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.17; Sun, 21 Jan 2024 15:18:50 +0800 Received: from [127.0.1.1] (172.16.17.107) 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; Sun, 21 Jan 2024 15:18:50 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/4] wifi: rtw89: pci: refine PCI SER, RX tag and RX DMA buffer size Date: Sun, 21 Jan 2024 15:18:22 +0800 Message-ID: <20240121071826.10159-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) Some PCI refinements for WiFi 7 chips. First two patches are to refine SER timer and IMR to have expected SER behavior. RX tag is a sequence number belong to a RX DMA data, and WiFi 7 chips need to validate this tag before reading DMA content. This happens rarely, and no obvious impact with throughput. The last patch is to enlarge RX buffer size to plus RX descriptor size to receive a 11454-byte RX packet. Though we still can receive this kind of packet with smaller buffer size, use suitable size can get better performance. Ping-Ke Shih (3): wifi: rtw89: pci: update SER timer unit and timeout time wifi: rtw89: pci: validate RX tag for RXQ and RPQ wifi: rtw89: pci: enlarge RX DMA buffer to consider size of RX descriptor Zong-Zhe Yang (1): wifi: rtw89: pci: interrupt v2 refine IMR for SER drivers/net/wireless/realtek/rtw89/pci.c | 65 ++++++++++++++++--- drivers/net/wireless/realtek/rtw89/pci.h | 6 +- drivers/net/wireless/realtek/rtw89/pci_be.c | 5 ++ drivers/net/wireless/realtek/rtw89/reg.h | 3 + .../net/wireless/realtek/rtw89/rtw8851be.c | 2 + .../net/wireless/realtek/rtw89/rtw8852ae.c | 1 + .../net/wireless/realtek/rtw89/rtw8852be.c | 1 + .../net/wireless/realtek/rtw89/rtw8852ce.c | 1 + .../net/wireless/realtek/rtw89/rtw8922ae.c | 1 + 9 files changed, 74 insertions(+), 11 deletions(-) -- 2.25.1