Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4528718pxj; Tue, 22 Jun 2021 02:15:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN5KaIOodYTSLpKrzfqq+QjvvNMwDY/fbpA5En7P86iPaazXrKZol73qaBnen5+07TAWvZ X-Received: by 2002:a05:6402:18c:: with SMTP id r12mr3635743edv.10.1624353355396; Tue, 22 Jun 2021 02:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624353355; cv=none; d=google.com; s=arc-20160816; b=PFPkn93uxlqMfFQtgZua4sZyVKuX6EINDcv5OhoGTR+skLyYp+XAbkEceqw93NZlL3 c2uq8qUNS3nwkROOwRJrSobkIiw4KD/4rFZPWN7x6X0C492UunfjKv7B0bbvwtICC0rG qkJLHlsW9S7TSHs/DHR3c8/eB4ranhBuiYJ516AgqnYmrnjQ2GehZt4kqMVyQHPkfsoJ 9etCC14X9KCfICRz2oJHjYOiDiV5AyqKFicnTzgEeQzZgfTFZP4kYRPk44nNTuMq2iN2 O65qaPpqVuu3ecGh0nkmNG+dWjlJsXg0SYqY3BwNf2fNFT8t6Oi7MIN4kXIPMz44K+BU tiRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=6oUBBn3WS5kQlwI0hR7nJNfKpU1hm+VGgC+xHP3tpDE=; b=N1ECLlD7lHxBn6eXWLivewCej9jQ4gqAOagP+oBqBfz4i1rO59jFouXjq61CNEL3yC FdyBIR7rBGK/CB94NTSDB7JhVSQ9+HSFRlnJcFQJyOXMFymiXI1BnreOmzzK95e9Ddzo WG0Pvo7+Ok9TbwXC06QKpLCQEU0BNGlefhnKbsWrI9wThlr11sFKIdC1MZcTEA74jOWO IW53jimAo+hjexuEZBTSfT5CRAcLFPM+0Loar/PIm6kc73gg3Tmu6BnuV1gDSCEi19vI TUgmE22rsSWrcRzDqjX6j7CU/3+u2T73DBeHaMXqA9PT7I5I/c1NnAOYG3XCOq6hprBz ddYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Bp0uzdB6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si12945381ejb.555.2021.06.22.02.15.29; Tue, 22 Jun 2021 02:15:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Bp0uzdB6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbhFVJRf (ORCPT + 99 others); Tue, 22 Jun 2021 05:17:35 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:30702 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbhFVJRf (ORCPT ); Tue, 22 Jun 2021 05:17:35 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1624353319; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=6oUBBn3WS5kQlwI0hR7nJNfKpU1hm+VGgC+xHP3tpDE=; b=Bp0uzdB64szMxIY4rRZjcAOcZB+kwNBPyA4HI5FwoSyIxAmI6s0iL/T8CvYpMD5cnBu9JIbI 6zs8gx1tgHhO1oiC0mGVt/U/FyA8eAsVzvkJ+rpAF06Ergi7BH4VjhnXQO/Xblulfe5pObJs Q+8MaRtjgomx1QaRf36N16W+T04= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 60d1aa278491191eb3d09047 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 22 Jun 2021 09:15:19 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7ABE5C43460; Tue, 22 Jun 2021 09:15:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from tynnyri.adurom.net (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id CAF1BC433D3; Tue, 22 Jun 2021 09:15:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CAF1BC433D3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Lorenzo Bianconi Cc: sean.wang@mediatek.com, nbd@nbd.name, lorenzo.bianconi@redhat.com, Soul.Huang@mediatek.com, YN.Chen@mediatek.com, Leon.Yen@mediatek.com, Eric-SY.Chang@mediatek.com, Deren.Wu@mediatek.com, km.lin@mediatek.com, robin.chiu@mediatek.com, ch.yeh@mediatek.com, posh.sun@mediatek.com, Eric.Liang@mediatek.com, Stella.Chang@mediatek.com, jemele@google.com, yenlinlai@google.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 1/2] mt76: mt7921: enable aspm by default References: <9b704807383f3048898944d2b9cb74e6b4e8d83d.1624174954.git.objelf@gmail.com> Date: Tue, 22 Jun 2021 12:15:10 +0300 In-Reply-To: (Lorenzo Bianconi's message of "Sun, 20 Jun 2021 11:44:12 +0200") Message-ID: <87o8byjm5d.fsf@tynnyri.adurom.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Lorenzo Bianconi writes: >> From: Sean Wang >> >> mt7921 is mainly used in NB, CE and IoT application where battery life is >> much concerned so the patch enabled PCIe ASPM by default to shut off the >> clocks related PCIe as much as possible when MT7921 is either in suspend >> state or in runtime pm to lower power consumption. >> >> We still leave disable aspm as an option with module_param for users to >> disable ASPM if necessary. > > instead of adding a module parameter (deprecated) Why is a module parameter deprecated? I have not heard about that. > , why not just enable it by default for mt7921 and add a debugfs knob > to flip it? debugfs is not ideal for this kind of hardware configuration as debugfs can be disabled. My preference is to use a module parameter. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches