Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305002 > unrolled thread

Re: [PATCH v3 0/2] adding PCI support to AXS10x

Started byBjorn Helgaas <helgaas@kernel.org>
First post2016-01-08 21:40 +0100
Last post2016-01-11 16:10 +0100
Articles 5 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3 0/2] adding PCI support to AXS10x Bjorn Helgaas <helgaas@kernel.org> - 2016-01-08 21:40 +0100
    Re: [PATCH v3 0/2] adding PCI support to AXS10x Joao Pinto <Joao.Pinto@synopsys.com> - 2016-01-11 11:40 +0100
    Re: [PATCH v3 0/2] adding PCI support to AXS10x Joao Pinto <Joao.Pinto@synopsys.com> - 2016-01-11 15:40 +0100
      Re: [PATCH v3 0/2] adding PCI support to AXS10x Bjorn Helgaas <helgaas@kernel.org> - 2016-01-11 16:00 +0100
        Re: [PATCH v3 0/2] adding PCI support to AXS10x Joao Pinto <Joao.Pinto@synopsys.com> - 2016-01-11 16:10 +0100

#1305002 — Re: [PATCH v3 0/2] adding PCI support to AXS10x

FromBjorn Helgaas <helgaas@kernel.org>
Date2016-01-08 21:40 +0100
SubjectRe: [PATCH v3 0/2] adding PCI support to AXS10x
Message-ID<qOLZg-3xd-21@gated-at.bofh.it>
Hi Joao,

On Mon, Dec 21, 2015 at 03:44:14PM +0000, Joao Pinto wrote:
> This patch set has the goal to add suppport for DesignWare PCIe RC in ARC
> AXS10x. It includes the necessary tweaks to the ARC architecture, necessary
> tweaks to the PCI subsystem and a new driver (pcie-snpsdev).
> This new driver will be used extensively in the PCIe RC Prototyping Kit.
> 
> The patches were produced against Bjorn Helgaas' repository. It was properly
> tested in an IP Prototyping Kit.
> 
> Joao Pinto (2):
>   PCI support added to ARC
>   add new platform driver for PCI RC
> 
>  .../devicetree/bindings/pci/pcie-snpsdev.txt       |  33 +++
>  MAINTAINERS                                        |   7 +
>  arch/arc/Kconfig                                   |  23 ++
>  arch/arc/include/asm/dma.h                         |   5 +
>  arch/arc/include/asm/io.h                          |  10 +
>  arch/arc/include/asm/pci.h                         |  43 ++++
>  arch/arc/kernel/Makefile                           |   1 +
>  arch/arc/kernel/pcibios.c                          |  55 ++++
>  arch/arc/mm/ioremap.c                              |  10 +-
>  arch/arc/plat-axs10x/Kconfig                       |   1 +
>  drivers/pci/Makefile                               |   1 +
>  drivers/pci/host/Kconfig                           |   5 +
>  drivers/pci/host/Makefile                          |   1 +
>  drivers/pci/host/pcie-designware.c                 |  11 +
>  drivers/pci/host/pcie-designware.h                 |   1 +
>  drivers/pci/host/pcie-snpsdev.c                    | 286 +++++++++++++++++++++
>  16 files changed, 492 insertions(+), 1 deletion(-)
>  create mode 100644 Documentation/devicetree/bindings/pci/pcie-snpsdev.txt
>  create mode 100644 arch/arc/include/asm/pci.h
>  create mode 100644 arch/arc/kernel/pcibios.c
>  create mode 100644 drivers/pci/host/pcie-snpsdev.c

This failed the kbuild test, so I'm waiting for a refresh to fix that.

Bjorn

[toc] | [next] | [standalone]


#1306042

FromJoao Pinto <Joao.Pinto@synopsys.com>
Date2016-01-11 11:40 +0100
Message-ID<qPI3i-13k-79@gated-at.bofh.it>
In reply to#1305002
Hi Bjorn,

