diff mbox series

powercap: intel_rapl: add support for ALDERLAKE_N

Message ID 20220513050040.3387524-1-rui.zhang@intel.com
State Accepted
Commit ae0dc7ed1a7c713ee9ba563a328d3b4d59223d7c
Headers show
Series powercap: intel_rapl: add support for ALDERLAKE_N | expand

Commit Message

Zhang, Rui May 13, 2022, 5 a.m. UTC
Add intel_rapl support for the ALDERLAKE_N platform.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
 drivers/powercap/intel_rapl_common.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Zhang, Rui May 13, 2022, 5:07 a.m. UTC | #1
Hi, Rafael,

Forgot to mention, this patch is made on top of this commit

https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/drivers/powercap/intel_rapl_common.c?h=linux-next&id=ae0dc7ed1a7c713ee9ba563a328d3b4d59223d7c
in your linux-next branch.

thanks,
rui

On Fri, 2022-05-13 at 13:00 +0800, Zhang Rui wrote:
> Add intel_rapl support for the ALDERLAKE_N platform.
> 
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> ---
>  drivers/powercap/intel_rapl_common.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/powercap/intel_rapl_common.c
> b/drivers/powercap/intel_rapl_common.c
> index 83da499dd6ec..e45c1c3b0cae 100644
> --- a/drivers/powercap/intel_rapl_common.c
> +++ b/drivers/powercap/intel_rapl_common.c
> @@ -1107,6 +1107,7 @@ static const struct x86_cpu_id rapl_ids[]
> __initconst = {
>  	X86_MATCH_INTEL_FAM6_MODEL(ROCKETLAKE,		&rapl_default
> s_core),
>  	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE,		&rapl_default
> s_core),
>  	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,		&rapl_default
> s_core),
> +	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,		&rapl_default
> s_core),
>  	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,		&rapl_default
> s_core),
>  	X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,	&rapl_default
> s_spr_server),
>  	X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,		&rapl_default
> s_core),
Rafael J. Wysocki May 18, 2022, 6:42 p.m. UTC | #2
On Fri, May 13, 2022 at 7:08 AM Zhang Rui <rui.zhang@intel.com> wrote:
>
> Hi, Rafael,
>
> Forgot to mention, this patch is made on top of this commit
>
> https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/drivers/powercap/intel_rapl_common.c?h=linux-next&id=ae0dc7ed1a7c713ee9ba563a328d3b4d59223d7c
> in your linux-next branch.
>
> thanks,
> rui
>
> On Fri, 2022-05-13 at 13:00 +0800, Zhang Rui wrote:
> > Add intel_rapl support for the ALDERLAKE_N platform.
> >
> > Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> > ---
> >  drivers/powercap/intel_rapl_common.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/powercap/intel_rapl_common.c
> > b/drivers/powercap/intel_rapl_common.c
> > index 83da499dd6ec..e45c1c3b0cae 100644
> > --- a/drivers/powercap/intel_rapl_common.c
> > +++ b/drivers/powercap/intel_rapl_common.c
> > @@ -1107,6 +1107,7 @@ static const struct x86_cpu_id rapl_ids[]
> > __initconst = {
> >       X86_MATCH_INTEL_FAM6_MODEL(ROCKETLAKE,          &rapl_default
> > s_core),
> >       X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE,           &rapl_default
> > s_core),
> >       X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,         &rapl_default
> > s_core),
> > +     X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,         &rapl_default
> > s_core),
> >       X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,          &rapl_default
> > s_core),
> >       X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,    &rapl_default
> > s_spr_server),
> >       X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,           &rapl_default
> > s_core),

Applied, thanks!
diff mbox series

Patch

diff --git a/drivers/powercap/intel_rapl_common.c b/drivers/powercap/intel_rapl_common.c
index 83da499dd6ec..e45c1c3b0cae 100644
--- a/drivers/powercap/intel_rapl_common.c
+++ b/drivers/powercap/intel_rapl_common.c
@@ -1107,6 +1107,7 @@  static const struct x86_cpu_id rapl_ids[] __initconst = {
 	X86_MATCH_INTEL_FAM6_MODEL(ROCKETLAKE,		&rapl_defaults_core),
 	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE,		&rapl_defaults_core),
 	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,		&rapl_defaults_core),
+	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,		&rapl_defaults_core),
 	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,		&rapl_defaults_core),
 	X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,	&rapl_defaults_spr_server),
 	X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,		&rapl_defaults_core),