All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]  x86: Removing unnecessary check in detect_ht
       [not found]       ` <1F668163772FA946975B9466A9DFF729B5E5@ORSMSX101.amr.corp.intel.com>
@ 2011-05-18 21:01         ` Rao, Nikhil
  2011-05-18 21:07           ` Ingo Molnar
  0 siblings, 1 reply; 10+ messages in thread
From: Rao, Nikhil @ 2011-05-18 21:01 UTC (permalink / raw)
  To: tglx, mingo, hpa; +Cc: x86, Siddha, Suresh B, linux-kernel, Rao, Nikhil

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1287 bytes --]

This patch removes a check that prevents correct CPU topology setup
when cpuid extensions for topology enumeration are not supported and
the number of processors reported to the OS is smaller than 
smp_num_siblings

Signed-off-by: Nikhil P Rao <nikhil.rao@intel.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
CC: <stable@kernel.org>
---
 arch/x86/kernel/cpu/common.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index e2ced007..6547084 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -458,13 +458,6 @@ void __cpuinit detect_ht(struct cpuinfo_x86 *c)
        if (smp_num_siblings <= 1)
                goto out;
 
-       if (smp_num_siblings > nr_cpu_ids) {
-               pr_warning("CPU: Unsupported number of siblings %d",
-                          smp_num_siblings);
-               smp_num_siblings = 1;
-               return;
-       }
-
        index_msb = get_count_order(smp_num_siblings);
        c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, index_msb);
 
-- 
1.7.4.2
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

* Re: [PATCH]  x86: Removing unnecessary check in detect_ht
  2011-05-18 21:01         ` [PATCH] x86: Removing unnecessary check in detect_ht Rao, Nikhil
@ 2011-05-18 21:07           ` Ingo Molnar
  2011-05-18 21:13             ` Rao, Nikhil
  0 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2011-05-18 21:07 UTC (permalink / raw)
  To: Rao, Nikhil; +Cc: tglx, mingo, hpa, x86, Siddha, Suresh B, linux-kernel


* Rao, Nikhil <nikhil.rao@intel.com> wrote:

> This patch removes a check that prevents correct CPU topology setup
> when cpuid extensions for topology enumeration are not supported and
> the number of processors reported to the OS is smaller than 
> smp_num_siblings

What bad effect was observed, exactly? An annoying warning in the bootlog and 
incorrect scheduler domain setup (SMP instead of SMT) - or something else as 
well?

Thanks,

	Ingo

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

* RE: [PATCH]  x86: Removing unnecessary check in detect_ht
  2011-05-18 21:07           ` Ingo Molnar
@ 2011-05-18 21:13             ` Rao, Nikhil
  2011-05-18 21:23               ` Ingo Molnar
  0 siblings, 1 reply; 10+ messages in thread
From: Rao, Nikhil @ 2011-05-18 21:13 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: tglx, mingo, hpa, x86, Siddha, Suresh B, linux-kernel

Nothing apart from what you mention - bootlog message and SMP instead of SMT.

Nikhil

> -----Original Message-----
> From: Ingo Molnar [mailto:mingo@elte.hu]
> Sent: Wednesday, May 18, 2011 2:08 PM
> To: Rao, Nikhil
> Cc: tglx@linutronix.de; mingo@redhat.com; hpa@zytor.com;
> x86@kernel.org; Siddha, Suresh B; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH] x86: Removing unnecessary check in detect_ht
> 
> 
> * Rao, Nikhil <nikhil.rao@intel.com> wrote:
> 
> > This patch removes a check that prevents correct CPU topology setup
> > when cpuid extensions for topology enumeration are not supported and
> > the number of processors reported to the OS is smaller than
> > smp_num_siblings
> 
> What bad effect was observed, exactly? An annoying warning in the
> bootlog and
> incorrect scheduler domain setup (SMP instead of SMT) - or something
> else as
> well?
> 
> Thanks,
> 
> 	Ingo

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

* Re: [PATCH]  x86: Removing unnecessary check in detect_ht
  2011-05-18 21:13             ` Rao, Nikhil
