From: Eric Biggers <ebiggers@kernel.org>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Stefan Lippers-Hollmann <s.l-h@gmx.de>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Linux PM <linux-pm@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Lukasz Luba <lukasz.luba@arm.com>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
Zhang Rui <rui.zhang@intel.com>,
Neil Armstrong <neil.armstrong@linaro.org>
Subject: Re: [PATCH v3] thermal: core: Call monitor_thermal_zone() if zone temperature is invalid
Date: Mon, 15 Jul 2024 14:12:19 -0700 [thread overview]
Message-ID: <20240715211219.GA1178@sol.localdomain> (raw)
In-Reply-To: <CAJZ5v0gPiwkNczZhCf_rkxVoUX33tS9c6irMf_7=Rg48Nw9C4w@mail.gmail.com>
On Mon, Jul 15, 2024 at 04:48:20PM +0200, Rafael J. Wysocki wrote:
> On Mon, Jul 15, 2024 at 2:54 PM Stefan Lippers-Hollmann <s.l-h@gmx.de> wrote:
> >
> > Hi
> >
> > On 2024-07-15, Rafael J. Wysocki wrote:
> > > On Mon, Jul 15, 2024 at 11:09 AM Daniel Lezcano
> > > <daniel.lezcano@linaro.org> wrote:
> > > > On 15/07/2024 06:45, Eric Biggers wrote:
> > > > > On Thu, Jul 04, 2024 at 01:46:26PM +0200, Rafael J. Wysocki wrote:
> > > > >> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> > > > >>
> > > > >> Commit 202aa0d4bb53 ("thermal: core: Do not call handle_thermal_trip()
> > [...]
> > > > Does the following change fixes the messages ?
> > > >
> > > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
> > > > b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
> > > > index 61a4638d1be2..b519db76d402 100644
> > > > --- a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
> > > > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
> > > > @@ -622,7 +622,7 @@ static int iwl_mvm_tzone_get_temp(struct
> > > > thermal_zone_device *device,
> > > >
> > > > if (!iwl_mvm_firmware_running(mvm) ||
> > > > mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) {
> > > > - ret = -ENODATA;
> > > > + ret = -EAGAIN;
> > > > goto out;
> > > > }
> > > >
> > > >
> > > > --
> > >
> > > It would make the message go away, but it wouldn't stop the useless
> > > polling of the dead thermal zone.
> >
> > Silencing the warnings is already a big improvement - and that patch
> > works to this extent for me with an ax200, thanks.
>
> So attached is a patch that should avoid enabling the thermal zone
> when it is not ready for use in the first place, so it should address
> both the message and the useless polling.
>
> I would appreciate giving it a go (please note that it hasn't received
> much testing so far, though).
> ---
> drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 1
> drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 1
> drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 55 ++++++++++++++++++++++-----
> drivers/thermal/thermal_core.c | 46 ++++++++++++++++++++++
> include/linux/thermal.h | 1
> 5 files changed, 95 insertions(+), 9 deletions(-)
I'm still getting the warning messages with this patch applied.
- Eric
next prev parent reply other threads:[~2024-07-15 21:12 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 11:46 [PATCH v3] thermal: core: Call monitor_thermal_zone() if zone temperature is invalid Rafael J. Wysocki
2024-07-04 12:49 ` Daniel Lezcano
2024-07-04 12:52 ` Neil Armstrong
2024-07-04 14:23 ` Rafael J. Wysocki
2024-07-04 14:21 ` Rafael J. Wysocki
2024-07-04 16:53 ` Daniel Lezcano
2024-07-04 16:58 ` Rafael J. Wysocki
2024-07-15 4:45 ` Eric Biggers
2024-07-15 9:06 ` Stefan Lippers-Hollmann
2024-07-15 10:52 ` Rafael J. Wysocki
2024-07-15 9:09 ` Daniel Lezcano
2024-07-15 11:21 ` Rafael J. Wysocki
2024-07-15 12:54 ` Stefan Lippers-Hollmann
2024-07-15 14:48 ` Rafael J. Wysocki
2024-07-15 21:12 ` Eric Biggers [this message]
2024-07-15 23:48 ` Stefan Lippers-Hollmann
2024-07-16 10:05 ` Rafael J. Wysocki
2024-07-16 10:55 ` Stefan Lippers-Hollmann
2024-07-16 11:15 ` Stefan Lippers-Hollmann
2024-07-16 11:36 ` Rafael J. Wysocki
2024-07-16 12:10 ` Daniel Lezcano
2024-07-16 12:18 ` Rafael J. Wysocki
2024-07-16 12:30 ` Rafael J. Wysocki
2024-07-16 13:20 ` Stefan Lippers-Hollmann
2024-07-16 14:04 ` Rafael J. Wysocki
2024-07-16 16:37 ` Oleksandr Natalenko
2024-07-16 17:03 ` Rafael J. Wysocki
2024-07-16 23:30 ` Stefan Lippers-Hollmann
2024-07-16 11:19 ` Rafael J. Wysocki
2024-07-15 10:49 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240715211219.GA1178@sol.localdomain \
--to=ebiggers@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=neil.armstrong@linaro.org \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=rui.zhang@intel.com \
--cc=s.l-h@gmx.de \
--cc=srinivas.pandruvada@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox