All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
@ 2022-06-01 19:22 george.d.sworo
  2022-06-09 18:55 ` Rafael J. Wysocki
  0 siblings, 1 reply; 11+ messages in thread
From: george.d.sworo @ 2022-06-01 19:22 UTC (permalink / raw)
  To: rafael; +Cc: linux-pm, George D Sworo

From: George D Sworo <george.d.sworo@intel.com>

Add RAPTORLAKE_P to the list of supported processor model in the Intel

RAPL power capping driver.

Signed-off-by: George D Sworo <george.d.sworo@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 a9c99d9e8b42..21d624f9f5fb 100644
--- a/drivers/powercap/intel_rapl_common.c
+++ b/drivers/powercap/intel_rapl_common.c
@@ -1109,6 +1109,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
 	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(RAPTORLAKE_P,        &rapl_defaults_core),
 	X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,	&rapl_defaults_spr_server),
 	X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,		&rapl_defaults_core),
 
-- 
2.17.1


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

* Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-01 19:22 [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P george.d.sworo
@ 2022-06-09 18:55 ` Rafael J. Wysocki
  2022-06-09 21:02   ` srinivas pandruvada
  2022-06-10  2:26   ` Zhang Rui
  0 siblings, 2 replies; 11+ messages in thread
From: Rafael J. Wysocki @ 2022-06-09 18:55 UTC (permalink / raw)
  To: Zhang, Rui, Srinivas Pandruvada
  Cc: Rafael J. Wysocki, Linux PM, George D Sworo

Rui, Srinivas, should I take this one?

On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com> wrote:
>
> From: George D Sworo <george.d.sworo@intel.com>
>
> Add RAPTORLAKE_P to the list of supported processor model in the Intel
>
> RAPL power capping driver.
>
> Signed-off-by: George D Sworo <george.d.sworo@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 a9c99d9e8b42..21d624f9f5fb 100644
> --- a/drivers/powercap/intel_rapl_common.c
> +++ b/drivers/powercap/intel_rapl_common.c
> @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
>         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(RAPTORLAKE_P,        &rapl_defaults_core),
>         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,    &rapl_defaults_spr_server),
>         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,           &rapl_defaults_core),
>
> --
> 2.17.1
>

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

* Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-09 18:55 ` Rafael J. Wysocki
@ 2022-06-09 21:02   ` srinivas pandruvada
  2022-06-09 21:47     ` Sworo, George D
  2022-06-10  2:26   ` Zhang Rui
  1 sibling, 1 reply; 11+ messages in thread
From: srinivas pandruvada @ 2022-06-09 21:02 UTC (permalink / raw)
  To: Rafael J. Wysocki, Zhang, Rui; +Cc: Linux PM, George D Sworo

On Thu, 2022-06-09 at 20:55 +0200, Rafael J. Wysocki wrote:
> Rui, Srinivas, should I take this one?
> 
Yes.

Not sure if the RAPL-MMIO driver is loaded on this system.

George,

What is the output of
lspci -vv -s :0:4.0

If the device id is 0xA71D, then we have this change in the
upstream kernel. If not then we need to submit patch for that.

Thanks,
Srinivas

> On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com> wrote:
> > 
> > From: George D Sworo <george.d.sworo@intel.com>
> > 
> > Add RAPTORLAKE_P to the list of supported processor model in the
> > Intel
> > 
> > RAPL power capping driver.
> > 
> > Signed-off-by: George D Sworo <george.d.sworo@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 a9c99d9e8b42..21d624f9f5fb 100644
> > --- a/drivers/powercap/intel_rapl_common.c
> > +++ b/drivers/powercap/intel_rapl_common.c
> > @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id rapl_ids[]
> > __initconst = {
> >         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(RAPTORLAKE_P,       
> > &rapl_defaults_core),
> >         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,   
> > &rapl_defaults_spr_server),
> >         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,          
> > &rapl_defaults_core),
> > 
> > --
> > 2.17.1
> > 


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

* Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-09 21:02   ` srinivas pandruvada
@ 2022-06-09 21:47     ` Sworo, George D
  2022-06-09 22:10       ` srinivas pandruvada
  0 siblings, 1 reply; 11+ messages in thread
From: Sworo, George D @ 2022-06-09 21:47 UTC (permalink / raw)
  To: srinivas.pandruvada, Zhang, Rui, rafael; +Cc: linux-pm

On Thu, 2022-06-09 at 14:02 -0700, srinivas pandruvada wrote:
> On Thu, 2022-06-09 at 20:55 +0200, Rafael J. Wysocki wrote:
> > Rui, Srinivas, should I take this one?
> > 
> Yes.
> 
> Not sure if the RAPL-MMIO driver is loaded on this system.
> 
> George,
> 
> What is the output of
> lspci -vv -s :0:4.0
> 
> If the device id is 0xA71D, then we have this change in the
> upstream kernel. If not then we need to submit patch for that.
> 
> Thanks,
> Srinivas
> 
Thanks for the quick review.

the device id is 0xA71D is not avaible without this patch. But when
add it i can see the ID. Below are the outputs

Output from a kernel without this patch:
-------------------------------------
localhost ~ # lspci -vv -s :0:4.0
00:04.0 Signal processing controller: Intel Corporation Alder Lake
Innovation Platform Framework Processor Participant (rev 03)
	Subsystem: Intel Corporation Device 7270
	Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-

Output with this patch added:
----------------------------------------
localhost ~ # lspci -vv -s :0:4.0
00:04.0 Signal processing controller: Intel Corporation Device a71d

> > On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com> wrote:
> > > From: George D Sworo <george.d.sworo@intel.com>
> > > 
> > > Add RAPTORLAKE_P to the list of supported processor model in the
> > > Intel
> > > 
> > > RAPL power capping driver.
> > > 
> > > Signed-off-by: George D Sworo <george.d.sworo@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 a9c99d9e8b42..21d624f9f5fb 100644
> > > --- a/drivers/powercap/intel_rapl_common.c
> > > +++ b/drivers/powercap/intel_rapl_common.c
> > > @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id rapl_ids[]
> > > __initconst = {
> > >         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(RAPTORLAKE_P,       
> > > &rapl_defaults_core),
> > >         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,   
> > > &rapl_defaults_spr_server),
> > >         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,          
> > > &rapl_defaults_core),
> > > 
> > > --
> > > 2.17.1
> > > 

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

* Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-09 21:47     ` Sworo, George D
@ 2022-06-09 22:10       ` srinivas pandruvada
  0 siblings, 0 replies; 11+ messages in thread
From: srinivas pandruvada @ 2022-06-09 22:10 UTC (permalink / raw)
  To: Sworo, George D, Zhang, Rui, rafael; +Cc: linux-pm

On Thu, 2022-06-09 at 21:47 +0000, Sworo, George D wrote:
> On Thu, 2022-06-09 at 14:02 -0700, srinivas pandruvada wrote:
> > On Thu, 2022-06-09 at 20:55 +0200, Rafael J. Wysocki wrote:
> > > Rui, Srinivas, should I take this one?
> > > 
> > Yes.
> > 
> > Not sure if the RAPL-MMIO driver is loaded on this system.
> > 
> > George,
> > 
> > What is the output of
> > lspci -vv -s :0:4.0
> > 
> > If the device id is 0xA71D, then we have this change in the
> > upstream kernel. If not then we need to submit patch for that.
> > 
> > Thanks,
> > Srinivas
> > 
> Thanks for the quick review.
> 
> the device id is 0xA71D
We have upstream patch for this ID. So we are good.

Thanks,
Srinivas

>  is not avaible without this patch. But when
> add it i can see the ID. Below are the outputs
> 
> Output from a kernel without this patch:
> -------------------------------------
> localhost ~ # lspci -vv -s :0:4.0
> 00:04.0 Signal processing controller: Intel Corporation Alder Lake
> Innovation Platform Framework Processor Participant (rev 03)
>         Subsystem: Intel Corporation Device 7270
>         Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
> 
> Output with this patch added:
> ----------------------------------------
> localhost ~ # lspci -vv -s :0:4.0
> 00:04.0 Signal processing controller: Intel Corporation Device a71d
> 
> > > On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com> wrote:
> > > > From: George D Sworo <george.d.sworo@intel.com>
> > > > 
> > > > Add RAPTORLAKE_P to the list of supported processor model in
> > > > the
> > > > Intel
> > > > 
> > > > RAPL power capping driver.
> > > > 
> > > > Signed-off-by: George D Sworo <george.d.sworo@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 a9c99d9e8b42..21d624f9f5fb 100644
> > > > --- a/drivers/powercap/intel_rapl_common.c
> > > > +++ b/drivers/powercap/intel_rapl_common.c
> > > > @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id rapl_ids[]
> > > > __initconst = {
> > > >         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(RAPTORLAKE_P,       
> > > > &rapl_defaults_core),
> > > >         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,   
> > > > &rapl_defaults_spr_server),
> > > >         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,          
> > > > &rapl_defaults_core),
> > > > 
> > > > --
> > > > 2.17.1
> > > > 



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

* Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-09 18:55 ` Rafael J. Wysocki
  2022-06-09 21:02   ` srinivas pandruvada
@ 2022-06-10  2:26   ` Zhang Rui
  2022-06-10  2:32     ` Zhang Rui
  2022-06-10  3:31     ` Sworo, George D
  1 sibling, 2 replies; 11+ messages in thread
