All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match
@ 2020-11-19 18:42 Naveen Krishna Chatradhi
  2020-11-19 18:42 ` [PATCH 2/2] docs: hwmon: (amd_energy) update documentation Naveen Krishna Chatradhi
  2020-11-22 15:26 ` [PATCH 1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match Guenter Roeck
  0 siblings, 2 replies; 3+ messages in thread
From: Naveen Krishna Chatradhi @ 2020-11-19 18:42 UTC (permalink / raw)
  To: linux-hwmon; +Cc: 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.

Signed-off-by: Naveen Krishna Chatradhi <NaveenKrishna.Chatradhi@amd.com>
---
 drivers/hwmon/amd_energy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/amd_energy.c b/drivers/hwmon/amd_energy.c
index 3197cda7bcd9..9b306448b7a0 100644
--- a/drivers/hwmon/amd_energy.c
+++ b/drivers/hwmon/amd_energy.c
@@ -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);
-- 
2.26.2


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

* [PATCH 2/2] docs: hwmon: (amd_energy) update documentation
  2020-11-19 18:42 [PATCH 1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match Naveen Krishna Chatradhi
@ 2020-11-19 18:42 ` Naveen Krishna Chatradhi
  2020-11-22 15:26 ` [PATCH 1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Naveen Krishna Chatradhi @ 2020-11-19 18:42 UTC (permalink / raw)
  To: linux-hwmon; +Cc: Naveen Krishna Chatradhi

Update the supported processors and mention vulnerability fix.

Signed-off-by: Naveen Krishna Chatradhi <NaveenKrishna.Chatradhi@amd.com>
---
 Documentation/hwmon/amd_energy.rst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Documentation/hwmon/amd_energy.rst b/Documentation/hwmon/amd_energy.rst
index 86e4ebc5cbc2..7d6fb4b0181b 100644
--- a/Documentation/hwmon/amd_energy.rst
+++ b/Documentation/hwmon/amd_energy.rst
@@ -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.
-- 
2.26.2


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

* Re: [PATCH 1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match
  2020-11-19 18:42 [PATCH 1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match Naveen Krishna Chatradhi
  2020-11-19 18:42 ` [PATCH 2/2] docs: hwmon: (amd_energy) update documentation Naveen Krishna Chatradhi
@ 2020-11-22 15:26 ` Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2020-11-22 15:26 UTC (permalink / raw)
  To: Naveen Krishna Chatradhi; +Cc: linux-hwmon

On Fri, Nov 20, 2020 at 12:12:45AM +0530, Naveen Krishna Chatradhi wrote:
> 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 <NaveenKrishna.Chatradhi@amd.com>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/amd_energy.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hwmon/amd_energy.c b/drivers/hwmon/amd_energy.c
> index 3197cda7bcd9..9b306448b7a0 100644
> --- a/drivers/hwmon/amd_energy.c
> +++ b/drivers/hwmon/amd_energy.c
> @@ -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);

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

end of thread, other threads:[~2020-11-22 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19 18:42 [PATCH 1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match Naveen Krishna Chatradhi
2020-11-19 18:42 ` [PATCH 2/2] docs: hwmon: (amd_energy) update documentation Naveen Krishna Chatradhi
2020-11-22 15:26 ` [PATCH 1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.