]> www.infradead.org Git - users/dwmw2/linux.git/commit
thermal: intel: int340x: Support MSI interrupt for Lunar Lake
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 19 Jun 2024 17:21:08 +0000 (10:21 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Jun 2024 13:20:32 +0000 (15:20 +0200)
commit7a9a8c5faf418538b53cd63e8fcb1a34b1e3b680
tree34a729c9c173c9fc85e1afee81498bf7b7a0f58e
parenta264cee31f13ae3b8d32b3e53774759afa55361e
thermal: intel: int340x: Support MSI interrupt for Lunar Lake

The legacy PCI interrupt is no longer supported for processor thermal
device on Lunar Lake. The support is via MSI.

Add feature PROC_THERMAL_FEATURE_MSI_SUPPORT to support MSI feature per
generation. Define this feature for Lunar Lake processors.

There are 4 MSI sources:
 0 - Package thermal
 1 - DDR Thermal
 2 - Power floor interrupt
 3 - Workload type hint

On interrupt, check the source and call the corresponding handler.

Here don't need to call proc_thermal_check_wt_intr() and
proc_thermal_check_power_floor_intr() to check if the interrupt is for
those sources as there is a dedicated MSI interrupt.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://patch.msgid.link/20240619172109.497639-3-srinivas.pandruvada@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/processor_thermal_device.h
drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c