linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bogus "APIC: NR_CPUS/possible_cpus limit of 4 reached" messages
@ 2016-10-06 11:27 Markus Trippelsdorf
  2016-10-06 11:48 ` One Thousand Gnomes
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Trippelsdorf @ 2016-10-06 11:27 UTC (permalink / raw)
  To: Gu Zheng; +Cc: linux-acpi, linux-kernel

On current trunk I get during boot:

[    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 4/0x84 ignored.
[    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 5/0x85 ignored.

I don't think these messages make much sense on a 4-core machine.

-- 
Markus

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

* Re: Bogus "APIC: NR_CPUS/possible_cpus limit of 4 reached" messages
  2016-10-06 11:27 Bogus "APIC: NR_CPUS/possible_cpus limit of 4 reached" messages Markus Trippelsdorf
@ 2016-10-06 11:48 ` One Thousand Gnomes
  2016-10-06 11:52   ` Markus Trippelsdorf
  0 siblings, 1 reply; 6+ messages in thread
From: One Thousand Gnomes @ 2016-10-06 11:48 UTC (permalink / raw)
  To: Markus Trippelsdorf; +Cc: Gu Zheng, linux-acpi, linux-kernel

On Thu, 6 Oct 2016 13:27:37 +0200
Markus Trippelsdorf <markus@trippelsdorf.de> wrote:

> On current trunk I get during boot:
> 
> [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 4/0x84 ignored.
> [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 5/0x85 ignored.
> 
> I don't think these messages make much sense on a 4-core machine.
> 

Four cores with or without hyperthreading ?

Alan

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

* Re: Bogus "APIC: NR_CPUS/possible_cpus limit of 4 reached" messages
  2016-10-06 11:48 ` One Thousand Gnomes
@ 2016-10-06 11:52   ` Markus Trippelsdorf
  2016-10-07 13:26     ` Markus Trippelsdorf
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Trippelsdorf @ 2016-10-06 11:52 UTC (permalink / raw)
  To: One Thousand Gnomes; +Cc: Gu Zheng, linux-acpi, linux-kernel

