linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID's
@ 2013-05-17 14:38 dirk.brandewie
  2013-05-17 15:47 ` Linus Torvalds
  2013-05-17 16:10 ` [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID dirk.brandewie
  0 siblings, 2 replies; 6+ messages in thread
From: dirk.brandewie @ 2013-05-17 14:38 UTC (permalink / raw)
  To: linux-pm, rjw, linux-kernel, cpufreq; +Cc: Dirk Brandewie, torvalds

From: Dirk Brandewie <dirk.j.brandewie@intel.com>

Add CPU ID's for supported Sandybridge and Ivybrigde processors.

Cc: torvalds@linux-foundation.org
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
---
 drivers/cpufreq/intel_pstate.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 1813311..85b1fd8 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -520,7 +520,9 @@ static void intel_pstate_timer_func(unsigned long __data)
 
 static const struct x86_cpu_id intel_pstate_cpu_ids[] = {
 	ICPU(0x2a, default_policy),
+	ICPU(0x25, default_policy),
 	ICPU(0x2d, default_policy),
+	ICPU(0x3a, default_policy),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);
-- 
1.7.7.6

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

* Re: [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID's
  2013-05-17 14:38 [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID's dirk.brandewie
@ 2013-05-17 15:47 ` Linus Torvalds
  2013-05-17 16:08   ` Dirk Brandewie
  2013-05-17 16:10 ` [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID dirk.brandewie
  1 sibling, 1 reply; 6+ messages in thread
From: Linus Torvalds @ 2013-05-17 15:47 UTC (permalink / raw)
  To: dirk.brandewie
  Cc: linux-pm@vger.kernel.org, Rafael J. Wysocki,
	Linux Kernel Mailing List, cpufreq, Dirk Brandewie

On Fri, May 17, 2013 at 7:38 AM,  <dirk.brandewie@gmail.com> wrote:
>
> Add CPU ID's for supported Sandybridge and Ivybrigde processors.

Hmm. Isn't 0x25 "Westmere"?

Are the model numbers listed in some doc? I hate this "add random
numbers (not even in order) without any logic to it".

Here's the list we have of family six numbers from
arch/x86/kernel/cpu/intel.c (used for tlb-flushall crap):

        case 0x60f: /* original 65 nm celeron/pentium/core2/xeon,
"Merom"/"Conroe" */
        case 0x616: /* single-core 65 nm celeron/core2solo
"Merom-L"/"Conroe-L" */
        case 0x617: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
        case 0x61d: /* six-core 45 nm xeon "Dunnington" */
        case 0x61a: /* 45 nm nehalem, "Bloomfield" */
        case 0x61e: /* 45 nm nehalem, "Lynnfield" */
        case 0x625: /* 32 nm nehalem, "Clarkdale" */
        case 0x62c: /* 32 nm nehalem, "Gulftown" */
        case 0x62e: /* 45 nm nehalem-ex, "Beckton" */
        case 0x62f: /* 32 nm Xeon E7 */
        case 0x62a: /* SandyBridge */
        case 0x62d: /* SandyBridge, "Romely-EP" */
        case 0x63a: /* Ivybridge */

so it has 0x25 as "Clarkdale" (what's Westmere vs Clarkdale? - Intel
codenames always seem like a f*cking exercise in trying to confuse
you). But not SB in any case.

So we used to have the two SB cases listed (2a/2d). Your patch adds
Clarkdale/Ivybridge (but not in the right order). What about the other
ones?

               Linus

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

* Re: [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID's
  2013-05-17 15:47 ` Linus Torvalds
@ 2013-05-17 16:08   ` Dirk Brandewie
  0 siblings, 0 replies; 6+ messages in thread
From: Dirk Brandewie @ 2013-05-17 16:08 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: dirk.brandewie, linux-pm@vger.kernel.org, Rafael J. Wysocki,
	Linux Kernel Mailing List, cpufreq, Dirk Brandewie

On 05/17/2013 08:47 AM, Linus Torvalds wrote:
> On Fri, May 17, 2013 at 7:38 AM,  <dirk.brandewie@gmail.com> wrote:
>>
>> Add CPU ID's for supported Sandybridge and Ivybrigde processors.
>
> Hmm. Isn't 0x25 "Westmere"?
>

I will update the patch to only include Ivy bridge.  This was a brain fade on my 
part.

> Are the model numbers listed in some doc? I hate this "add random
> numbers (not even in order) without any logic to it".
>

The numbers to marketing name decoding are in system programming manual.
I don't know of a model number to project name list.


> Here's the list we have of family six numbers from
> arch/x86/kernel/cpu/intel.c (used for tlb-flushall crap):
>
>          case 0x60f: /* original 65 nm celeron/pentium/core2/xeon,
> "Merom"/"Conroe" */
>          case 0x616: /* single-core 65 nm celeron/core2solo
> "Merom-L"/"Conroe-L" */
>          case 0x617: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
>          case 0x61d: /* six-core 45 nm xeon "Dunnington" */
>          case 0x61a: /* 45 nm nehalem, "Bloomfield" */
>          case 0x61e: /* 45 nm nehalem, "Lynnfield" */
>          case 0x625: /* 32 nm nehalem, "Clarkdale" */
>          case 0x62c: /* 32 nm nehalem, "Gulftown" */
>          case 0x62e: /* 45 nm nehalem-ex, "Beckton" */
>          case 0x62f: /* 32 nm Xeon E7 */
>          case 0x62a: /* SandyBridge */
>          case 0x62d: /* SandyBridge, "Romely-EP" */
>          case 0x63a: /* Ivybridge */
>
> so it has 0x25 as "Clarkdale" (what's Westmere vs Clarkdale? - Intel
> codenames always seem like a f*cking exercise in trying to confuse
> you). But not SB in any case.
>
> So we used to have the two SB cases listed (2a/2d). Your patch adds
> Clarkdale/Ivybridge (but not in the right order). What about the other
> ones?
>
intel_pstate is intended only for SandyBridge+ CPU's

>                 Linus
>


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

* [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID
  2013-05-17 14:38 [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID's dirk.brandewie
  2013-05-17 15:47 ` Linus Torvalds
@ 2013-05-17 16:10 ` dirk.brandewie
  2013-05-18 11:45   ` Viresh Kumar
  2013-05-18 14:09   ` Theodore Ts'o
  1 sibling, 2 replies; 6+ messages in thread
From: dirk.brandewie @ 2013-05-17 16:10 UTC (permalink / raw)
  To: linux-pm, rjw, linux-kernel, cpufreq; +Cc: Dirk Brandewie, torvalds

From: Dirk Brandewie <dirk.j.brandewie@intel.com>

Add CPU ID for Ivybrigde processor.

Cc: torvalds@linux-foundation.org
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
---
 drivers/cpufreq/intel_pstate.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 1813311..d1e36fe 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -521,6 +521,7 @@ static void intel_pstate_timer_func(unsigned long __data)
 static const struct x86_cpu_id intel_pstate_cpu_ids[] = {
 	ICPU(0x2a, default_policy),
 	ICPU(0x2d, default_policy),
+	ICPU(0x3a, default_policy),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);
-- 
1.7.7.6


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

* Re: [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID
  2013-05-17 16:10 ` [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID dirk.brandewie
@ 2013-05-18 11:45   ` Viresh Kumar
  2013-05-18 14:09   ` Theodore Ts'o
  1 sibling, 0 replies; 6+ messages in thread
From: Viresh Kumar @ 2013-05-18 11:45 UTC (permalink / raw)
  To: dirk.brandewie
  Cc: linux-pm, rjw, linux-kernel, cpufreq, Dirk Brandewie, torvalds

On Fri, May 17, 2013 at 9:40 PM,  <dirk.brandewie@gmail.com> wrote:
> From: Dirk Brandewie <dirk.j.brandewie@intel.com>
>
> Add CPU ID for Ivybrigde processor.
>
> Cc: torvalds@linux-foundation.org
> Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
> ---
>  drivers/cpufreq/intel_pstate.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Add my Acked-by: Viresh Kumar <viresh.kumar@linaro.org>, even if
next version is required with some more machine no.s

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

* Re: [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID
  2013-05-17 16:10 ` [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID dirk.brandewie
  2013-05-18 11:45   ` Viresh Kumar
@ 2013-05-18 14:09   ` Theodore Ts'o
  1 sibling, 0 replies; 6+ messages in thread
From: Theodore Ts'o @ 2013-05-18 14:09 UTC (permalink / raw)
  To: dirk.brandewie
  Cc: linux-pm, rjw, linux-kernel, cpufreq, Dirk Brandewie, torvalds

On Fri, May 17, 2013 at 09:10:24AM -0700, dirk.brandewie@gmail.com wrote:
> From: Dirk Brandewie <dirk.j.brandewie@intel.com>
> 
> Add CPU ID for Ivybrigde processor.
> 
> Cc: torvalds@linux-foundation.org
> Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>

BTW, there are some good comments about this by Arjan in this G+ post

https://plus.google.com/117091380454742934025/posts/2vEekAsG2QT

I've tested a patch identical to this on my Thinkpad T430s and it
seems to work quite well for me.

				- Ted

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

end of thread, other threads:[~2013-05-18 14:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-17 14:38 [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID's dirk.brandewie
2013-05-17 15:47 ` Linus Torvalds
2013-05-17 16:08   ` Dirk Brandewie
2013-05-17 16:10 ` [PATCH] cpufreq/intel_pstate: Add additional supported CPU ID dirk.brandewie
2013-05-18 11:45   ` Viresh Kumar
2013-05-18 14:09   ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).