Received: by 10.223.164.202 with SMTP id h10csp18174wrb; Wed, 8 Nov 2017 11:15:41 -0800 (PST) X-Google-Smtp-Source: ABhQp+RBmlKl6M8cH3AcIff3BFBro8pazg7KnqKfRmuQfLRHsTqffMTB0gAB7iyVMIVbaRSDeNtB X-Received: by 10.84.242.76 with SMTP id c12mr1328656pll.51.1510168541009; Wed, 08 Nov 2017 11:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510168540; cv=none; d=google.com; s=arc-20160816; b=dXX3ttTmv1EXvRcHjkcoYMkU4UzHqFQDzFdDpD6iKdmN0GgYoCfZvEDN6G0qu9uF/Q b9YxbyrfecMFKayJTTm3WugSIbTnrDhd5c4MjcBz+k9WY2rO9AC+RcFCUGpxqHo9N7no i6AcgRNhBaWJ+3XkM6EDLqj2AuYTUgFdjPxeHn02FTBsZrdanq75J5aXbrL9NMMl/vRr fvqJQvlAQz4Q18uQVCQysx5nIHtxupr+uxL9tSegdKKuUUymGkhM//3i83qHasDVpoZ1 9nhEz84oZAiI84BZVVj2shQ36S08b2hHz6NwdxDI/99f4DBC3hCFEbdkxfRIh8N9XYJl kTXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=D1E5YkDXsqPVCYnDV4sGCd8sCYwuXZ1xPJbAMkb7824=; b=n+gHyBsYpIGHCyGjUYeeY0x1YnPktQ2eog0QgHCmcKqa//R9gADvHG2Riq/dZWukcN 6+mfDQPJ2T+m6K1UNErD+DZcV07ZSTrv1UpC7wfx3ix+vBjOMw/7MQkhH8F/z3OSvHvL twQL/SFB8Tqs0BVL1npiAAE+KNtZyCfgg0C35/ZN3VvQbvB+st0AaQUfPIDe7f/h1g/o nln3Op6bwIDV++cDkprAW5Z9dfM3pMZJaxnzdzP4LfN58TgsYa8AF0oI7utQKj4GSmhk mlrQKgbRCQVwBGMUpvwDjLqPLvMYzDNkacgLHOmghcCSNi09+XJv53ruiaYE+KOBSBYM T3+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=AMQ0nb91; dkim=pass header.i=@codeaurora.org header.s=default header.b=AMQ0nb91; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u17si2241688pge.390.2017.11.08.11.15.28; Wed, 08 Nov 2017 11:15:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=AMQ0nb91; dkim=pass header.i=@codeaurora.org header.s=default header.b=AMQ0nb91; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752445AbdKHTNY (ORCPT + 84 others); Wed, 8 Nov 2017 14:13:24 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:55458 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752356AbdKHTNV (ORCPT ); Wed, 8 Nov 2017 14:13:21 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 88DF5607CA; Wed, 8 Nov 2017 19:13:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510168400; bh=FP1SFemOZ8v6qCJ6CuCCDtOcGFaW/GqGR7fSg9CYlnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AMQ0nb916OOo31/jdxuXbwxD7+MusYC15+ceZw8JEWcwnO6qf+xY5TjE68DdsHHHK TdfBXtv/4/tAdLmPyQY5LIQ6+uGGd6rtZUVpBUH9CwD5UxEola+1Xa9ojWwignrTyG BE4kO2bEaj1f8VcN9IyakuONDUOQ6YwYGuuirXaI= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from tbaicar-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tbaicar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 79804607CB; Wed, 8 Nov 2017 19:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510168400; bh=FP1SFemOZ8v6qCJ6CuCCDtOcGFaW/GqGR7fSg9CYlnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AMQ0nb916OOo31/jdxuXbwxD7+MusYC15+ceZw8JEWcwnO6qf+xY5TjE68DdsHHHK TdfBXtv/4/tAdLmPyQY5LIQ6+uGGd6rtZUVpBUH9CwD5UxEola+1Xa9ojWwignrTyG BE4kO2bEaj1f8VcN9IyakuONDUOQ6YwYGuuirXaI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 79804607CB Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=tbaicar@codeaurora.org From: Tyler Baicar To: rjw@rjwysocki.net, tony.luck@intel.com, bp@alien8.de, bp@suse.de, will.deacon@arm.com, james.morse@arm.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tyler Baicar Subject: [PATCH V3 2/2] acpi: apei: call into AER handling regardless of severity Date: Wed, 8 Nov 2017 12:13:12 -0700 Message-Id: <1510168392-30114-3-git-send-email-tbaicar@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1510168392-30114-1-git-send-email-tbaicar@codeaurora.org> References: <1510168392-30114-1-git-send-email-tbaicar@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently the GHES code only calls into the AER driver for recoverable type errors. This is incorrect because errors of other severities do not get logged by the AER driver and do not get exposed to user space via the AER trace event. So, call into the AER driver for PCIe errors regardless of the severity Signed-off-by: Tyler Baicar --- drivers/acpi/apei/ghes.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 839c3d5..bb65fa6 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -458,14 +458,12 @@ static void ghes_handle_memory_failure(struct acpi_hest_generic_data *gdata, int #endif } -static void ghes_handle_aer(struct acpi_hest_generic_data *gdata, int sev, int sec_sev) +static void ghes_handle_aer(struct acpi_hest_generic_data *gdata) { #ifdef CONFIG_ACPI_APEI_PCIEAER struct cper_sec_pcie *pcie_err = acpi_hest_get_payload(gdata); - if (sev == GHES_SEV_RECOVERABLE && - sec_sev == GHES_SEV_RECOVERABLE && - pcie_err->validation_bits & CPER_PCIE_VALID_DEVICE_ID && + if (pcie_err->validation_bits & CPER_PCIE_VALID_DEVICE_ID && pcie_err->validation_bits & CPER_PCIE_VALID_AER_INFO) { unsigned int devfn; int aer_severity; @@ -519,7 +517,7 @@ static void ghes_do_proc(struct ghes *ghes, ghes_handle_memory_failure(gdata, sev); } else if (guid_equal(sec_type, &CPER_SEC_PCIE)) { - ghes_handle_aer(gdata, sev, sec_sev); + ghes_handle_aer(gdata); } else if (guid_equal(sec_type, &CPER_SEC_PROC_ARM)) { struct cper_sec_proc_arm *err = acpi_hest_get_payload(gdata); -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project. From 1584345156468825596@xxx Fri Nov 17 20:08:04 +0000 2017 X-GM-THRID: 1584269123686231607 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread