Skip to contentSkip to conversation

hwmon: (amd_energy) Add AMD family 19h model 01h x86 match

PATCH Applied Naveen Krishna Chatradhi 2 participants 3 messages Nov 19, 2020 – Nov 22, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 hwmon: (amd_energy) Add AMD family 19h model 01h x86 match

Add X86 CPU match for AMD family 19h model 01h. This is necessary to enable support for energy reporting via the amd_energy module.

---
 drivers/hwmon/amd_energy.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/amd_energy.c +1 -0
index 3197cda7bcd9..9b306448b7a0 100644
@@ -331,6 +331,7 @@ static struct platform_device *amd_energy_platdev;
 
 static const struct x86_cpu_id cpu_ids[] __initconst = {
 	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x17, 0x31, NULL),
+	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x19, 0x01, NULL),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, cpu_ids);
Signature · 1 line
2.26.2
#1 lore raw

PATCH 2/2 docs: hwmon: (amd_energy) update documentation

Update the supported processors and mention vulnerability fix.

---
 Documentation/hwmon/amd_energy.rst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/hwmon/amd_energy.rst +6 -1
index 86e4ebc5cbc2..7d6fb4b0181b 100644
@@ -5,7 +5,9 @@ Kernel driver amd_energy
 
 Supported chips:
 
-* AMD Family 17h Processors
+* AMD Family 17h Processors: Model 30h
+
+* AMD Family 19h Processors: Model 01h
 
   Prefix: 'amd_energy'
 
@@ -112,3 +114,6 @@ energy[N]_input EcoreX	  Core Energy   X = [0] to [nr_cpus - 1]
 energy[N]_input EsocketX  Socket Energy X = [0] to [nr_socks -1]
 			  Measured input socket energy
 =============== ========  ======================================
+
+Note: To address CVE-2020-12912, the visibility of the energy[N]_input
+attributes is restricted to owner and groups only.
Signature · 1 line
2.26.2
maintainer Applied
#2 lore raw
In reply to Naveen Krishna Chatradhi
Quoted 4 lines · Naveen Krishna Chatradhi

Add X86 CPU match for AMD family 19h model 01h. This is necessary to enable support for energy reporting via the amd_energy module.

Applied.

Thanks,
Guenter

Quoted 16 lines
---
 drivers/hwmon/amd_energy.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/amd_energy.c +1 -0
index 3197cda7bcd9..9b306448b7a0 100644
@@ -331,6 +331,7 @@ static struct platform_device *amd_energy_platdev;
 
 static const struct x86_cpu_id cpu_ids[] __initconst = {
 	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x17, 0x31, NULL),
+	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x19, 0x01, NULL),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, cpu_ids);