On 1/8/2016 8:33 PM, Bjorn Helgaas wrote:
> Hi Joao,
> 
> On Mon, Dec 21, 2015 at 03:44:14PM +0000, Joao Pinto wrote:
>> This patch set has the goal to add suppport for DesignWare PCIe RC in ARC
>> AXS10x. It includes the necessary tweaks to the ARC architecture, necessary
>> tweaks to the PCI subsystem and a new driver (pcie-snpsdev).
>> This new driver will be used extensively in the PCIe RC Prototyping Kit.
>>
>> The patches were produced against Bjorn Helgaas' repository. It was properly
>> tested in an IP Prototyping Kit.
>>
>> Joao Pinto (2):
>>   PCI support added to ARC
>>   add new platform driver for PCI RC
>>
>>  .../devicetree/bindings/pci/pcie-snpsdev.txt       |  33 +++
>>  MAINTAINERS                                        |   7 +
>>  arch/arc/Kconfig                                   |  23 ++
>>  arch/arc/include/asm/dma.h                         |   5 +
>>  arch/arc/include/asm/io.h                          |  10 +
>>  arch/arc/include/asm/pci.h                         |  43 ++++
>>  arch/arc/kernel/Makefile                           |   1 +
>>  arch/arc/kernel/pcibios.c                          |  55 ++++
>>  arch/arc/mm/ioremap.c                              |  10 +-
>>  arch/arc/plat-axs10x/Kconfig                       |   1 +
>>  drivers/pci/Makefile                               |   1 +
>>  drivers/pci/host/Kconfig                           |   5 +
>>  drivers/pci/host/Makefile                          |   1 +
>>  drivers/pci/host/pcie-designware.c                 |  11 +
>>  drivers/pci/host/pcie-designware.h                 |   1 +
>>  drivers/pci/host/pcie-snpsdev.c                    | 286 +++++++++++++++++++++
>>  16 files changed, 492 insertions(+), 1 deletion(-)
>>  create mode 100644 Documentation/devicetree/bindings/pci/pcie-snpsdev.txt
>>  create mode 100644 arch/arc/include/asm/pci.h
>>  create mode 100644 arch/arc/kernel/pcibios.c
>>  create mode 100644 drivers/pci/host/pcie-snpsdev.c
> 
> This failed the kbuild test, so I'm waiting for a refresh to fix that.
> 
> Bjorn
> 

I am going to check what happened and send you an update ASAP.

Joao

[toc] | [prev] | [next] | [standalone]


#1306327

FromJoao Pinto <Joao.Pinto@synopsys.com>
Date2016-01-11 15:40 +0100
Message-ID<qPLNx-3Dk-37@gated-at.bofh.it>
In reply to#1305002
Hi Bjorn,

On 1/8/2016 8:33 PM, Bjorn Helgaas wrote:
> Hi Joao,
> 
> On Mon, Dec 21, 2015 at 03:44:14PM +0000, Joao Pinto wrote:
>> This patch set has the goal to add suppport for DesignWare PCIe RC in ARC
>> AXS10x. It includes the necessary tweaks to the ARC architecture, necessary
>> tweaks to the PCI subsystem and a new driver (pcie-snpsdev).
>> This new driver will be used extensively in the PCIe RC Prototyping Kit.
>>
>> The patches were produced against Bjorn Helgaas' repository. It was properly
>> tested in an IP Prototyping Kit.
>>
>> Joao Pinto (2):
>>   PCI support added to ARC
>>   add new platform driver for PCI RC
>>
>>  .../devicetree/bindings/pci/pcie-snpsdev.txt       |  33 +++
>>  MAINTAINERS                                        |   7 +
>>  arch/arc/Kconfig                                   |  23 ++
>>  arch/arc/include/asm/dma.h                         |   5 +
>>  arch/arc/include/asm/io.h                          |  10 +
>>  arch/arc/include/asm/pci.h                         |  43 ++++
>>  arch/arc/kernel/Makefile                           |   1 +
>>  arch/arc/kernel/pcibios.c                          |  55 ++++
>>  arch/arc/mm/ioremap.c                              |  10 +-
>>  arch/arc/plat-axs10x/Kconfig                       |   1 +
>>  drivers/pci/Makefile                               |   1 +
>>  drivers/pci/host/Kconfig                           |   5 +
>>  drivers/pci/host/Makefile                          |   1 +
>>  drivers/pci/host/pcie-designware.c                 |  11 +
>>  drivers/pci/host/pcie-designware.h                 |   1 +
>>  drivers/pci/host/pcie-snpsdev.c                    | 286 +++++++++++++++++++++
>>  16 files changed, 492 insertions(+), 1 deletion(-)
>>  create mode 100644 Documentation/devicetree/bindings/pci/pcie-snpsdev.txt
>>  create mode 100644 arch/arc/include/asm/pci.h
>>  create mode 100644 arch/arc/kernel/pcibios.c
>>  create mode 100644 drivers/pci/host/pcie-snpsdev.c
> 
> This failed the kbuild test, so I'm waiting for a refresh to fix that.

Just checked the kbuild robot error and it is happening in ARC git tree when
built for i386 arch and the problem is independent from my patches. The build
error is the following:

   drivers/pci/host/pcie-designware.c: In function 'dw_pcie_host_init':
