From patchwork Fri Jun 13 11:02:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 4348561 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 21B1C9F433 for ; Fri, 13 Jun 2014 11:03:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33F41202F0 for ; Fri, 13 Jun 2014 11:03:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5309920351 for ; Fri, 13 Jun 2014 11:03:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753222AbaFMLD2 (ORCPT ); Fri, 13 Jun 2014 07:03:28 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:65349 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752936AbaFMLDZ (ORCPT ); Fri, 13 Jun 2014 07:03:25 -0400 Received: by mail-wg0-f42.google.com with SMTP id z12so2487027wgg.1 for ; Fri, 13 Jun 2014 04:03:24 -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=uVjBbKjL9QqPBH+MWZZ/469rjswYADGVurWJ0KVEtVk=; b=Zn1MHqNoAXtN2nq7ngEI9XnanvsjB1cK8PDllC9xLAOUrivYF9l5YREZHGTlsRoibD hBmDxvUyYewRXQC7humgcefxAFDgh9Q23FWW8Yeit8QFGnLK+7LD+wu+F2Y28MGSHxA0 p9fYmQIWFog5uxeymO8U67iwfYLZPSBLp7chmOZ+SEhQAcnGdvQd8Y6dGuKABw6hp/UD eJI+PRXXTBCSx8rhklXj7aHalydsELcHvHg6AvXlLe6fsIqTf5ZvcYNQgLl/uP1mxyFr tnpvbAfosGtnLBl91yGRWhU/YwmvCJLKQnlP3hpYtt546wxgCX0R8gEPmiGIjVb8NPQw xCLg== X-Gm-Message-State: ALoCoQm2W3anRMthSxTBwdT02WTgTVA8k2Hi5mC15lg69MwHYM3zfZ1e+j04ETuF15z1odcQ/cK0 X-Received: by 10.194.87.170 with SMTP id az10mr3157514wjb.1.1402657404514; Fri, 13 Jun 2014 04:03:24 -0700 (PDT) Received: from tn-HP3-PC.semihalf.com ([80.82.22.190]) by mx.google.com with ESMTPSA id w6sm11206942eef.20.2014.06.13.04.03.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Jun 2014 04:03:23 -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, rric@kernel.org, Tomasz Nowicki Subject: [PATCH v3 2/5] acpi, apei, ghes: Introduce ARCH_HAS_ACPI_APEI_NMI to make NMI error notification a GHES feature. Date: Fri, 13 Jun 2014 13:02:57 +0200 Message-Id: <1402657380-18539-3-git-send-email-tomasz.nowicki@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402657380-18539-1-git-send-email-tomasz.nowicki@linaro.org> References: <1402657380-18539-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=ham 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 ARCH_HAS_ACPI_APEI_NMI which will be used in next patches for NMI related code isolation in ghes.c file. Only NMI error notification feature depends on x86 so let it be hard selected for x86 arch. Signed-off-by: Tomasz Nowicki --- arch/x86/Kconfig | 1 + drivers/acpi/apei/Kconfig | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 3fc9b12..e1dc819 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -24,6 +24,7 @@ config X86 select ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO + select ARCH_HAS_ACPI_APEI_NMI select HAVE_AOUT if X86_32 select HAVE_UNSTABLE_SCHED_CLOCK select ARCH_SUPPORTS_NUMA_BALANCING if X86_64 diff --git a/drivers/acpi/apei/Kconfig b/drivers/acpi/apei/Kconfig index c4dac71..9f6c3ec 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,13 @@ config ACPI_APEI_GHES by firmware to produce more valuable hardware error information for Linux. +config ARCH_HAS_ACPI_APEI_NMI + bool + 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