Hi ,
In our IMX6 platform We are using the attached PCIe.c file. this file supports PCIe switch. our PCI configuration is
When we boot linux all peripheral devices are detected. the intel ethernet device I210 uses a SPI flash memory for configuration loading. but the SPI flash memory is mapped to the expansion rom base of I210. so we couldnot load the configuration settings to the flash memory.
In our code base (attahced PCIe.c) we doubt that memory allocation for expansion rom base is missing.
We need the PCIe expansion rom to be memory mapped to access the flash memory. Please help us to fix the issue
Please find the boot log, lspci-v log, PCIe.c
Original Attachment has been moved to: pcie.c.zip
Original Attachment has been moved to: IMX6_linux_log.txt.zip
Original Attachment has been moved to: IMX6-lspci-v.txt.zip
Hi Zhu,
Hope doing well, We are working on the project with imx6 qseven module in the below model. We can access the device. But there are some problems with each end device.
kernel version : 3.0.35
Can you pls assist us to fix this issue. Thanks in advance.
Regards,
Arulpandiyan Vadivel
Hi Zhu,
WE are not connected the Wifi card in Mini PCIe slot while taken that log, I will send you the Log with Wifi device, can you please help me in enabling the MSI interrept we are struck with that do you have any documents.
please go through the PCIe.c file we need any changes on that.
As I know that the original iMX6 PCIe driver contained in FSL imx_3.0.35 GA release had been support the MSI and PCIe switch already.
The <kernel_dir>/arch/arm/mach-mx6/msi.c file is mandatory required when the MSI feature support is required.
Best Regards
Richard
FSL Linux BSP Team.
Just FYI.
Please make sure that the following commit had been contained in the <kernel_dir>/arch/arm/mach-mx6/pcie.c driver.
when you trying to enable MSI support on imx_3.0.35 kernel at your side.
commit c1e3dbbcf7a886d2c5c6f1ccb184659a9fa6c832
Author: Richard Zhu <r65037@freescale.com>
Date: Fri Feb 1 12:31:21 2013 +0800
ENGR00243106 imx: pcie: enable pcie msi on imx6 platforms
deprieved from boundary msi support patch
add the following modifications
* use the RC's line address 0x01FF8000 instead of one
actual physical memory as the msi start address.
The physical memory address is not mandatory required by the
msi start address.
* set PCI_MSI_FLAGS_ENABLE in RC's msi capability
structure when the msi int is enabled.
* the data of msg is only 16bit, set the upper 8bit
cputype, and the msi int num to the lower 8bit.
Signed-off-by: Richard Zhu <r65037@freescale.com>
arch/arm/mach-mx6/pcie.c | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 98 insertions(+), 5 deletions(-)
Regarding to the attached logs, there are only the pcie2usb device are probed successfully.
The WIFI and the Ethernet devices are not probed at all.
Can you enable MSI feature to replace the Legacy INTx mode, and make a test?
Richard
Linux BSP team
Best Regards