>> drivers/pci/host/pcie-designware.c:556:7: error: implicit declaration of function
'pci_has_flag' [-Werror=implicit-function-declaration]
     if (!pci_has_flag(PCI_PROBE_ONLY)) {
          ^
>> drivers/pci/host/pcie-designware.c:556:20: error: 'PCI_PROBE_ONLY' undeclared
(first use in
this function)
     if (!pci_has_flag(PCI_PROBE_ONLY)) {
                       ^
This problem has been already identified by Stephen Rothwell as you can see in
the following mailing list thread:

http://www.gossamer-threads.com/lists/linux/kernel/2341200

If there's something for me to do please let me know.

> 
> Bjorn
> 

Thanks,
Joao

[toc] | [prev] | [next] | [standalone]


#1306364

FromBjorn Helgaas <helgaas@kernel.org>
Date2016-01-11 16:00 +0100
Message-ID<qPM6S-3KB-19@gated-at.bofh.it>
In reply to#1306327
On Mon, Jan 11, 2016 at 02:31:51PM +0000, Joao Pinto wrote:
> Hi Bjorn,
> 
> On 1/8/2016 8:33 PM, Bjorn Helgaas wrote:
> > Hi Joao,
> > 
> > On Mon, Dec 21, 2015 at 03:44:14PM +0000, Joao Pinto wrote:
> >> This patch set has the goal to add suppport for DesignWare PCIe RC in ARC
> >> AXS10x. It includes the necessary tweaks to the ARC architecture, necessary
> >> tweaks to the PCI subsystem and a new driver (pcie-snpsdev).
> >> This new driver will be used extensively in the PCIe RC Prototyping Kit.
> >>
> >> The patches were produced against Bjorn Helgaas' repository. It was properly
> >> tested in an IP Prototyping Kit.
> >>
> >> Joao Pinto (2):
> >>   PCI support added to ARC
> >>   add new platform driver for PCI RC
> >>
> >>  .../devicetree/bindings/pci/pcie-snpsdev.txt       |  33 +++
> >>  MAINTAINERS                                        |   7 +
> >>  arch/arc/Kconfig                                   |  23 ++
> >>  arch/arc/include/asm/dma.h                         |   5 +
> >>  arch/arc/include/asm/io.h                          |  10 +
> >>  arch/arc/include/asm/pci.h                         |  43 ++++
> >>  arch/arc/kernel/Makefile                           |   1 +
> >>  arch/arc/kernel/pcibios.c                          |  55 ++++
> >>  arch/arc/mm/ioremap.c                              |  10 +-
> >>  arch/arc/plat-axs10x/Kconfig                       |   1 +
> >>  drivers/pci/Makefile                               |   1 +
> >>  drivers/pci/host/Kconfig                           |   5 +
> >>  drivers/pci/host/Makefile                          |   1 +
> >>  drivers/pci/host/pcie-designware.c                 |  11 +
> >>  drivers/pci/host/pcie-designware.h                 |   1 +
> >>  drivers/pci/host/pcie-snpsdev.c                    | 286 +++++++++++++++++++++
> >>  16 files changed, 492 insertions(+), 1 deletion(-)
> >>  create mode 100644 Documentation/devicetree/bindings/pci/pcie-snpsdev.txt
> >>  create mode 100644 arch/arc/include/asm/pci.h
> >>  create mode 100644 arch/arc/kernel/pcibios.c
> >>  create mode 100644 drivers/pci/host/pcie-snpsdev.c
> > 
> > This failed the kbuild test, so I'm waiting for a refresh to fix that.
> 
> Just checked the kbuild robot error and it is happening in ARC git tree when
> built for i386 arch and the problem is independent from my patches. The build
> error is the following:
> 
>    drivers/pci/host/pcie-designware.c: In function 'dw_pcie_host_init':
> >> drivers/pci/host/pcie-designware.c:556:7: error: implicit declaration of function
> 'pci_has_flag' [-Werror=implicit-function-declaration]
>      if (!pci_has_flag(PCI_PROBE_ONLY)) {
>           ^
> >> drivers/pci/host/pcie-designware.c:556:20: error: 'PCI_PROBE_ONLY' undeclared
> (first use in
> this function)
>      if (!pci_has_flag(PCI_PROBE_ONLY)) {
>                        ^
> This problem has been already identified by Stephen Rothwell as you can see in
> the following mailing list thread:
> 
> http://www.gossamer-threads.com/lists/linux/kernel/2341200

Stephen saw that problem while building the Qualcomm driver
(CONFIG_PCIE_QCOM), and we fixed it by changing Kconfig so we won't build
that driver on x86.

That fix only affects CONFIG_PCIE_QCOM, so it won't help your driver.

You need some improvements to your drivers/pci/host/Kconfig patch -- some
help text and probably some dependencies.

Bjorn

[toc] | [prev] | [next] | [standalone]


#1306378

FromJoao Pinto <Joao.Pinto@synopsys.com>
Date2016-01-11 16:10 +0100
Message-ID<qPMgy-434-31@gated-at.bofh.it>
In reply to#1306364
Hi,
I am going to add dependencies to the driver' kconfig to avoid this problem. I
will send you a new patch version today.

Thanks.

On 1/11/2016 2:53 PM, Bjorn Helgaas wrote:
> On Mon, Jan 11, 2016 at 02:31:51PM +0000, Joao Pinto wrote:
>> Hi Bjorn,
>>
>> On 1/8/2016 8:33 PM, Bjorn Helgaas wrote:
>>> Hi Joao,
>>>
>>> On Mon, Dec 21, 2015 at 03:44:14PM +0000, Joao Pinto wrote:
>>>> This patch set has the goal to add suppport for DesignWare PCIe RC in ARC
>>>> AXS10x. It includes the necessary tweaks to the ARC architecture, necessary
>>>> tweaks to the PCI subsystem and a new driver (pcie-snpsdev).
>>>> This new driver will be used extensively in the PCIe RC Prototyping Kit.
>>>>
>>>> The patches were produced against Bjorn Helgaas' repository. It was properly
>>>> tested in an IP Prototyping Kit.
>>>>
>>>> Joao Pinto (2):
>>>>   PCI support added to ARC
>>>>   add new platform driver for PCI RC
>>>>
>>>>  .../devicetree/bindings/pci/pcie-snpsdev.txt       |  33 +++
>>>>  MAINTAINERS                                        |   7 +
>>>>  arch/arc/Kconfig                                   |  23 ++
>>>>  arch/arc/include/asm/dma.h                         |   5 +
>>>>  arch/arc/include/asm/io.h                          |  10 +
>>>>  arch/arc/include/asm/pci.h                         |  43 ++++
>>>>  arch/arc/kernel/Makefile                           |   1 +
>>>>  arch/arc/kernel/pcibios.c                          |  55 ++++
>>>>  arch/arc/mm/ioremap.c                              |  10 +-
>>>>  arch/arc/plat-axs10x/Kconfig                       |   1 +
>>>>  drivers/pci/Makefile                               |   1 +
>>>>  drivers/pci/host/Kconfig                           |   5 +
>>>>  drivers/pci/host/Makefile                          |   1 +
>>>>  drivers/pci/host/pcie-designware.c                 |  11 +
>>>>  drivers/pci/host/pcie-designware.h                 |   1 +
>>>>  drivers/pci/host/pcie-snpsdev.c                    | 286 +++++++++++++++++++++
>>>>  16 files changed, 492 insertions(+), 1 deletion(-)
>>>>  create mode 100644 Documentation/devicetree/bindings/pci/pcie-snpsdev.txt
>>>>  create mode 100644 arch/arc/include/asm/pci.h
>>>>  create mode 100644 arch/arc/kernel/pcibios.c
>>>>  create mode 100644 drivers/pci/host/pcie-snpsdev.c
>>>
>>> This failed the kbuild test, so I'm waiting for a refresh to fix that.
>>
>> Just checked the kbuild robot error and it is happening in ARC git tree when
>> built for i386 arch and the problem is independent from my patches. The build
>> error is the following:
>>
>>    drivers/pci/host/pcie-designware.c: In function 'dw_pcie_host_init':
>>>> drivers/pci/host/pcie-designware.c:556:7: error: implicit declaration of function
>> 'pci_has_flag' [-Werror=implicit-function-declaration]
>>      if (!pci_has_flag(PCI_PROBE_ONLY)) {
>>           ^
>>>> drivers/pci/host/pcie-designware.c:556:20: error: 'PCI_PROBE_ONLY' undeclared
>> (first use in
>> this function)
>>      if (!pci_has_flag(PCI_PROBE_ONLY)) {
>>                        ^
>> This problem has been already identified by Stephen Rothwell as you can see in
>> the following mailing list thread:
>>
>> http://www.gossamer-threads.com/lists/linux/kernel/2341200
> 
> Stephen saw that problem while building the Qualcomm driver
> (CONFIG_PCIE_QCOM), and we fixed it by changing Kconfig so we won't build
> that driver on x86.
> 
> That fix only affects CONFIG_PCIE_QCOM, so it won't help your driver.
> 
> You need some improvements to your drivers/pci/host/Kconfig patch -- some
> help text and probably some dependencies.
> 
> Bjorn
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web