linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Add k10temp support for more client APUs
@ 2021-08-26 18:40 Mario Limonciello
  2021-08-26 18:40 ` [PATCH 1/6] hwmon: (k10temp): Add additional missing Zen2 and Zen3 APUs Mario Limonciello
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Mario Limonciello @ 2021-08-26 18:40 UTC (permalink / raw)
  To: Clemens Ladisch
  Cc: linux-hwmon, Gabriel Craciunescu, Guenter Roeck, Wei Huang,
	Mario Limonciello

Extend existing code to cover more missing client APUs.  Some logic changes
and failure handling will make this more scalable for other future APUs as
well.

Mario Limonciello (6):
  hwmon: (k10temp): Add additional missing Zen2 and Zen3 APUs
  x86/amd_nb: Rename PCI_DEVICE_ID_AMD_19H_DF_F3 to match specific model
  hwmon: (k10temp): Rework the temperature offset calculation
  hwmon: (k10temp): Show errors failing to read
  hwmon: (k10temp): Don't show Tdie for all Zen/Zen2/Zen3 CPU/APU
  hwmon: (k10temp): Add support for yellow carp

 arch/x86/kernel/amd_nb.c |  7 ++++++-
 drivers/hwmon/k10temp.c  | 44 ++++++++++++++++++++++++++++------------
 include/linux/pci_ids.h  |  3 ++-
 3 files changed, 39 insertions(+), 15 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [PATCH 1/6] hwmon: (k10temp): Add additional missing Zen2 and Zen3 APUs
@ 2021-08-27 16:44 Guenter Roeck
  0 siblings, 0 replies; 11+ messages in thread
From: Guenter Roeck @ 2021-08-27 16:44 UTC (permalink / raw)
  To: Mario Limonciello
  Cc: Clemens Ladisch, linux-hwmon, Gabriel Craciunescu, Wei Huang

On Thu, Aug 26, 2021 at 01:40:52PM -0500, Mario Limonciello wrote:
> These follow the rest of the existing codepaths for families
> 17h and 19h.
> 
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/k10temp.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
> index fe3d92152e35..1d3c8d319941 100644
> --- a/drivers/hwmon/k10temp.c
> +++ b/drivers/hwmon/k10temp.c
> @@ -437,6 +437,8 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>  			k10temp_get_ccd_support(pdev, data, 4);
>  			break;
>  		case 0x31:	/* Zen2 Threadripper */
> +		case 0x60:	/* Renoir */
> +		case 0x68:	/* Lucienne */
>  		case 0x71:	/* Zen2 */
>  			k10temp_get_ccd_support(pdev, data, 8);
>  			break;
> @@ -450,7 +452,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 0x21:		/* Zen3 Ryzen Desktop */
> -		case 0x50:		/* Zen3 Ryzen APU */
> +		case 0x50 ... 0x5f:	/* Green Sardine */
>  			k10temp_get_ccd_support(pdev, data, 8);
>  			break;
>  		}
> -- 
> 2.25.1
> 

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

end of thread, other threads:[~2021-08-27 16:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 18:40 [PATCH 0/6] Add k10temp support for more client APUs Mario Limonciello
2021-08-26 18:40 ` [PATCH 1/6] hwmon: (k10temp): Add additional missing Zen2 and Zen3 APUs Mario Limonciello
2021-08-26 18:40 ` [PATCH 2/6] x86/amd_nb: Rename PCI_DEVICE_ID_AMD_19H_DF_F3 to match specific model Mario Limonciello
2021-08-26 20:07   ` Guenter Roeck
2021-08-26 18:40 ` [PATCH 3/6] hwmon: (k10temp): Rework the temperature offset calculation Mario Limonciello
2021-08-26 20:02   ` Guenter Roeck
2021-08-26 18:40 ` [PATCH 4/6] hwmon: (k10temp): Show errors failing to read Mario Limonciello
2021-08-26 19:50   ` Guenter Roeck
2021-08-26 18:40 ` [PATCH 5/6] hwmon: (k10temp): Don't show Tdie for all Zen/Zen2/Zen3 CPU/APU Mario Limonciello
2021-08-26 18:40 ` [PATCH 6/6] hwmon: (k10temp): Add support for yellow carp Mario Limonciello
2021-08-27 16:44 [PATCH 1/6] hwmon: (k10temp): Add additional missing Zen2 and Zen3 APUs 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).