From patchwork Thu Sep 1 10:14:43 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: 9308777 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 879BC607D6 for ; Thu, 1 Sep 2016 10:18:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7652D292B1 for ; Thu, 1 Sep 2016 10:18:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AEE0292D5; Thu, 1 Sep 2016 10:18:17 +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 675CD292B1 for ; Thu, 1 Sep 2016 10:18:16 +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 1bfP3A-0007w4-8u; Thu, 01 Sep 2016 10:16:48 +0000 Received: from mail-sn1nam01on0068.outbound.protection.outlook.com ([104.47.32.68] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfP1t-0006Kq-Qc for linux-arm-kernel@lists.infradead.org; Thu, 01 Sep 2016 10:15:32 +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=8QUP5aDA7xMeXB+XF60/5OmAe3w2JvBnq7Ja+n6SycA=; b=Dko/apaP+zazuLto5QYWx6Ui0NkNOINZV+7loDAycMa+tWE9NDrTSj19z/Yt7PQPB1Xg0ZurJTDJh4RamihOnnOrf+SXUOgKObQ34kccpU/2O7OVYML0FjEW0SysJyat4qtqtYfRY/w18kfEEcBpcma+2zd/Q6HRH+aYj2T1FAo= Received: from BY1PR0201CA0037.namprd02.prod.outlook.com (10.160.191.175) by CY1PR0201MB1483.namprd02.prod.outlook.com (10.163.139.153) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9; Thu, 1 Sep 2016 10:15:07 +0000 Received: from BL2NAM02FT023.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::208) by BY1PR0201CA0037.outlook.office365.com (2a01:111:e400:4814::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; Thu, 1 Sep 2016 10:15:07 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; wanadoo.fr; dkim=none (message not signed) header.d=none;wanadoo.fr; 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 BL2NAM02FT023.mail.protection.outlook.com (10.152.77.72) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Thu, 1 Sep 2016 10:15:05 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:48444 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1bfP1X-0000CA-4R; Thu, 01 Sep 2016 03:15:07 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1bfP1R-0002Ls-OU; Thu, 01 Sep 2016 03:15:01 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u81AEqeR001828; Thu, 1 Sep 2016 03:14:52 -0700 Received: from [172.23.64.217] (helo=xhd-lin64re105.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1bfP1H-0002Ic-Rr; Thu, 01 Sep 2016 03:14:52 -0700 Received: by xhd-lin64re105.xilinx.com (Postfix, from userid 45489) id C128BCA1C4E; Thu, 1 Sep 2016 15:44:50 +0530 (IST) From: Bharat Kumar Gogada To: , , , , , , , , Subject: [PATCH 3/6] PCI: Xilinx: Clear correct msi set bit Date: Thu, 1 Sep 2016 15:44:43 +0530 Message-ID: <1472724886-28301-3-git-send-email-bharatku@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1472724886-28301-1-git-send-email-bharatku@xilinx.com> References: <1472724886-28301-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-22548.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)(76176999)(50466002)(46386002)(48376002)(19580405001)(5001770100001)(19580395003)(45336002)(86362001)(626004)(36386004)(50986999)(47776003)(106466001)(63266004)(8936002)(2201001)(5003940100001)(11100500001)(92566002)(103686003)(189998001)(42186005)(33646002)(2906002)(52956003)(107886002)(8676002)(2950100001)(50226002)(90966002)(4326007)(305945005)(7416002)(7846002)(81156014)(356003)(87936001)(4001430100002)(81166006)(229853001)(586003)(5660300001)(36756003)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0201MB1483; 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; BL2NAM02FT023; 1:Nso4zg7OtvB2Wy/nOLsIy9Rc2S9PaGZ+Sbt7qkQAwwqwp3an5XbxGCMpnm1OxiiEcNnuRVXuSQl+mNCRHA0q/tINY+jSW/7Rl/uLY+UF1f+G99CwuF+IiVsc8d8nZh2cpYNj5Ee7OBAewk1c20qPUeAdAYpthQt+z80h80Ab6ZzM+UPMhRMtnTQW24SCYYGQTAVjnQTbm2zWdFuTX4dwLJOaVdnAGG5+97m0nCOje3sF1+pDvCaKr/hAxVU+cwzJoH+V2o9UKBwrflkZsrdctOifbpVhk83asxKc/xXZm7VIgeiBL2cz8xQ1uXWp8+8JwmIpCyD6WRxV5IOvAsQX37YnC5bHDf0rSe0CpWsopeQ7gNo0PbqnfPDFuQrufjKUUEuodWkdZaliBdiAbJsyvTbYL0uOBq7GbodyxxGlx60Du4x6dki5HSsxGMltfVaBgc36Rt62K40Add14GgBO+odh2l/VCWWoiSyIXr0D6hnQ/bIx82E//mnVoOROKCEiK3PIyfkDnZWYDOMPMba65AsxxgxnSLTcqRmkbJxpv7olOYbfURm7YyPjsb3FTVjWwcNWo8e2yBnUcmuc51+dNNLUa6YZTObOpwtPiSAh68vmm8BRh0LFCV8A50HQwvvoDa9LvyCrRx+AbgNxnwaDAw== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 8032c48d-15b8-4b82-9443-08d3d250d86e X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1483; 2:tBv21bujSE9l6AG50x1htb7OIJWc0LOFweN7u9qzpQrIw+JbIJlKaRUeHdHtf6mZOpLRZScaoWDvwPgws9pHVVfWZfhtwdJG2KyrvJOy4/dpmrbEe+ZHv+TNnmImr8aUuTxhfp6rMuq0FJss9iiu6Yti9W8Raj72NQtT1KTyVMHfGeW2/K8ehWuL1/LOklwq; 3:Qz74hwko8+sWpBTc9BUU3eF7kHDwlt70v4M9NN6pffEHs1uxRfmYIqfNhGM73bXYqfSjuXB32UwLlChiyptKbs3VHX2eQljylesB/FsbNWnfBltUVYY6f4uUuam9saxDg6W2VrUk+5Mh2pvtk2kaG48IQvWnWxOtPj6dCvrlRIQtI4c9JJsRwGiPHXCul4eDR610nq+knpxPAkgZHvMWlrz+XcXZYcX4j6MEIPXDJD7C+elLKO91WrfQFg4BT40uONF/Ey2PvNhymjm3QVa43g== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:CY1PR0201MB1483; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1483; 25:0PkwO0e9SzScN5fHNpi3D5+/r0Nv7w5u9SsfqXjhxK9Y0KQ6BezXBpHkJ1ERDk2ohqI5zq1+Hel9ig4AfiWkBELKwir34gTKczlMg15+dZtGoj0XAwsFooIaBU2dNWOgxCeUu0zi70vs/Hjv9A2hB2N1WToN22FK34LCTJG6XQ7jYuen82b2w88G0kUBivMPiZnjwjqjvgpgdgHwtlclTZexgnXpYdXgQ6aAykel6IwJRlbEdPK1C6GpoyTQR0k+LHTSuWdVFSqc7xHG3vwznKFAXiwr8mJUZGx9gFG9y5DTvVd8DwP6NREZrxC68KzRlU4DK299As03ojKSuww9SzTKmKZ2kC4yiMI3HOqn9dQCA4zJ7Ko2xunl80ZNVkGzFwu5IR+sB4ZkD7dR1Ky2zMY4mlF/jvnFriV34xqOAKmKLCaUKq2OXBkrVDkP33+4VzITqUWMkhzjztTZAKZ1v1G0tdbyt+IvSGPu6/emL/8Dp95YQls+pUAm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qfbdMx 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)(8121501046)(5005006)(13017025)(13015025)(13023025)(13024025)(13018025)(3002001)(10201501046)(6055026); SRVR:CY1PR0201MB1483; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0201MB1483; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1483; 4:OuD3AmCxUJGhCddxB2Y3FTus36HYazsa8LfyyOmfNOPc/0duw5Jjhwa+7VFyEuCOidUPCxALRWfjipVlJ9xme0ridGGPFLiy5a4F7QiyMHk4bdeTeYmAdrBh97immFl1xQMvHMWWpaPfddqkcCCyZ0tSAHu3gMUM5rz0n9YEVlSKoMS52ADrmRWOCCoBZpPTP5XorLvurb3VxEGwLCOvn5DCDZYQ2530L+BM7A6K0hd4Psxcl8cfp1BtBjmAZy64XebCE5MqP0cXxfD2yWlq1KqSRu6RhwB65zfzx+WGtToNrW/GvSV89T10M47MaukRkTBQyzkVsBymF5u9GpT8MOMTRLdZhdd70zSYdB5dGUFC2OKODr7RtlSlX4vtPk7wEUhFu8hn2+498V5WUjSNHsQ2MYxs76UjdjfXOEi7R2NPiLOT2I4o5xWoBFQHtysj1DCmq5uytmkThwjFUTDFQh0aIjB351ZxgjbIIT+udYypnlAiOJ+r1RWwuKpmRXQngCLdT6OQU9SjqK3Bv2XahQ9rehEM3BKYNr3SN6BlXNs= X-Forefront-PRVS: 0052308DC6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0201MB1483; 23:tKA4Sdn6krYXHJp9E1PWHna7xfY56QYJ8U/ymYx?= =?us-ascii?Q?yd+W0e8lHWLXYCCjnZhi2YqX4fsWBda9zrXqrl+i4iW9LuPZZqFRgZ7PeKga?= =?us-ascii?Q?oeDif0nLCofHI79Na/GcQSbjaU7hzvmi59AePBT1pAkPIt37viibRAezyLbt?= =?us-ascii?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xld47HjFAaA1DhJR57bEFcmHLBgtf1x3+FvwdHbMe8a7nyEfoBRqZxgXKBCDQ2z+zhXN3ln83gdflLtWpH225f3iiYruLAgvbElE7t9rGXSNHSsO0kVonZXakPM8V8X2IdiTKyvGJbAU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2016 10:15:05.7839 (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: CY1PR0201MB1483 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160901_031530_098468_4D01AB61 X-CRM114-Status: UNSURE ( 9.29 ) 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 Kernel provides virtual irq number at teardown. Get hwirq number from virtual irq and clear correct MSI set bit. Signed-off-by: Bharat Kumar Gogada --- drivers/pci/host/pcie-xilinx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c index de1c758..ec2844a 100644 --- a/drivers/pci/host/pcie-xilinx.c +++ b/drivers/pci/host/pcie-xilinx.c @@ -221,13 +221,15 @@ static void xilinx_pcie_destroy_msi(unsigned int irq) { struct msi_desc *msi; struct xilinx_pcie_port *port; + struct irq_data *d = irq_get_irq_data(irq); + irq_hw_number_t hwirq = irqd_to_hwirq(d); - if (!test_bit(irq, msi_irq_in_use)) { + if (!test_bit(hwirq, msi_irq_in_use)) { msi = irq_get_msi_desc(irq); port = msi_desc_to_pci_sysdata(msi); dev_err(port->dev, "Trying to free unused MSI#%d\n", irq); } else { - clear_bit(irq, msi_irq_in_use); + clear_bit(hwirq, msi_irq_in_use); } }