summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHuang Wei <huangwei@kylinos.cn>2026-09-19 00:15:39 +0800
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-09-18 19:44:17 +0300
commitbb0f3a5d6b9844b70ad696b9470762028f6d86ec (patch)
tree35295399a391b5bd44ced9f895854ad8fb9e63f8 /tools/perf/scripts/python/stackcollapse.py
parent2782e0c22e155cc0852114dcf9bb98c209b06853 (diff)
downloadlinux-next-bb0f3a5d6b9844b70ad696b9470762028f6d86ec.tar.gz
linux-next-bb0f3a5d6b9844b70ad696b9470762028f6d86ec.zip
platform/x86: thinkpad_acpi: Add X9-14 Gen 1 to non-standard thermal/fan quirk tables
The Lenovo ThinkPad X9-14 Gen 1 uses a non-standard Embedded Controller firmware (ECFW) whose thermal and fan registers are not located at the classic addresses. On this model the thermal registers sit at 0xA8-0xAF / 0xB8-0xBF and the fan registers use the non-standard offsets, instead of the legacy 0x78-0x7F / 0xC0-0xC7 (thermal) and 0x2f / 0x84 (fan). Because the model is not covered by the existing quirk tables, the driver probes the legacy thermal addresses during init, reads back 0x00 from every register, concludes the EC is "misbehaving" and disables all thermal sensor access: thinkpad_acpi: ThinkPad ACPI EC access misbehaving, disabling thermal sensors access Fan access is affected the same way, leaving fan1/fan2 reporting 0 RPM. The infrastructure for these non-standard ECFW models is already in place (commit 301c1904d638 ("platform/x86: thinkpad_acpi: Fix to correct wrong temp reporting on some ThinkPads")); the X9-14 Gen 1 simply was not added to the model lists yet. Add its BIOS model code N4D to both the thermal and fan quirk tables so that: - thermal_read_mode_check() selects TPACPI_THERMAL_TPEC_12 and reads the 0xA8/0xB8 registers, and - fan_init() selects the non-standard fan register addresses. Reported-by: thisisamirv <thisisamirv@gmail.com> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221228 Signed-off-by: Huang Wei <huangwei@kylinos.cn> Link: https://patch.msgid.link/20260918161539.2676619-1-huangwei@kylinos.cn Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions