Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5311875rdb; Wed, 13 Dec 2023 05:26:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdamnwLYm/hkSV7LLjob9EH3/4YvzIK6pAxXYGhPpwTLytjMZ4wQsMIK0fXwLW8LwqDR7f X-Received: by 2002:a17:907:2d11:b0:a1f:60d2:f0af with SMTP id gs17-20020a1709072d1100b00a1f60d2f0afmr5285844ejc.70.1702474006770; Wed, 13 Dec 2023 05:26:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702474006; cv=none; d=google.com; s=arc-20160816; b=00vP1XuKU2AXguqp92+pIWxbO11CPJCxOxqnKixMx+N6mU8nezTn7dzlkH9hx2/0r/ OemqLGSOGUDCufnnUQSKeQnxpmdUeaum8Yg0lMo+tGwky+J9zJ0in+5AGQkxV5a5gZpF pPuQHg+cl5wgOII76JSK8Mf9UWAhpfd+8jjZuMtR86JXJRXPspkLIuAlf62NyU8xtphW qB+Ffqeibt3USihijp3C8SKS8Zlg3K1eY7tVdGXG7Hul4S/vO1sFl4IIh1FiNHItCkjL VBwVyDoiP7/G9uExdb8kO7y/kVsmrmqOC9ykE8pfoMnTim6lV/EBjbXENNdVofRes/Jk wXrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IXcKPeiwX22bmQx6ElblTV8+xahRvtPnZtdhjVsSu2Y=; fh=xlGoLTXzfUJrlxVkYdDjmhz5AWag+e/OIWCa3e7/X5U=; b=huU6EuuG1DXgi3KEycSXzHEk42oS/mMsCd1d+PSQ0c00V3gQmqvertLx1Tp1nRGF6n /UaItB39wMDeQ0irsJFCeXgxeJVb7yUqEywViPQ4HCtq1cUnYlXcguNQoAhmHuLXNIa+ +uCSI4k495u69e+xuHnvMpzF0V4kwD76pr8RfFy+JjsKgJuL2b8Kp6B28/mZ1Ig1hyDN Aum95z/4MQJzp4EMw1QFLTA/E8AmZZEa4IdEMIijhOBXFU1RruN6Ibolpl8t5aqOR4Tm Mw2En4huE2//wnWpka8m5Er2G4nFauEpqCDX9/W7ogfOwbmxNWBNtQM/KtNXlx+mttW/ V6yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sh371081; spf=pass (google.com: domain of linux-wireless+bounces-737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j5-20020a1709064b4500b00a18e664cf82si5446029ejv.96.2023.12.13.05.26.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 05:26:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sh371081; spf=pass (google.com: domain of linux-wireless+bounces-737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 50B221F21468 for ; Wed, 13 Dec 2023 13:26:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB8FE2CCD1; Wed, 13 Dec 2023 13:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Sh371081" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEB6D2CCAD for ; Wed, 13 Dec 2023 13:26:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B5E0C433C7; Wed, 13 Dec 2023 13:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702474003; bh=IKzEPJuxRJ70VYdW/2SaiHnZpZE1vJIdBlLNxNGneUU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sh3710819in+LL0u6YtfRlRkB2RQ9Q55qNflXVQzV90qC6oYwmQfmDTByHLhXv4Ez auRR2iMQJf3m84D10+A2d7AqDMPBZprMmi4T7oFjZD997ce5RYmaCYpCapeQGC5xgL CRSLesDsqMyXng2LI96xv8SwjfxdP/jJvLM6NBob96bILqnibz195Ui1YrEU5mmO/p zh1xJnnip1dO2NeEzH0elAMgAHlaStqtZWAcCe/8bTEs5uzWieGFfsgcauvAZQzgaa heGMtQxQifPtH3hYx1I5nV1Y/xuSmXPlliMrFRqA2sFmvebaerKoZOQwlTHWAF/KdI 5YSVPmu0OSO1Q== Date: Wed, 13 Dec 2023 14:26:39 +0100 From: Lorenzo Bianconi To: Kalle Valo Cc: Mario Limonciello , Felix Fietkau , Ryder Lee , Shayne Chen , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Deren Wu , Ming Yen Hsieh , Ben Greear , "open list:MEDIATEK MT76 WIRELESS LAN DRIVER" , "open list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , Sultan Alsawaf Subject: Re: [PATCH 1/2] wifi: mt76: mt7921: Disable powersaving by default Message-ID: References: <20231212090852.162787-1-mario.limonciello@amd.com> <874jgmnud8.fsf@kernel.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9uLM4Nq5uaqfA0yL" Content-Disposition: inline In-Reply-To: <874jgmnud8.fsf@kernel.org> --9uLM4Nq5uaqfA0yL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Mario Limonciello writes: >=20 > > Several users have reported awful latency when powersaving is enabled > > with certain access point combinations. >=20 > 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. >=20 > > It's also reported that the powersaving feature doesn't provide an > > ample enough savings to justify being enabled by default with these > > issues. >=20 > Any numbers or how was this concluded? >=20 > > 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. >=20 > We have already several ways to control 802.11 power save mode: >=20 > * NL80211_CMD_SET_POWER_SAVE (for example used by 'iw set power_save') >=20 > * CONFIG_CFG80211_DEFAULT_PS (for kernel level default) >=20 > * WIPHY_FLAG_PS_ON_BY_DEFAULT (for the driver to control the default sett= ing) >=20 > 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. Regards, Lorenzo >=20 > --=20 > https://patchwork.kernel.org/project/linux-wireless/list/ >=20 > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpa= tches --9uLM4Nq5uaqfA0yL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZXmxDwAKCRA6cBh0uS2t rMk4AP4meRcee0zlYRgossoI8og7N/lRVYrPEbK9Pvu+GoHvbwD9H342JwJu5cTO ESqtC33FKLmyM0+wXLDJ/KpvDg+gNQQ= =O53f -----END PGP SIGNATURE----- --9uLM4Nq5uaqfA0yL--