devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Liviu Dudau <liviu@dudau.co.uk>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Liviu Dudau <Liviu.Dudau@arm.com>, Arnd Bergmann <arnd@arndb.de>,
	Rob Herring <robh+dt@kernel.org>,
	Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <Will.Deacon@arm.com>,
	Russell King <linux@arm.linux.org.uk>,
	linux-pci <linux-pci@vger.kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Tanmay Inamdar <tinamdar@apm.com>,
	Grant Likely <grant.likely@secretlab.ca>,
	Sinan Kaya <okaya@codeaurora.org>,
	Jingoo Han <jg1.han@samsung.com>,
	Kukjin Kim <kgene.kim@samsung.com>,
	Suravee Suthikulanit <suravee.suthikulpanit@amd.com>,
	linux-arch <linux-arch@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Device Tree ML <devicetree@vger.kernel.org>,
	LAKML <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v12 00/12] Support for creating generic PCI host bridges from DT
Date: Tue, 23 Sep 2014 23:48:11 +0100	[thread overview]
Message-ID: <20140923224810.GA32643@bart.dudau.co.uk> (raw)
In-Reply-To: <20140923215435.GD27117@google.com>

On Tue, Sep 23, 2014 at 03:54:35PM -0600, Bjorn Helgaas wrote:
> On Tue, Sep 23, 2014 at 08:01:02PM +0100, Liviu Dudau wrote:
> > This is my version 12 of the attempt at adding support for generic PCI host
> > bridge controllers that make use of device tree information to
> > configure themselves. It contains cleanups to address comments posted for v11.
> > 
> > Bjorn intends to pull this series into his tree and send it to linux-next if
> > no major issues arise.
> > 
> > 
> > Changes from v11:
> >  - fixed race condition in pci_register_io_range() and bug where the function
> >    would return with the io_range_lock held.
> >  - split patch 4/10 that fixes the convertion of IO ranges into resources into
> >    two patches. The new 4/12 just moves the function into drivers/of/address.c
> >    and 5/12 makes the functional changes.
> >  - Added Linus Walleij ACK on 5/12 for the arch/arm/mach-integrator/pci_v3.c
> >    part
> >  - Removed the old PCI domain number parser and allocator and split the code
> >    into two independent functions: 'int pci_get_new_domain_nr(void)' will
> >    always return a new domain number when called while 'of_get_pci_domain_nr()'
> >    will parse the DT and try to find a property of the given node called
> >    'linux,pci-domain'. The property value, if found, will be truncated to
> >    16-bit value and returned, or a negative value if an error occurs.
> >  - Made the io_base pointer parameter that gets passed to
> >    of_pci_get_host_bridge_resources() optional (thanks Robert Richter) and
> >    be explicit when detecting multiple IO ranges about the device used.
> >  - Fixed comments on commits to explain who uses pci_remap_iospace() as well
> >    as making clear that the value used inside the function is a virtual address
> >    and not a physical one. Also be explicit in the warning generated when
> >    architectures without memory mapped IO support make use of this function
> >  - Merged the arm64 patch into this series as Bjorn is going to pull it
> >    into his tree.
> > 
> > Changes from v10:
> >  - Addressed Lorenzo's comments wrt io_base not being initialised inside the
> >    function that is supposed to modify it and also updated the comments to
> >    explain the values returned by the function
> >  - Updated pci_domain_nr helper function to split the allocation of the domain
> >    number from the parsing of the device tree to find maximum defined domain
> >    value
> >  - Fixed up the commit author for commit 6/10
> > 
> > Changes from v9:
> >  - Moved the DT parsing and assigning of IRQ patch from this series into arm64
> >    specific patch. This keeps existing pcibios_add_device() unchanged and adds
> >    an arch-specific version that can later be expanded to cater for dma_ops.
> >  - Incorporated the fix for users of of_pci_range_to_resources() into the patch
> >    that changes the behaviour for easier bisection.
> >  - Added fixes for tegra and rcar host drivers in their usage of
> >    of_pci_range_to_resources()
> >  - Broke up of_create_pci_host_bridge() to remove the callback function. The
> >    function left has been renamed into of_pci_get_host_bridge_resources(). The
> >    added benefit of that is that the architectural hook for fixing up host bridge
> >    resources now dissappears.
> >  - Reshuffled the way pgprot_device gets introduced. It is now part of the patch
> >    that adds pci_remap_iospace() function. The arm64 specific override is moved
> >    into the arm64 patchset.
> >  - Added a patch to pci_scan_root_bus() to assign unassigned resources if PCI
> >    flags are not PCI_PROBE_ONLY
> > 
> > v11 thread here: https://lkml.org/lkml/2014/9/17/732
> > v10 thread here: https://lkml.org/lkml/2014/9/8/333
> > v9 thread here, with links to previous threads: https://lkml.org/lkml/2014/8/12/361
> > 
> > Best regards,
> > Liviu
> > 
> > Catalin Marinas (1):
> >   PCI: Introduce generic domain handling for PCI busses.
> > 
> > Liviu Dudau (11):
> >   Fix ioport_map() for !CONFIG_GENERIC_IOMAP cases.
> >   PCI: Introduce helper functions to deal with PCI I/O ranges.
> >   ARM: Define PCI_IOBASE as the base of virtual PCI IO space.
> >   PCI: OF: Move of_pci_range_to_resources() into address.c
> >   PCI: OF: Fix the conversion of IO ranges into IO resources.
> >   PCI: Create pci_host_bridge before its associated bus in pci_create_root_bus.
> >   PCI: OF: Introduce helper function for retrieving PCI domain numbers
> >   OF: PCI: Add support for parsing PCI host bridge resources from DT
> >   PCI: Assign unassigned bus resources in pci_scan_root_bus()
> >   PCI: Introduce pci_remap_iospace() for remapping PCI I/O bus resources into CPU space
> >   arm64: Add architectural support for PCIe
> > 
> >  arch/arm/include/asm/io.h         |   1 +
> >  arch/arm/mach-integrator/pci_v3.c |  23 +++---
> >  arch/arm64/Kconfig                |  22 +++++-
> >  arch/arm64/include/asm/Kbuild     |   1 +
> >  arch/arm64/include/asm/io.h       |   3 +-
> >  arch/arm64/include/asm/pci.h      |  37 +++++++++
> >  arch/arm64/include/asm/pgtable.h  |   2 +
> >  arch/arm64/kernel/Makefile        |   1 +
> >  arch/arm64/kernel/pci.c           |  70 +++++++++++++++++
> >  drivers/of/address.c              | 155 ++++++++++++++++++++++++++++++++++++++
> >  drivers/of/of_pci.c               | 140 ++++++++++++++++++++++++++++++++++
> >  drivers/pci/host/pci-tegra.c      |  10 ++-
> >  drivers/pci/host/pcie-rcar.c      |  21 ++++--
> >  drivers/pci/pci.c                 |  43 +++++++++++
> >  drivers/pci/probe.c               |  46 ++++++-----
> >  include/asm-generic/io.h          |   2 +-
> >  include/asm-generic/pgtable.h     |   4 +
> >  include/linux/of_address.h        |  22 +++---
> >  include/linux/of_pci.h            |  18 +++++
> >  include/linux/pci.h               |  27 +++++++
> >  20 files changed, 596 insertions(+), 52 deletions(-)
> >  create mode 100644 arch/arm64/include/asm/pci.h
> >  create mode 100644 arch/arm64/kernel/pci.c
> 
> Applied to pci/host-generic, headed for v3.18, thanks!

