[PATCH v13 2/6] PCI: designware: Remove *_mod_base

2015-10-29 Thread Zhou Wang
.html Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann Tested-by: James Morse Tested-by: Gabriel Fernandez Tested-by: Minghuan Lian Acked-by: Pratyush Anand --- drivers/pci/host/pci-dra7xx.c | 8 drivers/pci/host/pc

[PATCH v13 3/6] PCI: designware: Replace DT PCI ranges parse with of_pci_get_host_bridge_resources

2015-10-29 Thread Zhou Wang
This patch uses the new of_pci_get_host_bridge_resources API in place of the PCI OF DT parser For reference see previous suggestions from Gabriele[1] [1] http://www.spinics.net/lists/linux-pci/msg42194.html Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Tested-by: James Morse

[PATCH v13 5/6] PCI: designware: Add ARM64 support

2015-10-29 Thread Zhou Wang
nware: Remove *_mod_base". Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann Tested-by: James Morse Tested-by: Gabriel Fernandez Tested-by: Minghuan Lian Acked-by: Pratyush Anand --- drivers/pci/host/pcie-designwa

[PATCH v13 6/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-29 Thread Zhou Wang
This patch adds PCIe host support for HiSilicon SoC Hip05, related DT binding document and maintainer update. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: liudongdong Acked-by: Rob Herring --- .../bindings/arm/hisilicon/hisilicon.txt | 17

[PATCH v13 0/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-29 Thread Zhou Wang
/lists/linux-pci/msg42539.html Link of v2: - http://www.spinics.net/lists/linux-pci/msg41844.html Link of RFC v1: - http://www.spinics.net/lists/linux-pci/msg41305.html Link of RFC: - http://www.spinics.net/lists/linux-pci/msg40434.html [1] http://lists.infradead.org/pipermail/linux-arm-kernel/

[PATCH v13 1/6] PCI: designware: Move calculation of bus addresses to DRA7xx

2015-10-29 Thread Zhou Wang
s only applicable to DRA7xx. This patch moves the calculation of the bus addresses to the DRA7xx driver and is needed to allow the rework of designware to use the new DT parsing API. Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- drivers/pci/host/pc

[PATCH v13 4/6] ARM/PCI: Replace pci_sys_data->align_resource with global function pointer

2015-10-29 Thread Zhou Wang
hods), but the pci_sys_data->align_resource pointer was used only by Marvell (see mvebu_pcie_enable()), so this would only be a problem if we had a system with a combination of Marvell and other host bridges [bhelgaas: changelog] Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Si

Re: [PATCH v12 0/8] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-28 Thread Zhou Wang
On 2015/10/28 6:32, Bjorn Helgaas wrote: > Hi Zhou, > > On Mon, Oct 26, 2015 at 07:35:42PM +0800, Zhou Wang wrote: >> This patchset adds PCIe host support for HiSilicon SoC Hip05. The PCIe hosts >> use PCIe IP core from Synopsys, So this driver is based on designware PCIe &

Re: [PATCH v12 7/8] Documentation: DT: Add HiSilicon PCIe host binding

2015-10-28 Thread Zhou Wang
On 2015/10/28 3:19, Rob Herring wrote: > On Mon, Oct 26, 2015 at 6:35 AM, Zhou Wang wrote: >> This patch adds related DTS binding document for HiSilicon PCIe host driver. >> >> Signed-off-by: Zhou Wang > > Acked-by: Rob Herring > Thanks for your review. Zho

[PATCH v12 2/8] ARM/PCI: remove align_resource in pci_sys_data

2015-10-26 Thread Zhou Wang
ch solves the issue by removing "align_resource" from "pci_sys_data" struct and defining a static global function pointer in "bios32.c" Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- arch/arm/include/asm/mach/pci.h | 6 -- arch

[PATCH v12 5/8] PCI: designware: Remove *_mod_base

2015-10-26 Thread Zhou Wang
This patch reverts commit f4c55c5a3f7f ("PCI: designware: Program ATU with untranslated address") based on 1/8 in this series. we delete *_mod_base in pcie-designware. This was discussed in [1] [1] http://www.spinics.net/lists/arm-kernel/msg436779.html Signed-off-by: Zhou Wang Sig

[PATCH v12 4/8] PCI: designware: Add ARM64 support

2015-10-26 Thread Zhou Wang
This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct hw_pci, move related operations to dw_pcie_host_init. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann Tested-by

[PATCH v12 3/8] PCI: designware: Replace DT PCI ranges parse with of_pci_get_host_bridge_resources

2015-10-26 Thread Zhou Wang
This patch uses the new of_pci_get_host_bridge_resources API in place of the PCI OF DT parser For reference see previous suggestions from Gabriele[1] [1] http://www.spinics.net/lists/linux-pci/msg42194.html Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Tested-by: James Morse

[PATCH v12 6/8] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-26 Thread Zhou Wang
This patch adds PCIe host support for HiSilicon SoC Hip05. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: liudongdong --- drivers/pci/host/Kconfig | 8 ++ drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-hisi.c | 198

[PATCH v12 7/8] Documentation: DT: Add HiSilicon PCIe host binding

2015-10-26 Thread Zhou Wang
This patch adds related DTS binding document for HiSilicon PCIe host driver. Signed-off-by: Zhou Wang --- .../bindings/arm/hisilicon/hisilicon.txt | 17 + .../devicetree/bindings/pci/hisilicon-pcie.txt | 44 ++ 2 files changed, 61 insertions(+) create

[PATCH v12 0/8] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-26 Thread Zhou Wang
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359741.html Zhou Wang (6): PCI: designware: Replace DT PCI ranges parse with of_pci_get_host_bridge_resources PCI: designware: Add ARM64 support PCI: designware: Remove *_mod_base PCI: hisi: Add PCIe host support for HiSilicon

[PATCH v12 8/8] MAINTAINERS: Add pcie-hisi maintainer

2015-10-26 Thread Zhou Wang
Signed-off-by: Zhou Wang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ba7ab7..944a229 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8047,6 +8047,13 @@ S: Maintained F: Documentation/devicetree/bindings/pci/xgene-pci

[PATCH v12 1/8] PCI: designware: move calculation of bus addresses to DRA7xx

2015-10-26 Thread Zhou Wang
s only applicable to DRA7xx. This patch moves the calculation of the bus addresses to the DRA7xx driver and is needed to allow the rework of designware to use the new DT parsing API. Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- drivers/pci/host/pc

Re: [PATCH v11 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-26 Thread Zhou Wang
On 2015/10/23 2:46, Bjorn Helgaas wrote: > Hi Zhou, > > This looks pretty good to me; just a mask question and add a printk. > > On Fri, Oct 16, 2015 at 06:23:39PM +0800, Zhou Wang wrote: >> This patch adds PCIe host support for HiSilicon SoC Hip05.

Re: [PATCH v11 3/6] PCI: designware: Add ARM64 support

2015-10-26 Thread Zhou Wang
On 2015/10/23 2:28, Bjorn Helgaas wrote: > Hi Zhou, > > On Fri, Oct 16, 2015 at 06:23:38PM +0800, Zhou Wang wrote: >> This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete >> function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct hw

Re: [PATCH v11 1/6] PCI: designware: move calculation of bus addresses to DRA7xx

2015-10-26 Thread Zhou Wang
On 2015/10/23 0:35, Bjorn Helgaas wrote: > Hi Gabriele, > > On Thu, Oct 22, 2015 at 07:21:41AM +, Gabriele Paoloni wrote: >>> -Original Message- >>> From: Bjorn Helgaas [mailto:helg...@kernel.org] > #define PCIECTRL_DRA7XX_CONF_PHY_CS 0x010C #define

[PATCH v11 6/6] MAINTAINERS: Add pcie-hisi maintainer

2015-10-16 Thread Zhou Wang
Signed-off-by: Zhou Wang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ba7ab7..944a229 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8047,6 +8047,13 @@ S: Maintained F: Documentation/devicetree/bindings/pci/xgene-pci

[PATCH v11 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-16 Thread Zhou Wang
This patch adds PCIe host support for HiSilicon SoC Hip05. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: liudongdong --- drivers/pci/host/Kconfig | 8 ++ drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-hisi.c | 196

[PATCH v11 0/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-16 Thread Zhou Wang
41305.html Link of RFC: - http://www.spinics.net/lists/linux-pci/msg40434.html [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359741.html Zhou Wang (4): PCI: designware: Add ARM64 support PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05 Documentation: DT: Add HiSilicon P

[PATCH v11 1/6] PCI: designware: move calculation of bus addresses to DRA7xx

2015-10-16 Thread Zhou Wang
s only applicable to DRA7xx. This patch moves the calculation of the bus addresses to the DRA7xx driver and is needed to allow the rework of designware to use the new DT parsing API. Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- drivers/pci/host/pc

[PATCH v11 2/6] ARM/PCI: remove align_resource in pci_sys_data

2015-10-16 Thread Zhou Wang
ch solves the issue by removing "align_resource" from "pci_sys_data" struct and defining a static global function pointer in "bios32.c" Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- arch/arm/include/asm/mach/pci.h | 6 -- arch

[PATCH v11 3/6] PCI: designware: Add ARM64 support

2015-10-16 Thread Zhou Wang
don't have ARM32 PCIe related board to do test. It will be appreciated if someone could help to test it. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann Tested-by: James Morse Tested-by: Gabriel Fernandez Tested-by: Minghuan Lian Acked-by: Pratyush A

[PATCH v11 5/6] Documentation: DT: Add HiSilicon PCIe host binding

2015-10-16 Thread Zhou Wang
This patch adds related DTS binding document for HiSilicon PCIe host driver. Signed-off-by: Zhou Wang --- .../bindings/arm/hisilicon/hisilicon.txt | 17 + .../devicetree/bindings/pci/hisilicon-pcie.txt | 44 ++ 2 files changed, 61 insertions(+) create

Re: [PATCH v10 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-15 Thread Zhou Wang
On 2015/10/15 5:56, Arnd Bergmann wrote: > On Wednesday 14 October 2015 17:44:11 Zhou Wang wrote: >> On 2015/10/14 17:06, Arnd Bergmann wrote: >>> On Wednesday 14 October 2015 16:59:03 Zhou Wang wrote: >>>> >>>> Hi Arnd, >>>> >>>>

Re: [PATCH v10 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-14 Thread Zhou Wang
On 2015/10/14 17:06, Arnd Bergmann wrote: > On Wednesday 14 October 2015 16:59:03 Zhou Wang wrote: >> >> Hi Arnd, >> >> In Hip05 PCIe host, it uses GITS_TRANSLATER's address to get TLP package >> which contains MSI address and MSI data, and then combine BDF

Re: [PATCH v10 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-14 Thread Zhou Wang
On 2015/10/13 23:00, Arnd Bergmann wrote: > On Tuesday 13 October 2015 14:49:07 Gabriele Paoloni wrote: >>> On Monday 12 October 2015 16:35:45 Bjorn Helgaas wrote: > +{ > + u64 addr; > + struct device_node *msi_node; > + struct resource res; > + struct devic

Re: [PATCH v10 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-12 Thread Zhou Wang
On 2015/10/13 5:35, Bjorn Helgaas wrote: > [+cc Arnd, Rob] > > Hi Zhou, > > I have a few minor comments and two questions: one about the fact > all the config accesses are 32 bits, and another about the use of the > "msi-parent" node. > > On Sat, Oct 10

[PATCH v10 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-09 Thread Zhou Wang
This patch adds PCIe host support for HiSilicon SoC Hip05. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: liudongdong Signed-off-by: Kefeng Wang Signed-off-by: qiuzhenfa --- drivers/pci/host/Kconfig | 8 ++ drivers/pci/host/Makefile| 1 + drivers/pci

[PATCH v10 1/6] PCI: designware: move calculation of bus addresses to DRA7xx

2015-10-09 Thread Zhou Wang
s only applicable to DRA7xx. This patch moves the calculation of the bus addresses to the DRA7xx driver and is needed to allow the rework of designware to use the new DT parsing API. Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- drivers/pci/host/pc

[PATCH v10 2/6] ARM/PCI: remove align_resource in pci_sys_data

2015-10-09 Thread Zhou Wang
ch solves the issue by removing "align_resource" from "pci_sys_data" struct and defining a static global function pointer in "bios32.c" Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- arch/arm/include/asm/mach/pci.h | 6 -- arch

[PATCH v10 3/6] PCI: designware: Add ARM64 support

2015-10-09 Thread Zhou Wang
don't have ARM32 PCIe related board to do test. It will be appreciated if someone could help to test it. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann Tested-by: James Morse Tested-by: Gabriel Fernandez Tested-by: Minghuan Lian Acked-by: Pratyush A

[PATCH v10 5/6] Documentation: DT: Add HiSilicon PCIe host binding

2015-10-09 Thread Zhou Wang
This patch adds related DTS binding document for HiSilicon PCIe host driver. Signed-off-by: Zhou Wang --- .../bindings/arm/hisilicon/hisilicon.txt | 17 + .../devicetree/bindings/pci/hisilicon-pcie.txt | 44 ++ 2 files changed, 61 insertions(+) create

[PATCH v10 0/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-10-09 Thread Zhou Wang
://www.spinics.net/lists/linux-pci/msg41305.html Link of RFC: - http://www.spinics.net/lists/linux-pci/msg40434.html [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359741.html Zhou Wang (4): PCI: designware: Add ARM64 support PCI: hisi: Add PCIe host support for HiSilicon

[PATCH v10 6/6] MAINTAINERS: Add pcie-hisi maintainer

2015-10-09 Thread Zhou Wang
Signed-off-by: Zhou Wang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ba7ab7..944a229 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8047,6 +8047,13 @@ S: Maintained F: Documentation/devicetree/bindings/pci/xgene-pci

Re: [PATCH v9 3/6] PCI: designware: Add ARM64 support

2015-09-22 Thread Zhou Wang
On 2015/9/23 1:05, Pratyush Anand wrote: > Hi Zhou, > > On Tue, Sep 22, 2015 at 8:22 AM, Zhou Wang wrote: >> On 2015/9/15 20:49, Zhou Wang wrote: >>> This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete >>> function dw_pcie_setup, dw_p

Re: [PATCH v9 3/6] PCI: designware: Add ARM64 support

2015-09-21 Thread Zhou Wang
Hi Jingoo and Pratyush, Could you help to review this patch if you have time? Many Thanks, Zhou On 2015/9/15 20:49, Zhou Wang wrote: > This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete > function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct

Re: [PATCH v9 5/6] Documentation: DT: Add HiSilicon PCIe host binding

2015-09-15 Thread Zhou Wang
On 2015/9/16 10:17, Rob Herring wrote: > On 09/15/2015 08:14 PM, Zhou Wang wrote: >> On 2015/9/16 3:43, Rob Herring wrote: >>> On 09/15/2015 07:49 AM, Zhou Wang wrote: >>>> This patch adds related DTS binding document for HiSilicon PCIe host >>>>

Re: [PATCH v9 5/6] Documentation: DT: Add HiSilicon PCIe host binding

2015-09-15 Thread Zhou Wang
On 2015/9/16 3:43, Rob Herring wrote: > On 09/15/2015 07:49 AM, Zhou Wang wrote: >> This patch adds related DTS binding document for HiSilicon PCIe host driver. >> >> Signed-off-by: Zhou Wang >> --- >> .../devicetree/bindings/pci/hisilicon-pcie.txt | 46 >

[PATCH v9 5/6] Documentation: DT: Add HiSilicon PCIe host binding

2015-09-15 Thread Zhou Wang
This patch adds related DTS binding document for HiSilicon PCIe host driver. Signed-off-by: Zhou Wang --- .../devicetree/bindings/pci/hisilicon-pcie.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/hisilicon-pcie.txt

[PATCH v9 2/6] ARM/PCI: remove align_resource in pci_sys_data

2015-09-15 Thread Zhou Wang
ch solves the issue by removing "align_resource" from "pci_sys_data" struct and defining a static global function pointer in "bios32.c" Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- arch/arm/include/asm/mach/pci.h | 6 -- arch

[PATCH v9 1/6] PCI: designware: move calculation of bus addresses to DRA7xx

2015-09-15 Thread Zhou Wang
s only applicable to DRA7xx. This patch moves the calculation of the bus addresses to the DRA7xx driver and is needed to allow the rework of designware to use the new DT parsing API. Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- drivers/pci/host/pc

[PATCH v9 3/6] PCI: designware: Add ARM64 support

2015-09-15 Thread Zhou Wang
don't have ARM32 PCIe related board to do test. It will be appreciated if someone could help to test it. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann Tested-by: James Morse Tested-by: Gabriel Fernandez Tested-by: Minghuan Lian [1] http://www.spinics.

[PATCH v9 6/6] MAINTAINERS: Add pcie-hisi maintainer

2015-09-15 Thread Zhou Wang
Signed-off-by: Zhou Wang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ba7ab7..944a229 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8047,6 +8047,13 @@ S: Maintained F: Documentation/devicetree/bindings/pci/xgene-pci

[PATCH v9 0/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-09-15 Thread Zhou Wang
ww.spinics.net/lists/linux-pci/msg40434.html [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359741.html Zhou Wang (4): PCI: designware: Add ARM64 support PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05 Documentation: DT: Add HiSilicon PCIe host binding MAINTAI

[PATCH v9 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-09-15 Thread Zhou Wang
This patch adds PCIe host support for HiSilicon SoC Hip05. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: liudongdong Signed-off-by: Kefeng Wang Signed-off-by: qiuzhenfa --- drivers/pci/host/Kconfig | 8 ++ drivers/pci/host/Makefile| 1 + drivers/pci

Re: [PATCH v8 3/6] PCI: designware: Add ARM64 support

2015-09-08 Thread Zhou Wang
any thanks for your testing. Will add your Tested-by in next version :) Best Regards, Zhou > >> -Original Message- >> From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] >> On Behalf Of Gabriel Fernandez >> Sent: Thursday, August 27, 2015

Re: [PATCH v8 3/6] PCI: designware: Add ARM64 support

2015-08-28 Thread Zhou Wang
my patchset here: > http://www.spinics.net/lists/kernel/msg2064266.html > > Best Regards. > > Gabriel. > Hi Gabriel, It is very helpful to test this patch. Many thanks! Best Regards, Zhou > On 25 August 2015 at 11:58, Zhou Wang wrote: >> This patch tries to unif

[PATCH v8 3/6] PCI: designware: Add ARM64 support

2015-08-25 Thread Zhou Wang
r, I don't have ARM32 PCIe related board to do test. It will be appreciated if someone could help to test it. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann Tested-By: James Morse [1] http://www.spinics.net/lists/linux-pci/msg42194.html [2] http://www.sp

[PATCH v8 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-08-25 Thread Zhou Wang
This patch adds PCIe host support for HiSilicon SoC Hip05. Signed-off-by: Zhou Wang --- drivers/pci/host/Kconfig | 8 ++ drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-hisi.c | 247 +++ 3 files changed, 256 insertions(+) create mode

[PATCH v8 0/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-08-25 Thread Zhou Wang
ww.spinics.net/lists/linux-pci/msg41844.html Link of RFC v1: - http://www.spinics.net/lists/linux-pci/msg41305.html Link of RFC: - http://www.spinics.net/lists/linux-pci/msg40434.html [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359741.html Zhou Wang (4): PCI: designware:

[PATCH v8 5/6] Documentation: DT: Add HiSilicon PCIe host binding

2015-08-25 Thread Zhou Wang
This patch adds related DTS binding document for HiSilicon PCIe host driver. Signed-off-by: Zhou Wang --- .../devicetree/bindings/pci/hisilicon-pcie.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/hisilicon-pcie.txt

[PATCH v8 6/6] MAINTAINERS: Add pcie-hisi maintainer

2015-08-25 Thread Zhou Wang
Signed-off-by: Zhou Wang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8133cef..7cd8e47 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7854,6 +7854,13 @@ S: Maintained F: Documentation/devicetree/bindings/pci/xgene-pci

[PATCH v8 1/6] PCI: designware: move calculation of bus addresses to DRA7xx

2015-08-25 Thread Zhou Wang
s only applicable to DRA7xx. This patch moves the calculation of the bus addresses to the DRA7xx driver and is needed to allow the rework of designware to use the new DT parsing API. Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- drivers/pci/host/pc

[PATCH v8 2/6] ARM/PCI: remove align_resource in pci_sys_data

2015-08-25 Thread Zhou Wang
From: gabriele paoloni This patch is needed in order to unify the PCIe designware framework for ARM and ARM64 architectures. In the PCIe designware unification process we are calling pci_create_root_bus() passing a "sysdata" parameter that is the same for both ARM and ARM64 and is of type "struct

Re: [PATCH v7 3/6] PCI: designware: Add ARM64 support

2015-08-23 Thread Zhou Wang
On 2015/8/21 22:19, Gabriele Paoloni wrote: > Hi Liviu > > Many Thanks for reviewing > >> -Original Message- >> From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci- >> ow...@vger.kernel.org] On Behalf Of Liviu Dudau >> Sent: Friday, August 21, 2015 2:43 PM >> To: Gabriele Paoloni >> C

Re: [PATCH v7 3/6] PCI: designware: Add ARM64 support

2015-08-19 Thread Zhou Wang
Hi Pratyush and Jingoo, what is your opinion about this patch? It will be very appreciated if you could take a look at it. Thanks, Zhou On 2015/8/17 19:55, Zhou Wang wrote: > This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete > function dw_pcie_setup, dw_pcie_sc

[PATCH v7 6/6] MAINTAINERS: Add pcie-hisi maintainer

2015-08-17 Thread Zhou Wang
Signed-off-by: Zhou Wang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8133cef..7cd8e47 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7854,6 +7854,13 @@ S: Maintained F: Documentation/devicetree/bindings/pci/xgene-pci

[PATCH v7 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-08-17 Thread Zhou Wang
This patch adds PCIe host support for HiSilicon SoC Hip05. Signed-off-by: Zhou Wang --- drivers/pci/host/Kconfig | 8 ++ drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-hisi.c | 254 +++ 3 files changed, 263 insertions(+) create mode

[PATCH v7 2/6] ARM/PCI: remove align_resource in pci_sys_data

2015-08-17 Thread Zhou Wang
From: gabriele paoloni This patch is needed in order to unify the PCIe designware framework for ARM and ARM64 architectures. In the PCIe designware unification process we are calling pci_create_root_bus() passing a "sysdata" parameter that is the same for both ARM and ARM64 and is of type "struct

[PATCH v7 1/6] PCI: designware: move calculation of bus addresses to DRA7xx

2015-08-17 Thread Zhou Wang
s only applicable to DRA7xx. This patch moves the calculation of the bus addresses to the DRA7xx driver and is needed to allow the rework of designware to use the new DT parsing API. Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang Acked-by: Pratyush Anand --- drivers/pci/host/pc

[PATCH v7 0/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-08-17 Thread Zhou Wang
ml Link of v2: - http://www.spinics.net/lists/linux-pci/msg41844.html Link of RFC v1: - http://www.spinics.net/lists/linux-pci/msg41305.html Link of RFC: - http://www.spinics.net/lists/linux-pci/msg40434.html [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359741.html Zhou Wang (4): PCI:

[PATCH v7 3/6] PCI: designware: Add ARM64 support

2015-08-17 Thread Zhou Wang
d board to do test. It will be appreciated if someone could help to test it. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann Tested-By: James Morse [1] http://www.spinics.net/lists/linux-pci/msg42194.html [2] http://www.spinics.net/lists/arm-kernel/msg4

[PATCH v7 5/6] Documentation: DT: Add HiSilicon PCIe host binding

2015-08-17 Thread Zhou Wang
This patch adds related DTS binding document for HiSilicon PCIe host driver. Signed-off-by: Zhou Wang --- .../devicetree/bindings/pci/hisilicon-pcie.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/hisilicon-pcie.txt

Re: [PATCH v6 3/6] PCI: designware: Add ARM64 support

2015-08-16 Thread Zhou Wang
On 2015/8/14 22:55, Gabriele Paoloni wrote: >> >> I've tested this whole series on an ARM32 PCIe board:'Freescale i.MX6 >> Quad >> SABRE Lite Board' with an Intel wireless card on v4.2-rc6. >> >> I can rescan the bus, load firmware, list nearby APs, and even get MSIs >> coming from the card. >> >>

Re: [PATCH v6 6/6] MAINTAINERS: Add pcie-hisi maintainer

2015-08-06 Thread Zhou Wang
[+cc jingooh...@gmail.com] On 2015/8/6 16:09, Zhou Wang wrote: > Signed-off-by: Zhou Wang > --- > MAINTAINERS | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 8133cef..7cd8e47 100644 > --- a/MAINTAINERS > +++ b/MAINTA

Re: [PATCH v6 5/6] Documentation: DT: Add HiSilicon PCIe host binding

2015-08-06 Thread Zhou Wang
[+cc jingooh...@gmail.com] On 2015/8/6 16:09, Zhou Wang wrote: > This patch adds related DTS binding document for HiSilicon PCIe host driver. > > Signed-off-by: Zhou Wang > --- > .../devicetree/bindings/pci/hisilicon-pcie.txt | 46 > ++ > 1 file c

Re: [PATCH v6 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-08-06 Thread Zhou Wang
[+cc jingooh...@gmail.com] On 2015/8/6 16:09, Zhou Wang wrote: > This patch adds PCIe host support for HiSilicon SoC Hip05. > > Signed-off-by: Zhou Wang > --- > drivers/pci/host/Kconfig | 8 ++ > drivers/pci/host/Makefile| 1 + > drivers/pci/h

Re: [PATCH v6 3/6] PCI: designware: Add ARM64 support

2015-08-06 Thread Zhou Wang
[+cc jingooh...@gmail.com] On 2015/8/6 16:09, Zhou Wang wrote: > This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete > function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct hw_pci, > move related operations to dw_pcie_host_init. > >

Re: [PATCH v6 2/6] ARM/PCI: remove align_resource in pci_sys_data

2015-08-06 Thread Zhou Wang
[+cc jingooh...@gmail.com] On 2015/8/6 16:09, Zhou Wang wrote: > From: gabriele paoloni > > This patch is needed in order to unify the PCIe designware framework for ARM > and > ARM64 architectures. In the PCIe designware unification process we are calling > pci_create_ro

Re: [PATCH v6 1/6] PCI: designware: move calculation of bus addresses to DRA7xx

2015-08-06 Thread Zhou Wang
[+cc jingooh...@gmail.com] On 2015/8/6 16:09, Zhou Wang wrote: > From: gabriele paoloni > > Commit f4c55c5a3f7f "PCI: designware: Program ATU with untranslated > address" added the calculation of PCI BUS addresses in designware, > storing them in new fields added in

Re: [PATCH v6 1/6] PCI: designware: move calculation of bus addresses to DRA7xx

2015-08-06 Thread Zhou Wang
[+cc jingooh...@gmail.com] On 2015/8/6 16:09, Zhou Wang wrote: > From: gabriele paoloni > > Commit f4c55c5a3f7f "PCI: designware: Program ATU with untranslated > address" added the calculation of PCI BUS addresses in designware, > storing them in new fields added in

Re: [PATCH v6 0/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-08-06 Thread Zhou Wang
[+cc jingooh...@gmail.com] On 2015/8/6 16:09, Zhou Wang wrote: > This patchset adds PCIe host support for HiSilicon SoC Hip05. The PCIe hosts > use PCIe IP core from Synopsys, So this driver is base on designware PCIe > driver. > > Hip05 is an ARMv8 architecture SoC. It should

Re: [PATCH v6 0/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-08-06 Thread Zhou Wang
[+cc jingooh...@gmail.com] On 2015/8/6 16:09, Zhou Wang wrote: > This patchset adds PCIe host support for HiSilicon SoC Hip05. The PCIe hosts > use PCIe IP core from Synopsys, So this driver is base on designware PCIe > driver. > > Hip05 is an ARMv8 architecture SoC. It should

Re: [PATCH v6] PCI: Store PCIe bus address in struct of_pci_range

2015-08-06 Thread Zhou Wang
On 2015/8/6 23:06, Jingoo Han wrote: > On Thursday, August 06, 2015 10:53 PM, Gabriele Paoloni wrote: >> >> Hi all >> >> This patch has now been moved in "[PATCH v6 1/6] PCI: designware: move >> calculation of bus addresses to >> DRA7xx" &g

[PATCH v6 5/6] Documentation: DT: Add HiSilicon PCIe host binding

2015-08-06 Thread Zhou Wang
This patch adds related DTS binding document for HiSilicon PCIe host driver. Signed-off-by: Zhou Wang --- .../devicetree/bindings/pci/hisilicon-pcie.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/hisilicon-pcie.txt

[PATCH v6 2/6] ARM/PCI: remove align_resource in pci_sys_data

2015-08-06 Thread Zhou Wang
From: gabriele paoloni This patch is needed in order to unify the PCIe designware framework for ARM and ARM64 architectures. In the PCIe designware unification process we are calling pci_create_root_bus() passing a "sysdata" parameter that is the same for both ARM and ARM64 and is of type "struct

[PATCH v6 3/6] PCI: designware: Add ARM64 support

2015-08-06 Thread Zhou Wang
d board to do test. It will be appreciated if someone could help to test it. Signed-off-by: Zhou Wang Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann [1] http://www.spinics.net/lists/linux-pci/msg42194.html [2] http://www.spinics.net/lists/arm-kernel/msg436779.html --- dr

[PATCH v6 0/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-08-06 Thread Zhou Wang
s/linux-pci/msg40434.html [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359741.html Zhou Wang (4): PCI: designware: Add ARM64 support PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05 Documentation: DT: Add HiSilicon PCIe host binding MAINTAINERS: Add pcie-hisi

[PATCH v6 6/6] MAINTAINERS: Add pcie-hisi maintainer

2015-08-06 Thread Zhou Wang
Signed-off-by: Zhou Wang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8133cef..7cd8e47 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7854,6 +7854,13 @@ S: Maintained F: Documentation/devicetree/bindings/pci/xgene-pci

[PATCH v6 4/6] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-08-06 Thread Zhou Wang
This patch adds PCIe host support for HiSilicon SoC Hip05. Signed-off-by: Zhou Wang --- drivers/pci/host/Kconfig | 8 ++ drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-hisi.c | 254 +++ 3 files changed, 263 insertions(+) create mode

[PATCH v6 1/6] PCI: designware: move calculation of bus addresses to DRA7xx

2015-08-06 Thread Zhou Wang
s only applicable to DRA7xx. This patch moves the calculation of the bus addresses to the DRA7xx driver and is needed to allow the rework of designware to use the new DT parsing API. Signed-off-by: Gabriele Paoloni Signed-off-by: Zhou Wang --- drivers/pci/host/pci-dra7xx.c | 13 +++

Re: [PATCH v5 2/5] PCI: designware: Add ARM64 support

2015-08-04 Thread Zhou Wang
On 2015/8/4 18:40, James Morse wrote: > On 04/08/15 11:23, Gabriele Paoloni wrote: >> Hi James >> >> Please see "[PATCH v6] PCI: Store PCIe bus address in struct of_pci_range" >> >> I think if you apply this patch your problem should be solved... >> >> If you follow the discussion you see that this

Re: [PATCH v6] PCI: Store PCIe bus address in struct of_pci_range

2015-07-30 Thread Zhou Wang
e >>> for drivers to parse values directly from the DT. >>> >>> In http://www.spinics.net/lists/linux-pci/msg42540.html we >> already tried >>> to use the new DT parsing API but there is a bug (obviously) in >> setting >>> the &

Re: [PATCH v5 2/5] PCI: designware: Add ARM64 support

2015-07-29 Thread Zhou Wang
On 2015/7/30 1:24, Lorenzo Pieralisi wrote: > On Sat, Jul 25, 2015 at 04:21:23AM +0100, Zhou Wang wrote: >> This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete >> function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct hw_pci, >> move

Re: [PATCH v5 4/5] Documentation: DT: Add HiSilicon PCIe host binding

2015-07-28 Thread Zhou Wang
On 2015/7/25 11:21, Zhou Wang wrote: > This patch adds related DTS binding document for HiSilicon PCIe host driver. > > Signed-off-by: Zhou Wang Hi Arnd and Rob, As Bjorn mentioned in v4 series, this patch need your ack. Could you help to review this patch? Tha

Re: [PATCH v5 1/5] ARM/PCI: remove align_resource in pci_sys_data

2015-07-28 Thread Zhou Wang
On 2015/7/25 11:21, Zhou Wang wrote: > From: Gabriele Paoloni > > This patch is needed in order to unify the PCIe designware framework for ARM > and > ARM64 architectures. In the PCIe designware unification process we are calling > pci_create_root_bus() passing a "sysdata

Re: [PATCH v5 2/5] PCI: designware: Add ARM64 support

2015-07-27 Thread Zhou Wang
On 2015/7/25 11:21, Zhou Wang wrote: > This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete > function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct hw_pci, > move related operations to dw_pcie_host_init. Also set pp->root_bus_nr = 0 in > each P

[PATCH v5 5/5] MAINTAINERS: Add pcie-hisi maintainer

2015-07-24 Thread Zhou Wang
Signed-off-by: Zhou Wang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8133cef..7cd8e47 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7854,6 +7854,13 @@ S: Maintained F: Documentation/devicetree/bindings/pci/xgene-pci

[PATCH v5 1/5] ARM/PCI: remove align_resource in pci_sys_data

2015-07-24 Thread Zhou Wang
From: Gabriele Paoloni This patch is needed in order to unify the PCIe designware framework for ARM and ARM64 architectures. In the PCIe designware unification process we are calling pci_create_root_bus() passing a "sysdata" parameter that is the same for both ARM and ARM64 and is of type "struct

[PATCH v5 0/5] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-07-24 Thread Zhou Wang
ARM/PCI: remove align_resource in pci_sys_data Zhou Wang (4): PCI: designware: Add ARM64 support PCI: hisi: Add PCIe host support for Hisilicon Soc Hip05 Documentation: DT: Add Hisilicon PCIe host binding MAINTAINERS: Add pcie-hisi maintainer .../devicetree/bindings/pci/hisilicon-pc

[PATCH v5 2/5] PCI: designware: Add ARM64 support

2015-07-24 Thread Zhou Wang
test. It will be appreciated if someone could help to test it. Signed-off-by: Zhou Wang Signed-off-by: Arnd Bergmann Signed-off-by: Gabriele Paoloni [1] http://www.spinics.net/lists/linux-pci/msg42194.html [2] https://patchwork.ozlabs.org/patch/495018/ --- drivers/pci/host/pci-dra7xx

[PATCH v5 4/5] Documentation: DT: Add HiSilicon PCIe host binding

2015-07-24 Thread Zhou Wang
This patch adds related DTS binding document for HiSilicon PCIe host driver. Signed-off-by: Zhou Wang --- .../devicetree/bindings/pci/hisilicon-pcie.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/hisilicon-pcie.txt

[PATCH v5 3/5] PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05

2015-07-24 Thread Zhou Wang
This patch adds PCIe host support for HiSilicon SoC Hip05. Signed-off-by: Zhou Wang --- drivers/pci/host/Kconfig | 8 ++ drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-hisi.c | 254 +++ 3 files changed, 263 insertions(+) create mode

Re: [PATCH v4 4/5] Documentation: DT: Add Hisilicon PCIe host binding

2015-07-21 Thread Zhou Wang
On 2015/7/22 7:02, Bjorn Helgaas wrote: > [+cc Rob] > > On Tue, Jul 21, 2015 at 02:48:42PM +0800, Zhou Wang wrote: >> This patch adds related DTS binding document for Hisilicon PCIe host driver. >> >> Signed-off-by: Zhou Wang > > If I merge this via my tree, I&#

Re: [PATCH v4 3/5] PCI: hisi: Add PCIe host support for Hisilicon Soc Hip05

2015-07-21 Thread Zhou Wang
On 2015/7/22 6:37, Bjorn Helgaas wrote: > Hi Zhou, > > On Tue, Jul 21, 2015 at 02:48:41PM +0800, Zhou Wang wrote: >> This patch adds PCIe host support for Hisilicon Soc Hip05. >> >> Signed-off-by: Zhou Wang >> --- >> drivers/pci/host/Kconfig | 5 +

  1   2   3   >