From patchwork Tue Aug 1 13:36:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 9874619 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 AE9E660361 for ; Tue, 1 Aug 2017 13:37:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AA74283CB for ; Tue, 1 Aug 2017 13:37:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F80B2867E; Tue, 1 Aug 2017 13:37:49 +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 0E716283CB for ; Tue, 1 Aug 2017 13:37:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752181AbdHANhS (ORCPT ); Tue, 1 Aug 2017 09:37:18 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40916 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752171AbdHANhQ (ORCPT ); Tue, 1 Aug 2017 09:37:16 -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 D27E080D; Tue, 1 Aug 2017 06:37:15 -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 4EF643F540; Tue, 1 Aug 2017 06:37:15 -0700 (PDT) From: Punit Agrawal To: linux-acpi@vger.kernel.org Cc: Punit Agrawal , lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, linux-kernel@vger.kernel.org, Borislav Petkov , "Rafael J . Wysocki" Subject: [PATCH 3/3] ACPI / APEI: HEST: Don't set hest_disable if table not found Date: Tue, 1 Aug 2017 14:36:08 +0100 Message-Id: <20170801133608.21017-4-punit.agrawal@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170801133608.21017-1-punit.agrawal@arm.com> References: <20170801133608.21017-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 During initialisation, the driver sets hest_disable to 1 if the HEST table is not found. This value is checked during the GHES driver initialisation and in turn leads to a message such as - [ 3.460067] GHES: HEST is not enabled! being output in the bootlog. The message appears even on systems that do not have the HEST table or APEI support. Update the initialisation to skip setting hest_disable when the HEST table is not found. Signed-off-by: Punit Agrawal Cc: Borislav Petkov --- drivers/acpi/apei/hest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c index 456b488eb1df..3aa1b34459b6 100644 --- a/drivers/acpi/apei/hest.c +++ b/drivers/acpi/apei/hest.c @@ -233,7 +233,7 @@ void __init acpi_hest_init(void) status = acpi_get_table(ACPI_SIG_HEST, 0, (struct acpi_table_header **)&hest_tab); if (status == AE_NOT_FOUND) - goto err; + return; else if (ACPI_FAILURE(status)) { const char *msg = acpi_format_exception(status); pr_err(HEST_PFX "Failed to get table, %s\n", msg);