Skip to contentSkip to conversation

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

PATCH Applied Naveen Krishna Chatradhi 2 participants 2 messages Feb 11, 2021 – Feb 12, 2021 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

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

Add X86 CPU match for AMD family 19h model 30h. 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 822c2e74b98d..a86cc8d6d93d 100644
@@ -333,6 +333,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),
+	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x19, 0x30, NULL),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, cpu_ids);
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Naveen Krishna Chatradhi

Add X86 CPU match for AMD family 19h model 30h. 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 822c2e74b98d..a86cc8d6d93d 100644
@@ -333,6 +333,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),
+	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x19, 0x30, NULL),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, cpu_ids);