diff mbox series

k10temp: 27C Offset needed for Threadripper2

Message ID 1533658648-29154-1-git-send-email-linux@roeck-us.net (mailing list archive)
State Accepted
Headers show
Series k10temp: 27C Offset needed for Threadripper2 | expand

Commit Message

Guenter Roeck Aug. 7, 2018, 4:17 p.m. UTC
From: Michael Larabel <michael@phoronix.com>

For at least the Threadripper 2950X and Threadripper 2990WX, it's confirmed a 27 degree offset is needed.
---
 drivers/hwmon/k10temp.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Guenter Roeck Aug. 7, 2018, 4:20 p.m. UTC | #1
On Tue, Aug 07, 2018 at 09:17:28AM -0700, Guenter Roeck wrote:
> From: Michael Larabel <michael@phoronix.com>
> 
> For at least the Threadripper 2950X and Threadripper 2990WX, it's confirmed a 27 degree offset is needed.

Applied to hwmon-next, and added stable tag. Michael, I took the
freedom to add your Signed-off-by:. Please let me know if that is
not ok.

Thanks,
Guenter

> ---
>  drivers/hwmon/k10temp.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
> index 17c6460ae351..577e2ede5a1a 100644
> --- a/drivers/hwmon/k10temp.c
> +++ b/drivers/hwmon/k10temp.c
> @@ -105,6 +105,8 @@ static const struct tctl_offset tctl_offset_table[] = {
>  	{ 0x17, "AMD Ryzen Threadripper 1950", 10000 },
>  	{ 0x17, "AMD Ryzen Threadripper 1920", 10000 },
>  	{ 0x17, "AMD Ryzen Threadripper 1910", 10000 },
> +	{ 0x17, "AMD Ryzen Threadripper 2950X", 27000 },
> +	{ 0x17, "AMD Ryzen Threadripper 2990WX", 27000 },
>  };
>  
>  static void read_htcreg_pci(struct pci_dev *pdev, u32 *regval)
> -- 
> 2.17.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index 17c6460ae351..577e2ede5a1a 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -105,6 +105,8 @@  static const struct tctl_offset tctl_offset_table[] = {
 	{ 0x17, "AMD Ryzen Threadripper 1950", 10000 },
 	{ 0x17, "AMD Ryzen Threadripper 1920", 10000 },
 	{ 0x17, "AMD Ryzen Threadripper 1910", 10000 },
+	{ 0x17, "AMD Ryzen Threadripper 2950X", 27000 },
+	{ 0x17, "AMD Ryzen Threadripper 2990WX", 27000 },
 };
 
 static void read_htcreg_pci(struct pci_dev *pdev, u32 *regval)