Skip to contentSkip to conversation

hwmon: (fam15h_power) Add new AMD family 15h processors

PATCH Applied Huang Rui 3 participants 8 messages Dec 10, 2015

Subsystems (2)
lore
Share & tools
lore

Huang Rui

author maintainer
#0 lore raw

cover hwmon: (fam15h_power) Add new AMD family 15h processors

Hi Guenter,

This serial adds support for new AMD family 15h processor (Models 70-7f) and maintainer info updates.

For accumulated power feature:
http://marc.info/?l=linux-kernel&m=144633156632674&w=2
http://marc.info/?l=linux-kernel&m=144619918504720&w=2

For the patch "x86, amd: add accessor for number of cores per compute unit", I will send it with accumulated power perf support with forthcoming. Then resend v4 of accumulated power hwmon support.
Refer: http://marc.info/?l=linux-kernel&m=144103718130563&w=2

So can you apply these two patches to hwmon-next firstly?

Thanks,
Rui

Huang Rui (2):
hwmon: (fam15h_power) Add support for AMD new 15h processors
MAINTAINERS: change the maintainer of fam15h_power driver

 CREDITS                      | 8 ++++++++
 MAINTAINERS                  | 4 ++--
 drivers/hwmon/fam15h_power.c | 7 +++++--
 3 files changed, 15 insertions(+), 4 deletions(-)
Signature · 1 line
1.9.1
author maintainer
#1 lore raw

PATCH 1/2 hwmon: (fam15h_power) Add support for AMD new 15h processors

AMD Family 15h Models 70h-7fh processors also support TDP power reporting interface.

---
 drivers/hwmon/fam15h_power.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/hwmon/fam15h_power.c +5 -2
index 5f7067d..f77eb97 100644
@@ -47,6 +47,8 @@ MODULE_LICENSE("GPL");
 
 #define MSR_F15H_CU_MAX_PWR_ACCUMULATOR	0xc001007b
 
+#define PCI_DEVICE_ID_AMD_15H_M70H_NB_F4 0x15b4
+
 struct fam15h_power_data {
 	struct pci_dev *pdev;
 	unsigned int tdp_to_watts;
@@ -124,7 +126,7 @@ static int fam15h_power_init_attrs(struct pci_dev *pdev,
 
 	if (c->x86 == 0x15 &&
 	    (c->x86_model <= 0xf ||
-	     (c->x86_model >= 0x60 && c->x86_model <= 0x6f)))
+	     (c->x86_model >= 0x60 && c->x86_model <= 0x7f)))
 		n += 1;
 
 	fam15h_power_attrs = devm_kcalloc(&pdev->dev, n,
@@ -138,7 +140,7 @@ static int fam15h_power_init_attrs(struct pci_dev *pdev,
 	fam15h_power_attrs[n++] = &dev_attr_power1_crit.attr;
 	if (c->x86 == 0x15 &&
 	    (c->x86_model <= 0xf ||
-	     (c->x86_model >= 0x60 && c->x86_model <= 0x6f)))
+	     (c->x86_model >= 0x60 && c->x86_model <= 0x7f)))
 		fam15h_power_attrs[n++] = &dev_attr_power1_input.attr;
 
 	data->group.attrs = fam15h_power_attrs;
@@ -296,6 +298,7 @@ static const struct pci_device_id fam15h_power_id_table[] = {
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_M30H_NB_F4) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_M60H_NB_F4) },
+	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_M70H_NB_F4) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F4) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_M30H_NB_F4) },
 	{}
Signature · 1 line
1.9.1
maintainer Applied
#2 lore raw

Re: [PATCH 1/2] hwmon: (fam15h_power) Add support for AMD new 15h processors

Quoted 4 lines · Huang Rui

AMD Family 15h Models 70h-7fh processors also support TDP power reporting interface.

Applied to -next.

Thanks,
Guenter

author maintainer
#3 lore raw

PATCH 2/2 MAINTAINERS: change the maintainer of fam15h_power driver

In reply to Huang Rui

Andreas Herrmann won't take the maintainer of fam15h_power driver. I will take it and appreciate him for the great contributions on this driver.

Cc Borislav Petkov <[email protected]>
Cc Aravind Gopalakrishnan <[email protected]>
---
 CREDITS     | 8 ++++++++
 MAINTAINERS | 4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)
CREDITS +8 -0
index 8207cc6..30bdce8 100644
@@ -1507,6 +1507,14 @@ S: 312/107 Canberra Avenue
 S: Griffith, ACT 2603 
 S: Australia
 
+N: Andreas Herrmann
+E: [email protected]
+E: [email protected]
+D: Key developer of x86/AMD64
+D: Author of AMD family 15h processor power monintoring driver
+D: Maintainer of AMD Athlon 64 and Opteron processor frequency driver
+S: Germany
+
 N: Sebastian Hetze
 E: [email protected]
 D: German Linux Documentation,
MAINTAINERS +2 -2
index cba790b..c99dd93 100644
@@ -614,9 +614,9 @@ F:	drivers/crypto/ccp/
 F:	include/linux/ccp.h
 
 AMD FAM15H PROCESSOR POWER MONITORING DRIVER
-M:	Andreas Herrmann <[email protected]>
+M:	Huang Rui <[email protected]>
 L:	[email protected]
-S:	Maintained
+S:	Supported
 F:	Documentation/hwmon/fam15h_power
 F:	drivers/hwmon/fam15h_power.c
 
Signature · 1 line
1.9.1
#4 lore raw

Re: [PATCH 2/2] MAINTAINERS: change the maintainer of fam15h_power driver

Quoted 3 lines · Huang Rui

Andreas Herrmann won't take the maintainer of fam15h_power driver. I will take it and appreciate him for the great contributions on this driver.

[]

CREDITS

Quoted 1 line
CREDITS +0 -0

[]

CREDITS S: 312/107 Canberra Avenue · line 1514

Quoted 9 lines
CREDITS +0 -0
@@ -1507,6 +1507,14 @@ S: 312/107 Canberra Avenue

 S: Griffith, ACT 2603
 S: Australia

CREDITS +5 -0
+N: Andreas Herrmann
+E: [email protected]
+E: [email protected]
+D: Key developer of x86/AMD64
+D: Author of AMD family 15h processor power monintoring driver

trivia:  monitoring

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

author maintainer
#5 lore raw

Re: [PATCH 2/2] MAINTAINERS: change the maintainer of fam15h_power driver

Quoted 7 lines · Joe Perches
Quoted 3 lines · Huang Rui

Andreas Herrmann won't take the maintainer of fam15h_power driver. I will take it and appreciate him for the great contributions on this driver.

[]

CREDITS

Quoted 1 line
CREDITS +0 -0

[]

Quoted 12 lines

CREDITS S: 312/107 Canberra Avenue · line 1514

Quoted 9 lines
CREDITS +0 -0
@@ -1507,6 +1507,14 @@ S: 312/107 Canberra Avenue

?S: Griffith, ACT 2603?
?S: Australia
?

CREDITS +5 -0
+N: Andreas Herrmann
+E: [email protected]
+E: [email protected]
+D: Key developer of x86/AMD64
+D: Author of AMD family 15h processor power monintoring driver

trivia: ?monitoring

Oh, that's a typo. Should be "monitoring". Thanks to point out. :) Guenter, can you help to correct it when you apply? Or will I send a v2?

Thanks,
Rui

maintainer
#6 lore raw

Re: [PATCH 2/2] MAINTAINERS: change the maintainer of fam15h_power driver

Quoted 21 lines · Huang Rui
Quoted 7 lines · Joe Perches
Quoted 3 lines · Huang Rui

Andreas Herrmann won't take the maintainer of fam15h_power driver. I will take it and appreciate him for the great contributions on this driver.

[]

CREDITS

Quoted 1 line
CREDITS +0 -0

[]

Quoted 12 lines

CREDITS S: 312/107 Canberra Avenue · line 1514

Quoted 9 lines
CREDITS +0 -0
@@ -1507,6 +1507,14 @@ S: 312/107 Canberra Avenue

?S: Griffith, ACT 2603?
?S: Australia
?

CREDITS +5 -0
+N: Andreas Herrmann
+E: [email protected]
+E: [email protected]
+D: Key developer of x86/AMD64
+D: Author of AMD family 15h processor power monintoring driver

trivia: ?monitoring

Quoted 4 lines

Oh, that's a typo. Should be "monitoring". Thanks to point out. :) Guenter, can you help to correct it when you apply? Or will I send a v2?

I'll fix it up.

Guenter

maintainer Applied
#7 lore raw

Re: [PATCH 2/2] MAINTAINERS: change the maintainer of fam15h_power driver

In reply to Huang Rui
Quoted 8 lines · Huang Rui

Andreas Herrmann won't take the maintainer of fam15h_power driver. I will take it and appreciate him for the great contributions on this driver.

Cc Borislav Petkov <[email protected]>
Cc Aravind Gopalakrishnan <[email protected]>

Applied to -next (with spelling fix).

Thanks,
Guenter