[PATCH v5 5/8] hwmon: (k10temp) Stop matching Hygon devices

From: Lin Wang

Date: Thu Sep 10 2026 - 04:35:45 EST


k10temp matches the Hygon F3 device and uses the AMD SMN accessors.
These accessors derive an SMN node number by subtracting PCI slot 0x18
from the F3 slot, then pass the result to amd_smn_read(). Hygon PCI
slots do not encode DF node identity, and their SMN roots are grouped
by socket.

The derived node number therefore has no defined relationship to the
Hygon DF node or its SMN root.

Remove the Hygon PCI match and Family 0x18 branch. Hygon temperature
monitoring requires the Hygon node and SMN interfaces and will be added
separately.

Signed-off-by: Lin Wang <wanglin@xxxxxxxxxxxxxx>
---
drivers/hwmon/k10temp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index 75a45010d687..20a5470e6593 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -475,7 +475,7 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
data->read_tempreg = read_tempreg_pci;
}

- if (boot_cpu_data.x86 == 0x17 || boot_cpu_data.x86 == 0x18) {
+ if (boot_cpu_data.x86 == 0x17) {
switch (boot_cpu_data.x86_model) {
case 0x1: /* Zen */
case 0x8: /* Zen+ */
@@ -583,7 +583,6 @@ static const struct pci_device_id k10temp_id_table[] = {
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3) },
- { PCI_VDEVICE(HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
{}
};
MODULE_DEVICE_TABLE(pci, k10temp_id_table);
--
2.43.0