linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hwmon: k10temp: Zen3 Ryzen Desktop CPUs support
@ 2020-12-23  0:53 Gabriel Craciunescu
  2020-12-23 15:36 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Craciunescu @ 2020-12-23  0:53 UTC (permalink / raw)
  To: linux-hwmon; +Cc: linux-kernel, Guenter Roeck, Gabriel Craciunescu

The module has only support for Zen3 server CPUs right now.
Add support for Family 0x19, model 0x21 which are Zen3 Ryzen Desktop CPUs.
Tested on 5800x, 5900x and 5950x CPUs.

Signed-off-by: Gabriel Craciunescu <nix.or.die@gmail.com>
---
 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 3bc2551577a3..5b1677d85b3f 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -448,7 +448,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 */
+		case 0x0 ... 0x1:	/* Zen3 SP3/TR */
+		case 0x21:		/* ZEN3 Ryzen Desktop */
 			k10temp_get_ccd_support(pdev, data, 8);
 			break;
 		}
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwmon: k10temp: Zen3 Ryzen Desktop CPUs support
  2020-12-23  0:53 [PATCH] hwmon: k10temp: Zen3 Ryzen Desktop CPUs support Gabriel Craciunescu
@ 2020-12-23 15:36 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2020-12-23 15:36 UTC (permalink / raw)
  To: Gabriel Craciunescu, linux-hwmon; +Cc: linux-kernel, Gabriel Craciunescu

On 12/22/20 4:53 PM, Gabriel Craciunescu wrote:
> The module has only support for Zen3 server CPUs right now.
> Add support for Family 0x19, model 0x21 which are Zen3 Ryzen Desktop CPUs.
> Tested on 5800x, 5900x and 5950x CPUs.
> 
> Signed-off-by: Gabriel Craciunescu <nix.or.die@gmail.com>

Applied.

Thanks,
Guenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-23 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23  0:53 [PATCH] hwmon: k10temp: Zen3 Ryzen Desktop CPUs support Gabriel Craciunescu
2020-12-23 15:36 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).