diff mbox series

powercap: Add Power Limit4 support for Alder Lake SoC

Message ID 20210820115233.5297-1-sumeet.r.pawnikar@intel.com
State Accepted
Commit 1cc5b9a411e43aa2cb5060429ede6c50217bad90
Headers show
Series powercap: Add Power Limit4 support for Alder Lake SoC | expand

Commit Message

Sumeet Pawnikar Aug. 20, 2021, 11:52 a.m. UTC
Add Power Limit4 support for Alder Lake SoC.

Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
---
 drivers/powercap/intel_rapl_msr.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Rafael J. Wysocki Aug. 25, 2021, 6:13 p.m. UTC | #1
On Fri, Aug 20, 2021 at 1:51 PM Sumeet Pawnikar
<sumeet.r.pawnikar@intel.com> wrote:
>

> Add Power Limit4 support for Alder Lake SoC.

>

> Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>

> Acked-by: Zhang Rui <rui.zhang@intel.com>

> ---

>  drivers/powercap/intel_rapl_msr.c | 2 ++

>  1 file changed, 2 insertions(+)

>

> diff --git a/drivers/powercap/intel_rapl_msr.c b/drivers/powercap/intel_rapl_msr.c

> index cc3b22881bfe..1be45f36ab6c 100644

> --- a/drivers/powercap/intel_rapl_msr.c

> +++ b/drivers/powercap/intel_rapl_msr.c

> @@ -138,6 +138,8 @@ static int rapl_msr_write_raw(int cpu, struct reg_action *ra)

>  /* List of verified CPUs. */

>  static const struct x86_cpu_id pl4_support_ids[] = {

>         { X86_VENDOR_INTEL, 6, INTEL_FAM6_TIGERLAKE_L, X86_FEATURE_ANY },

> +       { X86_VENDOR_INTEL, 6, INTEL_FAM6_ALDERLAKE, X86_FEATURE_ANY },

> +       { X86_VENDOR_INTEL, 6, INTEL_FAM6_ALDERLAKE_L, X86_FEATURE_ANY },

>         {}

>  };

>

> --


Applied as 5.15 material, thankis!
diff mbox series

Patch

diff --git a/drivers/powercap/intel_rapl_msr.c b/drivers/powercap/intel_rapl_msr.c
index cc3b22881bfe..1be45f36ab6c 100644
--- a/drivers/powercap/intel_rapl_msr.c
+++ b/drivers/powercap/intel_rapl_msr.c
@@ -138,6 +138,8 @@  static int rapl_msr_write_raw(int cpu, struct reg_action *ra)
 /* List of verified CPUs. */
 static const struct x86_cpu_id pl4_support_ids[] = {
 	{ X86_VENDOR_INTEL, 6, INTEL_FAM6_TIGERLAKE_L, X86_FEATURE_ANY },
+	{ X86_VENDOR_INTEL, 6, INTEL_FAM6_ALDERLAKE, X86_FEATURE_ANY },
+	{ X86_VENDOR_INTEL, 6, INTEL_FAM6_ALDERLAKE_L, X86_FEATURE_ANY },
 	{}
 };