]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
docs: driver-api/thermal/intel_dptf: Add new workload type hint
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 18 Nov 2025 22:36:19 +0000 (14:36 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 20 Nov 2025 20:32:52 +0000 (21:32 +0100)
Add documentation for longer term classification of workload type for
power or performance.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://patch.msgid.link/20251118223620.554798-1-srinivas.pandruvada@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/driver-api/thermal/intel_dptf.rst

index c51ac793dc06e27cba566d08f025251265f80bdc..916bf0f36a03668d92c39ae470f6a7efd41f5a39 100644 (file)
@@ -409,3 +409,26 @@ based on the processor generation.
                Limit 1 from being exhausted.
 
        4 – Unknown: Can't classify.
+
+       On processors starting from Panther Lake additional hints are provided.
+       The hardware analyzes workload residencies over an extended period to
+       determine whether the workload classification tends toward idle/battery
+       life states or sustained/performance states. Based on this long-term
+       analysis, it classifies:
+
+       Power Classification: If the workload exhibits more idle or battery life
+       residencies, it is classified as "power".
+
+       Performance Classification: If the workload exhibits more sustained or
+       performance residencies, it is classified as "performance".
+
+       This approach enables applications to ignore short-term workload
+       fluctuations and instead respond to longer-term power vs. performance
+       trends.
+
+       Residency thresholds for this classification are CPU generation-specific.
+       Classification is reported via bit 4 of the workload_type_index:
+
+       Bit 4 = 1: Power classification
+
+       Bit 4 = 0: Performance classification