thermal: intel: intel_pch_thermal: Add 200 series PCH-H device ID
PATCH 1/1 thermal: intel: intel_pch_thermal: Add 200 series PCH-H device ID
The PCH thermal sensor on 200 series boards (Z270, Z370, X299, ...) is 8086:a2b1 and it's not in the ID table, so these boards, including mine, get no PCH temperature at all. The 100 series (Skylake) and 300 series (Cannon Lake) are there, Kaby belongs perfectly in between, I see no reason to not have it there.
It's the same sensor. Intel's own datasheet (335193, chapter 21.2) has the register layout the driver already uses, so just add the ID and point it at PCH_BOARD_SKL like a131.
Tested on an ASRock X299 Taichi, Kernel @ 7.4-rc3 with this patch. The driver loads by itself and the BIOS already turns the sensor on, so it just reads it. The zone shows 66°C / 115°C Crit, the readings look correct.
Adding the ID has one more effect. I am not going to call it a side effect but more, an intended effect? AFAICS these boards were just missing the s2idle cooling delay that the 100 and 300 series already have, and now they get it. X299 usually runs above the 50 C threshold, it would wait the full 60s. Meaning that the wait *WILL* be present.
The reason I am saying it *WILL* be present, is that I could not put this specific box to suspend, due to the GPU not allowing it under Linux and X299 not having onboard GPU on the CPU. But I manually followed the path (intel_pch_thermal_suspend_noirq()) and it seems to be precisely what will happen.
I am not the first to notice this. Henry Bent put a patch in bugzilla back in 2024, and Jean Delvare asked about it on linux-pm last year.
---
Thanks,
Magnus
drivers/thermal/intel/intel_pch_thermal.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/thermal/intel/intel_pch_thermal.c +3 -0
@@ -24,6 +24,7 @@#define PCH_THERMAL_DID_WPT 0x9CA4/* Wildcat Point */ #define PCH_THERMAL_DID_SKL 0x9D31/* Skylake PCH */ #define PCH_THERMAL_DID_SKL_H 0xA131/* Skylake PCH 100 series */ +#define PCH_THERMAL_DID_KBL_H 0xA2B1/* Kaby Lake PCH 200 series */ #define PCH_THERMAL_DID_CNL 0x9Df9/* CNL PCH */ #define PCH_THERMAL_DID_CNL_H 0xA379/* CNL-H PCH */ #define PCH_THERMAL_DID_CNL_LP 0x02F9/* CNL-LP PCH */
@@ -372,6 +373,8 @@ static const struct pci_device_id intel_pch_thermal_id[] = { .driver_data = PCH_BOARD_SKL, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_SKL_H), .driver_data = PCH_BOARD_SKL, }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_KBL_H), + .driver_data = PCH_BOARD_SKL, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CNL), .driver_data = PCH_BOARD_CNL, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CNL_H),
base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
Signature · 1 line
2.56.1
Quoted 57 lines · Magnus Leatti
The PCH thermal sensor on 200 series boards (Z270, Z370, X299, ...) is 8086:a2b1 and it's not in the ID table, so these boards, including mine, get no PCH temperature at all. The 100 series (Skylake) and 300 series (Cannon Lake) are there, Kaby belongs perfectly in between, I see no reason to not have it there.
It's the same sensor. Intel's own datasheet (335193, chapter 21.2) has the register layout the driver already uses, so just add the ID and point it at
PCH_BOARD_SKLlike a131.Tested on an ASRock X299 Taichi, Kernel @ 7.4-rc3 with this patch. The driver loads by itself and the BIOS already turns the sensor on, so it just reads it. The zone shows 66°C / 115°C Crit, the readings look correct.
Adding the ID has one more effect. I am not going to call it a side effect but more, an intended effect? AFAICS these boards were just missing the s2idle cooling delay that the 100 and 300 series already have, and now they get it. X299 usually runs above the 50 C threshold, it would wait the full 60s. Meaning that the wait *WILL* be present.
The reason I am saying it *WILL* be present, is that I could not put this specific box to suspend, due to the GPU not allowing it under Linux and X299 not having onboard GPU on the CPU. But I manually followed the path (
intel_pch_thermal_suspend_noirq()) and it seems to be precisely what will happen.I am not the first to notice this. Henry Bent put a patch in bugzilla back in 2024, and Jean Delvare asked about it on linux-pm last year.
Signed-off-by Magnus Leatti <[email protected]>---
Thanks,
Magnusdrivers/thermal/intel/intel_pch_thermal.c | 3 +++ 1 file changed, 3 insertions(+)drivers/thermal/intel/intel_pch_thermal.c +1
-0@@ -24,6 +24,7 @@#define PCH_THERMAL_DID_WPT 0x9CA4/* Wildcat Point */ #define PCH_THERMAL_DID_SKL 0x9D31/* Skylake PCH */ #define PCH_THERMAL_DID_SKL_H 0xA131/* Skylake PCH 100 series */ +#define PCH_THERMAL_DID_KBL_H 0xA2B1/* Kaby Lake PCH 200 series */ #define PCH_THERMAL_DID_CNL 0x9Df9/* CNL PCH */ #define PCH_THERMAL_DID_CNL_H 0xA379/* CNL-H PCH */ #define PCH_THERMAL_DID_CNL_LP 0x02F9/* CNL-LP PCH */
drivers/thermal/intel/intel_pch_thermal.c static const struct pci_device_id intel_pch_thermal_id[] = { · line 380
Quoted 8 lines
drivers/thermal/intel/intel_pch_thermal.c +2
-0@@ -372,6 +373,8 @@ static const struct pci_device_id intel_pch_thermal_id[] = { .driver_data = PCH_BOARD_SKL, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_SKL_H), .driver_data = PCH_BOARD_SKL, }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_KBL_H), + .driver_data = PCH_BOARD_SKL, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CNL), .driver_data = PCH_BOARD_CNL, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CNL_H),
Applied as 7.5 material, thanks!