Received: by 10.223.185.116 with SMTP id b49csp1953073wrg; Sat, 24 Feb 2018 07:37:51 -0800 (PST) X-Google-Smtp-Source: AH8x224EvtKMXa9bww+XY9l23HTwaaIpCpLsrdN0jVeMeLfhNmOQzT5qaF/nPY5KI4TETBpZyPmL X-Received: by 10.167.131.199 with SMTP id j7mr5121737pfn.99.1519486671734; Sat, 24 Feb 2018 07:37:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519486671; cv=none; d=google.com; s=arc-20160816; b=YS3gkf6wQg9atiT3rkwcyEFh16AaL6DhD5lIvch9oI2uByY8uXHU+AqeyLCxwM084l nId3SZFvEjXsuvDGn3+HgiBi2/1HHaHUfNdMxZRPWq0l+zCituHYYH0rSI/u9zd//Pdb dD/3MndsYq8iumJ19bhELluzOzvVIXdaLYwJTavcyZHEokjOVUGlIUMlLTzpKAvuMw4U AQgk31PikA6H++6JVPowTJNSVf/DIAHklnX3+l6ZEYN70fSN548f49N1SN+V1WpXqof+ kd1EHFh+CWMMwqOqfl/hYYo5VwKFehmtFHaWdq0jVBMVbf/Iy8YwKcY9Lqwl9u8g36oo p/Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=A1cloFrQ9oMReIrOXDqOhL0SuBmy9QRKLqghQCZwPCM=; b=hzp5ytuTVNqv3TzmNC1HgWsd0LwzVcPKdUUeXbRJlSHp73iNiHoc0qY19EGhRF2vdw Qo1Lv6PvvQgM64u0QyPTyOL1DrhJqfs0vT551tmMLe4pipR6nxhfiIDGAdOqb67KotOB Z+cf3PM+XE9si9+cIhojz4yusU4iJJhHhlR+4aBzlJgiZ1OGPnbAlPqjBBVF5/rjA5l4 newNt6kTpFfbW8itMCunE7/cqDFuPVv0aIfEDF05wxP4YxsJ0GRBD0AzBNiYLxPkvV4r AHzK4aqqGuvA/lU/go+TZNFgZz9WcHFcAKTEpgwCO3kRNV4xydrAL45pXhkUIA58cs9c XbOA== ARC-Authentication-Results: i=1; mx.google.com; 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 20si3709101pfp.312.2018.02.24.07.37.25; Sat, 24 Feb 2018 07:37:51 -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; 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 S1751426AbeBXPg0 (ORCPT + 99 others); Sat, 24 Feb 2018 10:36:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:35284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbeBXPgZ (ORCPT ); Sat, 24 Feb 2018 10:36:25 -0500 Received: from localhost (unknown [69.71.4.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DAF6A21774; Sat, 24 Feb 2018 15:36:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DAF6A21774 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Sat, 24 Feb 2018 09:36:21 -0600 From: Bjorn Helgaas To: Oza Pawandeep Cc: 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 v11 5/7] PCI/AER: Unify aer error defines at single space Message-ID: <20180224153621.GS14632@bhelgaas-glaptop.roam.corp.google.com> References: <1519374244-20539-1-git-send-email-poza@codeaurora.org> <1519374244-20539-6-git-send-email-poza@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519374244-20539-6-git-send-email-poza@codeaurora.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 23, 2018 at 01:54:02PM +0530, 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 s/repoting/reporting/ s/dpc/DPC/ (in English text) > 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" You're right, it's ugly to use this sort of path to a private PCI header file from outside drivers/pci. Could you just add DPC_FATAL to include/linux/aer.h? Maybe we discarded that for some reason? Having pcie-dpc.c include linux/aer.h seems like it would be better than having this ACPI code include "../../pci/pci.h" > #define GHES_PFX "GHES: " > > diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h > index f8575da..c8394ec 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 pcie_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. >