Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5952510rdb; Thu, 14 Dec 2023 04:39:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9P9EPSw79RVey2pSpwJlm+BmP7eX+NNmjSVWSL8zQVhusxCqrAIlogkA3JVEqIjtWGg4n X-Received: by 2002:a05:6e02:1e05:b0:35f:7f49:a0eb with SMTP id g5-20020a056e021e0500b0035f7f49a0ebmr1417564ila.59.1702557593347; Thu, 14 Dec 2023 04:39:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702557593; cv=none; d=google.com; s=arc-20160816; b=QzxVYYaIEGmXaqJ/QbmuhXCIzAzEmj29kuLERMi8xHuUy57A+FXlJ2B2NV5xDhBQOE Xcjxn+p35N4TH4wC1H7o/R4jo5dbGwojlPbyhFigrXq0+Zj3LotIKyrYaBwVE2T3z1gg JfmYEuZKakyLkB2CeKzRJXwv+MsYaW34ShVOAWDhy9l5mSDnAidTYrMmMueN98c1rB3h YdzXj5Lwc1+Y/ziN+LpUv4NOsi1uVM4jo1kLuJ5GbqRWgSmimdj9N2IS3bfVTNK+w/w7 kx/JQJhAB2i/S6hUReuePZGCP0XqpiUIy4oBtiLD9S7+uwqwWffX4S2bXgdJMXYR8m9p 4ROA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/2CpqYu2Yz1Ozrx0CUYVWM6SPUKyooHq2Zq4S2qE3CE=; fh=LqzaGK/FBwmianeDsIW613O6SpFFTwI5IkbsckBKNqo=; b=gJbZWuf7efI93ioCZenRzNtudmxUV2N0MeBqEkU8O2h94d+7tf4Jnld8aYu8fAOXmg /fywvJrg4l+l0WE8+8IqZ4pocyK3w0xdnFI0nVGsLzO4msV2i2zODLmk+q8PkYLenXYx sLTm/RR+nhzviIwSkVv6IcRaggm1X5G59wv+TcP3um9Uya6OWJssCJZLXkrHETQkjwif 6bovB5zKnSfREYibx5IpYGUTb65WEMjx+nGnKASDXHpprMDS6YyHBm+n0goqz11DZJvO gpxXHXPZlw6JhIGhbgE6VReItO8c2gaWK/mD2Nrx95u2DvK/L5aa2sOneCMrIlAdYryV IWkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SNU1xSFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id v12-20020a65568c000000b0057942bfab4dsi10736577pgs.395.2023.12.14.04.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 04:39:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SNU1xSFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BEA3C822E540; Thu, 14 Dec 2023 04:39:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573070AbjLNMjS (ORCPT + 99 others); Thu, 14 Dec 2023 07:39:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573055AbjLNMjR (ORCPT ); Thu, 14 Dec 2023 07:39:17 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09B66115; Thu, 14 Dec 2023 04:39:24 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3b9e7f4a0d7so5547925b6e.1; Thu, 14 Dec 2023 04:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702557563; x=1703162363; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/2CpqYu2Yz1Ozrx0CUYVWM6SPUKyooHq2Zq4S2qE3CE=; b=SNU1xSFpBtsbK2qHGzt+aVA05B5PnOOzezdmdppw5jRgQkH+nFyxApDu8bZDpYY8sI TJiD1QvkNX7XsKAETBe/f6DqP16GBpn/b7iI4ttYc11INORgbctDJZI0l6jRBjsOwDY4 oISYR+yrfrmKg0agj5a4qiMuQh6KJQfi1BR0tjdDyFzdgvFFhDCxhUq4kCVpTr39dgNp JwAuGvQRstIUflZMb9HHDUeUTCW1jSY0RcvgOZQ2zC7Mp7qvVscK2IqzPl+i99jRf4Qh P/lNrQHNtiGFYu6JzQXGhDKCaOukf/9+nNRFiSWF2BrY2lQ4lUWg/idi9tMzCH5gCSIb FgVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702557563; x=1703162363; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/2CpqYu2Yz1Ozrx0CUYVWM6SPUKyooHq2Zq4S2qE3CE=; b=LAaS7wDLy+7oFuW176qlHm9ecju7XKlwk/OvBK+BVauF0ouhU200WxsF4pAPtIuyxe 8hW9U50QQVYUPgynJJOmUIuzTGlyfSZ6MjurPBYNbXojC2MwT2s4b1rz/XYg0tI55zuW ctCGDmx2Rd2qW0Fx8r1bfVvfSpbgVSHuASi0TgR//ddODbxVLDoPY68VSuS6CMOpOpM5 TjtZNA4bM1K7hjh9KD2JHpge2A9pGme8CFF0wVAxCPOgAQMeGXvMy3vZ+dyHObyzrrrU THfmXMKVAQgPYWBUHoEvdRFIWYLPmfA8C9Su1Sj/n9S/G0NjOaRVNOYJ7/QCjfFj9FSK oHHA== X-Gm-Message-State: AOJu0YwNAhN0QrZNDdXWy9oJzn2glYmGflyjv4I0iG09ZMWTpOI7lDFc LLx63G1fsm45CBB+ju0PoHg= X-Received: by 2002:a05:6808:bc7:b0:3b8:b063:5048 with SMTP id o7-20020a0568080bc700b003b8b0635048mr11757906oik.73.1702557563334; Thu, 14 Dec 2023 04:39:23 -0800 (PST) Received: from [10.102.4.159] ([208.195.13.130]) by smtp.gmail.com with ESMTPSA id or15-20020a05620a618f00b0077da7a46b0fsm5250357qkn.69.2023.12.14.04.39.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Dec 2023 04:39:23 -0800 (PST) Message-ID: Date: Thu, 14 Dec 2023 04:39:19 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] wifi: mt76: mt7921: Disable powersaving by default To: Mario Limonciello , Ben Greear , Lorenzo Bianconi , Kalle Valo Cc: Felix Fietkau , Ryder Lee , Shayne Chen , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Deren Wu , Ming Yen Hsieh , "open list:MEDIATEK MT76 WIRELESS LAN DRIVER" , "open list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , Sultan Alsawaf References: <20231212090852.162787-1-mario.limonciello@amd.com> <874jgmnud8.fsf@kernel.org> <1ef12773-74ca-489c-b36b-d3cf7da22c43@amd.com> Content-Language: en-US From: James Prestwood In-Reply-To: <1ef12773-74ca-489c-b36b-d3cf7da22c43@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Dec 2023 04:39:47 -0800 (PST) On 12/13/23 11:27, Mario Limonciello wrote: > On 12/13/2023 08:45, Ben Greear wrote: >> On 12/13/23 5:26 AM, Lorenzo Bianconi wrote: >>>> Mario Limonciello writes: >>>> >>>>> Several users have reported awful latency when powersaving is enabled >>>>> with certain access point combinations. >>>> >>>> What APs are these exactly? In the past 802.11 Power Save Mode was >>>> challenging due to badly behaving APs. But nowadays with so many >>>> mobile >>>> devices in the market I would assume that APs work a lot better. It >>>> would be best to investigate the issues in detail and try to fix >>>> them in >>>> mt76, assuming the bugs are in mt76 driver or firmware. >>>> >>>>> It's also reported that the powersaving feature doesn't provide an >>>>> ample enough savings to justify being enabled by default with these >>>>> issues. >>>> >>>> Any numbers or how was this concluded? >>>> >>>>> Introduce a module parameter that would control the power saving >>>>> behavior.  Set it to default as disabled. This mirrors what some >>>>> other >>>>> WLAN drivers like iwlwifi do. >>>> >>>> We have already several ways to control 802.11 power save mode: >>>> >>>> * NL80211_CMD_SET_POWER_SAVE (for example used by 'iw set power_save') >>>> >>>> * CONFIG_CFG80211_DEFAULT_PS (for kernel level default) >>>> >>>> * WIPHY_FLAG_PS_ON_BY_DEFAULT (for the driver to control the >>>> default setting) >>>> >>>> Adding module parameters as a fourth method sounds confusing so not >>>> really a fan of this. And the bar is quite high for adding new module >>>> parameters anyway. >>> >>> agree, I think we do not need a new parameter for this, just use the >>> current >>> APIs. >> >> Is there a convenient way for a user to make any of those options >> above stick through >> reboots? >> >> To me, the ability to set system defaults through reboots is a nice >> feature of >> module options. >> >> Thanks, >> Ben >> > > Some userspace has the ability to do this.  For example in Network > Manager: > > https://unix.stackexchange.com/questions/595116/wi-fi-powersaving-in-networkmanager > And recently added to IWD for this very reason, there are no decent ways to persist between reboots (except when using NM). https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/?id=29edb1626d88bb713db71f7b374d8f24832fd94f Thanks, James