Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7362945ybi; Mon, 8 Jul 2019 20:21:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxN3x5OUc9VeQ9Yy4sTMoQ+obqKFq53GUIvUneJb2Po60sBVnelw+Nduj2a3udhusqmK+d X-Received: by 2002:a17:902:7781:: with SMTP id o1mr29065843pll.205.1562642461161; Mon, 08 Jul 2019 20:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562642461; cv=none; d=google.com; s=arc-20160816; b=XOEkIQpLOTKyzav+wP0mPcXwid/1NlIcd2McHOqjRXGyTop4PL/di0FTJfsiUCIHWe 2+JJFo8tHw7Sa+IZianzRM2bguG6D++Zsj8R2nh/0rFuUuWzLlBX9ZKBRcNKG5dc7UsS Rs+eIpCqtOycXopTYfJwMUOt/hGeHy7RKiT/37A+Uix0dgdlSrFiDpb6k60xOvrmzrx1 UJbzo4F2A/lGeSjB2msl9ihaE6S6NNCCiJxX0cQVZpwB4XY48D+0tDVpnnsa8dPptv39 hp07TtPVHwttp5bc5SL2eLYNcyNHqWwlHzqGlZ/LEg3WEWsLr7fTZpN+Lb04yNe9/qk5 x2ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=sVqn38EQQyhNgCIQPjyac2UHBNCmCLJslYZuuUGWt9Q=; b=NOmrd9QbQbvK/9BNV7SDw+R6nQsq0FsVP6cXK2FdsWg+GO+P9+P4VADgqUj5uaVyAV 0cfc/aghtkU1qiM0GE8uKrG0rX6xFh0ehPKCSykuJFE3/P7fH8A1hhiraMNNolUM25za jOM6wkEs6mEMbc/K2QDhB0Reyv4+ORz10dpWaQLepcP4NJy48Mrw3UmJBGbtS/jrHHmB MWO9r3c748EIKmCDFaQe7oNgsr6+iW8BKrbkz1B1Zz2Zecq5Uq7BO2tnDhpj6fyYrrnC aXdoxMicPhywbnWDO+AFuVYqAuDzlD80wYknhFE1W2pzVNQ0wLAyvS0lQ6+6xhePOsq0 AA0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si14685109plk.338.2019.07.08.20.20.45; Mon, 08 Jul 2019 20:21:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727491AbfGIDTR convert rfc822-to-8bit (ORCPT + 99 others); Mon, 8 Jul 2019 23:19:17 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:32831 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727059AbfGIDTQ (ORCPT ); Mon, 8 Jul 2019 23:19:16 -0400 Received: from mail-wr1-f71.google.com ([209.85.221.71]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hkgew-00059K-BR for linux-kernel@vger.kernel.org; Tue, 09 Jul 2019 03:19:14 +0000 Received: by mail-wr1-f71.google.com with SMTP id q2so9013551wrr.18 for ; Mon, 08 Jul 2019 20:19:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1QqfQjHI6M6xLQMvNpyZB6ztRCUN973WhV6VSHgEn54=; b=p3wj3TENjWnBUUpKN+iKVsXj8Xu2Iu0S5jzUU79yBSX+WS0E5dhLEQs/ZTaH2OHmpU BLwml/dGYSVDqLObc4LLICfXFszodQ1tl2SeTsWfR43yYTnTrdsy+NWRYNvlLGX3EIDe zEc82FEI3wt2y3CxS+HaeCa5t2RLYDKL5VdGfyGOKrua1UUZymALh0jNeRQhAwBLNOve TLkCcVsNc7vvNiOf41mUvsWyUcojPcAN0gUWx9G7Aeh79UqH64JJaNg6dBNGSQaCQfnB ueTgtSbVQ6JV98SvvM36v76pxWTWHOJ3uJw2hpgahqPtUG3FYWrxGFu3V7rtK6WEgqCx 0rgA== X-Gm-Message-State: APjAAAUYQDakpxorYSlVGpk3yvRLQe+HIZYOJpLNsrBYP6gN8NEgLsmT kRSYJd7/l0nSwZKEdH6h0nBETtuoMUJ8B67sRDSdipfIun5gVXQGfaO0AsOg56TrdUVOT9cxkiS WxgLeUptwmRLE+/j4oseyB1NS3RIW9b5H76KYBP9dpWZnur9UlBTOFkkO+Q== X-Received: by 2002:a1c:6a11:: with SMTP id f17mr18052544wmc.110.1562642353853; Mon, 08 Jul 2019 20:19:13 -0700 (PDT) X-Received: by 2002:a1c:6a11:: with SMTP id f17mr18052532wmc.110.1562642353629; Mon, 08 Jul 2019 20:19:13 -0700 (PDT) MIME-Version: 1.0 References: <20190708063751.16234-1-acelan.kao@canonical.com> <53f82481-ed41-abc5-2e4e-ac1026617219@gmail.com> In-Reply-To: <53f82481-ed41-abc5-2e4e-ac1026617219@gmail.com> From: AceLan Kao Date: Tue, 9 Jul 2019 11:19:01 +0800 Message-ID: Subject: Re: [PATCH] r8169: add enable_aspm parameter To: Heiner Kallweit Cc: Realtek linux nic maintainers , "David S. Miller" , netdev@vger.kernel.org, "Linux-Kernel@Vger. Kernel. Org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Heiner Kallweit 於 2019年7月9日 週二 上午2:27寫道: > > On 08.07.2019 08:37, AceLan Kao wrote: > > We have many commits in the driver which enable and then disable ASPM > > function over and over again. > > commit b75bb8a5b755 ("r8169: disable ASPM again") > > commit 0866cd15029b ("r8169: enable ASPM on RTL8106E") > > commit 94235460f9ea ("r8169: Align ASPM/CLKREQ setting function with vendor driver") > > commit aa1e7d2c31ef ("r8169: enable ASPM on RTL8168E-VL") > > commit f37658da21aa ("r8169: align ASPM entry latency setting with vendor driver") > > commit a99790bf5c7f ("r8169: Reinstate ASPM Support") > > commit 671646c151d4 ("r8169: Don't disable ASPM in the driver") > > commit 4521e1a94279 ("Revert "r8169: enable internal ASPM and clock request settings".") > > commit d64ec841517a ("r8169: enable internal ASPM and clock request settings") > > > > This function is very important for production, and if we can't come out > > a solution to make both happy, I'd suggest we add a parameter in the > > driver to toggle it. > > > The usage of a module parameter to control ASPM is discouraged. > There have been more such attempts in the past that have been declined. > > Pending with the PCI maintainers is a series adding ASPM control > via sysfs, see here: https://www.spinics.net/lists/linux-pci/msg83228.html Cool, I'll try your patches and reply on that thread. > > Also more details than just stating "it's important for production" > would have been appreciated in the commit message, e.g. which > power-savings you can achieve with ASPM on which systems. I should use more specific wordings rather than "important for production", thanks.