03-20-2018 08:39 AM
All our pcie drivers are in https://github.com/Xilinx/linux-xlnx/blob/master/drivers/pci/host/pcie-xilinx.c
Refer our wiki page and see which driver are in mainline upstream or not http://www.wiki.xilinx.com/Linux+Drivers
If you are using Yocto I would suggest to use meta-xilinx and meta-xilinx-tools layer.
03-26-2018 03:19 AM - edited 03-26-2018 03:20 AM
I have the driver now.
As mentioned above I have connected PCIE interface of IMX7(ARM A7- Yocto-Linux) and KC705 FPGA EVAL board and both are set to Gen2, 1 Lane. https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applications-processors/i.mx-7-processors/i.mx-7dual-processors-heterogeneous-processing-with-dual-arm-cortex-a7-cores-and-cortex-m4-core:i.MX7D
When BARs size is set to 64 Megabytes(our requirement) in FPGA, IMX7 doesn’t support with standard Xilinx pcie driver and end up with following error:
root@imx7d-phyboard-zeta-001:/lib/modules# insmod /lib/modules/xpcie.ko
Base hw val 0
Base hw len 0
BAR0 of 0K
BAR0 of 0M
xpcie: Init: Could not remap memory.
insmod: ERROR: could not insert module /lib/modules/xpcie.ko: Operation not
but when BARs size is set to 4 Megabytes in FPGA, then IMX7 works. Is it due to limitation of IMX7 kernel memory size? I think default IMX7 kernel memory has to be increased by some means.
but I don't know how to increase default kernel memory size in Yocto. Is there any way for this? or there is another issue?
Relevant files are in attachment.
P.S. same Xilinx pcie driver in PC(Centos/Ubuntu) works for any setting.
03-28-2018 08:42 AM