FAILED: patch "[PATCH] hwmon: (k10temp) Stop matching Hygon devices" failed to apply to 6.6-stable tree
Sasha Levin
maintainerThe patch below does not apply to the 6.6-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
git checkout FETCH_HEAD
git cherry-pick -x 08e6615c909b2504a5862764f3a7fca00c7ab066
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '[email protected]' --subject-prefix 'PATCH 6.6.y' 'HEAD^..'
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 08e6615c909b2504a5862764f3a7fca00c7ab066 Mon Sep 17 00:00:00 2001
From: Lin Wang <[email protected]>
Date: Mon, 21 Sep 2026 13:56:00 +0800
Subject: [PATCH] hwmon: (k10temp) Stop matching Hygon devices
k10temp matches the Hygon F3 device, but derives the node passed to amd_smn_read() from the F3 PCI slot using the AMD fixed-slot mapping (slot - 0x18). Hygon PCI slots do not encode DF node identity, and their SMN roots are grouped by socket.
The derived node number therefore cannot identify a valid Hygon SMN target or provide usable temperature monitoring. Removing the match does not disable a working monitoring path.
Remove the Hygon PCI match and Family 0x18 branch. Hygon temperature monitoring will use the Hygon node and SMN interfaces in a separate series.
--- Documentation/hwmon/k10temp.rst | 8 +++----- drivers/hwmon/k10temp.c | 5 ++--- 2 files changed, 5 insertions(+), 8 deletions(-)
Documentation/hwmon/k10temp.rst +3 -5
@@ -28,8 +28,6 @@ Supported chips: * AMD Family 17h processors: "Zen", "Zen 2" -* AMD Family 18h processors: "Hygon Dhyana" - * AMD Family 19h processors: "Zen 3" Prefix: 'k10temp'
@@ -128,7 +126,7 @@ it. Models from 17h family report relative temperature, the driver aims to compensate and report the real temperature. -On Family 17h and Family 18h CPUs, additional temperature sensors may report -Core Complex Die (CCD) temperatures. Up to 8 such temperatures are reported -as temp{3..10}_input, labeled Tccd{1..8}. Actual support depends on the CPU +On Family 17h CPUs, additional temperature sensors may report Core Complex +Die (CCD) temperatures. Up to 8 such temperatures are reported as +temp{3..10}_input, labeled Tccd{1..8}. Actual support depends on the CPU variant.
drivers/hwmon/k10temp.c +2 -3
@@ -64,7 +64,7 @@ MODULE_PARM_DESC(force, "force loading on processors with erratum 319");#define F15H_M60H_HARDWARE_TEMP_CTRL_OFFSET 0xd8200c64#define F15H_M60H_REPORTED_TEMP_CTRL_OFFSET 0xd8200ca4 -/* Common for Zen CPU families (Family 17h and 18h and 19h and 1Ah) */ +/* Common for Zen CPU families (Family 17h, 19h and 1Ah) */ #define ZEN_REPORTED_TEMP_CTRL_BASE 0x00059800#define ZEN_CCD_TEMP (offset, x) (ZEN_REPORTED_TEMP_CTRL_BASE + \
@@ -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);
Signature · 1 line
2.53.0
Hi Sasha, Guenter,
Quoted 5 lines · Sasha Levin
The patch below does not apply to the 6.6-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to<[email protected]>.
Quoted 8 lines
To reproduce the conflict and resubmit, you may use the following commands:
git fetchhttps://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
git checkoutFETCH_HEAD
git cherry-pick -x08e6615c909b2504a5862764f3a7fca00c7ab066
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to'[email protected]' --subject-prefix 'PATCH 6.6.y' 'HEAD^..'
Please skip 08e6615c909b ("hwmon: (k10temp) Stop matching Hygon devices") for 5.10.y, 5.15.y, 6.1.y, 6.6.y, 6.12.y and 6.18.y.
k10temp works on early Hygon platforms, including with the reworked AMD node code. Backporting this commit would remove working temperature monitoring.
The removal is part of separating Hygon support from the AMD NB/SMN code in mainline. These stable trees do not include that separation and should retain the existing support.
Thanks,
Lin
Hi Sasha, Guenter,
Quoted 17 lines · Lin Wang
Quoted 5 lines
The patch below does not apply to the 6.6-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to<[email protected]>.Quoted 8 lines
To reproduce the conflict and resubmit, you may use the following commands:
git fetchhttps://git.kernel.org/pub/scm/linux/kernel/git/stable/ linux.git/ linux-6.6.y
git checkoutFETCH_HEAD
git cherry-pick -x08e6615c909b2504a5862764f3a7fca00c7ab066
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply- to'[email protected]' --subject-prefix 'PATCH 6.6.y' 'HEAD^..'Please skip
08e6615c909b("hwmon: (k10temp) Stop matching Hygon devices") for 5.10.y, 5.15.y, 6.1.y, 6.6.y, 6.12.y and 6.18.y.
Quoted 7 lines
k10temp works on early Hygon platforms, including with the reworked AMD node code. Backporting this commit would remove working temperature monitoring.
The removal is part of separating Hygon support from the AMD NB/SMN code in mainline. These stable trees do not include that separation and should retain the existing support.
I missed 7.3.y in the list below. The same concern applies there:
early Hygon platforms still need the existing k10temp support.
Please exclude this commit from 7.3.y as well, or revert it if it is already included.
Sorry for the omission.
Thanks,
Lin
Sasha Levin
maintainerQuoted 2 lines · Lin Wang
Please exclude this commit from 7.3.y as well, or revert it if it is already included.
Dropped 08e6615c909b from the 7.3, 6.18 and 6.12 queues, thanks.
Signature · 2 lines
Thanks, Sasha