Re: Designware about Arm64 supported

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dacai,

Sorry for delayed response. I do not work directly with PCIe these
days. Please always keep PCI mailing list in CC.

On Sat, Aug 30, 2014 at 03:19:44PM +0800, Zhudacai wrote:
> Hi all,
> I just use the designware patch for my arm64 board' PCIe .
> 
> And here is some conflict while I patched it with the Liviu's PCI patch of ARM64.

I just had a quick look on current state of designware driver and
Liviu's V10 patchset.

As a first step,
There would be couple of things which we need to get rid of DW
driver, before it is usable with generic pci support. 

-- Replace pci_common_init_dev with following:

        dw_pcie_setup
        pci_scan_root_bus (should help in getting rid of  dw_pcie_scan_bus)

-- Get rid of 'struct hw_pci dw_pci' and 'sys_to_pcie(struct
pci_sys_data *sys)'

-- in order to get rid of dw_pci, you might need
        to add following for arch/arm, so that existing platform works:
                pcibios_add_device : (should help in getting rid of  dw_pcie_map_irq)

-- of_pci_get_host_bridge_resources can be used (may be with some
modification) to cleanup most of the code of dw_pcie_host_init.

-- Above should help in working with intx. To use msi, I think you might
need to work on core layer a bit. One easiest way, could be to modify
pci_scan_root_bus to accept struct msi_chip as additional argument and
assign msi_chip to bus->msi in this function. 


> 
> however, it's will be accepted at kernel version 3.18 about Liviu's PCI patch of ARM64
> (http://patchwork.ozlabs.org/patch/379423/).
> 
> so ,I wondered if you have some follow-up plan with the designware patch on arm64.

I think Mohit/Jingoo can comment here. What I know, they do not have
ARM64 bit platform, so they might not be able to work for designware
patch on arm64. But yes, I agree that designware can be modified on
top of Liviu's patch to work with ARM 32 bit, while independent of
arch/arm/kernel/bios32.c code.

~Pratyush
> 
> Best regards
> 
> Dacai
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux