From patchwork Tue Aug 30 10:39:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Kumar Gogada X-Patchwork-Id: 9305175 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 47594607F0 for ; Tue, 30 Aug 2016 10:42:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35E2928B73 for ; Tue, 30 Aug 2016 10:42:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28E2B28B7A; Tue, 30 Aug 2016 10:42:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BC42C28B73 for ; Tue, 30 Aug 2016 10:42:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1begTB-0008HK-MX; Tue, 30 Aug 2016 10:40:41 +0000 Received: from mail-co1nam03on0053.outbound.protection.outlook.com ([104.47.40.53] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1begSn-0006vE-75 for linux-arm-kernel@lists.infradead.org; Tue, 30 Aug 2016 10:40:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wZJMDAE6rN+0FdvarhNOA1Qa29HYR9eHvBcBBGnGFlo=; b=CubFczY2j4Zw3uUyAw77N23ePgy+8QwCqZQ7DCbcN3WMXUejPFHGRY5l5muHCz3uyJyCsI5GBA692uayNfgUGDyX0baowqnse5cBwpsw0f3chr9Xrx3FobtlJ+TFvYkfjaLWUH2or4EcupBcOyn9ZwHpkO2aJdK8ycA5Fq8YJ/w= Received: from BY2PR02CA0116.namprd02.prod.outlook.com (10.163.44.170) by SN1PR0201MB1504.namprd02.prod.outlook.com (10.163.129.158) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.13; Tue, 30 Aug 2016 10:39:51 +0000 Received: from SN1NAM02FT031.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::206) by BY2PR02CA0116.outlook.office365.com (2a01:111:e400:5261::42) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9 via Frontend Transport; Tue, 30 Aug 2016 10:39:54 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by SN1NAM02FT031.mail.protection.outlook.com (10.152.72.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Tue, 30 Aug 2016 10:39:54 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:44569 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1begSR-0003vg-8m; Tue, 30 Aug 2016 03:39:55 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1begSP-00053C-FC; Tue, 30 Aug 2016 03:39:53 -0700 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u7UAdlG0017283; Tue, 30 Aug 2016 03:39:47 -0700 Received: from [172.23.64.217] (helo=xhd-lin64re105.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1begSJ-0004zE-9C; Tue, 30 Aug 2016 03:39:47 -0700 Received: by xhd-lin64re105.xilinx.com (Postfix, from userid 45489) id 231D4CA1C39; Tue, 30 Aug 2016 16:09:46 +0530 (IST) From: Bharat Kumar Gogada To: , , , , , , Subject: [PATCH 1/3] PCI: Xilinx NWL PCIe: Expanding PCIe core errors and printing event occurred. Date: Tue, 30 Aug 2016 16:09:16 +0530 Message-ID: <1472553558-27215-1-git-send-email-bharatku@xilinx.com> X-Mailer: git-send-email 2.1.1 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22544.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(90966002)(4001430100002)(11100500001)(19580405001)(46386002)(45336002)(356003)(5003940100001)(626004)(2201001)(5660300001)(48376002)(586003)(87936001)(33646002)(52956003)(50466002)(7846002)(81166006)(8676002)(81156014)(305945005)(229853001)(50226002)(8936002)(42186005)(5001770100001)(19580395003)(63266004)(36756003)(189998001)(36386004)(106466001)(86362001)(107886002)(47776003)(2906002)(103686003)(4326007)(50986999)(92566002)(107986001)(5001870100001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0201MB1504; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM02FT031; 1:OkoI0/Y5MI22txsO9Jgom+FfhwXGB5D5W13yxz5XGDy4jB6BAkh19MnSBsczUkMnLgi21gVn53mKMbCTQ1WYdB8fGUXofaWihJlbqCJZRBTA9GnWBJmpgIMsypKITf0mQ7ZiWXbZeUgl510sKk6vdCndVHQApMEdZZSs8fKOR7u8W4DBPBUytsIvbVy1PQ5FNMc8TyeOrG5eXUGWBsiYPmf9DLdb6T2D7h/D3sP3FtXdk8rGczhjM62URT6spj4OMIQrqSJjelE6kW04hnSFOVddVTmh2sza5Rb01008Xlcc3Dsew+hWIXV1oSNjyERtmkkDaBYHDyTMOP96eRfi7PCxOP73KybWfzTzK9TPRgf7A0PiqRbd2rgJpX2abVtGnOikQKNbSzMTk1RaDrwwJd2qJDFIPYzoIMotuqzVigLkVlNfZxC8cgS0SSbMGBMqdvU6kA3IsNkZweAUTcxAhBwS79ix4qvBJd3VVLYYSwYgfudGih0GXOtJJxmZ16xbCY4R9EKiw/AG+SlR5b73JXw2aWPysWkuzKVSyg2MZ+zLWE1imLSmtTndbpJ0A7KXN1RqBwlTjTpp/KXR7Sb/8VkQO9c1JjFaAJQVW+NJvQlN4hSUL3CO3QD8XMYbp/9f MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 701c08a6-c54c-4a7d-181f-08d3d0c1fb0c X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1504; 2:cApaMh7neIfUYE6/+NkWZO9jkB+4lp0pVTXhfgaKv0NVMfusqiqwzmyJBH8Olw3gnaCdPXN7xo/njjQOgCImqmmxailzSMbI2O/CTQsFyaOH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DaoDc6vw4nxGBA0JeYZRNDcGSxcFDiCGQuqLNR5NKoP1xj+wwlaF0gcK6R1O4Vm4J2HqPKH88=; 20:uRxeGbmei+ENXA/ZBTmG2Vw5WqYNkl8T0U3gdaY/5Y+yXRyLeNPWUn/eon5eYNtyGCtlJslOYK0274xNO2G3vbeZC/0sl2EXN1AmeHwZwJKgESjbwmztuduv+254xjq7eriDP+tg2oKT1XcVJ6mCTep4GRdexq8PZZsdMg3qAXEXfupvpSvzENnvVzpOpT63vhTJ6sawsm26ox+uEw1vnPLRA43FNdvDrGpjlDIMlczvvZV53DYw5XnOR5Vo5fCJkJXZTTNi83sW/KqU4/8Qs3jI7/RtpBFEZwNMgD/mPkr5a7Lhyt7CYiQSWESZ3Ev9+U/zjHgvrBMz7qYdHRxfSlqLsD27zlyfWhkoqRW3w8l1RJOPQsQozOFUb7k904/+tkZQe80jMIKjDjB/iI/Xej13viR1DkjgMAUMsQ491WnsTgEirpvRk3ty80xBtr6hr7JH9qAHJSWEs6ssDO1RaT2dPbOK4FzRGQjAbBx0u+kEL+MFQiHnCzarruwM7KV8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13015025)(8121501046)(5005006)(13017025)(13018025)(13024025)(13023025)(10201501046)(3002001)(6055026); SRVR:SN1PR0201MB1504; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0201MB1504; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1504; 4:+FS0389DsxZMWCV7CCTHM+rQV5dWU0TlLdnm5Q59ubcT7G44bwESgrYZUNxxWzAjKzMyhjPppfSxhwwunxYbHSLdtc4No/oj+oWo+npGED5S+3xRLjrzxzD9CUlJ3XZJjZFf699vQjd9Aal+Q+sAoCXGDu1wcbEVEP0QRvV8RyfE6iCDo3SBntQab0hwm8RHuniWoim18di9DSYn6+PtcbW5XoXAA/MS3fEbeLdaUzG5CecmGA6BjsS/CXLTm5xdevSofJgPttEDCrVI8bW3mIoyzcI6ce/MQsvUptjW6o6bbxK1NYvtojjAHNmfdMlmjPJ7VtGCJ62y7F5AXP4Or6rZViXON4U3ntKd71R59rzQPm8TDKN+jsrJ73sA7bfwkpxlSoJ3ouexBUuwhPnn3XQ/mNtBVVFIH8Sp7J2Y6nIv4BlyPD7Za9/gD+brpCUBczEXONeviGjk3s9EDAmQHq0mmRTtNj/ezztxZn2o2CJVW9Dw8jcvHTkngUwlq+g+b3Jgkwf+T7sz4Xu37R0v6cJShrBpKcFwp8aRZQJkKic= X-Forefront-PRVS: 0050CEFE70 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0201MB1504; 23:YJpn5g9IjD08iX72qN1JmgPJ+xKxKl585yDygGN?= =?us-ascii?Q?TCEZrir/Q84txVC7DcSn7feBEVdC1aX5NOCewQH04ShhrFOE1ovOiB5g137O?= =?us-ascii?Q?/RIHjo39wfw6n+oXXfcQCh5AjXKorknF6ESweEO3aP2p2kpzNy009SqhJGDj?= =?us-ascii?Q?d4v/Kk02KBlR0bNJSbCYxmDB0qGPFlt2c3TBUZwpaK/vvQiab+x2dadIbYxY?= =?us-ascii?Q?OgCOMMI03pKfuL+hKS31IZt0pDZ0e3cKvR5luL9n36OikCtDn7zZxmSFv3PU?= =?us-ascii?Q?NkRKH71KrMfiYWZKGEhBApZva/OYklPwPdxKd65xTFge/ACLmkEBPrNkEqyH?= =?us-ascii?Q?HhSn8unY5yKKOiIOrjm5wiszVFmjbdvGAgJGEBhczKyNJAjTKa0S2vCGSbGT?= =?us-ascii?Q?y9fLWFVotIDvo9MEU7g6NSduq2I48j5gRrp6Kqz/RxotDvrB/KUwDfGNZWfi?= =?us-ascii?Q?q6iZ0SsanpxwuPL+V4xL+p+T6sX39s70f9IlxFNeZOvyIr8pc2F+9ISR83Cn?= =?us-ascii?Q?nfRxDO7vzHFRhjfMTkHnDiFHENY5E2qN4WGrKGtchM6V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MfcO4Qhkmil7oSw7JvZAIfwLG0JKtYxYNX3WKracmuu7/Xku5Occ9WwkZEyP1gXYh1TXulp3wJQeboCmT3EdIdOB7cKWeNlogUSi9dRGHx9LrhVUI/Xhez0QJVmTnYnPRSNTZ8Nt2fwWNoeS141ig6BZXdH8x3sOA==; 5:mj8Oos7tOKiH9q/gzWg2K6kDdsarcpVmGFUPXuutCmIqzo/Gu7VewDpObJ76q73Eslfhw+6WRCg+p7TEaTeXEbblffrA+gSxVNbzh+7ihbbttvTA7EA4SjTJid458ODB6i0S15VKcrq2mxUqOL3jCw==; 24:TC9BIXkZ8oZn8Cp/bKoV2CzNExb2G2XXLIpaUInWGaoPSr+9QeTdkJZPUY4X84YaZ+CVjEoHzqrEGYcox8i/w2Q7Cy1er5QCF2msDiEKpYM=; 7:3eAO9NoljPuMORBmETLnZR5d9vzkgZpdKNqJAnruEqqQhk26XkysMgImlzx8Tb0GK+Fssw4L+XtQTheucHJ2DxhhSquePMM5In56+MrGoWyKfWNOMYk4Rt8/YwvuAAL5PVh2oSjIpNHApEaYeiTkHKle+ho1wwjurRuSfUCCx1/tUNqY//SOq0Nsyyqhmc4IDKB3IQfQwPolgU50Tx1XnZXe5+m7v80+DpIsl8cQHENMO6Vx7URmlN4iRQ5EpjWj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2016 10:39:54.4292 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0201MB1504 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160830_034017_471350_401E12DB X-CRM114-Status: UNSURE ( 8.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bharat Kumar Gogada , linux-pci@vger.kernel.org, rgummal@xilinx.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The current driver prints pcie core error, for all core events. Instead of just printing PCIe core error, now adding prints to show individual core events occurred. Signed-off-by: Bharat Kumar Gogada --- drivers/pci/host/pcie-xilinx-nwl.c | 48 +++++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/drivers/pci/host/pcie-xilinx-nwl.c b/drivers/pci/host/pcie-xilinx-nwl.c index 3479d30..86c1834 100644 --- a/drivers/pci/host/pcie-xilinx-nwl.c +++ b/drivers/pci/host/pcie-xilinx-nwl.c @@ -85,10 +85,15 @@ #define MSGF_MISC_SR_MASTER_ERR BIT(5) #define MSGF_MISC_SR_I_ADDR_ERR BIT(6) #define MSGF_MISC_SR_E_ADDR_ERR BIT(7) -#define MSGF_MISC_SR_UR_DETECT BIT(20) - -#define MSGF_MISC_SR_PCIE_CORE GENMASK(18, 16) -#define MSGF_MISC_SR_PCIE_CORE_ERR GENMASK(31, 22) +#define MSGF_MISC_SR_FATAL_AER BIT(16) +#define MSGF_MISC_SR_NON_FATAL_AER BIT(17) +#define MSGF_MISC_SR_CORR_AER BIT(18) +#define MSGF_MISC_SR_UR_DETECT BIT(20) +#define MSGF_MISC_SR_NON_FATAL_DEV BIT(22) +#define MSGF_MISC_SR_FATAL_DEV BIT(23) +#define MSGF_MISC_SR_LINK_DOWN BIT(24) +#define MSGF_MSIC_SR_LINK_AUTO_BWIDTH BIT(25) +#define MSGF_MSIC_SR_LINK_BWIDTH BIT(26) #define MSGF_MISC_SR_MASKALL (MSGF_MISC_SR_RXMSG_AVAIL | \ MSGF_MISC_SR_RXMSG_OVER | \ @@ -96,9 +101,15 @@ MSGF_MISC_SR_MASTER_ERR | \ MSGF_MISC_SR_I_ADDR_ERR | \ MSGF_MISC_SR_E_ADDR_ERR | \ + MSGF_MISC_SR_FATAL_AER | \ + MSGF_MISC_SR_NON_FATAL_AER | \ + MSGF_MISC_SR_CORR_AER | \ MSGF_MISC_SR_UR_DETECT | \ - MSGF_MISC_SR_PCIE_CORE | \ - MSGF_MISC_SR_PCIE_CORE_ERR) + MSGF_MISC_SR_NON_FATAL_DEV | \ + MSGF_MISC_SR_FATAL_DEV | \ + MSGF_MISC_SR_LINK_DOWN | \ + MSGF_MSIC_SR_LINK_AUTO_BWIDTH | \ + MSGF_MSIC_SR_LINK_BWIDTH) /* Legacy interrupt status mask bits */ #define MSGF_LEG_SR_INTA BIT(0) @@ -291,8 +302,29 @@ static irqreturn_t nwl_pcie_misc_handler(int irq, void *data) dev_err(pcie->dev, "In Misc Egress address translation error\n"); - if (misc_stat & MSGF_MISC_SR_PCIE_CORE_ERR) - dev_err(pcie->dev, "PCIe Core error\n"); + if (misc_stat & MSGF_MISC_SR_FATAL_AER) + dev_err(pcie->dev, "Fatal Error in AER Capability\n"); + + if (misc_stat & MSGF_MISC_SR_NON_FATAL_AER) + dev_err(pcie->dev, "Non-Fatal Error in AER Capability\n"); + + if (misc_stat & MSGF_MISC_SR_CORR_AER) + dev_err(pcie->dev, "Correctable Error in AER Capability\n"); + + if (misc_stat & MSGF_MISC_SR_UR_DETECT) + dev_err(pcie->dev, "Unsupported request Detected\n"); + + if (misc_stat & MSGF_MISC_SR_NON_FATAL_DEV) + dev_err(pcie->dev, "Non-Fatal Error Detected\n"); + + if (misc_stat & MSGF_MISC_SR_FATAL_DEV) + dev_err(pcie->dev, "Fatal Error Detected\n"); + + if (misc_stat & MSGF_MSIC_SR_LINK_AUTO_BWIDTH) + dev_info(pcie->dev, "Link Autonomous Bandwidth Management Status bit set\n"); + + if (misc_stat & MSGF_MSIC_SR_LINK_BWIDTH) + dev_info(pcie->dev, "Link Bandwidth Management Status bit set\n"); /* Clear misc interrupt status */ nwl_bridge_writel(pcie, misc_stat, MSGF_MISC_STATUS);