From: Zhang Rui @ 2022-06-10  2:26 UTC (permalink / raw)
  To: Rafael J. Wysocki, Srinivas Pandruvada; +Cc: Linux PM, George D Sworo

On Thu, 2022-06-09 at 20:55 +0200, Rafael J. Wysocki wrote:
> Rui, Srinivas, should I take this one?

Sorry that I missed this one.

George,

Have this patch been tested yet?
I have the same patch internally, it should work but I haven't got
chance to test it yet.

thanks,
rui
> 
> On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com> wrote:
> > 
> > From: George D Sworo <george.d.sworo@intel.com>
> > 
> > Add RAPTORLAKE_P to the list of supported processor model in the
> > Intel
> > 
> > RAPL power capping driver.
> > 
> > Signed-off-by: George D Sworo <george.d.sworo@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 a9c99d9e8b42..21d624f9f5fb 100644
> > --- a/drivers/powercap/intel_rapl_common.c
> > +++ b/drivers/powercap/intel_rapl_common.c
> > @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id rapl_ids[]
> > __initconst = {
> >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,         &rapl_defau
> > lts_core),
> >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,         &rapl_defau
> > lts_core),
> >         X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,          &rapl_defau
> > lts_core),
> > +       X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,        &rapl_defau
> > lts_core),
> >         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,    &rapl_defau
> > lts_spr_server),
> >         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,           &rapl_defau
> > lts_core),
> > 
> > --
> > 2.17.1
> > 


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

* Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-10  2:26   ` Zhang Rui
@ 2022-06-10  2:32     ` Zhang Rui
  2022-06-10  3:31     ` Sworo, George D
  1 sibling, 0 replies; 11+ messages in thread
From: Zhang Rui @ 2022-06-10  2:32 UTC (permalink / raw)
  To: Rafael J. Wysocki, Srinivas Pandruvada; +Cc: Linux PM, George D Sworo

On Fri, 2022-06-10 at 10:26 +0800, Zhang Rui wrote:
> On Thu, 2022-06-09 at 20:55 +0200, Rafael J. Wysocki wrote:
> > Rui, Srinivas, should I take this one?
> 
> Sorry that I missed this one.
> 
> George,
> 
> Have this patch been tested yet?
> I have the same patch internally, it should work but I haven't got
> chance to test it yet.
> 
> thanks,
> rui
> > 
> > On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com> wrote:
> > > 
> > > From: George D Sworo <george.d.sworo@intel.com>
> > > 
> > > Add RAPTORLAKE_P to the list of supported processor model in the
> > > Intel
> > > 
> > > RAPL power capping driver.
> > > 
> > > Signed-off-by: George D Sworo <george.d.sworo@intel.com>

As long as you have tested it,

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

-rui

> > > ---
> > >  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 a9c99d9e8b42..21d624f9f5fb 100644
> > > --- a/drivers/powercap/intel_rapl_common.c
> > > +++ b/drivers/powercap/intel_rapl_common.c
> > > @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id rapl_ids[]
> > > __initconst = {
> > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,         &rapl_def
> > > au
> > > lts_core),
> > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,         &rapl_def
> > > au
> > > lts_core),
> > >         X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,          &rapl_def
> > > au
> > > lts_core),
> > > +       X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,        &rapl_def
> > > au
> > > lts_core),
> > >         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,    &rapl_def
> > > au
> > > lts_spr_server),
> > >         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,           &rapl_def
> > > au
> > > lts_core),
> > > 
> > > --
> > > 2.17.1
> > > 
> 
> 


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

* Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-10  2:26   ` Zhang Rui
  2022-06-10  2:32     ` Zhang Rui
@ 2022-06-10  3:31     ` Sworo, George D
  2022-06-21 14:49       ` Pawnikar, Sumeet R
  1 sibling, 1 reply; 11+ messages in thread
From: Sworo, George D @ 2022-06-10  3:31 UTC (permalink / raw)
  To: Zhang, Rui, srinivas.pandruvada, rafael; +Cc: linux-pm

On Fri, 2022-06-10 at 10:26 +0800, Zhang Rui wrote:
> On Thu, 2022-06-09 at 20:55 +0200, Rafael J. Wysocki wrote:
> > Rui, Srinivas, should I take this one?
> 
> Sorry that I missed this one.
> 
> George,
> 
> Have this patch been tested yet?
yes. This is tested on RPL SOC. Thanks
> I have the same patch internally, it should work but I haven't got
> chance to test it yet.
> 
> thanks,
> rui
> > On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com> wrote:
> > > From: George D Sworo <george.d.sworo@intel.com>
> > > 
> > > Add RAPTORLAKE_P to the list of supported processor model in the
> > > Intel
> > > 
> > > RAPL power capping driver.
> > > 
> > > Signed-off-by: George D Sworo <george.d.sworo@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 a9c99d9e8b42..21d624f9f5fb 100644
> > > --- a/drivers/powercap/intel_rapl_common.c
> > > +++ b/drivers/powercap/intel_rapl_common.c
> > > @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id rapl_ids[]
> > > __initconst = {
> > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,         &rapl_def
> > > au
> > > lts_core),
> > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,         &rapl_def
> > > au
> > > lts_core),
> > >         X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,          &rapl_def
> > > au
> > > lts_core),
> > > +       X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,        &rapl_def
> > > au
> > > lts_core),
> > >         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,    &rapl_def
> > > au
> > > lts_spr_server),
> > >         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,           &rapl_def
> > > au
> > > lts_core),
> > > 
> > > --
> > > 2.17.1
> > > 

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

* RE: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-10  3:31     ` Sworo, George D
@ 2022-06-21 14:49       ` Pawnikar, Sumeet R
  2022-06-21 19:22         ` Sworo, George D
  0 siblings, 1 reply; 11+ messages in thread
From: Pawnikar, Sumeet R @ 2022-06-21 14:49 UTC (permalink / raw)
  To: Sworo, George D, Zhang, Rui, srinivas.pandruvada, rafael; +Cc: linux-pm



> -----Original Message-----
> From: Sworo, George D <george.d.sworo@intel.com>
> Sent: Friday, June 10, 2022 9:02 AM
> To: Zhang, Rui <rui.zhang@intel.com>; srinivas.pandruvada@linux.intel.com;
> rafael@kernel.org
> Cc: linux-pm@vger.kernel.org
> Subject: Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
> 
> On Fri, 2022-06-10 at 10:26 +0800, Zhang Rui wrote:
> > On Thu, 2022-06-09 at 20:55 +0200, Rafael J. Wysocki wrote:
> > > Rui, Srinivas, should I take this one?
> >
> > Sorry that I missed this one.
> >
> > George,
> >
> > Have this patch been tested yet?
> yes. This is tested on RPL SOC. Thanks
> > I have the same patch internally, it should work but I haven't got
> > chance to test it yet.
> >
> > thanks,
> > rui
> > > On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com> wrote:
> > > > From: George D Sworo <george.d.sworo@intel.com>
> > > >
> > > > Add RAPTORLAKE_P to the list of supported processor model in the
> > > > Intel
> > > >
> > > > RAPL power capping driver.
> > > >
> > > > Signed-off-by: George D Sworo <george.d.sworo@intel.com>

Hi George, 
Thank you for this patch. 
I have tested this on Raptor Lake system and it works. 

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

Thanks,
Sumeet. 

> > > > ---
> > > >  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 a9c99d9e8b42..21d624f9f5fb 100644
> > > > --- a/drivers/powercap/intel_rapl_common.c
> > > > +++ b/drivers/powercap/intel_rapl_common.c
> > > > @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id rapl_ids[]
> > > > __initconst = {
> > > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,         &rapl_def
> > > > au
> > > > lts_core),
> > > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,         &rapl_def
> > > > au
> > > > lts_core),
> > > >         X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,          &rapl_def
> > > > au
> > > > lts_core),
> > > > +       X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,        &rapl_def
> > > > au
> > > > lts_core),
> > > >         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,    &rapl_def
> > > > au
> > > > lts_spr_server),
> > > >         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,           &rapl_def
> > > > au
> > > > lts_core),
> > > >
> > > > --
> > > > 2.17.1
> > > >

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

* Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-21 14:49       ` Pawnikar, Sumeet R
@ 2022-06-21 19:22         ` Sworo, George D
  2022-07-05 19:01           ` Rafael J. Wysocki
  0 siblings, 1 reply; 11+ messages in thread
From: Sworo, George D @ 2022-06-21 19:22 UTC (permalink / raw)
  To: Zhang, Rui, srinivas.pandruvada, Pawnikar, Sumeet R, rafael; +Cc: linux-pm

On Tue, 2022-06-21 at 14:49 +0000, Pawnikar, Sumeet R wrote:
> > -----Original Message-----
> > From: Sworo, George D <george.d.sworo@intel.com>
> > Sent: Friday, June 10, 2022 9:02 AM
> > To: Zhang, Rui <rui.zhang@intel.com>; 
> > srinivas.pandruvada@linux.intel.com;
> > rafael@kernel.org
> > Cc: linux-pm@vger.kernel.org
> > Subject: Re: [PATCH] powercap: intel_rapl: Add support for
> > RAPTORLAKE_P
> > 
> > On Fri, 2022-06-10 at 10:26 +0800, Zhang Rui wrote:
> > > On Thu, 2022-06-09 at 20:55 +0200, Rafael J. Wysocki wrote:
> > > > Rui, Srinivas, should I take this one?
> > > 
> > > Sorry that I missed this one.
> > > 
> > > George,
> > > 
> > > Have this patch been tested yet?
> > yes. This is tested on RPL SOC. Thanks
> > > I have the same patch internally, it should work but I haven't
> > > got
> > > chance to test it yet.
> > > 
> > > thanks,
> > > rui
> > > > On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com>
> > > > wrote:
> > > > > From: George D Sworo <george.d.sworo@intel.com>
> > > > > 
> > > > > Add RAPTORLAKE_P to the list of supported processor model in
> > > > > the
> > > > > Intel
> > > > > 
> > > > > RAPL power capping driver.
> > > > > 
> > > > > Signed-off-by: George D Sworo <george.d.sworo@intel.com>
> 
> Hi George, 
> Thank you for this patch. 
> I have tested this on Raptor Lake system and it works. 
> 
> Tested-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com> 
> 
> Thanks,
> Sumeet. 
> 
Thanks Sumeet for confirming!
@Rafael, let me know if you have further comments
> > > > > ---
> > > > >  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 a9c99d9e8b42..21d624f9f5fb 100644
> > > > > --- a/drivers/powercap/intel_rapl_common.c
> > > > > +++ b/drivers/powercap/intel_rapl_common.c
> > > > > @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id
> > > > > rapl_ids[]
> > > > > __initconst = {
> > > > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,         &rapl
> > > > > _def
> > > > > au
> > > > > lts_core),
> > > > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,         &rapl
> > > > > _def
> > > > > au
> > > > > lts_core),
> > > > >         X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,          &rapl
> > > > > _def
> > > > > au
> > > > > lts_core),
> > > > > +       X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,        &rapl
> > > > > _def
> > > > > au
> > > > > lts_core),
> > > > >         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,    &rapl
> > > > > _def
> > > > > au
> > > > > lts_spr_server),
> > > > >         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,           &rapl
> > > > > _def
> > > > > au
> > > > > lts_core),
> > > > > 
> > > > > --
> > > > > 2.17.1
> > > > > 

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

* Re: [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P
  2022-06-21 19:22         ` Sworo, George D
