[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <90319d28-6bf3-4439-a86b-8adb7ac71d0d@roeck-us.net>
Date: Sun, 2 Mar 2025 10:31:36 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Huisong Li <lihuisong@...wei.com>
Cc: linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org,
jdelvare@...e.com, liuyonglong@...wei.com, zhanjie9@...ilicon.com,
zhenglifeng1@...wei.com
Subject: Re: [PATCH] hwmon: (acpi_power_meter) Fix the fake power alarm
reporting
On Thu, Feb 20, 2025 at 11:08:32AM +0800, Huisong Li wrote:
> We encountered a problem that a fake power alarm is reported to
> user on the platform unsupported notifications at the second step
> below:
> 1> Query 'power1_alarm' attribute when the power capping occurs.
> 2> Query 'power1_alarm' attribute when the power capping is over
> and the current average power is less then power cap value.
>
> The root cause is that the resource->power_alarm is set to true
> at the first step. And power meter use this old value to show
> the power alarm state instead of the current the comparison value.
>
> Signed-off-by: Huisong Li <lihuisong@...wei.com>
Applied.
Guenter
Powered by blists - more mailing lists