[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240429234152.16230-1-ricardo.neri-calderon@linux.intel.com>
Date: Mon, 29 Apr 2024 16:41:48 -0700
From: Ricardo Neri <ricardo.neri-calderon@...ux.intel.com>
To: "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>
Cc: Zhang Rui <rui.zhang@...el.com>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Len Brown <len.brown@...el.com>,
Stanislaw Gruszka <stanislaw.gruszka@...ux.intel.com>,
linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org,
Ricardo Neri <ricardo.neri@...el.com>
Subject: [PATCH 0/4] intel: thermal: hfi: Add debugfs files for tuning
Hi,
HFI uses thermal netlink to relay updated CPU capabilities to user space.
The delay between an HFI interrupt and its corresponding thermal netlink
event as well as the number of capabilities updated per event (its payload)
have been so far hard-coded in intel_hfi.c.
These hard-coded values may not suit all hardware configurations or
listeners. If the delay is too long, much of the information from
consecutive hardware updates will be lost. If the delay is too short,
listeners may be overwhelmed with notifications.
The payload size may cause unnecessary overhead if it is too small, as
single HFI update is broken up into several thermal netlink events.
Listeners are better placed to decide the value of these parameters. They
know how quickly they can act on notifications and know better how to
handle them.
Add a debugfs interface to let listeners experiment with and tune these
parameters.
These patches apply cleanly on top of the testing branch of Rafael's
linux-pm.
Thanks and BR,
Ricardo
Ricardo Neri (4):
thermal: intel: hfi: Rename HFI_UPDATE_INTERVAL
thermal: intel: hfi: Tune the HFI thermal netlink event delay via
debugfs
thermal: intel: hfi: Rename HFI_MAX_THERM_NOTIFY_COUNT
thermal: intel: hfi: Tune the number of CPU capabilities per netlink
event
drivers/thermal/intel/intel_hfi.c | 117 +++++++++++++++++++++++++++---
1 file changed, 108 insertions(+), 9 deletions(-)
--
2.34.1
Powered by blists - more mailing lists