From patchwork Tue Aug 30 10:39:18 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: 9305173 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 0E593607F0 for ; Tue, 30 Aug 2016 10:42:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0ABA28B73 for ; Tue, 30 Aug 2016 10:41:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E47CA28B7A; Tue, 30 Aug 2016 10:41:59 +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=ham 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 DCA7E28B73 for ; Tue, 30 Aug 2016 10:41:58 +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 1begSr-0007hC-5g; Tue, 30 Aug 2016 10:40:21 +0000 Received: from mail-co1nam03on0071.outbound.protection.outlook.com ([104.47.40.71] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1begSn-0006v7-Fz 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=p3nPjorfcxWd7EAoPoPxqZ/+tYUhJaJJgqcs+rVE9QU=; b=M5XdjHVOyOVudzRHxPnlnsfppawR/tzNYehgpJGHHsiHEuz4aiIkg0ZrKoM/vO8Mqxn/eRtL9UIOFliaOw1dzGHk/Ju7irymkCK2ZDHLf4K/Si9pvnamEWp3uZxgsakKrtBYncT3syctpZYZz4MtO5rax0vM1iiOAg6xaPDWFYc= Received: from BY2PR02CA0089.namprd02.prod.outlook.com (10.242.32.47) by CY1PR0201MB1498.namprd02.prod.outlook.com (10.163.139.156) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9; Tue, 30 Aug 2016 10:39:53 +0000 Received: from BL2NAM02FT043.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::207) by BY2PR02CA0089.outlook.office365.com (2a01:111:e400:2c2a::47) 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:53 +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 BL2NAM02FT043.mail.protection.outlook.com (10.152.77.95) 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]:44552 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1begSR-0003va-2K; 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-9E; Tue, 30 Aug 2016 03:39:53 -0700 Received: from xsj-pvapsmtp01 (maildrop.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u7UAdngD017305; Tue, 30 Aug 2016 03:39:49 -0700 Received: from [172.23.64.217] (helo=xhd-lin64re105.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1begSL-0004zs-Dh; Tue, 30 Aug 2016 03:39:49 -0700 Received: by xhd-lin64re105.xilinx.com (Postfix, from userid 45489) id 4EC67CA1C39; Tue, 30 Aug 2016 16:09:48 +0530 (IST) From: Bharat Kumar Gogada To: , , , , , , Subject: [PATCH 3/3] PCI: Xilinx NWL PCIe: Fix Error for multi function device for legacy interrupts. Date: Tue, 30 Aug 2016 16:09:18 +0530 Message-ID: <1472553558-27215-3-git-send-email-bharatku@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1472553558-27215-1-git-send-email-bharatku@xilinx.com> References: <1472553558-27215-1-git-send-email-bharatku@xilinx.com> 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)(199003)(189002)(2950100001)(81156014)(586003)(90966002)(8936002)(50226002)(356003)(42186005)(45336002)(36756003)(7846002)(305945005)(86362001)(8676002)(2201001)(81166006)(46386002)(50986999)(11100500001)(76176999)(4326007)(2906002)(36386004)(5003940100001)(19580405001)(103686003)(5001770100001)(48376002)(50466002)(189998001)(5660300001)(106466001)(107886002)(229853001)(47776003)(52956003)(626004)(92566002)(63266004)(33646002)(19580395003)(4001430100002)(87936001)(107986001)(2101003)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0201MB1498; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT043; 1:n1mlHMe3Xs3O/Wh/wDIGYzuA1NFtASHYUDRVHnyyQaYBxk3ejkcCO2rSohYHYf+JaXU1mr+Zmt5cnpQiJAoAFlPOOz6ny+RdOn9NVFOJ5OXSbvlKQ7Z5av7HKWvGpNXP8GW4vCuUtBF4v+vTB6Ma0nh+mhZXMbtFUaJGk9yI41y+h4qU0EDlAkb5ldMn6YtlfDRv7oITZs0BmO+yneitP+69ffYIdJ9RscbY7jaGgn+WKhpx1k+5/9beLkXA6GMUd/3U1fG4BqCAf3EKf+ti/lSOUsv/sujl40vkIZqN5f9p4vlHhoBY1HHMRHvzBgsgQVovQod2qjizgLOZdHPn9lNqeSY10OWidy5xuUhN1urXKDprJZOIaENDLNaSlO3i5kW2wzYBwMgLbJgRgsYsuZcM1fRTc6zfDaC6stdHYuyvZxrVL8duBpf5RhWc0NwlGlztOXQRJjXHVL2uAyo2Une2xg7LuCZWI7VBj1ckBWy9+ajEFgQu+/MoIjQBg4sZJtybc7OrGBikyB4iIjPNxs5OmheXQHqPn5wsHLGKWVUrSNYvlWLPoFg5EaSXcvIZfJOTlHIfdys9TluH9+1fnTipqRR0tJPEKQ6wS3Q6zz09j9fTIpqHZx8qnCzlOW07 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 59301840-4e54-4cfa-8d25-08d3d0c1fad2 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1498; 2:YUUP4Qe9ewnz5GSBnsdwJqTQoLz3ndyG03rD0g0GFwSi3MsMCmLrzSpQcJeaLJkWN7h6YcTCZCpa8mC50ZUZXytm7EjRrF70VZaR95wFOhkXH4kUWqQXuDd+Wl+YimVNT77MyJjVNz/XozZdpBQLra2LUqDNwKCFkMmLgthYlKvAciqlmPJQI/8DHEGuy1a0; 3:A5wqJX/jLd9nya/yl6YNKfyL+QvxHKkh+h9il+kt81fHyuoO7z5hvkCi5+QUeEFnzY23pajZ7XAnz9yrps5hbobSKeYrXlrQfJib+21zukU7gM3rk902T0hUcl/o+EU97ztweVmMNjqLSCd6ycu7OWDy3TuVZwk7qwzKn82S9KFe+sQtIFDaK9eAGhmmCpwX1ErOZWneMWfjkpO0wmRCMZybPSTdL3yiO/4aD0JfpZoRoeHe2M6pYXVEFAD9mjmoXXhc8aOSL9yK0nyCsFHynQ==; 25:NpColm8EjGDyfJeU66MSDK6iUOJongc/74wcskUE4ogvQFCEwf9SGUAUh26DezauJagyU0NC8aniU8NnORjDhO912rSXlXvoVSo/K8Re6g71c+kQ6Y262FoTevTV8MliK7qH0w7HDWSgx6l0578/ZedpTJZXtVOzCavP6VEOhf49yEQSkJPjWyTXFQPLCFXzwELH0pN0Ljbdl7S6Nv84GSQ4Xx5f83mH6MSDMFTTroh/2G6SQwrTegCP0MsOPk6HBA2wuYP/Z8PHV1c7nNuODLX/SrtACnllRXIytgQe3khxfhmFLVTrH2UuO8SPbzD4iwd/PGNPGvusYed+TQrBhRS/UQm7EoMoDRurRAL/vZ6kLfjhJCX6Bwvha5Xi5ESXJG9BznW5jqcxK9gTmg3XAJ8EsGTY0eLQxU0FYj5QvPQ= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:CY1PR0201MB1498; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1498; 31:DsMPok53JQhmY/VJPWYsO48fh7nvHLlGMj5xL3jcHcNO2bctbEWectFgNXMtFKElwSO84s2Xm27d7VZUQaco+Dqnkv67QNQ04qKe/ia6L77ikki/2eEz0lWpe10oJSOETu5CSQ9imn0/GpQDraG8hXqpxHPOxbL4yrmsh1EuqvYduMCVDCS2ZK+bhrAW4icICU0TK1jukogAYQh2ZJu7wZyMp7fNzUB/Ot1ThEX5ZTM=; 20:vhLQLsbRZPNPGl8E6pHY5EQk5IWhJdht4Guhi4EAXsHUxblCWH97wxk1SCS2mRKME3b5boPUJ0Vjee5sczUiPac4nP7DYz+bruGyQlXfEqshHbyNp9VA3S7ZK0XLSEAEDtiRnZgdg/2mygvrQjYE+x4oziQzvT1RAxRLw4ASASmFuQYlNqBmQNTq1+jfYT9ZJUjWKTqxSydM5njDxCLc9oaeg7Wy94pWoI1BTHGC80BcYYKbCkBVIN0FCrAWh8ms9FyPd9ImwTszwbM/uDug/sxRtgysSQEmS+nk3FQgglXnO4yokhzULvc2Z+IdeUlrurM9hwFMqHHeG7Z/nTq4dmWnnxxkxynzqsFRUJAChGf5ETcz2H96G6oq4U/Z0sAgzplWfNRxbqxJK4cbj7VHZ3xaRRIk1pw4FmD7ub0h2h22EMzafED7kk8ml3OZV5XvCqlwQjNWPc66prseq0q1kdL+h19ly9Rn/bBWv9CtmjmdwalEJaUtnBaRZ4ReuLs2 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)(13017025)(8121501046)(5005006)(13015025)(13024025)(13023025)(13018025)(3002001)(10201501046)(6055026); SRVR:CY1PR0201MB1498; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0201MB1498; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1498; 4:qGO3ce+07CqCe61zO0TNP7h9j76tSJS1Sj1OcObmLhdRToPz/aPIPM6KrDPDYJyO7p/0/+yKsOecyWPhxhenztf5/jpfTAUI4HisWYAkLXl0P6VAtr9gqFmwB682hlJzbouHZZED00yJJ8VJF9BLI9LvDtZ2va3c+zuA3pDJdCz4SxvgRwpJ7qr3B901fcOvgzkDoEA8nAlab77kYjOWNK4SviaNUIdfAvIvp2IRFTlI+rW09WCxTeAUj69ymm2G45kRjqxRO9HCJNs2jlmfr0YifExhdGWFsyrqUwDTunJjykgPHXQrN+3qDqjoRzwfivllYkN/6ab5gWXl7hEQmCBVr+KUGMhzOinmh+ojIYcmBx15+6Tx+tOrBgUxFmgpZnUFtBq6hHBOrv3FaDcoXKyp+uw/Fx9uo1tWHkP/HkMnQw3BaJKghwrEIqyTJasVSfcSSSzjzfkRNr6ANqh7K9JzL2+ksYb6V2GUyvWKhRFda038/toJFJTyH2ndHBp/D8IZmvQQqihJoR5X1waliwns0UTkjlRWE/nOUbbuC+4= X-Forefront-PRVS: 0050CEFE70 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0201MB1498; 23:+gDdeREgLudh0VyQTGV5RjlceciaWROHfp7ZbCr?= =?us-ascii?Q?Zx1y5ASP0cx7zInkgfaZzvXA39scNCEYEdu10I0D4bV7NvLyfYyPdFUZ4u/F?= =?us-ascii?Q?/JKzWtgCbcj7myKulTLAvf5yk/Eh4FBqP/uR0KOIcerIf+oE7jP7EvVf/gbw?= =?us-ascii?Q?Jmvx+Ato+AikGgpYrxqzTlLEyTWXXXvbGNcDNEiW4W18FntXvu49MN3bt4lM?= =?us-ascii?Q?cqGr5Dq1dSEgWaX5IGzX+gTNovMUmuDrUC5cmT3Q6gKB9P6nGbBRktoSII3a?= =?us-ascii?Q?Js4RK9pF8vGdaGkofLQLZEWnU6oH73uhamS1UW4Lt3DAP0CmUp9VRdlo3G6A?= =?us-ascii?Q?brmLxqZGupPm++Hy4hVlcDBClpaDAROUUJk9NcCg+R3qkkf8atGHuK1NjbiR?= =?us-ascii?Q?cgN1SykN3nCtKhvtnBTSjhE/kE3obIXHsijyuqH2Uvd+bwae/PjbbUDfJZow?= =?us-ascii?Q?CUCqa14UpInuzCouwNxBbCspsvasOvqGvsLdR2YsMGex2IQ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yok5G0FXU9kVFlh9/aAMGpycoq0h4c0FUMAkZA6l6+++Z6jko3GXQQrx5VH0acCF6JBXGXZgVDxZrrUvMQLj2MOsx5Ol402xmQMZXKCcwo1Zf6N6rGDNATXCsS4Ucn8vjP0eUDMXxIBSgArIJKNtFclGYmMs6gQAHEJkoDTlBzsU5tBFBMq4S2TEVPe2cGaErO8aMB36MwkLOWiXlQGj+qcqSWr6h+bltXtXjZgOOPOFUQNhl7LbSse6EE8lg+RLI+4EbDn/BZtLLByPPvA==; 5:jpGC903r0W+EI55iMREx/jQMgSis8TDYlxvmw7akyrMzKCraFyZyYryhXHCaCL2RnHCniIpybEp1BgmK49Lzk4dY0RrMvz/4XL67hBpzOjGdnXkcekCtm9MQEyEQp6nH7IimxshDs/vj2mVbPeougA==; 24:98oXzex2qSNbZzWmWe4sQjoWckq8+PVZww6h6wF4EWEU/z2JApXPxcZLkUMeVKpaLwM6GV65yK2fh4vXnZEiL4kDxqwRcHp0zkHIu1ccqFo=; 7:eSdOCLfC+gLoWwaYSy11XGiZ65C9H5Cy1OJ+TPEUe6NGTy6a79985F9mDVZGK3BHubsgvlIllJ0HqU2mhM25SQ1gmJZRhMqon57X2o5aPkZpyUf7VEk6jQgugx4iqjlQmAuupIRI31uGmf0Zw/+fJUGLmU7iG8uictVatmzApcQHj4KQXldMy0OagrQFtafOKag6jS8dQYApaake1+CZbrlaIhddCTc6Xf7M4uoNbB7nmUfhELjDBYDg8W0jGgzq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2016 10:39:54.2850 (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: CY1PR0201MB1498 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160830_034017_697932_FF6352AE X-CRM114-Status: UNSURE ( 8.11 ) 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 PCIe legacy interrupts start at 1, not at 0. When testing with multi function device "error: hwirq 0x4 is too large for dummy" error comes. So adding one addtional interrupt when creating irq domain. Signed-off-by: Bharat Kumar Gogada --- drivers/pci/host/pcie-xilinx-nwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-xilinx-nwl.c b/drivers/pci/host/pcie-xilinx-nwl.c index d8d43e6..9f04411 100644 --- a/drivers/pci/host/pcie-xilinx-nwl.c +++ b/drivers/pci/host/pcie-xilinx-nwl.c @@ -561,7 +561,7 @@ static int nwl_pcie_init_irq_domain(struct nwl_pcie *pcie) } pcie->legacy_irq_domain = irq_domain_add_linear(legacy_intc_node, - INTX_NUM, + INTX_NUM + 1, &legacy_domain_ops, pcie);