From: Boris Ostrovsky Subject: Re: [PATCH] xen/pci: Don't build Xen pci code for ARM and ARM64 Date: Mon, 28 Sep 2015 10:02:57 -0400 Message-ID: <56094891.2000409__4914.7103717134$1443449195$gmane$org@oracle.com> References: <1443447044-24985-1-git-send-email-julien.grall@citrix.com> <56094600.7050508@citrix.com> <560947B6.1030101@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZgZ3D-0002LR-2H for xen-devel@lists.xenproject.org; Mon, 28 Sep 2015 14:05:07 +0000 In-Reply-To: <560947B6.1030101@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall , David Vrabel , xen-devel@lists.xenproject.org Cc: linux-kernel@vger.kernel.org, Robert Richter , ian.campbell@citrix.com, linux-arm-kernel@lists.infradead.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On 09/28/2015 09:59 AM, Julien Grall wrote: > Hi David, > > On 28/09/15 14:52, David Vrabel wrote: >> On 28/09/15 14:30, Julien Grall wrote: >>> The PCI support for Xen doesn't compile on ARM/ARM64 when >>> CONFIG_PCI_MMCONFIG=y: >>> >>> drivers/xen/pci.c:31:25: fatal error: asm/pci_x86.h: No such file or >>> directory >>> #include >>> >>> Although, Xen is not currently involved in PCI management for ARM/ARM64. >>> There is plan to support it, but it would require some changes in Linux >>> side. >>> >>> For now, introduce a new config options XEN_PCI which will be turned off >>> for ARM platform. >> Since PCI_MMCONFIG isn't x86 specific and its use in drivers/xen/pci.c >> is, can you fix this by changing to #ifdef CONFIG_X86? > Well, it may be possible that we need this code for ARM/ARM64. > > From the origin thread [1], it wasn't clear what is the correct > solution. So I think that disabling the Xen PCI code for now is the > right solution. > > Note, that it's still possible to use PCI in DOM0 on ARM64 platform > without this code. > > Regards, > > [1] https://lkml.org/lkml/2015/8/6/510 > Can we then implement Robert's proposals from that thread and have an arch function for pci_probe? It will be a nop on ARM. (I think that was the only problem here). -boris