public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH ath-next v2 0/5] wifi: ath12k: thermal throttling and cooling device support
@ 2026-04-13 15:38 Maharaja Kennadyrajan
  2026-04-13 15:38 ` [PATCH ath-next v2 1/5] wifi: ath12k: handle thermal throttle stats WMI event Maharaja Kennadyrajan
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Maharaja Kennadyrajan @ 2026-04-13 15:38 UTC (permalink / raw)
  To: ath12k; +Cc: linux-wireless, Maharaja Kennadyrajan

Patch 1 handles the firmware stats event so we can track the current
temperature and throttle level per pdev without spamming logs.

Patch 2 enables thermal throttling at bring-up and programs default level
tables to firmware via WMI_THERM_THROT_SET_CONF_CMDID; the driver picks
IPA/XFEM defaults based on the firmware WMI service bitmap, supports 4 or 5
levels as advertised, and only fills optional fields (pout reduction,
tx chain mask) when the corresponding WMI service bits are present.

Patch 3 refactors per-radio thermal hwmon cleanup to reduce code duplication and
ensure consistent cleanup across thermal register and unregister paths.

Patch 4 reorders the group teardown logic symmetric for safe thermal sysfs cleanup.

Patch 5 exposes a thermal cooling device per radio so the kernel thermal
framework or userspace can set the TX duty-cycle off percentage; writes
are validated against the throttling state range and host state is kept in
sync with successful firmware updates.

Examples:
echo 40 > /sys/devices/pci0000:00/0000:00:1d.1/0000:58:00.0/ieee80211/phyX/cooling_device/cur_stat
cat /sys/devices/pci0000:00/0000:00:1d.1/0000:58:00.0/ieee80211/phyX/cooling_device/cur_state
cat /sys/devices/pci0000:00/0000:00:1d.1/0000:58:00.0/ieee80211/phyX/cooling_device/max_state

v2: Addressed Jeff's comment by rebased on latest TOT with wmi tb - alloc and free
    interface change.

Maharaja Kennadyrajan (5):
  wifi: ath12k: handle thermal throttle stats WMI event
  wifi: ath12k: configure firmware thermal throttling via WMI
  wifi: ath12k: refactor per-radio thermal hwmon setup and cleanup
  wifi: ath12k: reorder group start/stop for safe thermal sysfs cleanup
  wifi: ath12k: add thermal cooling device support

 drivers/net/wireless/ath/ath12k/core.c    |  50 +++--
 drivers/net/wireless/ath/ath12k/mac.c     |   9 +
 drivers/net/wireless/ath/ath12k/thermal.c | 252 ++++++++++++++++++----
 drivers/net/wireless/ath/ath12k/thermal.h |  35 +++
 drivers/net/wireless/ath/ath12k/wmi.c     | 108 ++++++++++
 drivers/net/wireless/ath/ath12k/wmi.h     |  50 +++++
 6 files changed, 447 insertions(+), 57 deletions(-)


base-commit: 9a4f673eb08d2a7713b258d671b4a45f2a6e68b7
-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-30 21:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-13 15:38 [PATCH ath-next v2 0/5] wifi: ath12k: thermal throttling and cooling device support Maharaja Kennadyrajan
2026-04-13 15:38 ` [PATCH ath-next v2 1/5] wifi: ath12k: handle thermal throttle stats WMI event Maharaja Kennadyrajan
2026-04-13 15:38 ` [PATCH ath-next v2 2/5] wifi: ath12k: configure firmware thermal throttling via WMI Maharaja Kennadyrajan
2026-04-13 15:38 ` [PATCH ath-next v2 3/5] wifi: ath12k: refactor per-radio thermal hwmon setup and cleanup Maharaja Kennadyrajan
2026-04-13 15:38 ` [PATCH ath-next v2 4/5] wifi: ath12k: reorder group start/stop for safe thermal sysfs cleanup Maharaja Kennadyrajan
2026-04-13 15:38 ` [PATCH ath-next v2 5/5] wifi: ath12k: add thermal cooling device support Maharaja Kennadyrajan
2026-04-22  2:02 ` [PATCH ath-next v2 0/5] wifi: ath12k: thermal throttling and " Baochen Qiang
2026-04-22 13:06 ` Rameshkumar Sundaram
2026-04-30 21:30 ` Jeff Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox