From patchwork Thu Jul 20 11:04:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 9854637 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 40DAB601C8 for ; Thu, 20 Jul 2017 11:06:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 255F2287A1 for ; Thu, 20 Jul 2017 11:06:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA49E287DB; Thu, 20 Jul 2017 11:06:29 +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 323B5287B9 for ; Thu, 20 Jul 2017 11:06:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936195AbdGTLEy (ORCPT ); Thu, 20 Jul 2017 07:04:54 -0400 Received: from foss.arm.com ([217.140.101.70]:52012 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936151AbdGTLEx (ORCPT ); Thu, 20 Jul 2017 07:04:53 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 774AF80D; Thu, 20 Jul 2017 04:04:53 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.207.56]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 45CF13F577; Thu, 20 Jul 2017 04:04:53 -0700 (PDT) From: Punit Agrawal To: linux-kernel@vger.kernel.org Cc: lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Punit Agrawal , linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Borislav Petkov Subject: [PATCH 3/4] ACPI / APEI: Drop uninformative messages during boot Date: Thu, 20 Jul 2017 12:04:01 +0100 Message-Id: <20170720110402.15313-4-punit.agrawal@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170720110402.15313-1-punit.agrawal@arm.com> References: <20170720110402.15313-1-punit.agrawal@arm.com> X-ARM-No-Footer: FoSSMail 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 When booting an ACPI enabled system that does not provide the hardware error source table (HEST), the ghes driver prints the following message in the kernel log - [ 3.460067] GHES: HEST is not enabled! which is not helpful. The message is also output when HEST is explicitly disabled using kernel command line parameter. Drop this message. While we are touching this code, also drop similar message when GHES is disabled using the module parameter. Signed-off-by: Punit Agrawal Cc: "Rafael J. Wysocki" Cc: Borislav Petkov --- drivers/acpi/apei/ghes.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index d661d452b238..3ddd1bd714fc 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -1265,15 +1265,8 @@ static int __init ghes_init(void) if (acpi_disabled) return -ENODEV; - if (hest_disable) { - pr_info(GHES_PFX "HEST is not enabled!\n"); + if (hest_disable || ghes_disable) return -EINVAL; - } - - if (ghes_disable) { - pr_info(GHES_PFX "GHES is not enabled!\n"); - return -EINVAL; - } ghes_nmi_init_cxt();