Received: by 10.223.176.46 with SMTP id f43csp483405wra; Thu, 18 Jan 2018 20:46:24 -0800 (PST) X-Google-Smtp-Source: ACJfBouwVXALXbHdA1jlI2R1C+hijnVdO4DeuKDYwfdxX9VBn5hMadaVWY+4VlaDj1N4j1AcQ90s X-Received: by 10.101.70.140 with SMTP id h12mr9508701pgr.166.1516337184865; Thu, 18 Jan 2018 20:46:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516337184; cv=none; d=google.com; s=arc-20160816; b=hz9pZWvLMWnmjVYjLiRtkOf3/IB+UZ3+rh849Z3Ib+bHhbymA1CMUrMTex+uFAfYy9 4ON/SXQGD8Nej9OgtGS0iMFcZFxeDGhDnzfZnLEtfIxtFt1Mzzz+UhrEWz2IcIFxLBaB OTGHxOmNGHdev+Va93yTHeXKKEsYFvz8+obOogVzDgFTr7xflZsbzpmETk/PTLsQwWfB VDd+0v8jdNDAT1ZknA/KVvCS55qvVQOVt9SEX3Mb1jmegLc9/3s/xVB/VF3xN5gpE48L fXtC2xKeah7dqjpEqHSgYcONzYHaeqYuAruRStMSYbUSdGqtgG+517+oAk1etEuab4p8 MaLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=lb2THe3LVmK9gFIEJWPIDPVNQMfiHIuNxDG3R6wh53Y=; b=CiAMlA/SCBpCUGowdDqZ8K2XtIgm1f4cowTvpvVNkzYvwKcqQmAeo7Qqj91P527o/5 JwaeD8fbey68D1cwzg3Vg0N9f9HrlYitqyRGuBuyCHtZg6TnF1R1jJWxueKhAqxlDQqY U8BUYQqXWyo+p1UkcYHfzJ7PG2C/t4Kya8XPVXfZ5+zXq+8EAkq3r0lGwbFD/WAuQr3K RvZCyGBVXL05Wuvkf4e9NwYbi5b8Y2xlnr+TH9XRZ9ldE0EbEK9O3cCR5PUf0Z3GaKdx OakzWoJqzSo8SkaTCaSSFEpnC3S1CQXMG3HJVrCmkomMoNBhaPkpBBQ+x8ZKKWkSutnX Ft2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=YfkdpYgc; dkim=pass header.i=@codeaurora.org header.s=default header.b=X1BSDgIi; 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 p2si7444020pgn.325.2018.01.18.20.46.10; Thu, 18 Jan 2018 20:46:24 -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=YfkdpYgc; dkim=pass header.i=@codeaurora.org header.s=default header.b=X1BSDgIi; 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 S1753361AbeASEor (ORCPT + 99 others); Thu, 18 Jan 2018 23:44:47 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:38942 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750757AbeASEol (ORCPT ); Thu, 18 Jan 2018 23:44:41 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5A4AA6083C; Fri, 19 Jan 2018 04:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516337081; bh=lQaxFUPqQ+jedRVAg+FotetayK2k0DAW8Q6yTHaPRDE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=YfkdpYgc3bBBT5VxmOlm6MddcP6ZFF6+icUM2WJgc7aGTSWTD4eYIy24dG2ncEs0k nydtUlGJ6DPHELTW2KEoh5wbVx7teNTnLtZFutxcflHEOJVPaGC1lMUq2JFDW9NakO KDwNTMPTykU4aRbZw3Ou8oD14u2Jg3fuihfrlBrw= 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 [192.168.1.79] (104-182-54-152.lightspeed.rlghnc.sbcglobal.net [104.182.54.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id ABC8B605A4; Fri, 19 Jan 2018 04:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516337080; bh=lQaxFUPqQ+jedRVAg+FotetayK2k0DAW8Q6yTHaPRDE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=X1BSDgIi+7lriCnBvVgEZy0U9oNkJ02dUJgfEwhQW88YSogLubx2B9mG1n1WRuYC8 1gSIPyN0jKVgLaJjKfPORYBVl/SSvKORUVQssEE8Za9+nhkFXYCv9CCYypuFb5CP4n 9OylUtFF03I6+qY0YAq8o8ULgYtTOfZ5VQIewwEw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org ABC8B605A4 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=okaya@codeaurora.org Subject: Re: [PATCH v5 3/4] PCI/DPC: Unify and plumb error handling into DPC To: poza@codeaurora.org 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 , Timur Tabi References: <1516185438-31556-1-git-send-email-poza@codeaurora.org> <1516185438-31556-4-git-send-email-poza@codeaurora.org> <733abfcb-5b31-7394-ab62-19a0888d71c2@codeaurora.org> <5cf7004e62a2979afb3c29e99d705c60@codeaurora.org> <35a9ce2b-156f-3235-c3b7-2c495fe9c52b@codeaurora.org> <64127dba1cebab196c88a160191ebee0@codeaurora.org> <0ab49441-548e-a5bc-d76b-bdc6fa7495dc@codeaurora.org> From: Sinan Kaya Message-ID: Date: Thu, 18 Jan 2018 23:44:38 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/18/2018 11:23 PM, poza@codeaurora.org wrote: > On 2018-01-18 23:33, Sinan Kaya wrote: >> On 1/18/2018 1:00 PM, poza@codeaurora.org wrote: >>>> I think you would put into include/linux/pci.h only if there is an external >>>> use of constant outside of drivers/pci directory. Otherwise, you should keep >>>> the setting inside one of the header files in drivers/pci directory. >>>> >>>> I don't see any other subsystem caring about DPC_FATAL definition. >>> >>> ok so you are suggesting to move only DPC_FATAL ? so then AER can stay where it is. >> >> Now that both AER and DPC handling is getting unified, I think it makes sense to >> keep all error codes (AER+DPC) together in drivers/pci/pci.h rather than having >> them split in aer.h and dpc.h. >> >> Otherwise, how would we avoid having a new error type defined with the >> existing values. > > I agree, its is just that drivers/acpi/apet/ghes.c has to do > #include ../../pci/pci.h That's bad. I was just thinking about the DPC error code only. I didn't realize AER error codes are being referenced from ghes.c. > > but thats okay I think.  let me move error codes to drivers/pci/pci.h. It is better if error codes move to include/linux/pci.h and keep them together. > > Regards, > Oza. > -- Sinan Kaya 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.