@ 2011-05-18 21:23               ` Ingo Molnar
  2011-05-19  2:40                 ` Rao, Nikhil
  0 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2011-05-18 21:23 UTC (permalink / raw)
  To: Rao, Nikhil; +Cc: tglx, mingo, hpa, x86, Siddha, Suresh B, linux-kernel


* Rao, Nikhil <nikhil.rao@intel.com> wrote:

> Nothing apart from what you mention - bootlog message and SMP instead of SMT.

Mind putting this information into the changelog and repost the patch? It's 
arguably the kind of practical information that most readers of changelogs are 
interested in.

Thanks,

	Ingo

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

* RE: [PATCH]  x86: Removing unnecessary check in detect_ht
  2011-05-18 21:23               ` Ingo Molnar
@ 2011-05-19  2:40                 ` Rao, Nikhil
  2011-05-19 18:09                   ` Ingo Molnar
  0 siblings, 1 reply; 10+ messages in thread
From: Rao, Nikhil @ 2011-05-19  2:40 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: tglx, mingo, hpa, x86, Siddha, Suresh B, linux-kernel

Hi Ingo,

Reposting as per your feedback.

Thanks,
Nikhil

---
This patch removes a check that causes incorrect scheduler domain
setup (SMP instead of SMT) and bootlog warning messages when cpuid
extensions for topology enumeration are not supported and the number
of processors reported to the OS is smaller than smp_num_siblings

Signed-off-by: Nikhil P Rao <nikhil.rao@intel.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
---
 arch/x86/kernel/cpu/common.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index e2ced007..6547084 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -458,13 +458,6 @@ void __cpuinit detect_ht(struct cpuinfo_x86 *c)
        if (smp_num_siblings <= 1)
                goto out;
 
-       if (smp_num_siblings > nr_cpu_ids) {
-               pr_warning("CPU: Unsupported number of siblings %d",
-                          smp_num_siblings);
-               smp_num_siblings = 1;
-               return;
-       }
-
        index_msb = get_count_order(smp_num_siblings);
        c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, index_msb);
 
-- 
1.7.4.2

> -----Original Message-----
> From: Ingo Molnar [mailto:mingo@elte.hu]
> Sent: Wednesday, May 18, 2011 2:24 PM
> To: Rao, Nikhil
> Cc: tglx@linutronix.de; mingo@redhat.com; hpa@zytor.com;
> x86@kernel.org; Siddha, Suresh B; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH] x86: Removing unnecessary check in detect_ht
> 
> 
> * Rao, Nikhil <nikhil.rao@intel.com> wrote:
> 
> > Nothing apart from what you mention - bootlog message and SMP instead
> of SMT.
> 
> Mind putting this information into the changelog and repost the patch?
> It's
> arguably the kind of practical information that most readers of
> changelogs are
> interested in.
> 
> Thanks,
> 
> 	Ingo

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

* Re: [PATCH]  x86: Removing unnecessary check in detect_ht
  2011-05-19  2:40                 ` Rao, Nikhil
@ 2011-05-19 18:09                   ` Ingo Molnar
  2011-05-19 23:03                     ` Rao, Nikhil
  0 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2011-05-19 18:09 UTC (permalink / raw)
  To: Rao, Nikhil; +Cc: tglx, mingo, hpa, x86, Siddha, Suresh B, linux-kernel

* Rao, Nikhil <nikhil.rao@intel.com> wrote:

> Hi Ingo,
> 
> Reposting as per your feedback.

Please send a patch that applies to the x86 tree cleanly:

  http://people.redhat.com/mingo/tip.git/README

Thanks,

	Ingo

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

* RE: [PATCH]  x86: Removing unnecessary check in detect_ht
  2011-05-19 18:09                   ` Ingo Molnar
@ 2011-05-19 23:03                     ` Rao, Nikhil
  2011-05-20 11:46                       ` Ingo Molnar
  0 siblings, 1 reply; 10+ messages in thread
From: Rao, Nikhil @ 2011-05-19 23:03 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: tglx, mingo, hpa, x86, Siddha, Suresh B, linux-kernel

This patch removes a check that causes incorrect scheduler domain setup (SMP instead of SMT) and bootlog warning messages when cpuid extensions for topology enumeration are not supported and the number of processors reported to the OS is smaller than smp_num_siblings

Signed-off-by: Nikhil P Rao <nikhil.rao@intel.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
---
 arch/x86/kernel/cpu/common.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index cbc70a2..d2bcd54 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -477,13 +477,6 @@ void __cpuinit detect_ht(struct cpuinfo_x86 *c)
        if (smp_num_siblings <= 1)
                goto out;
 
-       if (smp_num_siblings > nr_cpu_ids) {
-               pr_warning("CPU: Unsupported number of siblings %d",
-                          smp_num_siblings);
-               smp_num_siblings = 1;
-               return;
-       }
-
        index_msb = get_count_order(smp_num_siblings);
        c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, index_msb);
 
--
1.7.4.2

> -----Original Message-----
> From: Ingo Molnar [mailto:mingo@elte.hu]
> Sent: Thursday, May 19, 2011 11:10 AM
> To: Rao, Nikhil
> Cc: tglx@linutronix.de; mingo@redhat.com; hpa@zytor.com;
> x86@kernel.org; Siddha, Suresh B; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH] x86: Removing unnecessary check in detect_ht
> 
> * Rao, Nikhil <nikhil.rao@intel.com> wrote:
> 
> > Hi Ingo,
> >
> > Reposting as per your feedback.
> 
> Please send a patch that applies to the x86 tree cleanly:
> 
>   http://people.redhat.com/mingo/tip.git/README
> 
> Thanks,
> 
> 	Ingo

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

* Re: [PATCH]  x86: Removing unnecessary check in detect_ht
  2011-05-19 23:03                     ` Rao, Nikhil
@ 2011-05-20 11:46                       ` Ingo Molnar
  2011-05-25 17:18                         ` Nikhil P Rao
  0 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2011-05-20 11:46 UTC (permalink / raw)
  To: Rao, Nikhil; +Cc: tglx, mingo, hpa, x86, Siddha, Suresh B, linux-kernel


* Rao, Nikhil <nikhil.rao@intel.com> wrote:

> This patch removes a check that causes incorrect scheduler domain setup (SMP instead of SMT) and bootlog warning messages when cpuid extensions for topology enumeration are not supported and the number of processors reported to the OS is smaller than smp_num_siblings
> 
> Signed-off-by: Nikhil P Rao <nikhil.rao@intel.com>
> Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
> ---
>  arch/x86/kernel/cpu/common.c |    7 -------
>  1 files changed, 0 insertions(+), 7 deletions(-)
> 
> diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index cbc70a2..d2bcd54 100644
> --- a/arch/x86/kernel/cpu/common.c
> +++ b/arch/x86/kernel/cpu/common.c
> @@ -477,13 +477,6 @@ void __cpuinit detect_ht(struct cpuinfo_x86 *c)
>         if (smp_num_siblings <= 1)
>                 goto out;
>  
> -       if (smp_num_siblings > nr_cpu_ids) {
> -               pr_warning("CPU: Unsupported number of siblings %d",
> -                          smp_num_siblings);
> -               smp_num_siblings = 1;
> -               return;
> -       }
> -

Your patch does not apply because it's whitespace damaged (all tabs got 
converted to spaces). Please see Documentation/email-clients.txt.

Thanks,

	Ingo

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

