From patchwork Wed Jul 1 13:37:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 6703661 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E61E9C05AC for ; Wed, 1 Jul 2015 13:41:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 912A0206D6 for ; Wed, 1 Jul 2015 13:41:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AEF4620648 for ; Wed, 1 Jul 2015 13:41:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZAIDB-0008RD-6h; Wed, 01 Jul 2015 13:38:01 +0000 Received: from mail-pd0-f169.google.com ([209.85.192.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZAID8-0008KK-AP for linux-arm-kernel@lists.infradead.org; Wed, 01 Jul 2015 13:37:59 +0000 Received: by pdcu2 with SMTP id u2so26506638pdc.3 for ; Wed, 01 Jul 2015 06:37:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XLniNkNQHjRfxwCava3eHApe1asquA6euNBPru810vk=; b=KrKdIygxuNxoLqg8ci5Tk7kK3b7K/XWXnQC5Z28+1okVnDQc5rAppw9//JROOt0bb+ wN+LD+5TkTCSzkS37QsHY/AIKHEKpVG/yHRgRjgmdZICj0pIFN/LwoR4AJBE4GKUvZbD aCO0StFHoBRE4xBjioFkHEJl13erQZtakwnBCGnh218egsKrsE+c/56Mowa9vyZ/9EdC aUzK6C+bKsuE1v6buhA4b8wQT3Anrqf7p3Icff0fL8+/FuYINnykJCEVrsXLvcNKZ47u KANh40eepcK3zaXIAfgv7PIOFNgQjixNpdmF/Ii+avmG+FCdRFC19LyWCAjKuIOj4uPf SWFg== X-Gm-Message-State: ALoCoQnUU6rnQVEbndY+osDq3Q2e1q3rp6S09AKVcuBF8bHxuh0tLG2o3sv14/f94jkvfUeSMAk3 X-Received: by 10.68.169.34 with SMTP id ab2mr54540850pbc.120.1435757857153; Wed, 01 Jul 2015 06:37:37 -0700 (PDT) Received: from localhost ([180.150.153.56]) by mx.google.com with ESMTPSA id a10sm2377584pdn.57.2015.07.01.06.37.35 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 01 Jul 2015 06:37:35 -0700 (PDT) From: Hanjun Guo To: Will Deacon , Catalin Marinas , Lorenzo Pieralisi Subject: [PATCH] ARM64 / SMP: Switch pr_err() to pr_debug() for disabled GICC entry Date: Wed, 1 Jul 2015 21:37:23 +0800 Message-Id: <1435757843-13236-1-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150701_063758_388077_B782DB3E X-CRM114-Status: GOOD ( 11.79 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Hanjun Guo , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is normal that firmware presents GICC entry or entries (processors) with disabled flag in ACPI MADT, taking a system of 16 cpus for example, ACPI firmware may present 8 enabled first with another 8 cpus disabled in MADT, the disabled cpus can be hot-added later. Firmware may also present more cpus than the hardware actually has, but disabled the unused ones, and easily enable it when the hardware has such cpus to make the firmware code scalable. So that's not an error for disabled cpus in MADT, we can switch pr_err() to pr_debug() instead. Signed-off-by: Hanjun Guo Reviewed-by: Al Stone --- arch/arm64/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 4b2121b..5caf04a 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -402,7 +402,7 @@ acpi_map_gic_cpu_interface(struct acpi_madt_generic_interrupt *processor) } if (!(processor->flags & ACPI_MADT_ENABLED)) { - pr_err("skipping disabled CPU entry with 0x%llx MPIDR\n", hwid); + pr_debug("skipping disabled CPU entry with 0x%llx MPIDR\n", hwid); return; }