diff mbox

powercap/intel_rapl: Add support for Kabylake

Message ID 1461345439-21215-1-git-send-email-jacob.jun.pan@linux.intel.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Jacob Pan April 22, 2016, 5:17 p.m. UTC
Kabylake is similar to Skylake in terms of RAPL.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
---
 drivers/powercap/intel_rapl.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Rafael J. Wysocki April 25, 2016, 2:20 p.m. UTC | #1
On Fri, Apr 22, 2016 at 7:17 PM, Jacob Pan
<jacob.jun.pan@linux.intel.com> wrote:
> Kabylake is similar to Skylake in terms of RAPL.
>
> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>

How urgent is this?

Can we live without it in 4.6 in particular?

> ---
>  drivers/powercap/intel_rapl.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c
> index 8fad0a7..470bb62 100644
> --- a/drivers/powercap/intel_rapl.c
> +++ b/drivers/powercap/intel_rapl.c
> @@ -1101,6 +1101,8 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
>         RAPL_CPU(0X5C, rapl_defaults_core),/* Broxton */
>         RAPL_CPU(0x5E, rapl_defaults_core),/* Skylake-H/S */
>         RAPL_CPU(0x57, rapl_defaults_hsw_server),/* Knights Landing */
> +       RAPL_CPU(0x8E, rapl_defaults_core),/* Kabylake */
> +       RAPL_CPU(0x9E, rapl_defaults_core),/* Kabylake */
>         {}
>  };
>  MODULE_DEVICE_TABLE(x86cpu, rapl_ids);
> --
> 1.9.1
>
> --
> 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
--
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
Jacob Pan April 25, 2016, 3:36 p.m. UTC | #2
On Mon, 25 Apr 2016 16:20:17 +0200
"Rafael J. Wysocki" <rafael@kernel.org> wrote:

> How urgent is this?
> 
> Can we live without it in 4.6 in particular?
not urgent.
--
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 April 27, 2016, 9:34 p.m. UTC | #3
On Monday, April 25, 2016 08:36:47 AM Jacob Pan wrote:
> On Mon, 25 Apr 2016 16:20:17 +0200
> "Rafael J. Wysocki" <rafael@kernel.org> wrote:
> 
> > How urgent is this?
> > 
> > Can we live without it in 4.6 in particular?
> not urgent.

OK

Queued up for 4.7, 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 8fad0a7..470bb62 100644
--- a/drivers/powercap/intel_rapl.c
+++ b/drivers/powercap/intel_rapl.c
@@ -1101,6 +1101,8 @@  static const struct x86_cpu_id rapl_ids[] __initconst = {
 	RAPL_CPU(0X5C, rapl_defaults_core),/* Broxton */
 	RAPL_CPU(0x5E, rapl_defaults_core),/* Skylake-H/S */
 	RAPL_CPU(0x57, rapl_defaults_hsw_server),/* Knights Landing */
+	RAPL_CPU(0x8E, rapl_defaults_core),/* Kabylake */
+	RAPL_CPU(0x9E, rapl_defaults_core),/* Kabylake */
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, rapl_ids);