From: julien.grall@citrix.com (Julien Grall)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] xen/pci: Don't build Xen pci code for ARM and ARM64
Date: Mon, 28 Sep 2015 15:01:47 +0100 [thread overview]
Message-ID: <5609484B.8090605@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1509281447010.2672@kaball.uk.xensource.com>
On 28/09/15 14:48, Stefano Stabellini wrote:
> On Mon, 28 Sep 2015, 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 <asm/pci_x86.h>
>>
>> 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.
>>
>> Reported-by: Robert Richter <robert.richter@caviumnetworks.com>
>> Signed-off-by: Julien Grall <julien.grall@citrix.com>
>>
>> ---
>> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
>> Cc: David Vrabel <david.vrabel@citrix.com>
>> ---
>> drivers/xen/Kconfig | 6 +++++-
>> drivers/xen/Makefile | 2 +-
>> 2 files changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
>> index 73708ac..6bcc8b0 100644
>> --- a/drivers/xen/Kconfig
>> +++ b/drivers/xen/Kconfig
>> @@ -168,7 +168,7 @@ config XEN_TMEM
>>
>> config XEN_PCIDEV_BACKEND
>> tristate "Xen PCI-device backend driver"
>> - depends on PCI && X86 && XEN
>> + depends on XEN_PCI
>> depends on XEN_BACKEND
>> default m
>> help
>> @@ -189,6 +189,10 @@ config XEN_PCIDEV_BACKEND
>>
>> If in doubt, say m.
>>
>> +config XEN_PCI
>> + def_bool y
>> + depends on PCI && !ARM && !ARM64
>
> This is confusing because x86 already has PCI_XEN, see arch/x86/Kconfig.
> Just move PCI_XEN from arch/x86/Kconfig to here and disable it for ARM?
PCI_XEN enables SWIOTLB. Do we really want the same dependencies for any
architecture?
Regards,
--
Julien Grall
WARNING: multiple messages have this Message-ID (diff)
From: Julien Grall <julien.grall@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: <xen-devel@lists.xenproject.org>,
<linux-arm-kernel@lists.infradead.org>, <ian.campbell@citrix.com>,
<linux-kernel@vger.kernel.org>,
Robert Richter <robert.richter@caviumnetworks.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
"David Vrabel" <david.vrabel@citrix.com>
Subject: Re: [PATCH] xen/pci: Don't build Xen pci code for ARM and ARM64
Date: Mon, 28 Sep 2015 15:01:47 +0100 [thread overview]
Message-ID: <5609484B.8090605@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1509281447010.2672@kaball.uk.xensource.com>
On 28/09/15 14:48, Stefano Stabellini wrote:
> On Mon, 28 Sep 2015, 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 <asm/pci_x86.h>
>>
>> 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.
>>
>> Reported-by: Robert Richter <robert.richter@caviumnetworks.com>
>> Signed-off-by: Julien Grall <julien.grall@citrix.com>
>>
>> ---
>> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
>> Cc: David Vrabel <david.vrabel@citrix.com>
>> ---
>> drivers/xen/Kconfig | 6 +++++-
>> drivers/xen/Makefile | 2 +-
>> 2 files changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
>> index 73708ac..6bcc8b0 100644
>> --- a/drivers/xen/Kconfig
>> +++ b/drivers/xen/Kconfig
>> @@ -168,7 +168,7 @@ config XEN_TMEM
>>
>> config XEN_PCIDEV_BACKEND
>> tristate "Xen PCI-device backend driver"
>> - depends on PCI && X86 && XEN
>> + depends on XEN_PCI
>> depends on XEN_BACKEND
>> default m
>> help
>> @@ -189,6 +189,10 @@ config XEN_PCIDEV_BACKEND
>>
>> If in doubt, say m.
>>
>> +config XEN_PCI
>> + def_bool y
>> + depends on PCI && !ARM && !ARM64
>
> This is confusing because x86 already has PCI_XEN, see arch/x86/Kconfig.
> Just move PCI_XEN from arch/x86/Kconfig to here and disable it for ARM?
PCI_XEN enables SWIOTLB. Do we really want the same dependencies for any
architecture?
Regards,
--
Julien Grall
next prev parent reply other threads:[~2015-09-28 14:01 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-28 13:30 [PATCH] xen/pci: Don't build Xen pci code for ARM and ARM64 Julien Grall
2015-09-28 13:30 ` Julien Grall
2015-09-28 13:48 ` Stefano Stabellini
2015-09-28 13:48 ` Stefano Stabellini
2015-09-28 13:48 ` Stefano Stabellini
2015-09-28 14:01 ` Julien Grall [this message]
2015-09-28 14:01 ` Julien Grall
2015-09-28 14:01 ` Julien Grall
2015-09-28 13:52 ` David Vrabel
2015-09-28 13:52 ` [Xen-devel] " David Vrabel
2015-09-28 13:52 ` David Vrabel
2015-09-28 13:59 ` Julien Grall
2015-09-28 13:59 ` Julien Grall
2015-09-28 14:02 ` Boris Ostrovsky
2015-09-28 14:02 ` [Xen-devel] " Boris Ostrovsky
2015-09-28 14:02 ` Boris Ostrovsky
2015-09-28 14:22 ` David Vrabel
2015-09-28 14:22 ` David Vrabel
2015-09-28 14:22 ` David Vrabel
2015-09-28 14:23 ` [Xen-devel] " Julien Grall
2015-09-28 14:23 ` Julien Grall
2015-09-28 14:23 ` Julien Grall
2015-09-28 13:59 ` Julien Grall
-- strict thread matches above, loose matches on Subject: below --
2015-09-28 13:30 Julien Grall
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=5609484B.8090605@citrix.com \
--to=julien.grall@citrix.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.