hwmon: (amd_energy) Add AMD family 19h model 01h x86 match
Subsystems (2)
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.
Signed-off-by Naveen Krishna Chatradhi <[email protected]>
--- drivers/hwmon/amd_energy.c | 1 + 1 file changed, 1 insertion(+)
drivers/hwmon/amd_energy.c +1 -0
@@ -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
PATCH 2/2 docs: hwmon: (amd_energy) update documentation
Update the supported processors and mention vulnerability fix.
Signed-off-by Naveen Krishna Chatradhi <[email protected]>
--- Documentation/hwmon/amd_energy.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/hwmon/amd_energy.rst +6 -1
@@ -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
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_energymodule.Signed-off-by Naveen Krishna Chatradhi <[email protected]>
Applied.
Thanks,
Guenter
Quoted 16 lines
--- drivers/hwmon/amd_energy.c | 1 + 1 file changed, 1 insertion(+)drivers/hwmon/amd_energy.c +1
-0@@ -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);