From patchwork Thu Sep 1 10:14:46 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: 9308753 X-Patchwork-Delegate: bhelgaas@google.com 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 58883607D6 for ; Thu, 1 Sep 2016 10:15:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48450292B1 for ; Thu, 1 Sep 2016 10:15:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C87F292CB; Thu, 1 Sep 2016 10:15:25 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B27FF292BB for ; Thu, 1 Sep 2016 10:15:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754335AbcIAKPS (ORCPT ); Thu, 1 Sep 2016 06:15:18 -0400 Received: from mail-sn1nam01on0080.outbound.protection.outlook.com ([104.47.32.80]:18750 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754228AbcIAKPK (ORCPT ); Thu, 1 Sep 2016 06:15:10 -0400 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=HLxozM34sOEzLZbeNyBH4FHvvUDWy3iISxOa4XtI3s0=; b=GrhAG2H4KbTNOOC//SRxz4OMj3wxiz3svRsT/b0jpnOW3P75PUqBKOkB9fmSDZWPvJk+oiHtF8cf6Y2FKyOrJ6EQXVUg/F6Xy9lPyiNZWOx3kvqqsQFigKMGibiA2UQFPAoIJzuXX6ALj6ba1Ie051AY9E5ghfGyjTOJUuEFo/I= Received: from BY2PR02CA0007.namprd02.prod.outlook.com (10.163.44.145) by BLUPR0201MB1489.namprd02.prod.outlook.com (10.163.119.155) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.9; Thu, 1 Sep 2016 10:15:08 +0000 Received: from SN1NAM02FT026.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::206) by BY2PR02CA0007.outlook.office365.com (2a01:111:e400:5261::17) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9 via Frontend Transport; Thu, 1 Sep 2016 10:15:07 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) 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.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by SN1NAM02FT026.mail.protection.outlook.com (10.152.72.97) 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:06 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1bfP1U-00039N-6r; Thu, 01 Sep 2016 03:15:04 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1bfP1S-0002Ls-LX; Thu, 01 Sep 2016 03:15:02 -0700 Received: from xsj-pvapsmtp01 (smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u81AEsuJ001834; Thu, 1 Sep 2016 03:14:55 -0700 Received: from [172.23.64.217] (helo=xhd-lin64re105.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1bfP1K-0002JS-FD; Thu, 01 Sep 2016 03:14:54 -0700 Received: by xhd-lin64re105.xilinx.com (Postfix, from userid 45489) id 73129CA1C4E; Thu, 1 Sep 2016 15:44:53 +0530 (IST) From: Bharat Kumar Gogada To: , , , , , , , , CC: , , , , Bharat Kumar Gogada Subject: [PATCH 6/6] Microblaze: Modify microblaze pci specific code to support multidomain. Date: Thu, 1 Sep 2016 15:44:46 +0530 Message-ID: <1472724886-28301-6-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.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(87936001)(8936002)(5660300001)(19580405001)(2201001)(2906002)(19580395003)(5003940100001)(36386004)(5001770100001)(305945005)(189998001)(106466001)(42186005)(92566002)(50226002)(50466002)(48376002)(2950100001)(90966002)(76176999)(50986999)(4326007)(103686003)(52956003)(63266004)(356003)(33646002)(7846002)(36756003)(107886002)(46386002)(229853001)(4001430100002)(8676002)(81156014)(7416002)(81166006)(586003)(626004)(86362001)(45336002)(47776003)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0201MB1489; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM02FT026; 1:ki64rIm7rK2oX2NTw5NYnZj8T2DoIr/l9OfW0JyVW+QOV918RJpr/8fQF3JYKHXAAdds3ko0bEnaI8ra55/HiwIUwgaSMMFD+1lX0AzosX81YUcuEf/IvhaiGKHLfz9THbIt1Xr90TQqnCKglc7i5Ah4IrTTMFtvusggp7b6iN9t7VIy//P5EXricXxiqxP1s4Usji7Iv16RokDzJIA/e7eOYQ3y+1NKUNFJFziXXRoludXZUFCF+ZwqEgbYiAJmnosPLUXFPAaOJFHhH1Cgo1Mw8M0FK3drn4UTZXl26bvXxH4WjrIi96PRvTnopnYh1SjmMyktwP2RbiVfh+hJT9fZ71xK0iUvjJxE9syxfQQqUf9e6PaSXokx1qwpoSb+w+QpHhv3p05UrhYoukon+5D+3X+CzvTBWcbLTyAChQQ7jNfILB3KdO/J60IWTwEPCk0EYZTS7w5sY1O/cTdK6X4J+njOnhdqNF+BEIMJpQvicig+bGbDwwJHvlVWnh7yXtDy1qmwKbHGpRHTKha3p2PQwEEVCniWwmSfdw2j/0dlsUPjcwW5WRckUoYaxSx1wqQroQ58VOyVk573Fpb6YQGCqDNW7T2tz8EIwDoCsUpDqxSbdoWXKMftgbzRuKMTCJgfgSxvf52JAIHR/P6CBw== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 39b01511-577f-4468-8436-08d3d250d92a X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1489; 2:7DHtS2XfYDyhpFIoEPz82vUalTexbDMPTUM2jqu+zAehhUNQQF4ppq77JLVljX8lgaEtrmH4XyGVFWS+7Q7J10ePQ1M8q5rTdIEWI1mgbeBZQgJR71sM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rw6/Hfi18dm5vCrfXN1u6deIt4LxQkX+4sqcQ03hLbMkmnw1YUkIeYx1R0mHOUNDF38hlAro8Hl9ZSkshE3haZYMz/V/lHph/+dbS+5mP2hBrlf/8lZaAk8Rm9bALFxY0iLacvKuF1vUxh2USW2ZmC6obVLRv5Usorgu5ZRSgVfPhUoA3259z6unQoH1nsQ== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1489; 31:+g0TmqjrnH37uVeKjxMTzV42Stb16yxDAVGHX0rxVSiKJQUIBJwJkOe372M8BZ9OU1zT6p8sji9On83rR6cTPlqM+uyzreKeOgquxGPl76SCi4QYH34gqp3Dv/Waf0cYvM4Mydg1YpaPaQMV0uzSaZS3cR2q/XCp40e/7Ey5Lgl3jHvSBZjwAQeUlhkiPOQwcEgWexZ7/yXrUBn1G1MaSUBCJWSeWI925soQvxTD+cY=; 20:hvuasdPVyNYWRbSXX6kXQmvnwAKh2FaQGYwFkqSG3jBKsbjrnqM8tPh9hR6vXCuvF71VMX7dPsYC09iTOZ/0s3B2NDIPTHGzWmHBCaTMwxH4OmZk0z2h8ftCGAKM2LvG+Z6Co8DgYMQMJ8KiSRyjMIcUgAMVaZMuUlNKfq3/BZOKR8ZALgES1N91ymlDOdbI+rOoviDrjDyzE/Gqd4/qXHWSJeZtEc20cRmZeMVpFsrDeFo/9N07NpS3R+uVsH3yzIVyJNzTHygMQjX/BUZil7qL7s8PBFWc5nT6Hd157jGXjykEOwt+EI0vy6BPDuW6lBXJRWM4DdyC2yda058Gg1hsTRH34fa2bFJ+fA8z0IvjHt6rQ54GBvEG3fKhQ2xwfYBPQEan5NF3MWgdfHBLwqUE4d1VZr9/voXQBANuJFuwXLNDKs0OlKqGiFOt/OdW1Cw/6E1n15J+g/d+EdyBRirprBCvJM2y3M0zowgOebqHBp+r4mvu1Z27Da3f4hfu 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)(13015025)(13017025)(13024025)(13023025)(13018025)(10201501046)(3002001)(6055026); SRVR:BLUPR0201MB1489; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0201MB1489; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1489; 4:AqUqW2bpKpW2oIY8PKmMAbDwCZo7xTyCDp9Ppks/WcL9DZD/C7h74AhRRjyC30RigWaqCmBwImEUq2asftNljKBhH4I2NnwA/Jv6ZNzIq/PmN7fOTltlnZDWd2P5hyYPUY67Xm+xAVBYgHVJpdbmZNASd1sCggHWRn7ZMuieGIrXj93Jqs3YmCi1mzh4wsnYh3/Q1fhURVEllUtOw+OqXEv+C0C9v6W9NwkAq450NPH4pUsCYnSeXoimJ4hBS7VcfCJ4AI5Xej4TZtJQgQgmwR+jkWsYr0+KM99yU5K9pgBcr5ZGuQc/dJte71jXL4wrHXpL6LFoX282B9l0Lo2+phw5NBCXD9OaIlmxoA18nP6gvgS3drovNvocOidhjW66Z3l3DWsFNqDDXXLopqnEEVUAFvZb/8BPCDjELb5UWAdO5zUfva0E8bECgTC/Xl1Hssb8/Hr4Jh1L8xc6mJRDwBSw2jWBKV1s1hQYoSo9g/lv7Clbw4XOFT2opb9lhcUUCB77E4QwFV8H0mAlJe+sz7ERQcKXWQ2PulURH19NE+4= X-Forefront-PRVS: 0052308DC6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0201MB1489; 23:Qah40sXWhQHzszDihFbbKIGsLV4T+jCJPV3b/Pg?= =?us-ascii?Q?KY2ODsvAfK6KToVxAPOTFyuak2jjepySe30HXlOQG/i/DKDiNwkscNaH8Xcu?= =?us-ascii?Q?iSukg7ZG6jI6gt6mlINKb3198BdUEpFoodFHTfLz2BXC6z5k40p9aJcb3Rwf?= =?us-ascii?Q?wSPbzjDa1AcHWV08rHXltw0Z6SO2VhbhcReRMpBmakP+VNFtO6Ml37WQbcUM?= =?us-ascii?Q?9b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Metadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2016 10:15:06.7811 (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.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0201MB1489 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Proc entries will be created for every pci bus. With current implementation,in multidomain same bus number will repaeat but in different domain, which causes kernel crash as already same bus number exists. Return domain number when kernel requests while creating proc entries for each bus. Signed-off-by: Bharat Kumar Gogada --- arch/microblaze/pci/pci-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 81556b8..7f696f9 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c @@ -632,10 +632,10 @@ void pci_process_bridge_OF_ranges(struct pci_controller *hose, } } -/* Decide whether to display the domain number in /proc */ +/* Display the domain number in /proc */ int pci_proc_domain(struct pci_bus *bus) { - return 0; + return pci_domain_nr(bus); } /* This header fixup will do the resource fixup for all devices as they are