Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [PATCH] hwmon: (k10temp): Add PCI IDs for 1ah/80h
@ 2026-09-11 13:43 Mario Limonciello
  2026-09-11 13:51 ` sashiko-bot
  2026-09-11 14:24 ` Guenter Roeck
  0 siblings, 2 replies; 4+ messages in thread
From: Mario Limonciello @ 2026-09-11 13:43 UTC (permalink / raw)
  To: clemens, linux, bhelgaas; +Cc: Mario Limonciello, linux-hwmon, linux-pci

1ah/80h uses same base as other programs.  It only supports Tctl.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
 drivers/hwmon/k10temp.c | 1 +
 include/linux/pci_ids.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index 3e7e63edc6a30..b00081deb2e86 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -582,6 +582,7 @@ static const struct pci_device_id k10temp_id_table[] = {
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3) },
+	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3) },
 	{ PCI_VDEVICE(HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
 	{}
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index 63774ae2bf71d..57a4ad9984798 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -585,6 +585,7 @@
 #define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
 #define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3 0x124b
 #define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3 0x12bb
+#define PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3 0x1243
 #define PCI_DEVICE_ID_AMD_MI200_DF_F3	0x14d3
 #define PCI_DEVICE_ID_AMD_MI300_DF_F3	0x152b
 #define PCI_DEVICE_ID_AMD_VANGOGH_USB	0x163a
-- 
2.43.0


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

* Re: [PATCH] hwmon: (k10temp): Add PCI IDs for 1ah/80h
  2026-09-11 13:43 [PATCH] hwmon: (k10temp): Add PCI IDs for 1ah/80h Mario Limonciello
@ 2026-09-11 13:51 ` sashiko-bot
  2026-09-11 14:24 ` Guenter Roeck
  1 sibling, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-09-11 13:51 UTC (permalink / raw)
  To: Mario Limonciello; +Cc: linux-pci, linux-hwmon

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The new PCI device ID `PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3` is inappropriately added to the global `include/linux/pci_ids.h` instead of being defined locally in the driver.
--

commit 7a5a1abca982d7be5902a75b129f16bd3cb32d69
Author: Mario Limonciello <mario.limonciello@amd.com>

hwmon: (k10temp): Add PCI IDs for 1ah/80h

This commit adds a new PCI ID to support AMD Family 1Ah model 80h processors
in the k10temp hardware monitoring driver.

[ ... ]

> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index 63774ae2bf71d..57a4ad9984798 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -585,6 +585,7 @@
>  #define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
>  #define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3 0x124b
>  #define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3 0x12bb
> +#define PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3 0x1243

[Severity: Low]
Should this new device ID be defined locally in drivers/hwmon/k10temp.c
instead of the global include/linux/pci_ids.h header?

There is an existing comment in drivers/hwmon/k10temp.c that establishes
the practice for these specific devices:

/*
 * PCI Device IDs for AMD's Family 1Ah-based SOCs.
 * Defining locally as IDs are not shared.
 */

Since this ID does not appear to be shared with other drivers, would it
be more appropriate to define it directly in the k10temp driver to avoid
cluttering the global PCI IDs header?

>  #define PCI_DEVICE_ID_AMD_MI200_DF_F3	0x14d3
>  #define PCI_DEVICE_ID_AMD_MI300_DF_F3	0x152b
>  #define PCI_DEVICE_ID_AMD_VANGOGH_USB	0x163a

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260911134304.226286-1-mario.limonciello@amd.com?part=1

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

* Re: [PATCH] hwmon: (k10temp): Add PCI IDs for 1ah/80h
  2026-09-11 13:43 [PATCH] hwmon: (k10temp): Add PCI IDs for 1ah/80h Mario Limonciello
  2026-09-11 13:51 ` sashiko-bot
@ 2026-09-11 14:24 ` Guenter Roeck
  2026-09-11 14:26   ` Mario Limonciello
  1 sibling, 1 reply; 4+ messages in thread
From: Guenter Roeck @ 2026-09-11 14:24 UTC (permalink / raw)
  To: Mario Limonciello, clemens, bhelgaas; +Cc: linux-hwmon, linux-pci

On 9/11/26 06:43, Mario Limonciello wrote:
> 1ah/80h uses same base as other programs.  It only supports Tctl.
> 
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
>   drivers/hwmon/k10temp.c | 1 +
>   include/linux/pci_ids.h | 1 +
>   2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
> index 3e7e63edc6a30..b00081deb2e86 100644
> --- a/drivers/hwmon/k10temp.c
> +++ b/drivers/hwmon/k10temp.c
> @@ -582,6 +582,7 @@ static const struct pci_device_id k10temp_id_table[] = {
>   	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3) },
>   	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3) },
>   	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3) },
> +	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3) },
>   	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3) },
>   	{ PCI_VDEVICE(HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
>   	{}
> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index 63774ae2bf71d..57a4ad9984798 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -585,6 +585,7 @@
>   #define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
>   #define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3 0x124b
>   #define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3 0x12bb
> +#define PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3 0x1243

Please define locally in drivers/hwmon/k10temp.c. I can not touch
this file, and additions for single-use defines are usually rejected
by the maintainers.

Also, it would be nice to list the chip family in the commit message
and add it to Documentation/hwmon/k10temp.rst. But then I see that
all chips from family 1ah are missing from there, so maybe that should
be a separate patch.

Thanks,
Guenter


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

* Re: [PATCH] hwmon: (k10temp): Add PCI IDs for 1ah/80h
  2026-09-11 14:24 ` Guenter Roeck
@ 2026-09-11 14:26   ` Mario Limonciello
  0 siblings, 0 replies; 4+ messages in thread
From: Mario Limonciello @ 2026-09-11 14:26 UTC (permalink / raw)
  To: Guenter Roeck, clemens, bhelgaas; +Cc: linux-hwmon, linux-pci



On 9/11/26 09:24, Guenter Roeck wrote:
> On 9/11/26 06:43, Mario Limonciello wrote:
>> 1ah/80h uses same base as other programs.  It only supports Tctl.
>>
>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>> ---
>>   drivers/hwmon/k10temp.c | 1 +
>>   include/linux/pci_ids.h | 1 +
>>   2 files changed, 2 insertions(+)
>>
>> diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
>> index 3e7e63edc6a30..b00081deb2e86 100644
>> --- a/drivers/hwmon/k10temp.c
>> +++ b/drivers/hwmon/k10temp.c
>> @@ -582,6 +582,7 @@ static const struct pci_device_id 
>> k10temp_id_table[] = {
>>       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3) },
>>       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3) },
>>       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3) },
>> +    { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3) },
>>       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3) },
>>       { PCI_VDEVICE(HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
>>       {}
>> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
>> index 63774ae2bf71d..57a4ad9984798 100644
>> --- a/include/linux/pci_ids.h
>> +++ b/include/linux/pci_ids.h
>> @@ -585,6 +585,7 @@
>>   #define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
>>   #define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3 0x124b
>>   #define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3 0x12bb
>> +#define PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3 0x1243
> 
> Please define locally in drivers/hwmon/k10temp.c. I can not touch
> this file, and additions for single-use defines are usually rejected
> by the maintainers.

Thanks, I'll respin accordingly.

> 
> Also, it would be nice to list the chip family in the commit message
> and add it to Documentation/hwmon/k10temp.rst. But then I see that
> all chips from family 1ah are missing from there, so maybe that should
> be a separate patch.
> 
> Thanks,
> Guenter
> 

It would need to wait until after product launch too.  I'll set a 
reminder for myself to do this later when I am allowed to.

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

end of thread, other threads:[~2026-09-11 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-11 13:43 [PATCH] hwmon: (k10temp): Add PCI IDs for 1ah/80h Mario Limonciello
2026-09-11 13:51 ` sashiko-bot
2026-09-11 14:24 ` Guenter Roeck
2026-09-11 14:26   ` Mario Limonciello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox