From: Avadhut Naik avadhut.naik@amd.com
[ Upstream commit f116af2eb51ed9df24911537fda32a033f1c58da ]
Add thermal info support for newer AMD Family 1Ah-based models.
Signed-off-by: Avadhut Naik avadhut.naik@amd.com Link: https://lore.kernel.org/r/20250729001644.257645-1-avadhut.naik@amd.com Signed-off-by: Guenter Roeck linux@roeck-us.net Signed-off-by: Sasha Levin sashal@kernel.org ---
LLM Generated explanations, may be completely bogus:
YES - Adds missing device IDs for AMD Family 1Ah model 50h/90h locally in `drivers/hwmon/k10temp.c:86` so the stable tree doesn’t need header updates, keeping the change self‑contained and under the “just add a device ID” rule. - Extends `k10temp_id_table` to match those IDs (`drivers/hwmon/k10temp.c:563` and `drivers/hwmon/k10temp.c:565`), letting the existing probe path bind on the new desktop parts; without it, users on those CPUs lose all `k10temp` temperature readouts. - The runtime logic for Family 1Ah CPUs was already upstreamed earlier (see the 2023 support commit still present in this tree at `drivers/hwmon/k10temp.c:482`), so the new entries simply reuse a proven Zen5/1Ah code path with no behavioral changes for older systems. - No collateral effects: no register programming changes, no new flows, and the driver keeps using the same SMN readouts, so regression risk is negligible while hardware coverage noticeably improves.
drivers/hwmon/k10temp.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index babf2413d666f..2f90a2e9ad496 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -84,6 +84,13 @@ static DEFINE_MUTEX(nb_smu_ind_mutex); */ #define AMD_I3255_STR "3255"
+/* + * PCI Device IDs for AMD's Family 1Ah-based SOCs. + * Defining locally as IDs are not shared. + */ +#define PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3 0x12cb +#define PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3 0x127b + struct k10temp_data { struct pci_dev *pdev; void (*read_htcreg)(struct pci_dev *pdev, u32 *regval); @@ -556,7 +563,9 @@ static const struct pci_device_id k10temp_id_table[] = { { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_M78H_DF_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3) }, + { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3) }, + { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3) }, { PCI_VDEVICE(HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) }, {} };