Linux Power Management development
 help / color / mirror / Atom feed
From: "Pandruvada, Srinivas" <srinivas.pandruvada@intel.com>
To: "rafael@kernel.org" <rafael@kernel.org>,
	"daniel.lezcano@linaro.org" <daniel.lezcano@linaro.org>
Cc: "lukasz.luba@arm.com" <lukasz.luba@arm.com>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
	"quic_manafm@quicinc.com" <quic_manafm@quicinc.com>
Subject: Re: [PATCH v2 0/7] Add thermal thresholds support
Date: Thu, 22 Aug 2024 18:12:54 +0000	[thread overview]
Message-ID: <babbb2d4e3d53e7cde77025507ecf9ca3256dc1a.camel@intel.com> (raw)
In-Reply-To: <8b832b56-faf3-43d5-88b2-c91b0a0bbaae@linaro.org>

On Thu, 2024-08-22 at 19:08 +0200, Daniel Lezcano wrote:
> On 22/08/2024 14:11, Pandruvada, Srinivas wrote:
> > On Thu, 2024-08-22 at 11:41 +0200, Rafael J. Wysocki wrote:
> > > On Thu, Aug 22, 2024 at 12:16 AM Pandruvada, Srinivas
> > > <srinivas.pandruvada@intel.com> wrote:
> 
> [ ... ]
> 
> > > So did you apply the Daniel's patches and run the test or did you
> > > do
> > > something else?
> > We already use netlink to send notification to user space via
> > writable
> > trip. So didn't apply any patches. I don't see these patches will
> > do
> > any different.
> 
> Actually you are missing the point of the thresholds approach.

I very well understand. I proposed similar approach without netlink
several years back. Also submitted patches to use IIO.


> 
> The goal is to track the temperature easily from userspace without 
> constantly polling the temperatures in all the places.
> 
Exactly.


> The trip points are a firmware descriptions. Their number is fixed.
> They 
> are designed for in-kernel thermal framework. They have a type. A 
> governor is supposed to be tied with it. A cooling device also.
> 
Yes, I understand the whole approach. trips are trip where you want
governors to take action.

> Writable trip points means you should be able to add trip points 
> dedicated to the userspace to the firmware which is not possible.
> Then 
> reuse them from userspace which is unrelated to the in-kernel thermal
> management. It is difficult to deal with because of the need of
> tracking 
> the low and high limits from userspace.
> 
Yes.

> The thresholds are there to allow the userspace to have the benefit
> of 
> the interrupt driven temperature monitoring.
> 
Yes. I am not denying benefits.

> Obviously if you set the thresholds to a temperature equal to a 
> mitigation trip point then when the limit is reached you will receive
> notifications for the trip point going back and forth as well as 
> notifications for the thresholds.
> 
Not correct. It is not at mitigation point. This is how several sensors
several sensors work. I submitted a range of sensor drivers to IIO
framework, several have this issue.

To make it useful, you need to have some rate limiting. Netlink is not
a low overhead user-kernel interface.

Looks like you finalized design and just looking for patch reviews!


> 
> 
> 
> 


  reply	other threads:[~2024-08-22 18:13 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-16  8:12 [PATCH v2 0/7] Add thermal thresholds support Daniel Lezcano
2024-08-16  8:12 ` [PATCH v2 1/7] thermal/core: Compute low and high boundaries in thermal_zone_device_update() Daniel Lezcano
2024-08-16 11:34   ` Rafael J. Wysocki
2024-08-16 12:06     ` Daniel Lezcano
2024-08-19 14:07       ` Rafael J. Wysocki
2024-08-16  8:12 ` [PATCH v2 2/7] thermal/core: Add thresholds support Daniel Lezcano
2024-08-21 20:05   ` Rafael J. Wysocki
2024-08-22 11:30     ` Rafael J. Wysocki
2024-09-04  8:43       ` Daniel Lezcano
2024-08-22 17:20     ` Daniel Lezcano
2024-08-22 20:09       ` Rafael J. Wysocki
2024-08-16  8:12 ` [PATCH v2 3/7] thermal/core: Connect the threshold with the core Daniel Lezcano
2024-08-16  8:12 ` [PATCH v2 4/7] thermal/netlink: Add the commands and the events for the thresholds Daniel Lezcano
2024-08-16  8:12 ` [PATCH v2 5/7] tools/lib/thermal: Make more generic the command encoding function Daniel Lezcano
2024-08-16  8:12 ` [PATCH v2 6/7] tools/lib/thermal: Add the threshold netlink ABI Daniel Lezcano
2024-08-16  8:12 ` [PATCH v2 7/7] tools/thermal/thermal-engine: Take into account the thresholds API Daniel Lezcano
2024-08-21 19:06 ` [PATCH v2 0/7] Add thermal thresholds support Rafael J. Wysocki
2024-08-21 20:04 ` Pandruvada, Srinivas
2024-08-21 20:20   ` Rafael J. Wysocki
2024-08-21 22:16     ` Pandruvada, Srinivas
2024-08-22  9:41       ` Rafael J. Wysocki
2024-08-22 12:11         ` Pandruvada, Srinivas
2024-08-22 12:52           ` Pandruvada, Srinivas
2024-08-22 13:01             ` Rafael J. Wysocki
2024-08-22 17:08           ` Daniel Lezcano
2024-08-22 18:12             ` Pandruvada, Srinivas [this message]
2024-08-22 16:51   ` Daniel Lezcano

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=babbb2d4e3d53e7cde77025507ecf9ca3256dc1a.camel@intel.com \
    --to=srinivas.pandruvada@intel.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lukasz.luba@arm.com \
    --cc=quic_manafm@quicinc.com \
    --cc=rafael@kernel.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