From patchwork Wed May 28 07:39:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 4253311 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 69EDB9F32B for ; Wed, 28 May 2014 07:41:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98A79202E6 for ; Wed, 28 May 2014 07:41:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B666C202F0 for ; Wed, 28 May 2014 07:41:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754290AbaE1HlF (ORCPT ); Wed, 28 May 2014 03:41:05 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:37179 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754278AbaE1Hjw (ORCPT ); Wed, 28 May 2014 03:39:52 -0400 Received: by mail-wi0-f169.google.com with SMTP id hi2so2896494wib.2 for ; Wed, 28 May 2014 00:39:50 -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:in-reply-to :references; bh=HR3KwL8uVrR1IE1ODSLBiZrS876o+bTtyJ/RsMjUhCw=; b=maT2W6K/AUo6dG80V4z1ZCNxt0Bl7i7SdSsvdBM/jRfbIwDgFjwjiu9yKPl18D2oM3 eDHLQ88deBEITp4iBWc6r7G36hiT1MHIWkwZD1BGt5pkp0llnfNKyRyd37hYiEAb9mxH un6XK/9tOVJT8i0kQV0Ut+H1JqW3iiqzHoJx+T50M/NhhfCLiZ4vGza4VxKaqrdXAeVR NyWdSEbiw+Yx5OAspUg3TN0n3LzCoxxmPQBVfXwD60yV43NYKcu8fNdG5wQqenKh3x+B PtoeRf9AUHYg+yRaDqWFco+NSCsBVas7zzyH2hFjtZtl/zxNzOcjAkz4I8hpoJPhRMI8 WAEA== X-Gm-Message-State: ALoCoQnSW16v9yzLqY6ifacxp10LzoaCligqdAiUefxWvXG4QWlcf77pPhYtZRHPRXgpFqlHh8bP X-Received: by 10.194.246.234 with SMTP id xz10mr47417764wjc.77.1401262790660; Wed, 28 May 2014 00:39:50 -0700 (PDT) Received: from tn-HP3-PC.semihalf.com ([80.82.22.190]) by mx.google.com with ESMTPSA id ga10sm41135474wjb.23.2014.05.28.00.39.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 00:39:49 -0700 (PDT) From: Tomasz Nowicki To: rjw@rjwysocki.net, lenb@kernel.org, tony.luck@intel.com, bp@alien8.de, m.chehab@samsung.com, bp@suse.de Cc: linux-edac@vger.kernel.org, x86@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Tomasz Nowicki Subject: [PATCH v2 2/5] acpi, apei, ghes: Introduce ACPI_APEI_NMI to make NMI error notification a GHES feature. Date: Wed, 28 May 2014 09:39:27 +0200 Message-Id: <1401262770-25343-3-git-send-email-tomasz.nowicki@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1401262770-25343-1-git-send-email-tomasz.nowicki@linaro.org> References: <1401262770-25343-1-git-send-email-tomasz.nowicki@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Currently APEI depends on x86 architecture. It is because of NMI hardware error notification of GHES which is currently supported by x86 only. However, many other APEI features can be still used perfectly by other architectures. This commit adds ACPI_APEI_NMI which will be used in next patches to isolate NMI related code in ghes.c file. Only NMI error notification feature depends on x86 and it is selected by default for x86 arch. Signed-off-by: Tomasz Nowicki --- drivers/acpi/apei/Kconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/apei/Kconfig b/drivers/acpi/apei/Kconfig index c4dac71..4b734a2 100644 --- a/drivers/acpi/apei/Kconfig +++ b/drivers/acpi/apei/Kconfig @@ -3,7 +3,6 @@ config ACPI_APEI select MISC_FILESYSTEMS select PSTORE select UEFI_CPER - depends on X86 help APEI allows to report errors (for example from the chipset) to the operating system. This improves NMI handling @@ -26,6 +25,15 @@ config ACPI_APEI_GHES by firmware to produce more valuable hardware error information for Linux. +config ACPI_APEI_NMI + bool "NMI error notification support" + default y + depends on ACPI_APEI_GHES && X86 + help + Firmware first mode can use NMI notification mechanism to report errors + to operating system. This feature is currently supported by X86 + architecture only. + config ACPI_APEI_PCIEAER bool "APEI PCIe AER logging/recovering support" depends on ACPI_APEI && PCIEAER