[Xen-devel] [PATCH v7 5/5] PCI: ACPI: Add a generic ACPI based host controller

2016-01-29 Thread Jayachandran C
pci_mmcfg_list. pci_acpi_set_companion() and acpi_pci_get_segment() are defined using sysdata of generic ACPI host controller so that PCI domain and ACPI companion are set in PCI code rather than platform code. This code is currently enabled only for ARM64. Signed-off-by: Jayachandran C --- drivers/acpi

[Xen-devel] [PATCH v7 1/5] APCI: MCFG: Move mmcfg_list management to drivers/acpi

2016-01-29 Thread Jayachandran C
platform specific implementation. This patch is purely rearranging code, it should not have any impact on the logic of MCFG parsing or list handling. Signed-off-by: Jayachandran C [Xen parts:] Acked-by: David Vrabel Signed-off-by: Jayachandran C --- arch/x86/include/asm/pci_x86.h | 24 +--- arch

[Xen-devel] [PATCH v7 3/5] PCI: Handle ACPI companion and domain number

2016-01-29 Thread Jayachandran C
set on the root bus, in case of ACPI. Signed-off-by: Jayachandran C --- drivers/pci/pci.c| 15 ++- drivers/pci/probe.c | 2 ++ include/linux/pci-acpi.h | 11 ++- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c

[Xen-devel] [PATCH v7 4/5] arm64: pci: Add ACPI support

2016-01-29 Thread Jayachandran C
() and pcibios_disable_device() have been added to handle acpi irq enable and disable. pcibios_add_bus() and pcibios_remove_bus() have been added call the corresponding ACPI functions. Signed-off-by: Jayachandran C --- arch/arm64/Kconfig | 3 +++ arch/arm64/kernel/pci.c | 34

[Xen-devel] [PATCH v7 2/5] ACPI: PCI: Support platforms that need pci_remap_iospace

2016-01-29 Thread Jayachandran C
function acpi_pci_root_remap_iospace that is called in acpi_pci_probe_root_resources(), before the validate call. Also fix the address check in acpi_dev_ioresource_flags for similar platforms. Signed-off-by: Jayachandran C --- drivers/acpi/pci_root.c | 62

[Xen-devel] [PATCH v7 0/5] ACPI based PCI support for arm64

2016-01-29 Thread Jayachandran C
an array. Earlier this was done with an arch_init call - remove unneeded pci_bus_add_devices call and fix MCFG saving code - Added a patch to ACPI pci_root.c to handle arm64 PCI IO resources Jayachandran C (5): APCI: MCFG: Move mmcfg_list management to drivers/acpi PCI: Handle ACPI companion

[Xen-devel] [PATCH v6 5/5] PCI: ACPI: Add a generic ACPI based host controller

2016-01-13 Thread Jayachandran C
raw_pci_write based on the pci_mmcfg_list This is enabled only for ARM64 now. Signed-off-by: Jayachandran C --- drivers/acpi/Kconfig | 8 ++ drivers/acpi/Makefile| 1 + drivers/acpi/pci_host_acpi.c | 186 +++ 3 files changed, 195 insertions

[Xen-devel] [PATCH v6 4/5] arm64: pci: Add ACPI support

2016-01-13 Thread Jayachandran C
pcibios_remove_bus have been added call the corresponding ACPI functions. Signed-off-by: Jayachandran C --- arch/arm64/Kconfig | 3 +++ arch/arm64/kernel/pci.c | 34 +- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig

[Xen-devel] [PATCH v6 3/5] ACPI: PCI: Support platforms that need pci_remap_iospace

2016-01-13 Thread Jayachandran C
function acpi_pci_root_remap_iospace that is called in acpi_pci_probe_root_resources(), before the validate call. Also fix the address check in acpi_dev_ioresource_flags for similar platforms. Signed-off-by: Jayachandran C --- drivers/acpi/pci_root.c | 62

[Xen-devel] [PATCH v6 0/5] ACPI based PCI support for arm64

2016-01-13 Thread Jayachandran C
code - Added a patch to ACPI pci_root.c to handle arm64 PCI IO resources Jayachandran C (5): APCI: MCFG: Move mmcfg_list management to drivers/acpi PCI: Handle ACPI companion and domain number ACPI: PCI: Support platforms that need pci_remap_iospace arm64: pci: Add ACPI support PCI: ACPI

[Xen-devel] [PATCH v6 1/5] APCI: MCFG: Move mmcfg_list management to drivers/acpi

2016-01-13 Thread Jayachandran C
platform specific implementation. This patch is purely rearranging code, it should not have any impact on the logic of MCFG parsing or list handling. Signed-off-by: Jayachandran C --- arch/x86/include/asm/pci_x86.h | 24 +--- arch/x86/pci/mmconfig-shared.c | 269

[Xen-devel] [PATCH v6 2/5] PCI: Handle ACPI companion and domain number

2016-01-13 Thread Jayachandran C
case of ACPI. Signed-off-by: Jayachandran C --- drivers/pci/pci.c| 15 ++- drivers/pci/probe.c | 2 ++ include/linux/pci-acpi.h | 28 +++- 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index