Skip to contentSkip to conversation

Request for Info: Designware PCIe Root Complex support in ARM64

DISCUSSION Joao Pinto 4 participants 5 messages Mar 11, 2016 – Mar 15, 2016 PCI

lore
Share & tools
lore

Joao Pinto

author
#0 lore raw

Hi Liviu, Catalin and Bjorn,

I am currently working on the PCIe Root Complex based on the Designware Core (/pci/host/pcie-desigware.c). I have noticed that currently building a solution based on the previous for an ARM64 CPU is problematic and demands some tweaking in the ARM64 arch (like adding some functions in the pcibios, etc.).

I would like to know if any specific work is being planned for this matter and in what I could contribute to make it happen.

Thanks,
Joao Pinto

#1 lore raw
Quoted 1 line · Joao Pinto

Hi Liviu, Catalin and Bjorn,

Adding Lorenzo as he has been taking over the PCIe side from me for a while now.

Best regards,
Liviu

Quoted 12 lines

I am currently working on the PCIe Root Complex based on the Designware Core (/pci/host/pcie-desigware.c). I have noticed that currently building a solution based on the previous for an ARM64 CPU is problematic and demands some tweaking in the ARM64 arch (like adding some functions in the pcibios, etc.).

I would like to know if any specific work is being planned for this matter and in what I could contribute to make it happen.

Thanks,
Joao Pinto

Signature · 8 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
#2 lore raw
In reply to Joao Pinto

[+cc Lorenzo]

Quoted 6 lines · Joao Pinto

Hi Liviu, Catalin and Bjorn,

I am currently working on the PCIe Root Complex based on the Designware Core (/pci/host/pcie-desigware.c). I have noticed that currently building a solution based on the previous for an ARM64 CPU is problematic and demands some tweaking in the ARM64 arch (like adding some functions in the pcibios, etc.).

If I understand you correctly, you're saying that pcie-designware.c doesn't build on arm64. It would be helpful to know exactly what problem you're seeing (what kernel version, what config, what the error are, etc.)

PCI_LAYERSCAPE, PCI_HISI, and PCIE_QCOM can all be enabled on arm64, and it looks like they all depend on pcie-designware.c. I can't build those drivers personally, but I assume they work.

Bjorn

#3 lore raw
Quoted 10 lines · Bjorn Helgaas

[+cc Lorenzo]

Quoted 6 lines · Joao Pinto

Hi Liviu, Catalin and Bjorn,

I am currently working on the PCIe Root Complex based on the Designware Core (/pci/host/pcie-desigware.c). I have noticed that currently building a solution based on the previous for an ARM64 CPU is problematic and demands some tweaking in the ARM64 arch (like adding some functions in the pcibios, etc.).

Quoted 4 lines

If I understand you correctly, you're saying that pcie-designware.c doesn't build on arm64. It would be helpful to know exactly what problem you're seeing (what kernel version, what config, what the error are, etc.)

Yes, I am not sure I understand what Joao is referring to so I would be grateful if he can provide us with additional details.

Thanks,
Lorenzo

author
#4 lore raw

Hi!
Just built the linux-next for ARM64 and built beautifully so there is no issue. I was having an issue using 3.18, but with this new kernel no issues were found. Thanks for all your inputs!

Joao

Quoted 22 lines · Lorenzo Pieralisi
Quoted 10 lines · Bjorn Helgaas

[+cc Lorenzo]

Quoted 6 lines · Joao Pinto

Hi Liviu, Catalin and Bjorn,

I am currently working on the PCIe Root Complex based on the Designware Core (/pci/host/pcie-desigware.c). I have noticed that currently building a solution based on the previous for an ARM64 CPU is problematic and demands some tweaking in the ARM64 arch (like adding some functions in the pcibios, etc.).

Quoted 4 lines

If I understand you correctly, you're saying that pcie-designware.c doesn't build on arm64. It would be helpful to know exactly what problem you're seeing (what kernel version, what config, what the error are, etc.)

Yes, I am not sure I understand what Joao is referring to so I would be grateful if he can provide us with additional details.

Thanks,
Lorenzo