Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5287370rdb; Wed, 13 Dec 2023 04:46:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEv0GXRJEhQ/AHE3TC9xOsIaLkQSwhPiPYg8ho1KfThp+mFNgttMNnk+7L0osWBkYbvMvKV X-Received: by 2002:a05:622a:46:b0:425:4043:50ef with SMTP id y6-20020a05622a004600b00425404350efmr12055524qtw.126.1702471565264; Wed, 13 Dec 2023 04:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702471565; cv=none; d=google.com; s=arc-20160816; b=YtSaL3XNDIP/ABaWETaDaLI/W6wCuX7tCsDpvCWXvuopQ1YS13DVZGZrYnK1pXHTSb /16SkdFjUwpjhca+pd13VdI6Sx+DW4IGRZoyFSxGAciWziM2sxTETsHrU7hTGVnyv+SS n9SNrYAgb6uvrRJa4xMrGMcveR8B7gGPyPJ1uGKwjgndIjpdn9gZSGXNvcx4ZmtsWjN4 qn0HhxBogou6xvEU1qK726XP3XUhcZb9dXPXB4L1sgiG2OJ1NWTmfX40LJpcHZBnRU2t otYp50NgTDObnu5C+YIBqsw8NpjgLCZMAQS+Tq3yudW6RU0+C6LsTH9SuK3e56KKsYtK mTBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=TkzqMOp/Xs43tYyiFqXPDwFbT9GEi5XujDuaXczjprI=; fh=MhVeY0POsMsz2QSH4j5P1PUrGe0w9NyOcvGmGhC8DUA=; b=WGMBXscqEST4ZnVYrW3wc4btYw6rEwgwPUQUg78VuPCaInmW9Btve9l/WII7unDegJ GlyLPb4gcy77miVOQKiK3JFVYIzKzspuvtWu4d7CiF/RKx2oGh1ewdWgEH8292Of7uoZ ZoJQSxrgk1yLy15rInMYKOU6rnqplM5Jh6e5euGVkmxfd7rRqXdqqetfAuRh1vTLvgt5 9UD8EMZZKtDqZyTt2dy0HfVsSYWQwJbbVsHZrDQ9ZHhWmYuY0+0BnZuntY+6JLr47w7w Pt2x0u4J2VxVUcaPSBNEGzwZnq33DmSjBTlOYVflwkQ4wFAGmWsxZ2SrvmF0IXO9Sy5M 7efw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SeA3xxHO; spf=pass (google.com: domain of linux-wireless+bounces-736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dn12-20020a05622a470c00b0042585e20c2csi11539824qtb.680.2023.12.13.04.46.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 04:46:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SeA3xxHO; spf=pass (google.com: domain of linux-wireless+bounces-736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-736-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B722E1C20BF0 for ; Wed, 13 Dec 2023 12:46:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 533D928E32; Wed, 13 Dec 2023 12:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SeA3xxHO" 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 36ABB28E30 for ; Wed, 13 Dec 2023 12:46:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F10FC433C7; Wed, 13 Dec 2023 12:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702471561; bh=UqFTwJlv/HHhsk51P3RSZ4bmpRtBPRMXihdAMtpeCNY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=SeA3xxHO7yrmmfB2KFZrqVJEWt2vt4NxSiFoXQXR6fpT/rmmTxIodcu3eA/bmmYkR upieDGK4Hq5XJ+BtmAbg2viqMRak5Ec9zsXAsryytWiR+p+srQKVfTcPlsbBQ++en/ lQUenyeRjbmAWIrgpFp6a03gLgdeKCOg2Cifx9wtrdwX9VQBaDgXNmJcAObY5f5Ipw h/qJvDB97QydJfmyE7AeLgmTJNaeHmIbnhiixQaNANwe/1i5O0uFkb1ypomLhKaBgy BVOCu0lU8Ls+r1/fzpUJue9muW8t1xhhzZKbWOTXpgLFqf9JH3bkSySN9eTKTrSCL2 fons/DqBkx3zA== From: Kalle Valo To: Mario Limonciello Cc: Felix Fietkau , Lorenzo Bianconi , "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 References: <20231212090852.162787-1-mario.limonciello@amd.com> Date: Wed, 13 Dec 2023 14:45:55 +0200 In-Reply-To: <20231212090852.162787-1-mario.limonciello@amd.com> (Mario Limonciello's message of "Tue, 12 Dec 2023 03:08:51 -0600") Message-ID: <874jgmnud8.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches