Q7 I.MX6 PCIe to Ethernet I210 not configured

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Q7 I.MX6 PCIe to Ethernet I210 not configured

2,630 Views
balashanmugam
Contributor III

Hi ,

In our IMX6 platform We are using the attached PCIe.c file. this file supports PCIe switch. our PCI configuration is

 

 

17406_17406.pngpci_connections.png

 

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

Labels (1)
5 Replies

1,286 Views
balashanmugam
Contributor III

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

pci.png

  1. PCI to usb device:
    1. Sometimes it is getting hung during the booting
    2. Data transfer rate is too slow, when we configure it as high speed modem (CDC NCM device) for mirror link connection.
  2. Intel i210 Ethernet controller:
    1. The SPI flash associated with this i210 module is not detecting which is used for mac configuration.
    2. Should we need to to configure anything for this spi nor flash detection.
  3. Intel 6235 wifi/ Bluetooth module:
    1. Wifi direct       - not creating interface p2p0-wlan0-0
    2. Bluetooth is connected via USB interface, and it is working sometimes and sometimes rebooting the module and all the modules related to pcie is not detecting.

Can you pls assist us to fix this issue. Thanks in advance.

Regards,

Arulpandiyan Vadivel

0 Kudos
Reply

1,286 Views
balashanmugam
Contributor III

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.


0 Kudos
Reply

1,286 Views
richard_zhu
NXP Employee
NXP Employee

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.

1,286 Views
richard_zhu
NXP Employee
NXP Employee

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(-)

1,286 Views
richard_zhu
NXP Employee
NXP Employee

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