From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from quartz.orcorp.ca ([184.70.90.242]:38501 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751833AbaBRSpv (ORCPT ); Tue, 18 Feb 2014 13:45:51 -0500 Date: Tue, 18 Feb 2014 11:45:42 -0700 From: Jason Gunthorpe To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, Liviu Dudau , "linux-pci@vger.kernel.org" , Will Deacon , Russell King , Kumar Gala , "bhelgaas@google.com" Subject: Re: [PATCH v2 3/3] PCI: ARM: add support for generic PCI host controller Message-ID: <20140218184542.GA22004@obsidianresearch.com> References: <1392236171-10512-1-git-send-email-will.deacon@arm.com> <2312919.pM61KLBcYY@wuerfel> <20140218174125.GC29304@obsidianresearch.com> <1663692.UxtD9eTEBL@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1663692.UxtD9eTEBL@wuerfel> Sender: linux-pci-owner@vger.kernel.org List-ID: On Tue, Feb 18, 2014 at 07:25:35PM +0100, Arnd Bergmann wrote: > Apple have also used the same trick on their G5 Macs, presumably > to simplify things for OS9 and OS-X, but even at the time making > it harder for Linux. I actually think some x86's have done the same thing, however the firmware hides all that from the OS and the OS just sees a normal PCI environment. So if we can't hide the mess in firmware, the next best place is in drivers? > Do we even need stable domain numbers? If we do, aliases sound fine. > A more complex method would be to sort them by MMIO window address > or perhaps by phandle. PCI ordering has been a bane in the past on x86, so I think stable domain numbers is certainly desirable. Particularly since the domain number may be influenced by module load order :( Alises followed by sorting by phandle sounds great to me. Jason