* [PATCH v2] hwmon: (k10temp) Add per-CCD temperature monitoring for Zen5 Turin
@ 2026-08-13 17:02 Gabriel Ford
2026-08-13 17:15 ` sashiko-bot
2026-08-14 3:37 ` Guenter Roeck
0 siblings, 2 replies; 3+ messages in thread
From: Gabriel Ford @ 2026-08-13 17:02 UTC (permalink / raw)
To: Clemens Ladisch, Guenter Roeck,
open list:K10TEMP HARDWARE MONITORING DRIVER, open list
Cc: Gabriel Ford
Add support for per-CCD temperature monitoring on Zen 5 Turin (EPYC 9005)
CPUs, as they fall into a separate model range with a different offset
and a higher maximum CCD count than their desktop counterparts. As such,
this patch also updates the driver to support CPUs with up to 16 CCDs.
Tested and working on an EPYC 9555P.
Signed-off-by: Gabriel Ford <gabriel@gford.dev>
---
drivers/hwmon/k10temp.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index de0760dc597d..43cade8c3631 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -207,6 +207,10 @@ static const char *k10temp_temp_label[] = {
"Tccd10",
"Tccd11",
"Tccd12",
+ "Tccd13",
+ "Tccd14",
+ "Tccd15",
+ "Tccd16",
};
static int k10temp_read_labels(struct device *dev,
@@ -243,7 +247,7 @@ static int k10temp_read_temp(struct device *dev, u32 attr, int channel,
if (*val < 0 && !data->disp_negative)
*val = 0;
break;
- case 2 ... 13: /* Tccd{1-12} */
+ case 2 ... 17: /* Tccd{1-16} */
ret = read_ccd_temp_reg(data, channel - 2, ®val);
if (ret)
@@ -384,7 +388,11 @@ static const struct hwmon_channel_info * const k10temp_info[] = {
HWMON_T_INPUT | HWMON_T_LABEL,
HWMON_T_INPUT | HWMON_T_LABEL,
HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_INPUT | HWMON_T_LABEL),
+ HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_INPUT | HWMON_T_LABEL),
NULL
};
@@ -515,6 +523,10 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
}
} else if (boot_cpu_data.x86 == 0x1a) {
switch (boot_cpu_data.x86_model) {
+ case 0x00 ... 0x2f: /* Zen5 Turin */
+ data->ccd_offset = 0x1F0;
+ k10temp_get_ccd_support(data, 16);
+ break;
case 0x40 ... 0x4f: /* Zen5 Ryzen Desktop */
data->ccd_offset = 0x308;
k10temp_get_ccd_support(data, 8);
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] hwmon: (k10temp) Add per-CCD temperature monitoring for Zen5 Turin
2026-08-13 17:02 [PATCH v2] hwmon: (k10temp) Add per-CCD temperature monitoring for Zen5 Turin Gabriel Ford
@ 2026-08-13 17:15 ` sashiko-bot
2026-08-14 3:37 ` Guenter Roeck
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-08-13 17:15 UTC (permalink / raw)
To: Gabriel Ford; +Cc: linux-hwmon
> Add support for per-CCD temperature monitoring on Zen 5 Turin (EPYC 9005)
> CPUs, as they fall into a separate model range with a different offset
> and a higher maximum CCD count than their desktop counterparts. As such,
> this patch also updates the driver to support CPUs with up to 16 CCDs.
> Tested and working on an EPYC 9555P.
>
> Signed-off-by: Gabriel Ford <gabriel@gford.dev>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260813170232.3841-1-gabriel@gford.dev?part=1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] hwmon: (k10temp) Add per-CCD temperature monitoring for Zen5 Turin
2026-08-13 17:02 [PATCH v2] hwmon: (k10temp) Add per-CCD temperature monitoring for Zen5 Turin Gabriel Ford
2026-08-13 17:15 ` sashiko-bot
@ 2026-08-14 3:37 ` Guenter Roeck
1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2026-08-14 3:37 UTC (permalink / raw)
To: Gabriel Ford
Cc: Clemens Ladisch, open list:K10TEMP HARDWARE MONITORING DRIVER,
open list
On Thu, Aug 13, 2026 at 05:02:08PM +0000, Gabriel Ford wrote:
> Add support for per-CCD temperature monitoring on Zen 5 Turin (EPYC 9005)
> CPUs, as they fall into a separate model range with a different offset
> and a higher maximum CCD count than their desktop counterparts. As such,
> this patch also updates the driver to support CPUs with up to 16 CCDs.
> Tested and working on an EPYC 9555P.
>
> Signed-off-by: Gabriel Ford <gabriel@gford.dev>
Seems safe enough. Applied.
> ---
For next time: change log goes here.
Thanks,
Guenter
> drivers/hwmon/k10temp.c | 16 ++++++++++++++--
> 1 file changed, 14 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
> index de0760dc597d..43cade8c3631 100644
> --- a/drivers/hwmon/k10temp.c
> +++ b/drivers/hwmon/k10temp.c
> @@ -207,6 +207,10 @@ static const char *k10temp_temp_label[] = {
> "Tccd10",
> "Tccd11",
> "Tccd12",
> + "Tccd13",
> + "Tccd14",
> + "Tccd15",
> + "Tccd16",
> };
>
> static int k10temp_read_labels(struct device *dev,
> @@ -243,7 +247,7 @@ static int k10temp_read_temp(struct device *dev, u32 attr, int channel,
> if (*val < 0 && !data->disp_negative)
> *val = 0;
> break;
> - case 2 ... 13: /* Tccd{1-12} */
> + case 2 ... 17: /* Tccd{1-16} */
> ret = read_ccd_temp_reg(data, channel - 2, ®val);
>
> if (ret)
> @@ -384,7 +388,11 @@ static const struct hwmon_channel_info * const k10temp_info[] = {
> HWMON_T_INPUT | HWMON_T_LABEL,
> HWMON_T_INPUT | HWMON_T_LABEL,
> HWMON_T_INPUT | HWMON_T_LABEL,
> - HWMON_T_INPUT | HWMON_T_LABEL),
> + HWMON_T_INPUT | HWMON_T_LABEL,
> + HWMON_T_INPUT | HWMON_T_LABEL,
> + HWMON_T_INPUT | HWMON_T_LABEL,
> + HWMON_T_INPUT | HWMON_T_LABEL,
> + HWMON_T_INPUT | HWMON_T_LABEL),
> NULL
> };
>
> @@ -515,6 +523,10 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
> }
> } else if (boot_cpu_data.x86 == 0x1a) {
> switch (boot_cpu_data.x86_model) {
> + case 0x00 ... 0x2f: /* Zen5 Turin */
> + data->ccd_offset = 0x1F0;
> + k10temp_get_ccd_support(data, 16);
> + break;
> case 0x40 ... 0x4f: /* Zen5 Ryzen Desktop */
> data->ccd_offset = 0x308;
> k10temp_get_ccd_support(data, 8);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-14 3:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 17:02 [PATCH v2] hwmon: (k10temp) Add per-CCD temperature monitoring for Zen5 Turin Gabriel Ford
2026-08-13 17:15 ` sashiko-bot
2026-08-14 3:37 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.