Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5538476rdb; Wed, 13 Dec 2023 11:27:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvZiOnkC39fxOHdNICmROfrkFjxTdlHHdk0pdHS7vSCLGvj+XHCN/W77pRgFCPTfZH2P7+ X-Received: by 2002:a05:6a21:3398:b0:18b:9093:ff13 with SMTP id yy24-20020a056a21339800b0018b9093ff13mr10135977pzb.52.1702495672569; Wed, 13 Dec 2023 11:27:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702495672; cv=pass; d=google.com; s=arc-20160816; b=izOB1iR4IHeoinO1jS+3ScHHsxf1duRLdxDkog1okstk7CE+5M48ZmtQVatEi4FtSA ZoMxL1Pa+U5RjlM6SMJss5QsZCh1UzRmPEgEGCg1gsD+X6ekOEU892MYgWbwc7BKLQnZ tlPz5OtwF9qfYF2F+EB3YBp6BbZIS/ICQIKfLlQcAkvWfZhOJbTtM9OFymL4zjbiGccV re9s0tyw6Yi4NvGPPLcKDopCUjWfpQXJgKG7AJOGP5PKfyuUPyVWIL9EYf5zgvpmUKdh ka1brcmp/I7s7hau8vYOMp3WdIkVUwCcmxc7xTI9myr6lTDbr6AVGbJmStvubS8mAPFJ PcWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:date:message-id:dkim-signature; bh=G0J9WuRfmk98KWhuC4pV+d+VOO658C5hxxybsqPJjQc=; fh=H03b6AJpWMwA5DKaWenhZ8M0GrRImxjclHYlIAZRwlI=; b=ADxWERvtTfqMu9hw2oIc89NWDaI2GKh4GoqM/5YMxOi59msM3oSHAzimn6AR6E6HN2 WxmxyvUxYbnVzqmLle8RnouYS6kPeHB2nZPXoGFiAar2baww9cDZMaPwhVr9DGwv3wVB cqKLDwIYrZ2sO6eYfrJ80VB3OtTLScUN1L4sP/9ZGx2OMNt5wIa1bNmFCIAeXgvtVlNF Zy94zDgWqHxYOibgsi003IyZcQA2Rvxnz/nRZL1qSglaBjmhR8EdwOFWxjGHdvYkzcNQ 6mIUmjRcIIGgKAKy9arHqcY7RLVDWUXVE08TwEbnsejXSMGUFZIHDBYOCEYfpa4AsrGb Q7/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Xyw2Ybnj; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-wireless+bounces-760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l20-20020a656814000000b005c622d45e68si9956699pgt.549.2023.12.13.11.27.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:27:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Xyw2Ybnj; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-wireless+bounces-760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EB52828292C for ; Wed, 13 Dec 2023 19:27:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0953C68269; Wed, 13 Dec 2023 19:27:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Xyw2Ybnj" X-Original-To: linux-wireless@vger.kernel.org Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2075.outbound.protection.outlook.com [40.107.100.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 170439C; Wed, 13 Dec 2023 11:27:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LBTK3Ti1OY2+RyIwUUd22OZPBra6WwVhIWK7mi7jgnDuZXfrvVKOOPCZ+hN2b05P3JRYkKXdD2A3bkR5T1pa7sLtZDeQ7jiPSe9m3mKeFozhUr9jfWqYEP8+u8QnCv9jgmYjw2lyHtmAfu/wxEjV0h302LONrEtC8uvVZXbwT6T4J2yMAC88O3r+y1jGdC6rajvHQcHzdfsBDdxDEq1OnrrXe/pLnjTh2f81HhY492IDppjwnys6/BmLP7pw6yojxYam3XWRAUAjN7J5iZ65q0LBOWbOPupkONJp1rOiWRwTzWy9c9QxD5rGAS9EytrlSvuBiaf4MT4sSKWV1Va5PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G0J9WuRfmk98KWhuC4pV+d+VOO658C5hxxybsqPJjQc=; b=PXp0brU8pp6id6GIKjEaXG7x8JLRwKtADe8HiYVEoMq2JqxoKwgE8DNxyB3Bd88pOKd3Kn86ZT1kQrNWBypTM9vnwTcSUZVGiy590VTnJ1HvAwiFJ7hyCVdjBZwECbS+he+mWsYvDha+hGnyNUerBb5qMBPlhNIzI6rtGCXn494eHhS1pwthuuwBaN8Sd5uLaroCOp28ONsIwW6/I59BX+lMCK5wmZMiKP2mnbl41MX8nsMUXnfOpP6oI88RoqikORwKnpgRjECiWVFi7kljxx/pUoj2cSC9eSBXy+YfyYHtbMU2zt4ORbr4W60i4Qcap/hPNJShykKBAGEJ3i2i6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G0J9WuRfmk98KWhuC4pV+d+VOO658C5hxxybsqPJjQc=; b=Xyw2YbnjVU71zUICzwUflQqUjs/JTRUa4Exxqk4p/pU6nnK4ak0YFk/4QEaI8ef84SS69yhUtkFueR23vnzGR7cqd8bKXXEiJSjTtOWUX/IuH1Bi5Z8F7qLb7w5ITWsSOmjLpkE6WhHONZadqTeVL6vaf9SeAYOcWsM5NkxVvmc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) by SJ2PR12MB8739.namprd12.prod.outlook.com (2603:10b6:a03:549::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26; Wed, 13 Dec 2023 19:27:39 +0000 Received: from MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::83d7:9c4f:4d9b:1f2a]) by MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::83d7:9c4f:4d9b:1f2a%5]) with mapi id 15.20.7091.022; Wed, 13 Dec 2023 19:27:39 +0000 Message-ID: <1ef12773-74ca-489c-b36b-d3cf7da22c43@amd.com> Date: Wed, 13 Dec 2023 13:27:38 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] wifi: mt76: mt7921: Disable powersaving by default Content-Language: en-US To: 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> From: Mario Limonciello In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DS7PR03CA0333.namprd03.prod.outlook.com (2603:10b6:8:55::15) To MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6101:EE_|SJ2PR12MB8739:EE_ X-MS-Office365-Filtering-Correlation-Id: 28196a1b-379f-4892-f3e2-08dbfc1191d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jYHAonz3MdTn8B8S/W0sIRUgWZinO3mx7Q5zRfRKBzWQrxAm5pneQXOarEXnSOWcsno123xOBPJ+sr2xAZLmCGHf/TYrB46XbjiV3c5JzWxhyaM5EuOYOMkRlis1GLXiOR5IQt3+RXBaC+fzFMoGtPJONhK00nJqucUs8aZIXYrHb9O/4A0vwk1UoStNawDNyLv98fHPK2HxGcNh7rh65n7tQQF3b3hB1OTz1i7TL40rt0FmK9h9w1jUogMzc1/z8QS7CtAu12/WNPHqbtBz75+m859wn1i1UWdNcOnSJ5Ew5JfmbsqzZAclr8B4TcWICnPZK9z7LXMP4vGKvVLOrAyrbNp6TmcFGBmWfIK8DohpV6o8iGLykZ9rv9BkZYgLOCUkLxWpfNb/yCVQ9aAyZBVYKHg7kA49Qp42rZqPH+OWck5S8XfvBKxo+TmqIpWucCpJAkGzmskqCM5eBmAXxx/ARypygLCiBcJ6VUNAA+/2BE4BxcZ6AP7Zl3MwalUxdix6kI2z3PDm4x2ER4LvU8+It8D4gdax5hSGdMLfxEaAFd1khvmV4iu5/fCWiqvfpCPfUi6S682/Pc20Ebk92GXigY55zcmqVd4Pe2T2NGK+yozbRKb8NMCyi6dfqqtUFn27vF+owJZ4YkK3uBEa7Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB6101.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(346002)(376002)(396003)(39860400002)(366004)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(31686004)(26005)(66946007)(66476007)(54906003)(66556008)(86362001)(31696002)(36756003)(966005)(83380400001)(6506007)(2616005)(6512007)(53546011)(316002)(2906002)(110136005)(478600001)(6486002)(7416002)(5660300002)(4326008)(8676002)(44832011)(38100700002)(41300700001)(8936002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q1YyZXRkOGJBMGc2WHFGb2k1eW1xU0VaQVpPZDQ1WkFjd00xVHgvbHdKVUM3?= =?utf-8?B?UG9xMUxBWGVzTXFheHllV1BIYzFCNGxPSk9sa0RsRHFrajYzNkZla0FMRkNK?= =?utf-8?B?NXRINlU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WWVEWmg0Y01VYi9ITVlq?= =?utf-8?B?ak9nOTVjcGN2WEZ5ZVNUcHdMUVlLQlh6QVVhQW1JNU5QdE14amdSKzdibld0?= =?utf-8?B?aFBsdDFWMldXWmh4UTB4aTZ5WnYyQ0h6akZsV2dNYUJHYTN2WjFEVjVUTS9o?= =?utf-8?B?WTFvV3o1Y2E2MVZwOS9YZkx3VXlGMWRFL09GQ281WnZQdTVyL3R4TGJ5WVV4?= =?utf-8?Q?YC6HX2fM4c+7xGmPNy8FCHcfU?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28196a1b-379f-4892-f3e2-08dbfc1191d9 X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2023 19:27:39.5910 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6FmA9nJyj/w4XvS61PNZ9ydv8yrBqc+Pbv4K7yJarKw4kXk6VjImHCkrXU4+2ZqjDrJ7vp9WkTU7GvLsb3XAwg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8739 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