* Re: [PATCH]  x86: Removing unnecessary check in detect_ht
  2011-05-20 11:46                       ` Ingo Molnar
@ 2011-05-25 17:18                         ` Nikhil P Rao
  2011-05-25 21:34                           ` [tip:x86/urgent] x86: Remove unnecessary check in detect_ht() tip-bot for Nikhil P Rao
  0 siblings, 1 reply; 10+ messages in thread
From: Nikhil P Rao @ 2011-05-25 17:18 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: tglx, mingo, hpa, x86, Siddha, Suresh B, linux-kernel

This patch removes a check that causes incorrect scheduler domain
setup (SMP instead of SMT) and bootlog warning messages when cpuid
extensions for topology enumeration are not supported and the number
of processors reported to the OS is smaller than smp_num_siblings

Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Nikhil P Rao <nikhil.rao@intel.com>
---
 arch/x86/kernel/cpu/common.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index cbc70a2..d2bcd54 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -477,13 +477,6 @@ void __cpuinit detect_ht(struct cpuinfo_x86 *c)
 	if (smp_num_siblings <= 1)
 		goto out;
 
-	if (smp_num_siblings > nr_cpu_ids) {
-		pr_warning("CPU: Unsupported number of siblings %d",
-			   smp_num_siblings);
-		smp_num_siblings = 1;
-		return;
-	}
-
 	index_msb = get_count_order(smp_num_siblings);
 	c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, index_msb);
 
-- 
1.7.4.4


On Fri, 2011-05-20 at 13:46 +0200, Ingo Molnar wrote:

> Your patch does not apply because it's whitespace damaged (all tabs got 
> converted to spaces). Please see Documentation/email-clients.txt.
> 
> Thanks,
> 
> 	Ingo



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

* [tip:x86/urgent] x86: Remove unnecessary check in detect_ht()
  2011-05-25 17:18                         ` Nikhil P Rao
@ 2011-05-25 21:34                           ` tip-bot for Nikhil P Rao
  0 siblings, 0 replies; 10+ messages in thread
From: tip-bot for Nikhil P Rao @ 2011-05-25 21:34 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, nikhil.rao, suresh.b.siddha, tglx, mingo

Commit-ID:  8b27f2ff7a24f0735c96055e676872f05398d99b
Gitweb:     http://git.kernel.org/tip/8b27f2ff7a24f0735c96055e676872f05398d99b
Author:     Nikhil P Rao <nikhil.rao@intel.com>
AuthorDate: Wed, 25 May 2011 10:18:41 -0700
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 25 May 2011 23:01:08 +0200

x86: Remove unnecessary check in detect_ht()

This patch removes a check that causes incorrect scheduler
domain setup (SMP instead of SMT) and bootlog warning messages
when cpuid extensions for topology enumeration are not supported
and the number of processors reported to the OS is smaller than
smp_num_siblings.

Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Nikhil P Rao <nikhil.rao@intel.com>
Link: http://lkml.kernel.org/r/1306343921.19325.1.camel@fedora13
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/kernel/cpu/common.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index c8b4162..53f02f5 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -477,13 +477,6 @@ void __cpuinit detect_ht(struct cpuinfo_x86 *c)
 	if (smp_num_siblings <= 1)
 		goto out;
 
-	if (smp_num_siblings > nr_cpu_ids) {
-		pr_warning("CPU: Unsupported number of siblings %d",
-			   smp_num_siblings);
-		smp_num_siblings = 1;
-		return;
-	}
-
 	index_msb = get_count_order(smp_num_siblings);
 	c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, index_msb);
 

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

end of thread, other threads:[~2011-05-25 21:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <43F901BD926A4E43B106BF17856F0755018E1CF482@orsmsx508.amr.corp.intel.com>
     [not found] ` <4FF5AC937153B0459463C1A88EB478F2010DFD3D3F@orsmsx505.amr.corp.intel.com>
     [not found]   ` <43F901BD926A4E43B106BF17856F0755018E1CF69D@orsmsx508.amr.corp.intel.com>
     [not found]     ` <1305048201.2736.17.camel@sbsiddha-MOBL3.sc.intel.com>
     [not found]       ` <1F668163772FA946975B9466A9DFF729B5E5@ORSMSX101.amr.corp.intel.com>
2011-05-18 21:01         ` [PATCH] x86: Removing unnecessary check in detect_ht Rao, Nikhil
2011-05-18 21:07           ` Ingo Molnar
2011-05-18 21:13             ` Rao, Nikhil
2011-05-18 21:23               ` Ingo Molnar
2011-05-19  2:40                 ` Rao, Nikhil
2011-05-19 18:09                   ` Ingo Molnar
2011-05-19 23:03                     ` Rao, Nikhil
2011-05-20 11:46                       ` Ingo Molnar
2011-05-25 17:18                         ` Nikhil P Rao
2011-05-25 21:34                           ` [tip:x86/urgent] x86: Remove unnecessary check in detect_ht() tip-bot for Nikhil P Rao

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.