Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp287508pxb; Wed, 18 Aug 2021 22:48:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziJJGYJzeE523zYgbE+0c2BWfKg+jMOy39IJ7DHsoimxjkzKYXSMmM8FkcBsvdE8h4Pvzq X-Received: by 2002:a17:906:fa92:: with SMTP id lt18mr13945318ejb.359.1629352110160; Wed, 18 Aug 2021 22:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629352110; cv=none; d=google.com; s=arc-20160816; b=HXH8NHKzCRyWOfi9upq1Z4B95DBBOhOm+yTOlh+CIZtQViPycoi3zsV53x6cNLhRna x71Ky8mQxw2UepQa74izC+mAIk07a5UFyodCFW1i7PNM9S7CIOWRwTIMJpyCAPieNQNa 4Gqa24bArSgOFmR8tOBh4lhuxqCoinYN+TCn6F60IijOndC2ItJxicL+XPiNQ733th2u 8vXM0JKxxWilM2qY8HTJc+G3Ch9LJp3YB0Ry3nCA5X7ZCdG7yMqPLBIfYjGUf6UEp6PB CI3i4ejoLMMzYvZQaLH5j29uTyoVrkz3bLbx6WGutIiamFzhJ1gF/7ctq3tIaLG6+UeK RlJA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=0pXSE70avKi/FGQtwaSF/acPtLoT4scgcAlPCGtsPV4=; b=0YcL8XPmvbrfg0tb3Be5kCjapdMLxGBz498e0pnqvoe7ZDIkKC0Ro8VodkPXia5xpG GXcpMYW7HAZhdzTXxP7pzoFDKxBNWTWXVczBkjx1NuTu2WnRONAZHUu4fvAduePri+/J 071V8JuYAydECTCEoVF4ZladgqZD+Yg2qxzc6Ig1NldhLLWZjlqmgb7YEnFf0UJ2lzDa ETYIObdI1R7+5b0ItPdOkxpwxG7TsbV8dJleM0mn+Ehd+oZBkfVCiWp9dGhnOx3Hly/+ UX/KH9LXigNWXyEiXhEEDFqxu1AHPF8lcgG6TW9cn60ms/wcD7tlyhfYMxCN8EU0Rvx3 IUdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=bdpGUtCq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gg2si2158650ejb.176.2021.08.18.22.48.03; Wed, 18 Aug 2021 22:48:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=bdpGUtCq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbhHSFqr (ORCPT + 99 others); Thu, 19 Aug 2021 01:46:47 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:39414 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229782AbhHSFqp (ORCPT ); Thu, 19 Aug 2021 01:46:45 -0400 Received: from localhost.localdomain (1-171-223-154.dynamic-ip.hinet.net [1.171.223.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 2A1CC40C9D; Thu, 19 Aug 2021 05:45:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1629351963; bh=0pXSE70avKi/FGQtwaSF/acPtLoT4scgcAlPCGtsPV4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=bdpGUtCqXdPZmmxFMHMDeEnQhIotVwPu4MT0oIeggRkIuK6NaBf6jzmJV9JbNjwj/ vw9LuhTG6ZBNplnAF0vtJQ3S5bjz7oIvkGNpmEQhwLEXK9rzsQ4sA3lCWfM6as9iIn p4eoIyNobB3V9BbHK2jaDFFcQp9YiXfRWui2DPlXk4rAk+A8HeauUFnxH3w3hvqjcg ujMIsr5ObNB2my9CsU0e4T2huF8jgPhHtkq1cYgbfXUOydQllivnFndrqJpyJ+G4EC Y71ULt4fBYP7THVvwzf9CbENTjIReTvWBqx54DZKhazZEpCsu0VWxda/fkUCFbGeFE sGCwwPAvqfi3w== From: Kai-Heng Feng To: hkallweit1@gmail.com, nic_swsd@realtek.com, bhelgaas@google.com Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Kai-Heng Feng Subject: [PATCH net-next v3 0/3] r8169: Implement dynamic ASPM mechanism for recent 1.0/2.5Gbps Realtek NICs Date: Thu, 19 Aug 2021 13:45:39 +0800 Message-Id: <20210819054542.608745-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The latest Realtek vendor driver and its Windows driver implements a feature called "dynamic ASPM" which can improve performance on it's ethernet NICs. Heiner Kallweit pointed out the potential root cause can be that the buffer is to small for its ASPM exit latency. So bring the dynamic ASPM to r8169 so we can have both nice performance and powersaving at the same time. v2: https://lore.kernel.org/netdev/20210812155341.817031-1-kai.heng.feng@canonical.com/ v1: https://lore.kernel.org/netdev/20210803152823.515849-1-kai.heng.feng@canonical.com/ Kai-Heng Feng (3): r8169: Implement dynamic ASPM mechanism PCI/ASPM: Introduce a new helper to report ASPM support status r8169: Enable ASPM for selected NICs drivers/net/ethernet/realtek/r8169_main.c | 69 ++++++++++++++++++++--- drivers/pci/pcie/aspm.c | 11 ++++ include/linux/pci.h | 2 + 3 files changed, 74 insertions(+), 8 deletions(-) -- 2.32.0