public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH ath-next 0/5] wifi: ath12k: thermal throttling and cooling device support
@ 2026-03-31 14:24 Maharaja Kennadyrajan
  2026-03-31 14:24 ` [PATCH ath-next 1/5] wifi: ath12k: handle thermal throttle stats WMI event Maharaja Kennadyrajan
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Maharaja Kennadyrajan @ 2026-03-31 14:24 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

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     | 107 +++++++++
 drivers/net/wireless/ath/ath12k/wmi.h     |  50 +++++
 6 files changed, 446 insertions(+), 57 deletions(-)


base-commit: dbd94b9831bc52a1efb7ff3de841ffc3457428ce
-- 
2.34.1


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

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

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

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