xen/pci: Don't build Xen pci code for ARM and ARM64
PATCH 1/1 xen/pci: Don't build Xen pci code for ARM and ARM64
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.
---
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Boris Ostrovsky <[email protected]>
Cc: David Vrabel <[email protected]>
--- drivers/xen/Kconfig | 6 +++++- drivers/xen/Makefile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/xen/Kconfig +5 -1
@@ -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 + config XEN_SCSI_BACKEND tristate "XEN SCSI backend driver" depends on XEN && XEN_BACKEND && TARGET_CORE
drivers/xen/Makefile +1 -1
@@ -11,7 +11,7 @@ CFLAGS_features.o := $(nostackp) CFLAGS_efi.o += -fshort-wchar -dom0-$(CONFIG_PCI) += pci.o +dom0-$(CONFIG_XEN_PCI) += pci.o dom0-$(CONFIG_USB_SUPPORT) += dbgp.o dom0-$(CONFIG_XEN_ACPI) += acpi.o $(xen-pad-y) xen-pad-$(CONFIG_X86) += xen-acpi-pad.o
Signature · 1 line
2.1.4
Quoted 40 lines · Julien Grall
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_PCIwhich will be turned off for ARM platform.Reported-by Robert Richter <[email protected]>Signed-off-by Julien Grall <[email protected]>---
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Boris Ostrovsky <[email protected]>
Cc: David Vrabel <[email protected]>--- drivers/xen/Kconfig | 6 +++++- drivers/xen/Makefile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)drivers/xen/Kconfig +1
-1@@ -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
drivers/xen/Kconfig config XEN_PCIDEV_BACKEND · line 194
Quoted 6 lines
drivers/xen/Kconfig +3
-0@@ -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?
Quoted 19 lines
drivers/xen/Kconfig +0
-0config XEN_SCSI_BACKEND tristate "XEN SCSI backend driver" depends on XEN && XEN_BACKEND && TARGET_COREdrivers/xen/Makefile +1
-1@@ -11,7 +11,7 @@ CFLAGS_features.o := $(nostackp) CFLAGS_efi.o += -fshort-wchar -dom0-$(CONFIG_PCI) += pci.o +dom0-$(CONFIG_XEN_PCI) += pci.o dom0-$(CONFIG_USB_SUPPORT) += dbgp.o dom0-$(CONFIG_XEN_ACPI) += acpi.o $(xen-pad-y) xen-pad-$(CONFIG_X86) += xen-acpi-pad.oSignature · 1 line
2.1.4
Quoted 42 lines · Stefano Stabellini
Quoted 41 lines · Julien Grall
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_PCIwhich will be turned off for ARM platform.Reported-by Robert Richter <[email protected]>Signed-off-by Julien Grall <[email protected]>---
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Boris Ostrovsky <[email protected]>
Cc: David Vrabel <[email protected]>--- drivers/xen/Kconfig | 6 +++++- drivers/xen/Makefile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)drivers/xen/Kconfig +1
-1@@ -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
Quoted 8 lines
drivers/xen/Kconfig config XEN_PCIDEV_BACKEND · line 194
Quoted 5 lines
drivers/xen/Kconfig +3
-0If in doubt, say m. +config XEN_PCI + def_bool y + depends on PCI && !ARM && !ARM64This is confusing because x86 already has
PCI_XEN, seearch/x86/Kconfig. Just movePCI_XENfromarch/x86/Kconfigto here and disable it for ARM?
PCI_XEN enables SWIOTLB. Do we really want the same dependencies for any architecture?
Regards,
Signature · 1 line
Julien Grall
Quoted 42 lines · Stefano Stabellini
Quoted 41 lines · Julien Grall
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_PCIwhich will be turned off for ARM platform.Reported-by Robert Richter <[email protected]>Signed-off-by Julien Grall <[email protected]>---
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Boris Ostrovsky <[email protected]>
Cc: David Vrabel <[email protected]>--- drivers/xen/Kconfig | 6 +++++- drivers/xen/Makefile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)drivers/xen/Kconfig +1
-1@@ -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
Quoted 8 lines
drivers/xen/Kconfig config XEN_PCIDEV_BACKEND · line 194
Quoted 5 lines
drivers/xen/Kconfig +3
-0If in doubt, say m. +config XEN_PCI + def_bool y + depends on PCI && !ARM && !ARM64This is confusing because x86 already has
PCI_XEN, seearch/x86/Kconfig. Just movePCI_XENfromarch/x86/Kconfigto here and disable it for ARM?
PCI_XEN enables SWIOTLB. Do we really want the same dependencies for any architecture?
Regards,
Signature · 1 line
Julien Grall
Quoted 40 lines · Julien Grall
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_PCIwhich will be turned off for ARM platform.Reported-by Robert Richter <[email protected]>Signed-off-by Julien Grall <[email protected]>---
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Boris Ostrovsky <[email protected]>
Cc: David Vrabel <[email protected]>--- drivers/xen/Kconfig | 6 +++++- drivers/xen/Makefile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)drivers/xen/Kconfig +1
-1@@ -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
drivers/xen/Kconfig config XEN_PCIDEV_BACKEND · line 194
Quoted 6 lines
drivers/xen/Kconfig +3
-0@@ -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?
Quoted 19 lines
drivers/xen/Kconfig +0
-0config XEN_SCSI_BACKEND tristate "XEN SCSI backend driver" depends on XEN && XEN_BACKEND && TARGET_COREdrivers/xen/Makefile +1
-1@@ -11,7 +11,7 @@ CFLAGS_features.o := $(nostackp) CFLAGS_efi.o += -fshort-wchar -dom0-$(CONFIG_PCI) += pci.o +dom0-$(CONFIG_XEN_PCI) += pci.o dom0-$(CONFIG_USB_SUPPORT) += dbgp.o dom0-$(CONFIG_XEN_ACPI) += acpi.o $(xen-pad-y) xen-pad-$(CONFIG_X86) += xen-acpi-pad.oSignature · 1 line
2.1.4
Quoted 7 lines · Julien Grall
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>
Quoted 6 lines
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_PCIwhich 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?
David
Hi David,
Quoted 12 lines · David Vrabel
Quoted 11 lines · Julien Grall
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.
Quoted 5 lines
Quoted 2 lines
For now, introduce a new config options
XEN_PCIwhich will be turned off for ARM platform.Since
PCI_MMCONFIGisn't x86 specific and its use indrivers/xen/pci.cis, can you fix this by changing to #ifdefCONFIG_X86?
Well, it may be possible that we need this code for ARM/ARM64.
Quoted 1 line
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
Signature · 1 line
Julien Grall
Quoted 25 lines · Julien Grall
Hi David,
Quoted 8 lines · David Vrabel
Quoted 7 lines · Julien Grall
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>Quoted 8 lines
Quoted 6 lines
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_PCIwhich will be turned off for ARM platform.Since
PCI_MMCONFIGisn't x86 specific and its use indrivers/xen/pci.cis, can you fix this by changing to #ifdefCONFIG_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.
Quoted 7 lines
Note, that it's still possible to use PCI in DOM0 on ARM64 platform without this code.
Regards,
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
Quoted 17 lines · Boris Ostrovsky
Quoted 16 lines · Julien Grall
Hi David,
Quoted 13 lines · David Vrabel
Quoted 12 lines · Julien Grall
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.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
For now, introduce a new config options
XEN_PCIwhich will be turned off
for ARM platform.Since
PCI_MMCONFIGisn't x86 specific and its use indrivers/xen/pci.cis, can you fix this by changing to #ifdefCONFIG_X86?
This.
Quoted 9 lines
Quoted 9 lines
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.
Quoted 8 lines
Quoted 4 lines
Regards,
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).
Or preferably this.
David
Quoted 17 lines · Boris Ostrovsky
Quoted 16 lines · Julien Grall
Hi David,
Quoted 13 lines · David Vrabel
Quoted 12 lines · Julien Grall
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.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
For now, introduce a new config options
XEN_PCIwhich will be turned off
for ARM platform.Since
PCI_MMCONFIGisn't x86 specific and its use indrivers/xen/pci.cis, can you fix this by changing to #ifdefCONFIG_X86?
This.
Quoted 9 lines
Quoted 9 lines
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.
Quoted 8 lines
Quoted 4 lines
Regards,
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).
Or preferably this.
David
Quoted 31 lines · Boris Ostrovsky
Quoted 30 lines · Julien Grall
Hi David,
Quoted 13 lines · David Vrabel
Quoted 12 lines · Julien Grall
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.Quoted 5 lines
Quoted 3 lines
For now, introduce a new config options
XEN_PCIwhich will be turned off
for ARM platform.Since
PCI_MMCONFIGisn't x86 specific and its use indrivers/xen/pci.cis, can you fix this by changing to #ifdefCONFIG_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.
Quoted 8 lines
Quoted 4 lines
Regards,
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).
Hmmmm. It looks like that the mmconfig is not yet supported upstream for ARM64. So even with arch function for pci_probe so it won't work.
I hit the compilation issue on a 4.2 with patched applied for some hardware enablement. Some of them if for mmconfig.
I should have check it before sending it. Sorry for the noise.
Regards,
Signature · 1 line
Julien Grall
Quoted 31 lines · Boris Ostrovsky
Quoted 30 lines · Julien Grall
Hi David,
Quoted 13 lines · David Vrabel
Quoted 12 lines · Julien Grall
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.Quoted 5 lines
Quoted 3 lines
For now, introduce a new config options
XEN_PCIwhich will be turned off
for ARM platform.Since
PCI_MMCONFIGisn't x86 specific and its use indrivers/xen/pci.cis, can you fix this by changing to #ifdefCONFIG_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.
Quoted 8 lines
Quoted 4 lines
Regards,
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).
Hmmmm. It looks like that the mmconfig is not yet supported upstream for ARM64. So even with arch function for pci_probe so it won't work.
I hit the compilation issue on a 4.2 with patched applied for some hardware enablement. Some of them if for mmconfig.
I should have check it before sending it. Sorry for the noise.
Regards,
Signature · 1 line
Julien Grall
Quoted 25 lines · Julien Grall
Hi David,
Quoted 8 lines · David Vrabel
Quoted 7 lines · Julien Grall
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>Quoted 8 lines
Quoted 6 lines
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_PCIwhich will be turned off for ARM platform.Since
PCI_MMCONFIGisn't x86 specific and its use indrivers/xen/pci.cis, can you fix this by changing to #ifdefCONFIG_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.
Quoted 7 lines
Note, that it's still possible to use PCI in DOM0 on ARM64 platform without this code.
Regards,
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
Hi David,
Quoted 12 lines · David Vrabel
Quoted 11 lines · Julien Grall
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.
Quoted 5 lines
Quoted 2 lines
For now, introduce a new config options
XEN_PCIwhich will be turned off for ARM platform.Since
PCI_MMCONFIGisn't x86 specific and its use indrivers/xen/pci.cis, can you fix this by changing to #ifdefCONFIG_X86?
Well, it may be possible that we need this code for ARM/ARM64.
Quoted 1 line
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
Signature · 1 line
Julien Grall
Quoted 7 lines · Julien Grall
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>
Quoted 6 lines
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_PCIwhich 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?
David