From patchwork Fri Oct 7 13:55:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 9366147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 353936075E for ; Fri, 7 Oct 2016 13:58:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25CB12961A for ; Fri, 7 Oct 2016 13:58:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19B4D2961C; Fri, 7 Oct 2016 13:58:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CDC62961A for ; Fri, 7 Oct 2016 13:58:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753525AbcJGN6c (ORCPT ); Fri, 7 Oct 2016 09:58:32 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:44258 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753765AbcJGN6c (ORCPT ); Fri, 7 Oct 2016 09:58:32 -0400 Received: from localhost ([127.0.0.1]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1bsVe6-0002zA-NC; Fri, 07 Oct 2016 15:57:07 +0200 Date: Fri, 7 Oct 2016 15:55:13 +0200 (CEST) From: Thomas Gleixner To: Markus Trippelsdorf cc: One Thousand Gnomes , Gu Zheng , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Dou Liyang Subject: Re: Bogus "APIC: NR_CPUS/possible_cpus limit of 4 reached" messages In-Reply-To: <20161007132634.GA20654@x4> Message-ID: References: <20161006112737.GA308@x4> <20161006124800.5a824dfc@lxorguk.ukuu.org.uk> <20161006115220.GB308@x4> <20161007132634.GA20654@x4> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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 --- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;