From: "Zhang, Rui" <rui.zhang@intel.com>
To: "rafael@kernel.org" <rafael@kernel.org>
Cc: "viresh.kumar@linaro.org" <viresh.kumar@linaro.org>,
"daniel.lezcano@linaro.org" <daniel.lezcano@linaro.org>,
"Wang, Quanxian" <quanxian.wang@intel.com>,
"rjw@rjwysocki.net" <rjw@rjwysocki.net>,
"srinivas.pandruvada@linux.intel.com"
<srinivas.pandruvada@linux.intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Subject: Re: [PATCH v2 0/4] thermal: core/ACPI: Fix processor cooling device regression
Date: Tue, 14 Mar 2023 02:02:41 +0000 [thread overview]
Message-ID: <aa98c0c6e6154f007de0e42c246c129de0af9854.camel@intel.com> (raw)
In-Reply-To: <CAJZ5v0hwe0ctNU2hLwTorp=JQT_Q3cePw0JQLvcrvQaD5jc5Tg@mail.gmail.com>
On Mon, 2023-03-13 at 19:02 +0100, Rafael J. Wysocki wrote:
> On Mon, Mar 13, 2023 at 5:47 PM Zhang, Rui <rui.zhang@intel.com>
> wrote:
> > Hi, Rafael,
> >
> > The only concern to me is that, in thermal_cooling_device_update(),
> > we
> > should handle the cases that the cooling device is current used by
> > one/more thermal zone. say, something like
> >
> > list_for_each_entry(pos, &cdev->thermal_instances, cdev_node) {
> > /* e.g. what to do if tz1 set it to state 1 previously */
> > }
> > I have not got a clear idea what we should do here.
>
> For each instance, set upper to max_state if above it and set target
> to upper if above it I'd say.
>
Say, before update,
max_state: 3
target: 1
upper is set to 3 because upper == THERMAL_NO_LIMIT during binding
then, after update
max_state: 7
target: ?
upper: ?
Maybe we should do unbind and rebind, and then set target
to THERMAL_NO_TARGET? it is really the governor that should set the
target.
> I guess otherwise there may be some confusion in principle and I have
> missed that piece, so thanks for pointing it out!
>
> > But given that I have confirmed that this patch series fixes the
> > original problem, and the ACPI passive cooling is unlikely to be
> > triggered before CPUFREQ_CREATE_POLICY notification, probably we
> > can
> > address that problem later.
> >
> > Tested-by: Zhang Rui <rui.zhang@intel.com>
> > Reviewed-by: Zhang Rui <rui.zhang@intel.com>
>
>
I recalled that patchwork used to catch these tags here and apply them
to every patches in the series, so the tags are appended automatically
when applying the patches. But it apparently does not work now.
Let me reply to the patches one by one.
thanks,
rui
prev parent reply other threads:[~2023-03-14 2:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-13 14:24 Rafael J. Wysocki
2023-03-13 14:27 ` [PATCH v2 1/4] ACPI: processor: Reorder acpi_processor_driver_init() Rafael J. Wysocki
2023-03-14 2:03 ` Zhang, Rui
2023-03-13 14:28 ` [PATCH v2 2/4] thermal: core: Introduce thermal_cooling_device_present() Rafael J. Wysocki
2023-03-14 2:03 ` Zhang, Rui
2023-03-13 14:32 ` [PATCH v2 3/4] thermal: core: Introduce thermal_cooling_device_update() Rafael J. Wysocki
2023-03-14 2:03 ` Zhang, Rui
2023-03-13 14:34 ` [PATCH v2 4/4] ACPI: processor: thermal: Update CPU cooling devices on cpufreq policy changes Rafael J. Wysocki
2023-03-14 2:03 ` Zhang, Rui
2023-03-13 16:47 ` [PATCH v2 0/4] thermal: core/ACPI: Fix processor cooling device regression Zhang, Rui
2023-03-13 18:02 ` Rafael J. Wysocki
2023-03-14 2:02 ` Zhang, Rui [this message]
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=aa98c0c6e6154f007de0e42c246c129de0af9854.camel@intel.com \
--to=rui.zhang@intel.com \
--cc=daniel.lezcano@linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=quanxian.wang@intel.com \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=viresh.kumar@linaro.org \
/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
all inboxes | Powered by JetHome®