Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp505231ybg; Mon, 1 Jun 2020 07:08:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM5Kt9CnPDkF2u4C/ClivdXOVf1nJRBWqRNKNqn3xH2WlgXbBb8He7e5jytb+pR1tcoNmh X-Received: by 2002:a17:906:5285:: with SMTP id c5mr8864903ejm.372.1591020515504; Mon, 01 Jun 2020 07:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591020515; cv=none; d=google.com; s=arc-20160816; b=jZbe06lQWnfV98TRi3gLnjwWGRn+MrwemJUIkt0t/I/sdsevg+nr57Yf50n7aCmGah Pahw9o7oWoZeLJNrIPeyUY7CgxgCZCw8aBwFUB+6JNSYtM3/sUdRKyqEvnPzF9JrBQDt vIxDVchlGTX95hWUbmlY+lHqgUJWIaCWWmScPruMqcWtsaj4hxWQXtiLXgACQci17XbN zb42WTa+Hp/kVJsQs6aFjD9TLBWWYCOhqNP+hchORmMftnE198qJ1dmluzhcYHXeGI4A gwrdNhBe0mFlanb7XphJdUAu1Fntd9z14lZlJR8C+Ovy7NEVJjsFsYkNuCjN1fBxibmQ nBFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HdEiBnB7+tQ9qOLsBO+VIuGgbzGS+nEOR7e+a6BDJ1k=; b=k22HNWfiLFbiSJqFTt+VCjpl5Rs6yLD70li4aT0lNK/NoPO1sy5z+wew91Noladb4V B1AgPkItCJmGFbtuUKkFRfUIIghFJMwH7auaUTx859ZPAa5FPr6vo5/0ESnhonCblhmg K4uyqZOwEodZZ+mQJsyg+WICRsm3vaprYDp2a2zGEOaFR4mrskBAHANB757cl8V0zxDk HIhCpoEwLVNJ86NDuUE/QN6Qz3PffEZ68V7xEDmJ5wQIL40CbsH+ko9+miVFwFpyKdR8 o/MQlOqwypQZBY4wY9/FFP+8uG8dg0thXx7m35iFQGrVbbfZ+RfZHZdwT4wc3PLHGywI 1Xmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iPOTMoAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x26si11411059edv.448.2020.06.01.07.08.11; Mon, 01 Jun 2020 07:08:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iPOTMoAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbgFAOGN (ORCPT + 99 others); Mon, 1 Jun 2020 10:06:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:57784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgFAOGM (ORCPT ); Mon, 1 Jun 2020 10:06:12 -0400 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A5CA32077D; Mon, 1 Jun 2020 14:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591020371; bh=HdEiBnB7+tQ9qOLsBO+VIuGgbzGS+nEOR7e+a6BDJ1k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iPOTMoAQuEhw9rn2x+5jyMCfrGMrX4nn2q9HOAOopbSYbD0dWKBdh98jPKllE++Dw ajyHFSW0nxmFLgSuKbb8Mw6ME9mpVBTnZFE1CX6mpzAFybI6ca9hCpyYKb9gbwuTI/ lSfyt0QQ4XtXfStOdBPAWIi3C1ihyvXpT8xj1HBw= Received: by mail-ot1-f49.google.com with SMTP id v17so8096436ote.0; Mon, 01 Jun 2020 07:06:11 -0700 (PDT) X-Gm-Message-State: AOAM531IeLsww+t5oP7i6yG+och0wgpMPC99eBDQjc+OTVvDha1DRwTi 3u5v+J0HLkk5rkS/HkypTM9BL9/kUfaadMpUpA== X-Received: by 2002:a05:6830:3104:: with SMTP id b4mr17181691ots.192.1591020370946; Mon, 01 Jun 2020 07:06:10 -0700 (PDT) MIME-Version: 1.0 References: <0f8140c1-da6f-ef04-0809-252d6de6a5d7@xilinx.com> <5dfa98df-8955-59fd-1d65-c0a988190acb@xilinx.com> In-Reply-To: From: Rob Herring Date: Mon, 1 Jun 2020 08:05:59 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/10] Hi, To: Bharat Kumar Gogada Cc: Michal Simek , "linux-kernel@vger.kernel.org" , "monstr@monstr.eu" , 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 Usman 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 31, 2020 at 10:22 PM Bharat Kumar Gogada wrote: > > > 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. > Hi Rob, > > Can you please let us know why we might need custom config space accessors ? > We tested pci_generic_config_read/write accessors on microblaze, and we > did not see any issues. I was thinking maybe the indirect code might have to be custom, but maybe everything can be handled in .map_bus(). Rob