@ 2022-07-05 19:01           ` Rafael J. Wysocki
  0 siblings, 0 replies; 11+ messages in thread
From: Rafael J. Wysocki @ 2022-07-05 19:01 UTC (permalink / raw)
  To: Sworo, George D
  Cc: Zhang, Rui, srinivas.pandruvada, Pawnikar, Sumeet R, rafael, linux-pm

On Tue, Jun 21, 2022 at 9:22 PM Sworo, George D
<george.d.sworo@intel.com> wrote:
>
> On Tue, 2022-06-21 at 14:49 +0000, Pawnikar, Sumeet R wrote:
> > > -----Original Message-----
> > > From: Sworo, George D <george.d.sworo@intel.com>
> > > Sent: Friday, June 10, 2022 9:02 AM
> > > To: Zhang, Rui <rui.zhang@intel.com>;
> > > srinivas.pandruvada@linux.intel.com;
> > > rafael@kernel.org
> > > Cc: linux-pm@vger.kernel.org
> > > Subject: Re: [PATCH] powercap: intel_rapl: Add support for
> > > RAPTORLAKE_P
> > >
> > > On Fri, 2022-06-10 at 10:26 +0800, Zhang Rui wrote:
> > > > On Thu, 2022-06-09 at 20:55 +0200, Rafael J. Wysocki wrote:
> > > > > Rui, Srinivas, should I take this one?
> > > >
> > > > Sorry that I missed this one.
> > > >
> > > > George,
> > > >
> > > > Have this patch been tested yet?
> > > yes. This is tested on RPL SOC. Thanks
> > > > I have the same patch internally, it should work but I haven't
> > > > got
> > > > chance to test it yet.
> > > >
> > > > thanks,
> > > > rui
> > > > > On Wed, Jun 1, 2022 at 9:22 PM <george.d.sworo@intel.com>
> > > > > wrote:
> > > > > > From: George D Sworo <george.d.sworo@intel.com>
> > > > > >
> > > > > > Add RAPTORLAKE_P to the list of supported processor model in
> > > > > > the
> > > > > > Intel
> > > > > >
> > > > > > RAPL power capping driver.
> > > > > >
> > > > > > Signed-off-by: George D Sworo <george.d.sworo@intel.com>
> >
> > Hi George,
> > Thank you for this patch.
> > I have tested this on Raptor Lake system and it works.
> >
> > Tested-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>
> >
> > Thanks,
> > Sumeet.
> >
> Thanks Sumeet for confirming!
> @Rafael, let me know if you have further comments

I've applied the patch as 5.20 material with a couple of minor edits
in the changelog.

Thanks!


> > > > > > ---
> > > > > >  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 a9c99d9e8b42..21d624f9f5fb 100644
> > > > > > --- a/drivers/powercap/intel_rapl_common.c
> > > > > > +++ b/drivers/powercap/intel_rapl_common.c
> > > > > > @@ -1109,6 +1109,7 @@ static const struct x86_cpu_id
> > > > > > rapl_ids[]
> > > > > > __initconst = {
> > > > > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,         &rapl
> > > > > > _def
> > > > > > au
> > > > > > lts_core),
> > > > > >         X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,         &rapl
> > > > > > _def
> > > > > > au
> > > > > > lts_core),
> > > > > >         X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,          &rapl
> > > > > > _def
> > > > > > au
> > > > > > lts_core),
> > > > > > +       X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,        &rapl
> > > > > > _def
> > > > > > au
> > > > > > lts_core),
> > > > > >         X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,    &rapl
> > > > > > _def
> > > > > > au
> > > > > > lts_spr_server),
> > > > > >         X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,           &rapl
> > > > > > _def
> > > > > > au
> > > > > > lts_core),
> > > > > >
> > > > > > --
> > > > > > 2.17.1
> > > > > >

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

end of thread, other threads:[~2022-07-05 19:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01 19:22 [PATCH] powercap: intel_rapl: Add support for RAPTORLAKE_P george.d.sworo
2022-06-09 18:55 ` Rafael J. Wysocki
2022-06-09 21:02   ` srinivas pandruvada
2022-06-09 21:47     ` Sworo, George D
2022-06-09 22:10       ` srinivas pandruvada
2022-06-10  2:26   ` Zhang Rui
2022-06-10  2:32     ` Zhang Rui
2022-06-10  3:31     ` Sworo, George D
2022-06-21 14:49       ` Pawnikar, Sumeet R
2022-06-21 19:22         ` Sworo, George D
2022-07-05 19:01           ` Rafael J. Wysocki

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.