ARM: cleanup PCI specific configs
Subsystems (12)
v3 cover ARM: cleanup PCI specific configs
This series was initially sent to add support for two PCIe ports in dra7. This included selecting PCI_DOMAINS config in SOC_DRA7XX.
However from the review, PCI_DOMAINS can instead be selected from ARCH_MULTIPLATFORM. This is fixed in this series along with removing PCI_DOMAINS from other configs.
Since this series was initially sent to add support for two PCIe ports in dra7, it has been tested to see if there are regressions with 1 PCIe port. Though testing of 2 PCIe ports is not done while sending this patch series, it has been verified before in few of the customer boards.
Changes from v2:
*) v2 removed MIGHT_HAVE_PCI from platforms that are not
ARCH_MULTIPLATFORM. Fixed it in this version
Changes from v1:
*) select PCI_DOMAINS config from ARCH_MULTIPLATFORM *) Fix *MIGHT_HAVE_PCI* config from being selected redundantly
Kishon Vijay Abraham I (3):
ARM: dts: DRA7: Add "linux,pci-domain" property for pci dt nodes
ARM: Fix *MIGHT_HAVE_PCI* config from being selected redundantly
ARM: select PCI_DOMAINS config from ARCH_MULTIPLATFORM
arch/arm/Kconfig | 1 + arch/arm/boot/dts/dra7.dtsi | 2 ++ arch/arm/mach-at91/Kconfig | 1 - arch/arm/mach-axxia/Kconfig | 2 -- arch/arm/mach-cns3xxx/Kconfig | 1 - arch/arm/mach-exynos/Kconfig | 2 -- arch/arm/mach-imx/Kconfig | 2 -- arch/arm/mach-integrator/Kconfig | 1 - arch/arm/mach-keystone/Kconfig | 2 -- arch/arm/mach-shmobile/Kconfig | 1 - arch/arm/mach-spear/Kconfig | 1 - arch/arm/mach-versatile/Kconfig | 1 - 12 files changed, 3 insertions(+), 14 deletions(-)
Signature · 1 line
1.7.9.5
PATCH RESEND v3 1/3 ARM: dts: DRA7: Add "linux,pci-domain" property for pci dt nodes
Since DRA7 has multiple PCIe Rootcomplex, add "linux,pci-domain" property to assign a PCI domain number to each of the host bridges.
--- arch/arm/boot/dts/dra7.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/dra7.dtsi +2 -0
@@ -301,6 +301,7 @@ 0x82000000 0 0x20013000 0x13000 0 0xffed000>; #interrupt-cells = <1>; num-lanes = <1>; + linux,pci-domain = <0>; ti,hwmods = "pcie1"; phys = <&pcie1_phy>; phy-names = "pcie-phy0";
@@ -336,6 +337,7 @@ 0x82000000 0 0x30013000 0x13000 0 0xffed000>; #interrupt-cells = <1>; num-lanes = <1>; + linux,pci-domain = <1>; ti,hwmods = "pcie2"; phys = <&pcie2_phy>; phy-names = "pcie-phy0";
Signature · 1 line
1.7.9.5
Re: [RESEND PATCH v3 1/3] ARM: dts: DRA7: Add "linux,pci-domain" property for pci dt nodes
Quoted 3 lines · Kishon Vijay Abraham I
Since DRA7 has multiple PCIe Rootcomplex, add "linux,pci-domain" property to assign a PCI domain number to each of the host bridges.
Is this patch safe to apply without the other changes?
Regards,
Tony
Re: [RESEND PATCH v3 1/3] ARM: dts: DRA7: Add "linux,pci-domain" property for pci dt nodes
Hi Tony,
Quoted 6 lines · Tony Lindgren
Quoted 3 lines · Kishon Vijay Abraham I
Since DRA7 has multiple PCIe Rootcomplex, add "linux,pci-domain" property to assign a PCI domain number to each of the host bridges.
Is this patch safe to apply without the other changes?
Yes. I verified pcie on dra7x by applying only this patch and it doesn't break anything.
Thanks
Kishon
Re: [RESEND PATCH v3 1/3] ARM: dts: DRA7: Add "linux,pci-domain" property for pci dt nodes
Quoted 4 lines · Kishon Vijay Abraham I
Hi Tony,
Quoted 1 line · Tony Lindgren
* Kishon Vijay Abraham I <[email protected]> [160810 05:34]:
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Since DRA7 has multiple PCIe Rootcomplex, add "linux,pci-domain" property to assign a PCI domain number to each of the host bridges.
Is this patch safe to apply without the other changes?
Yes. I verified pcie on dra7x by applying only this patch and it doesn't break anything.
OK thanks for testing, I'm picking the dts change into omap-for-v4.9/dt branch.
The other patches you probably should upload to RMKs patch system if no more comments.
Regards,
Tony
PATCH RESEND v3 2/3 ARM: Fix *MIGHT_HAVE_PCI* config from being selected redundantly
In reply to Kishon Vijay Abraham I*MIGHT_HAVE_PCI* config is already selected in ARCH_MULTIPLATFORM. Fix it from getting redundantly selected in all ARCH_MULTIPLATFORM based machines.
--- arch/arm/mach-at91/Kconfig | 1 - arch/arm/mach-axxia/Kconfig | 1 - arch/arm/mach-exynos/Kconfig | 1 - arch/arm/mach-integrator/Kconfig | 1 - arch/arm/mach-keystone/Kconfig | 1 - arch/arm/mach-spear/Kconfig | 1 - arch/arm/mach-versatile/Kconfig | 1 - 7 files changed, 7 deletions(-)
arch/arm/mach-at91/Kconfig +0 -1
@@ -55,7 +55,6 @@ config SOC_AT91RM9200 select ATMEL_ST select CPU_ARM920T select HAVE_AT91_USB_CLK - select MIGHT_HAVE_PCI select PINCTRL_AT91 select SOC_SAM_V4_V5 select SRAM if PM
arch/arm/mach-axxia/Kconfig +0 -1
@@ -7,7 +7,6 @@ config ARCH_AXXIA select ARM_TIMER_SP804 select HAVE_ARM_ARCH_TIMER select MFD_SYSCON - select MIGHT_HAVE_PCI select PCI_DOMAINS if PCI select ZONE_DMA help
arch/arm/mach-exynos/Kconfig +0 -1
@@ -126,7 +126,6 @@ config SOC_EXYNOS5440 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE select HAVE_ARM_ARCH_TIMER select AUTO_ZRELADDR - select MIGHT_HAVE_PCI select PCI_DOMAINS if PCI select PINCTRL_EXYNOS5440 select PM_OPP
arch/arm/mach-integrator/Kconfig +0 -1
@@ -21,7 +21,6 @@ if ARCH_INTEGRATOR config ARCH_INTEGRATOR_AP bool "Support Integrator/AP and Integrator/PP2 platforms" select INTEGRATOR_AP_TIMER - select MIGHT_HAVE_PCI select SERIAL_AMBA_PL010 if TTY select SERIAL_AMBA_PL010_CONSOLE if TTY select SOC_BUS
arch/arm/mach-keystone/Kconfig +0 -1
@@ -8,7 +8,6 @@ config ARCH_KEYSTONE select COMMON_CLK_KEYSTONE select ARCH_SUPPORTS_BIG_ENDIAN select ZONE_DMA if ARM_LPAE - select MIGHT_HAVE_PCI select PCI_DOMAINS if PCI select PINCTRL help
arch/arm/mach-spear/Kconfig +0 -1
@@ -20,7 +20,6 @@ config ARCH_SPEAR13XX select HAVE_ARM_TWD if SMP select PINCTRL select MFD_SYSCON - select MIGHT_HAVE_PCI help Supports for ARM's SPEAR13XX family
arch/arm/mach-versatile/Kconfig +0 -1
@@ -9,7 +9,6 @@ config ARCH_VERSATILE select CPU_ARM926T select ICST select MFD_SYSCON - select MIGHT_HAVE_PCI select PLAT_VERSATILE select POWER_RESET select POWER_RESET_VERSATILE
Signature · 1 line
1.7.9.5
Re: [RFT RESEND PATCH v3 2/3] ARM: Fix *MIGHT_HAVE_PCI* config from being selected redundantly
Quoted 2 lines · Kishon Vijay Abraham I
*MIGHT_HAVE_PCI* config is already selected in
ARCH_MULTIPLATFORM. Fix it from getting redundantly selected in all
I don't like the "fix" here and in subject. There is no error, no warning, no issue to be fixed. Fix might be a candidate to backport (stable, vendor etc) but this just removes something which is not needed.
With the change in subject, for exynos:
Best regards,
Krzysztof
PATCH RESEND v3 3/3 ARM: select PCI_DOMAINS config from ARCH_MULTIPLATFORM
In reply to Kishon Vijay Abraham IPCI_DOMAINS config should be selected for any SoCs having more than a single PCIe controller. Without PCI_DOMAINS config, only one PCIe controller gets registered.
Select PCI_DOMAINS in ARCH_MULTIPLATFORM if PCI is selected, since it doesn't harm even if a platform has a single PCIe port. Also remove PCI_DOMAINS being selected from other platform specific configs.
--- arch/arm/Kconfig | 1 + arch/arm/mach-axxia/Kconfig | 1 - arch/arm/mach-cns3xxx/Kconfig | 1 - arch/arm/mach-exynos/Kconfig | 1 - arch/arm/mach-imx/Kconfig | 2 -- arch/arm/mach-keystone/Kconfig | 1 - arch/arm/mach-shmobile/Kconfig | 1 - 7 files changed, 1 insertion(+), 7 deletions(-)
arch/arm/Kconfig +1 -0
@@ -337,6 +337,7 @@ config ARCH_MULTIPLATFORM select GENERIC_CLOCKEVENTS select MIGHT_HAVE_PCI select MULTI_IRQ_HANDLER + select PCI_DOMAINS if PCI select SPARSE_IRQ select USE_OF
arch/arm/mach-axxia/Kconfig +0 -1
@@ -7,7 +7,6 @@ config ARCH_AXXIA select ARM_TIMER_SP804 select HAVE_ARM_ARCH_TIMER select MFD_SYSCON - select PCI_DOMAINS if PCI select ZONE_DMA help This enables support for the LSI Axxia devices.
arch/arm/mach-cns3xxx/Kconfig +0 -1
@@ -2,7 +2,6 @@ menuconfig ARCH_CNS3XXX bool "Cavium Networks CNS3XXX family" depends on ARCH_MULTI_V6 select ARM_GIC - select PCI_DOMAINS if PCI help Support for Cavium Networks CNS3XXX platform.
arch/arm/mach-exynos/Kconfig +0 -1
@@ -126,7 +126,6 @@ config SOC_EXYNOS5440 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE select HAVE_ARM_ARCH_TIMER select AUTO_ZRELADDR - select PCI_DOMAINS if PCI select PINCTRL_EXYNOS5440 select PM_OPP help
arch/arm/mach-imx/Kconfig +0 -2
@@ -523,7 +523,6 @@ config SOC_IMX6Q select ARM_ERRATA_764369 if SMP select HAVE_ARM_SCU if SMP select HAVE_ARM_TWD - select PCI_DOMAINS if PCI select PINCTRL_IMX6Q select SOC_IMX6
@@ -569,7 +568,6 @@ config SOC_LS1021A bool "Freescale LS1021A support" select ARM_GIC select HAVE_ARM_ARCH_TIMER - select PCI_DOMAINS if PCI select ZONE_DMA if ARM_LPAE help This enables support for Freescale LS1021A processor.
arch/arm/mach-keystone/Kconfig +0 -1
@@ -8,7 +8,6 @@ config ARCH_KEYSTONE select COMMON_CLK_KEYSTONE select ARCH_SUPPORTS_BIG_ENDIAN select ZONE_DMA if ARM_LPAE - select PCI_DOMAINS if PCI select PINCTRL help Support for boards based on the Texas Instruments Keystone family of
arch/arm/mach-shmobile/Kconfig +0 -1
@@ -22,7 +22,6 @@ config ARCH_RCAR_GEN2 select PM_GENERIC_DOMAINS select RENESAS_IRQC select SYS_SUPPORTS_SH_CMT - select PCI_DOMAINS if PCI config ARCH_RMOBILE bool
Signature · 1 line
1.7.9.5
Re: [RFT RESEND PATCH v3 3/3] ARM: select PCI_DOMAINS config from ARCH_MULTIPLATFORM
Quoted 10 lines · Kishon Vijay Abraham I
PCI_DOMAINSconfig should be selected for any SoCs having more than a single PCIe controller. WithoutPCI_DOMAINSconfig, only one PCIe controller gets registered.Select
PCI_DOMAINSinARCH_MULTIPLATFORMif PCI is selected, since it doesn't harm even if a platform has a single PCIe port. Also removePCI_DOMAINSbeing selected from other platform specific configs.Signed-off-by Kishon Vijay Abraham I <[email protected]>
Quoted 9 lines
--- arch/arm/Kconfig | 1 + arch/arm/mach-axxia/Kconfig | 1 - arch/arm/mach-cns3xxx/Kconfig | 1 - arch/arm/mach-exynos/Kconfig | 1 - arch/arm/mach-imx/Kconfig | 2 -- arch/arm/mach-keystone/Kconfig | 1 - arch/arm/mach-shmobile/Kconfig | 1 - 7 files changed, 1 insertion(+), 7 deletions(-)
For Exynos5440 output is equal and we do not use PCI on other SoCs, so:
Best regards,
Krzysztof