diff mbox series

[v2] hwmon: (k10temp) Add support for AMD Family 19h Model 8h

Message ID 20231211210206.11060-1-W_Armin@gmx.de (mailing list archive)
State Accepted
Headers show
Series [v2] hwmon: (k10temp) Add support for AMD Family 19h Model 8h | expand

Commit Message

Armin Wolf Dec. 11, 2023, 9:02 p.m. UTC
From: Jami Kurki <bindkeys@gmail.com>

From: Jami Kurki <bindkeys@gmail.com>

Add support for AMD Family 19h Model 8h CPUs, which appear to
be the Zen 3 based AMD Threadripper 5000WX series (Chagall).

The patch was tested with an AMD Threadripper 5955WX.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218244
Tested-by: Jami Kurki <bindkeys@gmail.com>
Signed-off-by: Jami Kurki <bindkeys@gmail.com>
Co-developed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
Changes since v1:
- reword patch description
- reduce changes to existing code
---
 drivers/hwmon/k10temp.c | 1 +
 1 file changed, 1 insertion(+)

--
2.39.2

Comments

Guenter Roeck Dec. 12, 2023, 5:09 a.m. UTC | #1
On Mon, Dec 11, 2023 at 10:02:06PM +0100, Armin Wolf wrote:
> From: Jami Kurki <bindkeys@gmail.com>
> 
> Add support for AMD Family 19h Model 8h CPUs, which appear to
> be the Zen 3 based AMD Threadripper 5000WX series (Chagall).
> 
> The patch was tested with an AMD Threadripper 5955WX.
> 
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218244
> Tested-by: Jami Kurki <bindkeys@gmail.com>
> Signed-off-by: Jami Kurki <bindkeys@gmail.com>
> Co-developed-by: Armin Wolf <W_Armin@gmx.de>
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>

Applied.

Thanks,
Guenter

> ---
> Changes since v1:
> - reword patch description
> - reduce changes to existing code
> ---
>  drivers/hwmon/k10temp.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> --
> 2.39.2
> 
> diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
> index bae0becfa24b..8092312c0a87 100644
> --- a/drivers/hwmon/k10temp.c
> +++ b/drivers/hwmon/k10temp.c
> @@ -455,6 +455,7 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
> 
>  		switch (boot_cpu_data.x86_model) {
>  		case 0x0 ... 0x1:	/* Zen3 SP3/TR */
> +		case 0x8:		/* Zen3 TR Chagall */
>  		case 0x21:		/* Zen3 Ryzen Desktop */
>  		case 0x50 ... 0x5f:	/* Green Sardine */
>  			data->ccd_offset = 0x154;
diff mbox series

Patch

diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index bae0becfa24b..8092312c0a87 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -455,6 +455,7 @@  static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)

 		switch (boot_cpu_data.x86_model) {
 		case 0x0 ... 0x1:	/* Zen3 SP3/TR */
+		case 0x8:		/* Zen3 TR Chagall */
 		case 0x21:		/* Zen3 Ryzen Desktop */
 		case 0x50 ... 0x5f:	/* Green Sardine */
 			data->ccd_offset = 0x154;