diff mbox

powercap/intel_rapl: Add support for Ivy Bridge server

Message ID 1466667204-26340-1-git-send-email-xiaolong.wang@linux.intel.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Xiaolong Wang June 23, 2016, 7:33 a.m. UTC
It's confirmed that RAPL works as expected on Ivy Bridge servers.
Tested against processor: Intel(R) Xeon(R) CPU E5-2697 v2 @2.70GHz

Signed-off-by: Xiaolong Wang <xiaolong.wang@linux.intel.com>
---
 drivers/powercap/intel_rapl.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jacob Pan June 23, 2016, 1:34 p.m. UTC | #1
On Thu, 23 Jun 2016 15:33:24 +0800
Xiaolong Wang <xiaolong.wang@linux.intel.com> wrote:

> It's confirmed that RAPL works as expected on Ivy Bridge servers.
> Tested against processor: Intel(R) Xeon(R) CPU E5-2697 v2 @2.70GHz
> 
> Signed-off-by: Xiaolong Wang <xiaolong.wang@linux.intel.com>
looks good to me but please always send to lkml as well.
> ---
>  drivers/powercap/intel_rapl.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/powercap/intel_rapl.c
> b/drivers/powercap/intel_rapl.c index 06d21e6..fbab29d 100644
> --- a/drivers/powercap/intel_rapl.c
> +++ b/drivers/powercap/intel_rapl.c
> @@ -1134,6 +1134,7 @@ static const struct x86_cpu_id rapl_ids[]
> __initconst = { RAPL_CPU(INTEL_FAM6_SANDYBRIDGE_X,
> rapl_defaults_core), 
>  	RAPL_CPU(INTEL_FAM6_IVYBRIDGE,
> rapl_defaults_core),
> +	RAPL_CPU(INTEL_FAM6_IVYBRIDGE_X,	rapl_defaults_core),
>  
>  	RAPL_CPU(INTEL_FAM6_HASWELL_CORE,	rapl_defaults_core),
>  	RAPL_CPU(INTEL_FAM6_HASWELL_ULT,	rapl_defaults_core),

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Rafael J. Wysocki July 4, 2016, 1:04 p.m. UTC | #2
On Thursday, June 23, 2016 06:34:35 AM Jacob Pan wrote:
> On Thu, 23 Jun 2016 15:33:24 +0800
> Xiaolong Wang <xiaolong.wang@linux.intel.com> wrote:
> 
> > It's confirmed that RAPL works as expected on Ivy Bridge servers.
> > Tested against processor: Intel(R) Xeon(R) CPU E5-2697 v2 @2.70GHz
> > 
> > Signed-off-by: Xiaolong Wang <xiaolong.wang@linux.intel.com>
> looks good to me but please always send to lkml as well.

Patch applied, thanks!

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c
index 06d21e6..fbab29d 100644
--- a/drivers/powercap/intel_rapl.c
+++ b/drivers/powercap/intel_rapl.c
@@ -1134,6 +1134,7 @@  static const struct x86_cpu_id rapl_ids[] __initconst = {
 	RAPL_CPU(INTEL_FAM6_SANDYBRIDGE_X,	rapl_defaults_core),
 
 	RAPL_CPU(INTEL_FAM6_IVYBRIDGE,		rapl_defaults_core),
+	RAPL_CPU(INTEL_FAM6_IVYBRIDGE_X,	rapl_defaults_core),
 
 	RAPL_CPU(INTEL_FAM6_HASWELL_CORE,	rapl_defaults_core),
 	RAPL_CPU(INTEL_FAM6_HASWELL_ULT,	rapl_defaults_core),