Thread (13 messages) 13 messages, 4 authors, 2023-10-05

RE: [PATCH iwl-next v2] ice: Disable Cage Max Power override

From: Drewek, Wojciech <hidden>
Date: 2023-08-29 09:12:33
Also in: intel-wired-lan

-----Original Message-----
From: Ido Schimmel <redacted>
Sent: niedziela, 27 sierpnia 2023 10:47
To: Drewek, Wojciech <redacted>
Cc: Jakub Kicinski <kuba@kernel.org>; intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; Kitszel, Przemyslaw
[off-list ref]; idosch@nvidia.com
Subject: Re: [PATCH iwl-next v2] ice: Disable Cage Max Power override

On Fri, Aug 25, 2023 at 11:01:07AM +0000, Drewek, Wojciech wrote:
quoted
CC: Ido
quoted
-----Original Message-----
From: Jakub Kicinski <kuba@kernel.org>
Sent: czwartek, 24 sierpnia 2023 17:32
To: Drewek, Wojciech <redacted>
Cc: intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
Subject: Re: [PATCH iwl-next v2] ice: Disable Cage Max Power override

On Thu, 24 Aug 2023 10:54:59 +0200 Wojciech Drewek wrote:
quoted
NVM module called "Cage Max Power override" allows to
change max power in the cage. This can be achieved
using external tools. The responsibility of the ice driver is to
go back to the default settings whenever port split is done.
This is achieved by clearing Override Enable bit in the
NVM module. Override of the max power is disabled so the
default value will be used.
Can you say more? We have ETHTOOL_MSG_MODULE_GET / SET, sounds like
something we could quite easily get ethtool to support?
So you're suggesting that ethtool could support setting the maximum power in the cage?
Something like:
 - new "--set-module" parameter called "power-max"
 - new "--get-module" parameters: "power-max-allowed", "power-min-allowed" indicating limitations reported by the HW.

About the patch itself, it's only about restoration of the default settings upon port split. Those might be overwritten by
Intel's external tools.
Can you please explain why this setting needs to be changed in the first
place and why it needs to be restored to the default on port split?
In some cases users are trying to use media with power exceeding max allowed value.
Port split require system reboot so it feels natural to me to restore default settings.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help