Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp623472rdb; Tue, 5 Dec 2023 15:15:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuBSIDzuwmtCEb57mdrwVduAppbUCj/bZEI+P5EVkNkpGVajCASzjGgTGf5ZuWMXSpWct+ X-Received: by 2002:a50:c302:0:b0:54c:4837:9401 with SMTP id a2-20020a50c302000000b0054c48379401mr44550edb.72.1701818122371; Tue, 05 Dec 2023 15:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701818122; cv=none; d=google.com; s=arc-20160816; b=eoEOXy0824pxpMQhvqrHX+guGb9ooRnlatTdPkdWnwl6YggGDwhQ7g5SizE+86gwCP 8oVAK9B8e8mw4NJsZukfAlD4+f/b5+rRvDx/T0et4OuaF0ZU1UNH2EvDcTK4uWq7QuB6 /TKPJVN/Q+1tUSB+hMCa379JNt55BGz2LtOI19fJWC6OfOQ3BP3U6wLpbsr6o3ChhLhT nSq14CR8sU/dFBdSV7MmMSQ8Hq0jxC4EXyD4c7/dAs7kBfjA1sKdN2aGulUHqnxB4V0e yjshSGKFFBCyKyM8QaCekONhPriakj+/sGvQvhG9JDxQzUXneUABPOebNNEl7OVrn3mj keGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=l4hpMlLYYHsMqc/+rxbErWbB8t+WHEQvMWKezJouvf8=; fh=M/jxpiX1x4gN+3X2tpBX+ebe6hL76D8hiSNBqgplZXo=; b=Bdss3qUOqppQkqbUi13mHgzlTMCRdeeK0K0++dZATYaFXifjQId2huaRD+WshK+tKC BzZBD4A7wJeganFF7hJHNbcnww7U4kD6jutWwNsBR3mByESPwyld3DWkrhv/2jVtK+jU wWhaIg3HGJniyv/mFj3QcgmPLNRDzKaIwSIsKQeUH0sPKeU0L7mkDbLtPRW5NI+HA1ey oydyX+qmZikunip4Pxc41mbg/VLGdY3l+21GqaDIlPBBQEhQYTiw8oakgYwK1vlpSKAc incFq3tgN9DOgjVRMaMomVjCrWvosTt80bqfTNT7gSbvxUZuZXjnPyHNb18P0fAclDLf c1Yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-443-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 16-20020a508e50000000b0054c75eb86efsi1373423edx.68.2023.12.05.15.15.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 15:15:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-443-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; spf=pass (google.com: domain of linux-wireless+bounces-443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-443-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 E5F541F214F1 for ; Tue, 5 Dec 2023 23:15:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BC96405EB; Tue, 5 Dec 2023 23:15:17 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69244AC; Tue, 5 Dec 2023 15:15:13 -0800 (PST) Received: from c-76-132-34-178.hsd1.ca.comcast.net ([76.132.34.178]:39188 helo=sauron.svh.merlins.org) by mail1.merlins.org with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2 #2) id 1rAedB-0004yz-W0 by authid with srv_auth_plain; Tue, 05 Dec 2023 15:15:09 -0800 Received: from merlin by sauron.svh.merlins.org with local (Exim 4.92) (envelope-from ) id 1rAedB-000naT-BZ; Tue, 05 Dec 2023 15:15:09 -0800 Date: Tue, 5 Dec 2023 15:15:09 -0800 From: Marc MERLIN To: Johannes Berg Cc: netdev@vger.kernel.org, Jesse Brandeburg , Tony Nguyen , linux-wireless@vger.kernel.org, ilw@linux.intel.com, Heiner Kallweit Subject: Re: [RFC PATCH] net: ethtool: do runtime PM outside RTNL Message-ID: <20231205231509.GA181276@merlins.org> References: <20231204200710.40c291e60cea.I2deb5804ef1739a2af307283d320ef7d82456494@changeid> <20231204200038.GA9330@merlins.org> <20231204203622.GB9330@merlins.org> <24577c9b8b4d398fe34bd756354c33b80cf67720.camel@sipsolutions.net> <20231204205439.GA32680@merlins.org> <20231204212849.GA25864@merlins.org> <20231205024652.GA12805@merlins.org> <1d986c73c1d39b0cced7d8d2119fba4b2a02418b.camel@sipsolutions.net> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1d986c73c1d39b0cced7d8d2119fba4b2a02418b.camel@sipsolutions.net> X-Sysadmin: BOFH X-URL: http://marc.merlins.org/ X-SA-Exim-Connect-IP: 76.132.34.178 X-SA-Exim-Mail-From: marc@merlins.org On Tue, Dec 05, 2023 at 08:33:02PM +0100, Johannes Berg wrote: > On Mon, 2023-12-04 at 18:46 -0800, Marc MERLIN wrote: > > > > [13323.572484] iwlwifi 0000:09:00.0: TB bug workaround: copied 152 bytes from 0xffffff68 to 0xfd080000 > > [13328.000825] iwlwifi 0000:09:00.0: TB bug workaround: copied 1272 bytes from 0xfffffb08 to 0xff42c000 > > [13367.278564] iwlwifi 0000:09:00.0: TB bug workaround: copied 1328 bytes from 0xfffffad0 to 0xfec41000 > > [13389.737971] iwlwifi 0000:09:00.0: TB bug workaround: copied 572 bytes from 0xfffffdc4 to 0xff091000 > > [13389.860480] iwlwifi 0000:09:00.0: TB bug workaround: copied 148 bytes from 0xffffff6c to 0xfe412000 > > [13393.435354] iwlwifi 0000:09:00.0: TB bug workaround: copied 360 bytes from 0xfffffe98 to 0xfedcd000 > > [13409.827199] iwlwifi 0000:09:00.0: TB bug workaround: copied 1348 bytes from 0xfffffabc to 0xfd057000 > > That's fine, just working around a HW bug on 2^32 address boundaries. > > I had a patch a long time ago to make those messages not appear ... not > sure where it ended up. About this wifi chip (AX210/AX211/AX411), one last issue I have with it is when I go to batteries, it burns a lot of power: > The battery reports a discharge rate of 36.8 W > The power consumed was 772 J > The estimated remaining time is 1 hours, 56 minutes > > Summary: 1657.3 wakeups/second, 0.0 GPU ops/seconds, 0.0 VFS ops/sec and 121.5% CPU use > > Power est. Usage Events/s Category Description > 24.1 W 59.6 pkts/s Device Network interface: wlp9s0 (iwlwifi) > 200 mW 80.6% Device Display backlight > 139 mW 0.0 ?s/s 0.00 Process [PID 8005] /usr/bin/pipewire > 5.37 mW 18.0 ms/s 537.1 Timer tick_sched_timer > > > The battery reports a discharge rate of 36.1 W > The power consumed was 744 J > System baseline power is estimated at 28.9 W > > Power est. Usage Device name > 24.0 W 100.0% Radio device: iwlwifi > 4.43 W 205.2% CPU core > 230 mW 100.0% Audio codec alsa:hwC0D0: thinkpad (Realtek) (pipewire ) > > autosuspend is on: > Good Runtime PM for PCI Device Intel Corporation Wi-Fi 6 AX210/AX211/AX411 160MHz Obviously unloading iwlwifi fixes it: > The battery reports a discharge rate of 26.0 W > The power consumed was 534 J > The estimated remaining time is 2 hours, 40 minutes > > Summary: 927.2 wakeups/second, 0.0 GPU ops/seconds, 0.0 VFS ops/sec and 85.5% CPU use > > Power est. Usage Events/s Category Description > 6.95 W 100.0% Device USB device: Yubico Gnubby (gnubby1) (Yubico) > 2.09 W 0.0 ?s/s 0.00 Process [PID 8005] /usr/bin/pipewire > 185 mW 80.6% Device Display backlight > > The battery reports a discharge rate of 26.0 W > The power consumed was 534 J > System baseline power is estimated at 11.5 W > > Power est. Usage Device name > 6.95 W 100.0% USB device: Yubico Gnubby (gnubby1) (Yubico) > 2.09 W 100.0% Audio codec alsa:hwC0D0: thinkpad (Realtek) (pipewire ) > 2.02 W 85.5% CPU core What's very interesting is if I re-insert the iwlwifi module after that, it works and used a lot less power last time I tried, but this time around it's still shown as high although probably with a wrong Watt value because powertop is confused somehow: 28.8 W 470.9 pkts/s Device Network interface: wlp9s0 (iwlwifi) 24.4 W 100.0% Radio device: iwlwifi Is this something I should persue separately on linux-wireless@vger.kernel.org or ilw@linux.intel.com or elsewhere? Thanks, Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08