Received: by 10.223.185.116 with SMTP id b49csp2098837wrg; Thu, 22 Feb 2018 08:08:09 -0800 (PST) X-Google-Smtp-Source: AH8x224wT/cfc1aC21MnzImLgtt38xC6XfNV9LdmMqyguHa1rgetS6juRIQm6dVFayn3lsolBTDx X-Received: by 2002:a17:902:6783:: with SMTP id g3-v6mr7033740plk.179.1519315689634; Thu, 22 Feb 2018 08:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519315689; cv=none; d=google.com; s=arc-20160816; b=YMleBDFfaoQ4vsRvaSdNWQWkFU9fjg2b+CvQvU9vYs26N/GqTLBT3Dkn6trA4bC7e/ CDCRsKl9Tv0X9qclf4pW4YwKWIPXGv5DlqFofb5JHlPukwx5oJZchP6IYJ71LuOycm+Z UdrGM/E05BbLykiA3FkqBCsTpVvOKKuPbXabRIHeauPyhUdLtlD1pX3ZHpeenL9LeEoU V2LEUZvC4UCKALa2TpzrCD30B0vK46CVesEDJOoJ8qfOp9WWPdLxCvllYCTfzYLyLpms Mkk6C+gaR6EX7hGZdc/nVPCUyqk/bZdEOgdbW6+wvMHj3rL4cfg7TDcVEb5ob+mpft6c A4aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=O1D7szXMGuzGmVIQ/dxzgnt8fphHposEQoEuLzCFJp4=; b=ACUD/aUHdtUTfAiFHUUy8NWGPEUtG0Ld3hKrEjWtB7LiuO7U8F1cfRGtNTICRwcWIR LFJ1m6SiIe0s8Rziv8Y9zcKVpHHkoMw121+lGS6M1SxQSKCvEi17+CfKexa9CYcOjOyY 151TaX44fx1p03CGSUosQKZ/ZkKeMBcvnzfa8kQ8c1o2jAvIr2Ha3u7WdcCDAUfKxy+I 4SJK31pZVO014NM9cgum8ykhGBIylUb78JRroc+kKedD7AHicxUil0X/wOev0UB+8h5B LzEi3ykVHyOuIpLLMBXTJ2mg4KUAFLn4nubzZtdk1mdwfR6oKoqFTOiKVGwwRYEPu/OK bR3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=PVaUl/mY; dkim=pass header.i=@codeaurora.org header.s=default header.b=Zj7nmw88; 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 e6-v6si212385plt.123.2018.02.22.08.07.35; Thu, 22 Feb 2018 08:08:09 -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=PVaUl/mY; dkim=pass header.i=@codeaurora.org header.s=default header.b=Zj7nmw88; 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 S933171AbeBVQG0 (ORCPT + 99 others); Thu, 22 Feb 2018 11:06:26 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:57762 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933069AbeBVQGZ (ORCPT ); Thu, 22 Feb 2018 11:06:25 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B4CB1606DC; Thu, 22 Feb 2018 16:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519315584; bh=YHXvJqF1myyDp8mMmkcErj4RdVKhYKggZPO4a8JcFi4=; h=Date:From:To:Subject:In-Reply-To:References:From; b=PVaUl/mYW01Ib9m9gLvkPFPPfSQuMfhWf5/TciSXV7M9U6J96dh/XQOvi7SpPTWTj bi+qf0bKEOAIGXRcAuNH3BS5XwGiMaCOerHhlvCGPhahRl8ujk+LxQfhxd7ONgBAlX lyw+Gco1l29qiwt2+eoqL7qJnEFw0hAPIqCD1qy4= 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 mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 86322606DC; Thu, 22 Feb 2018 16:06:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519315583; bh=YHXvJqF1myyDp8mMmkcErj4RdVKhYKggZPO4a8JcFi4=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Zj7nmw88AWRPcKtctXtvS5Q7Scew4ERQawhdfuo/dTeC3V6VDlFDEoSJMeoJZPVYa tcYGuCkjZNPUfwrSE9e3eVj/6bNti+s0LWx/efqBHThN8iF3r7VeKx2lbLJV+pAVfL 9Egryp09CMvtPiMwhidYVuXz+6v7T01Aw2EpOi40= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 22 Feb 2018 21:36:23 +0530 From: poza@codeaurora.org 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 Subject: Re: [PATCH v10 5/7] PCI/AER: Unify aer error defines at single space In-Reply-To: <1519315332-26852-6-git-send-email-poza@codeaurora.org> References: <1519315332-26852-1-git-send-email-poza@codeaurora.org> <1519315332-26852-6-git-send-email-poza@codeaurora.org> Message-ID: <823d8b71a56656f87b6f0868a813db8c@codeaurora.org> X-Sender: poza@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-22 21:32, Oza Pawandeep wrote: > 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 Hi Bjorn, Based on your earlier comment I have moved AER and DPC error defined in driver/pci/pci.h but I am not entirely comfortable with moving them there because file such as drivers/acpi/apei/ghes.c include/ras/ras_event.h they are outside of the scope of driver/pci/pci.h and they have to include the files #include "../../pci/pci.h" and #include "../../../drivers/pci/pci.h" respectively. hence my suggestion is to move error defines in include/linux/pci.h let me know your view. Regards, Oza.