Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp796339ybf; Wed, 26 Feb 2020 23:32:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwRqF4nvgh9y7IvM16Ds1qY2QYAkrIDUe8LMtA0ap+d/57drs8fRBM4Odgivs9h5dVmK7Kg X-Received: by 2002:a9d:51ca:: with SMTP id d10mr2269226oth.76.1582788737437; Wed, 26 Feb 2020 23:32:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1582788737; cv=pass; d=google.com; s=arc-20160816; b=fwrrJGtIGBhrbQk+BbQmF475URxZtrPdY2AmNUnbyDgSWGEIjU1gDOt8MaNDdJ7ITf OB/c0GVOlCQdaGkQMNA1tbjzxRTsinJx3RY92OaO5xSUK1dG/1PLKGI0XCxyiKyCqj8Y X9Io2qh5vd0dxo4PpO8l8baDJzqx2+iDbCl94PHRRUYEqM27DFus1sIQiAPz8V1QD/hl 5/HCNuLsJmOWX+2Obd0gAxrGq1mRa1h+BoiKTeYo1dtekwYq4Fl2sv4DCSIGhFMFSO3D a0FQyTKNAImQBh4TUi55kfcCMmrgqtzZ5Rum9tLXE+SSMikSCdGehoXNZOTbRwC2b2FM u7Cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=boyzg3ulGMaTj4eIyYG94pZEm4BUpZ2kxBq+r7J6Sjc=; b=GTdY9y4jzrB5bi7duhzBF5H4effJmtB3YP8Mx2BiWTO910wlnw1JwreVNMy7peqa9m SuVjPk7hQOm0McohgOe1lvsYDsbpah9qMiE06+ZHeJ7QgRrxYhzkU0sl5H+B8XSlPqSr Dnu7opDqY296BhOyxGlEkxgTq9D7YffCQOPBjN6p9LvCsrs1ReAhy9PjMrLTiWMi8t1O w5nY6/2prGkrslw2FvF1mK+O+mC68QRFFTSMLuMOuLu/56CIYXe9YzHeqsjEjv+UyWyZ iHrdoBuP2xcMb879Xm+664AGcHFZPz2zDNe4jbZbNyUzb1ZrzC47fLwg+Z9NjaL7dCFn 2e/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=caFvwT5h; arc=pass (i=1 spf=pass spfdomain=xilinx.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 t70si927917oif.99.2020.02.26.23.32.04; Wed, 26 Feb 2020 23:32:17 -0800 (PST) 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; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=caFvwT5h; arc=pass (i=1 spf=pass spfdomain=xilinx.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 S1728273AbgB0Hbz (ORCPT + 99 others); Thu, 27 Feb 2020 02:31:55 -0500 Received: from mail-dm6nam12on2064.outbound.protection.outlook.com ([40.107.243.64]:4011 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726999AbgB0Hby (ORCPT ); Thu, 27 Feb 2020 02:31:54 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hej/yRbStgttwYJvp1RvbWsDPH5fqLlrbYEwIuePVGRlQmVs47L74rFlXkPxYgZJg2LynWukAoAg+ZCv840eHqSIYjeJXXsBjNlTTt6bjbg2OI2rDl6d+oCfFolsznm2cvZfCV0O3WY/IuvqYJsI0058//co1lB7MfRrQzkeZt+kQavdwfNCOPmnhFxeV+M6n3ImHP03UIDOB94vdbWkXWv76WR0VvGaMUNYzjjXF1WU0fy2EP7kH2x+Wlyu2SBb9vWFTt4vhgru35MVWJ6ZLMDfpBhDhg61ZiwS3xjEfb3idNawtO3dI73i7aUjigrQuQ9YXlMBmPLbuggkfa0HoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=boyzg3ulGMaTj4eIyYG94pZEm4BUpZ2kxBq+r7J6Sjc=; b=kBWyk+8BIYKbljMyf+5pUYtw9+YCynofIhqextfriE6skENrPfjwtF0m27YpNLE53Hl5iecMJ0EtGXiER402x7XMC7X2BBZVePdp5uNJQNoo/Mn7Mwiiq2ZPQBIoE3ez399KzWhOYu4Nh7DSV7l31VletPQW+W59Zc+KDELRZl6DMsBLuNe70ge4mu8bb8kuZwbk3mmSJsNZbNA5Pmzh7GTKe/JB3qIdWuyDsqqfehvkN0aUQBJ+mN8Kv1G2tZ9XSDUOdVEDzajKwWUnckiTvfC49/8+WWUpK4ThH2tRcVQUjAiU8RZqQe/g0Yo/TAz51VgPkg28v2Lh9tXwfgedow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=kvack.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=boyzg3ulGMaTj4eIyYG94pZEm4BUpZ2kxBq+r7J6Sjc=; b=caFvwT5h929jRKj1cpw67RlEYeUXNi3REfP66YZiAB1um7LiOTq5RwHK4BRo4w5c/r7r1mG/BR1hV9jpcg5WDzguKCVktkHyQF+Fqp7wAFocQN5SDJgN7E2Q412JDMoTNlQd1GCwA8InTqjStlvvqwQotATODoHrCOLktyy2mNo= Received: from BL0PR05CA0028.namprd05.prod.outlook.com (2603:10b6:208:91::38) by CH2PR02MB6663.namprd02.prod.outlook.com (2603:10b6:610:7e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.14; Thu, 27 Feb 2020 07:31:52 +0000 Received: from BL2NAM02FT055.eop-nam02.prod.protection.outlook.com (2603:10b6:208:91:cafe::6b) by BL0PR05CA0028.outlook.office365.com (2603:10b6:208:91::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.5 via Frontend Transport; Thu, 27 Feb 2020 07:31:51 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; kvack.org; dkim=none (message not signed) header.d=none;kvack.org; 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 BL2NAM02FT055.mail.protection.outlook.com (10.152.77.126) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2772.15 via Frontend Transport; Thu, 27 Feb 2020 07:31:51 +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 1j7DeA-0005FI-Qe; Wed, 26 Feb 2020 23:31:50 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1j7De5-0000m0-NQ; Wed, 26 Feb 2020 23:31:45 -0800 Received: from [172.30.17.108] by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1j7Ddx-0000kP-1c; Wed, 26 Feb 2020 23:31:37 -0800 Subject: Re: [PATCH 00/10] Hi, To: Rob Herring , Michal Simek Cc: "linux-kernel@vger.kernel.org" , Michal Simek , git , Arnd Bergmann , Andrew Morton , "Aneesh Kumar K.V" , Arvind Sankar , Borislav Petkov , Cornelia Huck , Geert Uytterhoeven , Greg Kroah-Hartman , Greg Ungerer , Heiko Carstens , Kees Cook , Masahiro Yamada , Mike Rapoport , Mubin Sayyed , Nicholas Piggin , Oleg Nesterov , Palmer Dabbelt , Paolo Bonzini , Peter Zijlstra , Randy Dunlap , Shubhrajyoti Datta , Siva Durga Prasad Paladugu , Stefan Asserhall , Vladimir Murzin , Will Deacon , "open list:GENERIC INCLUDE/ASM HEADER FILES" , linux-mm@kvack.org, Bharat Kumar Gogada References: <0f8140c1-da6f-ef04-0809-252d6de6a5d7@xilinx.com> From: Michal Simek Message-ID: <5dfa98df-8955-59fd-1d65-c0a988190acb@xilinx.com> Date: Thu, 27 Feb 2020 08:31:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.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:;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(346002)(376002)(39850400004)(136003)(396003)(189003)(199004)(31696002)(26005)(186003)(2906002)(36756003)(356004)(54906003)(478600001)(31686004)(6666004)(53546011)(70586007)(70206006)(7416002)(8676002)(44832011)(336012)(81166006)(81156014)(9786002)(110136005)(107886003)(426003)(8936002)(4326008)(5660300002)(316002)(2616005)(106390200001);DIR:OUT;SFP:1101;SCL:1;SRVR:CH2PR02MB6663;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0d522991-1843-4460-55ba-08d7bb571cdb X-MS-TrafficTypeDiagnostic: CH2PR02MB6663: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 03264AEA72 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XfFS4NOVHqoJB9QxLTXkbjeflvUdISgd7pir/gudeGpUA9ZEMdSpelZ61xRbu6CBiL1KZdHQCJKRVhlmnvwYRYEDQDAPK94bFVwrxDhOgnfUmsLxzkJwVFffiC3YoMtnfSM82OLLfonQSfgE5QOairDmXQLf498p91YokjwA0/zpWan0zill4Sv4j9H38BR5Yh+y19sFhJ8L9wFimos65k8y8Hig5uAJTS1F+cFRl0oX6LalKPggG1sfo9WPXDJ0WTX71kvFS8BpAWK1Kl84UAFpuf7+fkpjY0+IpZ918+QDqecoPOO1GBbdohX/axh7dQH4IzuTSRW2L+ZPwM1SeZ6JDw0ptn/6pTBwHi+4Imgq+eZNRcSYIn6KaJEeGDFaq0d8Y0hCxA9I2s54H86r2Qwmx5/wW9gwzkppXOO2MwfgK2AM5z5Qv1LQqBKh9acrbnYRy7cE3XiWl5koTCiQHE7Ibh10EyN+zHgcthDw+f10uvNYI7sekj/hRLkQn4Ei X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2020 07:31:51.4517 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d522991-1843-4460-55ba-08d7bb571cdb 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: CH2PR02MB6663 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25. 02. 20 17:32, Rob Herring wrote: > On Mon, Feb 17, 2020 at 8:28 AM Michal Simek wrote: >> >> Hi Rob, >> >> On 14. 02. 20 0:47, Rob Herring wrote: >>> On Wed, Feb 12, 2020 at 2:58 AM Michal Simek wrote: >>>> >>>> >>>> I am sending this series as before SMP support. >>>> Most of these patches are clean ups and should be easy to review them. I >>>> expect there will be more discussions about SMP support. >>> >>> While not really related to adding SMP, any chance you or someone >>> could look at moving microblaze PCI support to drivers/pci/? I suspect >>> much of the code should drop out as we have common helpers for much of >>> it now. That would leave only powerpc and mips for DT+PCI platforms. >> >> can you please suggest changes which could be done? >> I have CC Bharat and he could look at it. > > Look at the host controller drivers in drivers/pci/controller/. > pci-host-{generic,common}.c is a good template to start with as that's > a controller with standard config space accesses and no h/w setup > needed. Essentially you need to call devm_pci_alloc_host_bridge(), > pci_parse_request_of_pci_ranges() and pci_host_probe() with whatever > h/w setup you need in between those calls. > > Looking at the microblaze PCI code, looks like you may need custom > config space accessors which is quite common. Probably all the > resource and device scanning can be removed. If you look at arm64, all > the arch PCI code is just for ACPI. Thanks Rob. Bharat: Can you please take a look? Thanks, Michal