Messages in this thread | | | From | Ricardo Neri <> | Subject | [PATCH 0/4] intel: thermal: hfi: Add debugfs files for tuning | Date | Mon, 29 Apr 2024 16:41:48 -0700 |
| |
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
| |