I really appreciate this, Bjorn, and many thanks!!!

While the next immediate target is converting pci-host-generic.c, pci-imx6.c
and probably pcie-designware.c to my series, I would like to ask you what
is your longer term plan. Now that I have got my head full of PCI code,
I have some ideas but feel that meeting with you and all those involved
in core PCI support would be a better venue than sending emails back and
forth. When is your next plan to attend a Linux conference?

Best regards,
Liviu

> 
> Bjorn
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
-------------------
   .oooO
   (   )
    \ (  Oooo.
     \_) (   )
          ) /
         (_/

 One small step
   for me ...

  reply	other threads:[~2014-09-23 22:48 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23 19:01 [PATCH v12 00/12] Support for creating generic PCI host bridges from DT Liviu Dudau
2014-09-23 19:01 ` [PATCH v12 01/12] Fix ioport_map() for !CONFIG_GENERIC_IOMAP cases Liviu Dudau
2014-09-23 19:01 ` [PATCH v12 02/12] PCI: Introduce helper functions to deal with PCI I/O ranges Liviu Dudau
2014-09-23 19:01 ` [PATCH v12 03/12] ARM: Define PCI_IOBASE as the base of virtual PCI IO space Liviu Dudau
2014-09-23 19:01 ` [PATCH v12 04/12] PCI: OF: Move of_pci_range_to_resources() into address.c Liviu Dudau
2014-09-23 19:01 ` [PATCH v12 05/12] PCI: OF: Fix the conversion of IO ranges into IO resources Liviu Dudau
2014-09-24  0:22   ` Bjorn Helgaas
2014-09-24  1:12     ` Liviu Dudau
2014-09-24  1:16       ` Bjorn Helgaas
2014-09-24  9:20         ` Robert Richter
2014-09-24 10:14     ` Andrew Murray
2014-09-23 19:01 ` [PATCH v12 06/12] PCI: Create pci_host_bridge before its associated bus in pci_create_root_bus Liviu Dudau
2014-09-25 18:15   ` Yinghai Lu
2014-09-25 19:59     ` Bjorn Helgaas
2014-09-26 14:58       ` Liviu Dudau
2014-09-26 16:17         ` Bjorn Helgaas
2014-09-23 19:01 ` [PATCH v12 07/12] PCI: Introduce generic domain handling for PCI busses Liviu Dudau
2014-09-23 19:01 ` [PATCH v12 08/12] PCI: OF: Introduce helper function for retrieving PCI domain numbers Liviu Dudau
2014-09-26 18:20   ` Rob Herring
2014-09-26 21:20     ` liviu
2014-09-26 21:53       ` Rob Herring
2014-09-26 22:47         ` Liviu Dudau
2014-09-27 20:18           ` Bjorn Helgaas
2014-09-23 19:01 ` [PATCH v12 09/12] OF: PCI: Add support for parsing PCI host bridge resources from DT Liviu Dudau
2014-09-24 16:43   ` Liviu Dudau
2014-09-24 17:31     ` Bjorn Helgaas
2014-09-24 17:53       ` Liviu Dudau
2014-09-24 18:01         ` Will Deacon
2014-09-25  8:54           ` Liviu Dudau
2014-09-25  9:04             ` Will Deacon
     [not found] ` <1411498874-9864-1-git-send-email-Liviu.Dudau-5wv7dgnIgG8@public.gmane.org>
2014-09-23 19:01   ` [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus() Liviu Dudau
2014-09-24  1:18     ` Liviu Dudau
2014-09-24  1:41       ` Bjorn Helgaas
2014-09-24  1:48         ` Liviu Dudau
2014-09-28 21:16         ` Suravee Suthikulpanit
2014-09-29 18:18           ` Arnd Bergmann
2014-09-23 19:01 ` [PATCH v12 11/12] PCI: Introduce pci_remap_iospace() for remapping PCI I/O bus resources into CPU space Liviu Dudau
2014-09-23 19:01 ` [PATCH v12 12/12] arm64: Add architectural support for PCIe Liviu Dudau
2014-09-23 21:54 ` [PATCH v12 00/12] Support for creating generic PCI host bridges from DT Bjorn Helgaas
2014-09-23 22:48   ` Liviu Dudau [this message]
2014-09-23 23:00     ` Bjorn Helgaas
2014-09-24 13:30       ` Rob Herring
2014-09-24 14:23         ` Liviu Dudau
2014-09-24 15:38           ` Bjorn Helgaas
2014-09-23 22:49 ` Liviu Dudau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140923224810.GA32643@bart.dudau.co.uk \
    --to=liviu@dudau.co.uk \
    --cc=Liviu.Dudau@arm.com \
    --cc=Will.Deacon@arm.com \
    --cc=arnd@arndb.de \
    --cc=benh@kernel.crashing.org \
    --cc=bhelgaas@google.com \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=grant.likely@secretlab.ca \
    --cc=jg1.han@samsung.com \
    --cc=jgunthorpe@obsidianresearch.com \
    --cc=kgene.kim@samsung.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=okaya@codeaurora.org \
    --cc=robh+dt@kernel.org \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=tinamdar@apm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).