Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-25 Thread Catalin Marinas
On Tue, Jul 22, 2014 at 04:15:58AM +0100, Bjorn Helgaas wrote: > On Mon, Jul 14, 2014 at 10:39 AM, Catalin Marinas > wrote: > > From b32606aa3997fc8a45014a64f99e921eef4872b0 Mon Sep 17 00:00:00 2001 > > From: Catalin Marinas > > Date: Mon, 14 Jul 2014 17:20:01 +0100 > > Subject: [PATCH] pci: Add

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-21 Thread Bjorn Helgaas
On Mon, Jul 14, 2014 at 10:39 AM, Catalin Marinas wrote: > ... > Some more thinking, so I guess we could get away without changing the > API. On top of Liviu's tree here: > > http://linux-arm.org/git?p=linux-ld.git;a=shortlog;h=refs/heads/for-upstream/pci_v8 > > I reverted "pci: Introduce a domain

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-14 Thread Catalin Marinas
On Fri, Jul 11, 2014 at 07:02:06PM +0100, Catalin Marinas wrote: > On Fri, Jul 11, 2014 at 06:02:56PM +0100, Bjorn Helgaas wrote: > > On Fri, Jul 11, 2014 at 8:11 AM, Catalin Marinas > > wrote: > > > On Thu, Jul 10, 2014 at 11:36:10PM +0100, Bjorn Helgaas wrote: > > >> Most of the rest of the v7 d

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-11 Thread Catalin Marinas
On Fri, Jul 11, 2014 at 06:02:56PM +0100, Bjorn Helgaas wrote: > On Fri, Jul 11, 2014 at 8:11 AM, Catalin Marinas > wrote: > > On Thu, Jul 10, 2014 at 11:36:10PM +0100, Bjorn Helgaas wrote: > >> Most of the rest of the v7 discussion was about "Introduce a domain > >> number for pci_host_bridge."

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-11 Thread Bjorn Helgaas
On Fri, Jul 11, 2014 at 8:11 AM, Catalin Marinas wrote: > On Thu, Jul 10, 2014 at 11:36:10PM +0100, Bjorn Helgaas wrote: >> Most of the rest of the v7 discussion was about "Introduce a domain >> number for pci_host_bridge." I think we should add arm64 using the >> existing pci_scan_root_bus() and

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-11 Thread Catalin Marinas
On Fri, Jul 11, 2014 at 04:08:23PM +0100, Liviu Dudau wrote: > On Fri, Jul 11, 2014 at 03:11:16PM +0100, Catalin Marinas wrote: > > On Thu, Jul 10, 2014 at 11:36:10PM +0100, Bjorn Helgaas wrote: > > > Most of the rest of the v7 discussion was about "Introduce a domain > > > number for pci_host_brid

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-11 Thread Liviu Dudau
On Fri, Jul 11, 2014 at 03:11:16PM +0100, Catalin Marinas wrote: > On Thu, Jul 10, 2014 at 11:36:10PM +0100, Bjorn Helgaas wrote: > > Most of the rest of the v7 discussion was about "Introduce a domain > > number for pci_host_bridge." I think we should add arm64 using the > > existing pci_scan_roo

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-11 Thread Catalin Marinas
On Thu, Jul 10, 2014 at 11:36:10PM +0100, Bjorn Helgaas wrote: > Most of the rest of the v7 discussion was about "Introduce a domain > number for pci_host_bridge." I think we should add arm64 using the > existing pci_scan_root_bus() and keep the domain number in the arm64 > sysdata structure like

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-11 Thread Liviu Dudau
On Thu, Jul 10, 2014 at 11:36:10PM +0100, Bjorn Helgaas wrote: > On Thu, Jul 10, 2014 at 3:47 AM, Liviu Dudau wrote: > > > I don't see a way out of adding new PCI interfaces if we want to have > > support in > > the PCI framework for unifying existing architectures. Of course, there is > > the

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-10 Thread Bjorn Helgaas
On Thu, Jul 10, 2014 at 3:47 AM, Liviu Dudau wrote: > I don't see a way out of adding new PCI interfaces if we want to have support > in > the PCI framework for unifying existing architectures. Of course, there is > the painful > alternative of changing the existing APIs and fixing arches in on

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-10 Thread Liviu Dudau
On Wed, Jul 09, 2014 at 04:10:04PM +0100, Bjorn Helgaas wrote: > On Tue, Jul 8, 2014 at 4:48 PM, Liviu Dudau wrote: > > On Tue, Jul 08, 2014 at 07:41:50PM +0100, Bjorn Helgaas wrote: > >> On Tue, Jul 8, 2014 at 4:46 AM, Liviu Dudau wrote: > >> > On Tue, Jul 08, 2014 at 01:59:54AM +0100, Bjorn Hel

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-09 Thread Bjorn Helgaas
On Tue, Jul 8, 2014 at 4:48 PM, Liviu Dudau wrote: > On Tue, Jul 08, 2014 at 07:41:50PM +0100, Bjorn Helgaas wrote: >> On Tue, Jul 8, 2014 at 4:46 AM, Liviu Dudau wrote: >> > On Tue, Jul 08, 2014 at 01:59:54AM +0100, Bjorn Helgaas wrote: >> >> >> I wonder if it would help to make a weak pci_domai

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-08 Thread Liviu Dudau
On Tue, Jul 08, 2014 at 07:41:50PM +0100, Bjorn Helgaas wrote: > On Tue, Jul 8, 2014 at 4:46 AM, Liviu Dudau wrote: > > On Tue, Jul 08, 2014 at 01:59:54AM +0100, Bjorn Helgaas wrote: > > >> I wonder if it would help to make a weak pci_domain_nr() function that > >> returns "bridge->domain_nr". T

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-08 Thread Bjorn Helgaas
On Tue, Jul 8, 2014 at 4:46 AM, Liviu Dudau wrote: > On Tue, Jul 08, 2014 at 01:59:54AM +0100, Bjorn Helgaas wrote: >> I wonder if it would help to make a weak pci_domain_nr() function that >> returns "bridge->domain_nr". Then each arch could individually drop its >> pci_domain_nr() definition a

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-08 Thread Liviu Dudau
On Tue, Jul 08, 2014 at 01:59:54AM +0100, Bjorn Helgaas wrote: > On Tue, Jul 01, 2014 at 07:43:31PM +0100, Liviu Dudau wrote: > > Make it easier to discover the domain number of a bus by storing > > the number in pci_host_bridge for the root bus. Several architectures > > have their own way of stor

Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge.

2014-07-07 Thread Bjorn Helgaas
On Tue, Jul 01, 2014 at 07:43:31PM +0100, Liviu Dudau wrote: > Make it easier to discover the domain number of a bus by storing > the number in pci_host_bridge for the root bus. Several architectures > have their own way of storing this information, so it makes sense > to try to unify the code. Whi