diff mbox series

Added support for Zen 3 based AMD Threadrippers (5000WX series). They were previously under Zen3 SP models, but this was incorrect.

Message ID 20231209231545.1272806-1-bindkeys@gmail.com (mailing list archive)
State Changes Requested
Headers show
Series Added support for Zen 3 based AMD Threadrippers (5000WX series). They were previously under Zen3 SP models, but this was incorrect. | expand

Commit Message

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

Signed-off-by: Jami Kurki <bindkeys@gmail.com>
---
 drivers/hwmon/k10temp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Guenter Roeck Dec. 9, 2023, 11:25 p.m. UTC | #1
On 12/9/23 15:15, bindkeys@gmail.com wrote:
> From: Jami Kurki <bindkeys@gmail.com>
> 
> Signed-off-by: Jami Kurki <bindkeys@gmail.com>

This is not an appropriate patch subject and description.

Please follow Documentation/process/submitting-patches.rst,
"The canonical patch format".

Thanks,
Guenter

> ---
>   drivers/hwmon/k10temp.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
> index bae0becfa24b..b5738dd8d442 100644
> --- a/drivers/hwmon/k10temp.c
> +++ b/drivers/hwmon/k10temp.c
> @@ -454,7 +454,8 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>   		data->is_zen = true;
>   
>   		switch (boot_cpu_data.x86_model) {
> -		case 0x0 ... 0x1:	/* Zen3 SP3/TR */
> +		case 0x0 ... 0x1:	/* Zen3 SP3 */
> +		case 0x8:		/* Zen3 TR */
>   		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..b5738dd8d442 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -454,7 +454,8 @@  static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 		data->is_zen = true;
 
 		switch (boot_cpu_data.x86_model) {
-		case 0x0 ... 0x1:	/* Zen3 SP3/TR */
+		case 0x0 ... 0x1:	/* Zen3 SP3 */
+		case 0x8:		/* Zen3 TR */
 		case 0x21:		/* Zen3 Ryzen Desktop */
 		case 0x50 ... 0x5f:	/* Green Sardine */
 			data->ccd_offset = 0x154;