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: 31040 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E8DF3203AB for ; Wed, 28 May 2014 07:41:16 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id va2sf52233682obc.1 for ; Wed, 28 May 2014 00:41:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=oDFFs4DiJRYeS7e8YzaFufyjAQ2OjN25pZnqO3GS1+s=; b=fh8+OIF8Njs5x6av/GJHe7H3uki83m2SnEKwWOyJxsgNoDIpcmBrjO+C9ksrEixM1t /OWIJqyULTD4EiT9jsOCrDcS9J9k6vpuSw722YC3x7AZC0HAb0lKj9kKva09ksRY5Yg0 hh79AF9vzbMqYtQSzRVd0JHieq0VMrD0noV05d0hoPIaATai22XjNAPAi6N84/AoMTCV IANaNcMjOsEJsRpYFvnfkbSiqJcnjBWC9N1n2h8aeONPu8pRpwpmb5KNLkVMzPuuFoZQ T+DrExGcvr7S92Zlsewtl+W06Ba9hyXY8fz3D3kv/tj7xhqwaECxGoFZuzITtF6+SV3Y tKHA== X-Gm-Message-State: ALoCoQn5Ks2UF02ZtyZ4g+TTf99TC9Up6+eyMWtX7c+l2GWRXGstNEFdstwuhKdH+HmWmxpGmpQV X-Received: by 10.182.186.103 with SMTP id fj7mr16380993obc.9.1401262876562; Wed, 28 May 2014 00:41:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.203 with SMTP id h69ls3412718qgh.56.gmail; Wed, 28 May 2014 00:41:16 -0700 (PDT) X-Received: by 10.52.12.36 with SMTP id v4mr27574200vdb.20.1401262876441; Wed, 28 May 2014 00:41:16 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id lx4si9949019veb.29.2014.05.28.00.41.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 00:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ij19so11886429vcb.14 for ; Wed, 28 May 2014 00:41:16 -0700 (PDT) X-Received: by 10.58.195.231 with SMTP id ih7mr22643183vec.32.1401262876362; Wed, 28 May 2014 00:41:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp180654vcb; Wed, 28 May 2014 00:41:15 -0700 (PDT) X-Received: by 10.68.194.202 with SMTP id hy10mr43470421pbc.94.1401262875636; Wed, 28 May 2014 00:41:15 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tz6si22095341pbc.165.2014.05.28.00.41.14 for ; Wed, 28 May 2014 00:41:14 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754422AbaE1HlG (ORCPT + 27 others); Wed, 28 May 2014 03:41:06 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:56225 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754289AbaE1Hjw (ORCPT ); Wed, 28 May 2014 03:39:52 -0400 Received: by mail-wi0-f173.google.com with SMTP id bs8so3165852wib.12 for ; Wed, 28 May 2014 00:39:50 -0700 (PDT) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tomasz.nowicki@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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