Received: by 10.223.185.116 with SMTP id b49csp2095715wrg; Thu, 22 Feb 2018 08:05:42 -0800 (PST) X-Google-Smtp-Source: AH8x227cyepQ1elUE3EyaZStIU4GFnOhg81UGLoPeLIqotbVubMBN9X9RXmyNjmE+pInj7kTSQZg X-Received: by 2002:a17:902:bd4b:: with SMTP id b11-v6mr836444plx.253.1519315542624; Thu, 22 Feb 2018 08:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519315542; cv=none; d=google.com; s=arc-20160816; b=jbpRAOwOz5D4+nLW/f53k4YpWGLFwm7tb+qMXrOHdLkCtqzGNJ/ZC2RbmI/vMzDOqy LJwJfavd0BTxF7zUx1fArqPs+5989q4pMwl9UKp3Jo7jIJPfCYlyh13Y1DdRFf2XDhYX zbWEo3bdBgsL7tTn0y2RUd3phldd8m8l67T6110O8NjUjDk12TZ9BumBPkrHNsG8GEgk J7rErMtSjygLLszkKx/TrsANoUubJUDOhtWOGywq4iIfFfKJcQqPo+SqhtkROqqmKkge iqzagwyMHUZN4aRS3WPPfl94V/0d7/O1hSdS4mXlfLhFxNQJDHQ0UJys7ItLuPTTu3a5 xwsA== 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=m8qGhUFA9VkH7IuJYKyL2k7UfRBEOosG5dCFie1bMaQ=; b=wwwS+yJuRo6UFZTUc768n2HHl7A5FdN1xZETDyxXg6sCEBdPa+58ucZafktULCHwV5 BGuwzgkFJlkgliIg1Wxx9NRtZGWYmv/LRy8aPhgcurLkwlMN7PjzCk2x0x3wPH88IV3t RQ+EnBvhBHKf3nTvmweiWx20A+nJpJV/b/5P3Q3rTs+RyOdkFTkINC3edcdkU7pazM8y 12e5Wjj8f1d2ByAoE6VmpvfZCjIfMcVIUKv11Bg4HIDyxhQ4tiCvv7MoVUzTqfrbyRkz pIXs95FurYrSUr18E6+AwcWhn85vuoW1LSK3hBEzX3k6LYse6C8g/e3UL0mspmCAmXS5 Pu3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=hJqE1DHi; dkim=pass header.i=@codeaurora.org header.s=default header.b=c0Z+rsO6; 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 w20-v6si230718plp.638.2018.02.22.08.05.23; Thu, 22 Feb 2018 08:05:42 -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=hJqE1DHi; dkim=pass header.i=@codeaurora.org header.s=default header.b=c0Z+rsO6; 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 S933285AbeBVQDl (ORCPT + 99 others); Thu, 22 Feb 2018 11:03:41 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:55820 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933085AbeBVQC5 (ORCPT ); Thu, 22 Feb 2018 11:02:57 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 082BE60F72; Thu, 22 Feb 2018 16:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519315377; bh=x5iAzmT9Kuj+ammB/EKTLCY4geuJ8j4OGGdaUkcpF0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hJqE1DHihX/q4Vr9H+s3XzTgzOigwKeQg2hAU3NII5bRMcMloFfkuvcM0u0pNMDmx Ka9wsUPRc3lfM8DwWqgXnSdF2f5lEMnQZR5NFjs1pYFq7VgUoOoAz8rudAFfB51o6V 36cXlwEgGGywJCOA5CeR+HoxPm7cXhOr6RxEsuw0= 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 blr-ubuntu-poza.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: poza@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 52B2A60FF0; Thu, 22 Feb 2018 16:02:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519315364; bh=x5iAzmT9Kuj+ammB/EKTLCY4geuJ8j4OGGdaUkcpF0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c0Z+rsO6uIpDZ4bIKGuxlucobud6oZ2I3jtVn0LfeaZGbHvuNMZ791tIC+7uph6La 9f704NnrkDtCKiU67JDBAVEs5HrGp9VdKwU11kx7fXBFUvfosAvxNbVUevrx+gI+Vp ymAkESr/qztASV3oZY+Jkpjlsm+YRryV0PlCezN4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 52B2A60FF0 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=poza@codeaurora.org From: Oza Pawandeep To: Bjorn Helgaas , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Dongdong Liu , Keith Busch , Wei Zhang , Sinan Kaya , Timur Tabi Cc: Oza Pawandeep Subject: [PATCH v10 5/7] PCI/AER: Unify aer error defines at single space Date: Thu, 22 Feb 2018 21:32:10 +0530 Message-Id: <1519315332-26852-6-git-send-email-poza@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1519315332-26852-1-git-send-email-poza@codeaurora.org> References: <1519315332-26852-1-git-send-email-poza@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch moves AER error defines to drivers/pci/pci.h. So that it unifies the error repoting codes at single place along with dpc Signed-off-by: Oza Pawandeep diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 1efefe9..7ae9bb3 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -56,6 +56,7 @@ #include #include "apei-internal.h" +#include "../../pci/pci.h" #define GHES_PFX "GHES: " diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 124f42e..b0e63b5 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -343,7 +343,11 @@ static inline resource_size_t pci_resource_alignment(struct pci_dev *dev, void pci_enable_acs(struct pci_dev *dev); /* PCI error reporting and recovery */ -#define DPC_FATAL 4 +#define AER_NONFATAL 0 +#define AER_FATAL 1 +#define AER_CORRECTABLE 2 + +#define DPC_FATAL 4 void pci_do_recovery(struct pci_dev *dev, int severity); diff --git a/drivers/pci/pcie/aer/aerdrv_errprint.c b/drivers/pci/pcie/aer/aerdrv_errprint.c index 6a352e6..4c59f37 100644 --- a/drivers/pci/pcie/aer/aerdrv_errprint.c +++ b/drivers/pci/pcie/aer/aerdrv_errprint.c @@ -19,6 +19,7 @@ #include #include "aerdrv.h" +#include "../../pci.h" #include #define AER_AGENT_RECEIVER 0 diff --git a/include/linux/aer.h b/include/linux/aer.h index 8f87bbe..3eac8ed 100644 --- a/include/linux/aer.h +++ b/include/linux/aer.h @@ -11,10 +11,6 @@ #include #include -#define AER_NONFATAL 0 -#define AER_FATAL 1 -#define AER_CORRECTABLE 2 - struct pci_dev; struct aer_header_log_regs { diff --git a/include/ras/ras_event.h b/include/ras/ras_event.h index 9c68986..d75c75b 100644 --- a/include/ras/ras_event.h +++ b/include/ras/ras_event.h @@ -13,6 +13,7 @@ #include #include #include +#include "../../../drivers/pci/pci.h" /* * MCE Extended Error Log trace event -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc., a Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.