Received: by 10.192.165.148 with SMTP id m20csp1425901imm; Wed, 2 May 2018 22:07:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZreJmjif0FCjbowVJnE/6oSNbfPYHeHG4LS9/teKvcAi7p0maXU9j5ogbYorerh+uOjvU+Z X-Received: by 2002:a63:b95d:: with SMTP id v29-v6mr7467622pgo.417.1525324075398; Wed, 02 May 2018 22:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525324075; cv=none; d=google.com; s=arc-20160816; b=Bl5KwHlQQKWDWy/pwuZDQsD+40sjnMWD5k6ILRVCCf/gt10Glu4dMWcZS++yPRMFv7 tP/g/A/HZ/0cLojVJN9igabgEWpqRABPaI9T4OU59Ip38Sv8d7ionnwNXmt7teL10y9s L01Ze/UJWUAm2rikaiSjNFu7WshcsU75Wk7RKfHFrrVRfrwH8l2N/ndgAg1ti2WyokRJ IBHMeh4EOU9Jr+jTnaIICuBJSE2Xz7+Vdi2LxVBDtsxsLT36rHoeD5pBozgdrByEAikX fHVflkX7ugpMJo361HvSeZ07LF9T9ac7oP+r4159+YV5PaQqhywEeDVjrNObNmb9eBMz x1Tg== 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:arc-authentication-results; bh=Yh/2EHBJsENWBe2qArUC3sNAAx82Q2jm9hqqSSD3Kkg=; b=d30mETUQw04aaf2Mg+r6YvSuzNvy7h8Ae/W0MrcJKThm8gFEgOlu/HjXWYQnVXnE+x lslNBtRictC16uy5qy4cawpT4V+oSTa9+tNbQ/RDBu++3DO7I9/Pz6CjudzcuhHQKtRf B6CDCxb8H00a9d+nwZDAqRBSi1jtJ5VO5rg4OCT2TS6iygVgSMpcC+BPtKxHiTCHpXYk ygZNMzDqyfDuYp0bHyysqNsYyU0kRSTirlj7HFFQl0CXCX10dM0GU/xH6aJwSHTxiF9d EPu2Gw83Uabnd/5flD48Jw/jEdOfoKG38e10oL3906++7GlPVwwYMKkxTMSXn8+gBdq3 t0aw== 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 202si13333525pfx.61.2018.05.02.22.07.41; Wed, 02 May 2018 22:07:55 -0700 (PDT) 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 S1752167AbeECFF3 (ORCPT + 99 others); Thu, 3 May 2018 01:05:29 -0400 Received: from wolverine01.qualcomm.com ([199.106.114.254]:5665 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbeECFEF (ORCPT ); Thu, 3 May 2018 01:04:05 -0400 X-IronPort-AV: E=Sophos;i="5.49,356,1520924400"; d="scan'208";a="338643508" Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by wolverine01.qualcomm.com with ESMTP; 02 May 2018 22:04:04 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8881"; a="182707668" Received: from westreach.qualcomm.com ([10.228.196.125]) by ironmsg-SD-alpha.qualcomm.com with ESMTP; 02 May 2018 22:04:03 -0700 Received: by westreach.qualcomm.com (Postfix, from userid 467151) id 1EA2B1F2D; Thu, 3 May 2018 01:04:02 -0400 (EDT) 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 v15 9/9] PCI/DPC: Disable ERR_NONFATAL and enable ERR_FATAL for DPC Date: Thu, 3 May 2018 01:03:58 -0400 Message-Id: <1525323838-1735-10-git-send-email-poza@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525323838-1735-1-git-send-email-poza@codeaurora.org> References: <1525323838-1735-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 disables ERR_NONFATAL trigger for DPC, so now DPC handles only ERR_FATAL. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/dpc.c b/drivers/pci/pcie/dpc.c index aed7c9f..6966e00 100644 --- a/drivers/pci/pcie/dpc.c +++ b/drivers/pci/pcie/dpc.c @@ -263,7 +263,7 @@ static int dpc_probe(struct pcie_device *dev) } } - ctl = (ctl & 0xfff4) | PCI_EXP_DPC_CTL_EN_NONFATAL | PCI_EXP_DPC_CTL_INT_EN; + ctl = (ctl & 0xfff4) | PCI_EXP_DPC_CTL_EN_FATAL | PCI_EXP_DPC_CTL_INT_EN; pci_write_config_word(pdev, dpc->cap_pos + PCI_EXP_DPC_CTL, ctl); dev_info(device, "DPC error containment capabilities: Int Msg #%d, RPExt%c PoisonedTLP%c SwTrigger%c RP PIO Log %d, DL_ActiveErr%c\n", @@ -281,7 +281,7 @@ static void dpc_remove(struct pcie_device *dev) u16 ctl; pci_read_config_word(pdev, dpc->cap_pos + PCI_EXP_DPC_CTL, &ctl); - ctl &= ~(PCI_EXP_DPC_CTL_EN_NONFATAL | PCI_EXP_DPC_CTL_INT_EN); + ctl &= ~(PCI_EXP_DPC_CTL_EN_FATAL | PCI_EXP_DPC_CTL_INT_EN); pci_write_config_word(pdev, dpc->cap_pos + PCI_EXP_DPC_CTL, ctl); } diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 103ba79..86f1cc2 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h @@ -981,6 +981,7 @@ #define PCI_EXP_DPC_CAP_DL_ACTIVE 0x1000 /* ERR_COR signal on DL_Active supported */ #define PCI_EXP_DPC_CTL 6 /* DPC control */ +#define PCI_EXP_DPC_CTL_EN_FATAL 0x0001 /* Enable trigger on ERR_FATAL message */ #define PCI_EXP_DPC_CTL_EN_NONFATAL 0x0002 /* Enable trigger on ERR_NONFATAL message */ #define PCI_EXP_DPC_CTL_INT_EN 0x0008 /* DPC Interrupt Enable */ -- 2.7.4