On 2016.10.06 at 12:48 +0100, One Thousand Gnomes wrote:
> On Thu, 6 Oct 2016 13:27:37 +0200
> Markus Trippelsdorf <markus@trippelsdorf.de> wrote:
> 
> > On current trunk I get during boot:
> > 
> > [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 4/0x84 ignored.
> > [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 5/0x85 ignored.
> > 
> > I don't think these messages make much sense on a 4-core machine.
> > 
> 
> Four cores with or without hyperthreading ?

Without. This is a rather old AMD machine (AMD Phenom II X4 955).

-- 
Markus

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

* Re: Bogus "APIC: NR_CPUS/possible_cpus limit of 4 reached" messages
  2016-10-06 11:52   ` Markus Trippelsdorf
@ 2016-10-07 13:26     ` Markus Trippelsdorf
  2016-10-07 13:55       ` Thomas Gleixner
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Trippelsdorf @ 2016-10-07 13:26 UTC (permalink / raw)
  To: One Thousand Gnomes
  Cc: Gu Zheng, linux-acpi, linux-kernel, Dou Liyang, Thomas Gleixner

On 2016.10.06 at 13:52 +0200, Markus Trippelsdorf wrote:
> On 2016.10.06 at 12:48 +0100, One Thousand Gnomes wrote:
> > On Thu, 6 Oct 2016 13:27:37 +0200
> > Markus Trippelsdorf <markus@trippelsdorf.de> wrote:
> > 
> > > On current trunk I get during boot:
> > > 
> > > [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 4/0x84 ignored.
> > > [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 5/0x85 ignored.
> > > 
> > > I don't think these messages make much sense on a 4-core machine.
> > > 
> > 
> > Four cores with or without hyperthreading ?
> 
> Without. This is a rather old AMD machine (AMD Phenom II X4 955).

CCing more people.

-- 
Markus

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

* Re: Bogus "APIC: NR_CPUS/possible_cpus limit of 4 reached" messages
  2016-10-07 13:26     ` Markus Trippelsdorf
@ 2016-10-07 13:55       ` Thomas Gleixner
  2016-10-07 14:09         ` Markus Trippelsdorf
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Gleixner @ 2016-10-07 13:55 UTC (permalink / raw)
  To: Markus Trippelsdorf
  Cc: One Thousand Gnomes, Gu Zheng, linux-acpi, linux-kernel, Dou Liyang

On Fri, 7 Oct 2016, Markus Trippelsdorf wrote:
> On 2016.10.06 at 13:52 +0200, Markus Trippelsdorf wrote:
> > On 2016.10.06 at 12:48 +0100, One Thousand Gnomes wrote:
> > > On Thu, 6 Oct 2016 13:27:37 +0200
> > > Markus Trippelsdorf <markus@trippelsdorf.de> wrote:
> > > 
> > > > On current trunk I get during boot:
> > > > 
> > > > [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 4/0x84 ignored.
> > > > [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 5/0x85 ignored.
> > > > 
> > > > I don't think these messages make much sense on a 4-core machine.
> > > > 
> > > 
> > > Four cores with or without hyperthreading ?
> > 
> > Without. This is a rather old AMD machine (AMD Phenom II X4 955).

That's due to the recent cpuid -> nodeid changes. The patch below should
fix it.

Thanks,

	tglx

diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index f266b8a92a9e..88c657b057e2 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -2128,9 +2128,11 @@ int __generic_processor_info(int apicid, int version, bool enabled)
 	if (num_processors >= nr_cpu_ids) {
 		int thiscpu = max + disabled_cpus;
 
-		pr_warning(
-			"APIC: NR_CPUS/possible_cpus limit of %i reached."
-			"  Processor %d/0x%x ignored.\n", max, thiscpu, apicid);
+		if (enabled) {
+			pr_warning("APIC: NR_CPUS/possible_cpus limit of %i "
+				   "reached. Processor %d/0x%x ignored.\n",
+				   max, thiscpu, apicid);
+		}
 
 		disabled_cpus++;
 		return -EINVAL;

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

* Re: Bogus "APIC: NR_CPUS/possible_cpus limit of 4 reached" messages
  2016-10-07 13:55       ` Thomas Gleixner
@ 2016-10-07 14:09         ` Markus Trippelsdorf
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Trippelsdorf @ 2016-10-07 14:09 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: One Thousand Gnomes, Gu Zheng, linux-acpi, linux-kernel, Dou Liyang

On 2016.10.07 at 15:55 +0200, Thomas Gleixner wrote:
> On Fri, 7 Oct 2016, Markus Trippelsdorf wrote:
> > On 2016.10.06 at 13:52 +0200, Markus Trippelsdorf wrote:
> > > On 2016.10.06 at 12:48 +0100, One Thousand Gnomes wrote:
> > > > On Thu, 6 Oct 2016 13:27:37 +0200
> > > > Markus Trippelsdorf <markus@trippelsdorf.de> wrote:
> > > > 
> > > > > On current trunk I get during boot:
> > > > > 
> > > > > [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 4/0x84 ignored.
> > > > > [    0.000000] APIC: NR_CPUS/possible_cpus limit of 4 reached.  Processor 5/0x85 ignored.
> > > > > 
> > > > > I don't think these messages make much sense on a 4-core machine.
> > > > > 
> > > > 
> > > > Four cores with or without hyperthreading ?
> > > 
> > > Without. This is a rather old AMD machine (AMD Phenom II X4 955).
> 
> That's due to the recent cpuid -> nodeid changes. The patch below should
> fix it.

Indeed it does. Thanks for the quick fix.

-- 
Markus

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

end of thread, other threads:[~2016-10-07 14:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-06 11:27 Bogus "APIC: NR_CPUS/possible_cpus limit of 4 reached" messages Markus Trippelsdorf
2016-10-06 11:48 ` One Thousand Gnomes
2016-10-06 11:52   ` Markus Trippelsdorf
2016-10-07 13:26     ` Markus Trippelsdorf
2016-10-07 13:55       ` Thomas Gleixner
2016-10-07 14:09         ` Markus Trippelsdorf

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).