AnsweredAssumed Answered

iMX8QM PCIe Driver Issue

Question asked by prashanth kumar on Feb 21, 2019
Latest reply on Feb 22, 2019 by igorpadykov

Hi,


In iMX8QM custom board with L4.14.78 Kernel BSP release, PCIe device is not mounting properly.

Its getting below error prints, after hard resetting only its able to mount PCIe SATA module.


Note : We are using same iMX8QM board for both BSP releases. So, no Hardware changes.

 

   ata1.00: exception Emask 0x0 SAct 0x40000 SErr 0x0 action 0x6 frozen
    ata1.00: failed command: READ FPDMA QUEUED
    ata1.00: cmd 60/08:90:f8:6d:bf/00:00:01:00:00/40 tag 18 ncq dma 4096 in
             res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    ata1.00: status: { DRDY }
    ata1: hard resetting link
    ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    ata1.00: configured for UDMA/100
    ata1.00: device reported invalid CHS sector 0
    ata1: EH complete
    EXT4-fs (sda1): recovery complete
    EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

But in L4.9.51 & 4.9.88 Kernel BSP releases, its not having above issue. The DTS(Device Tree) configuration for PCIe SATA module is same in both Kernel versions which is given below.

 

 

pinctrl_pciea: pcieagrp{
                            fsl,pins = <
                                    SC_P_SIM0_POWER_EN_LSIO_GPIO0_IO04                  0x00000021
                                    SC_P_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO28           0x06000021
                                    SC_P_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO29         0x06000021
                            >;
                    };

 


    &pciea{
            ext_osc = <0>;
            pinctrl-names = "default";
            pinctrl-0 = <&pinctrl_pciea>;
            reset-gpio = <&gpio4 29 GPIO_ACTIVE_LOW>;
            status = "okay";
    };

But the 4.14.78 Kernel Driver file (drivers/pci/dwc/pci-imx6.c) having many changes compared to 4.14.78 Kernel Driver. Whether that driver changes will effect to PCIe device?


Please let me know any changes required in updated Kernel BSP for PCIe SATA mounting issue.


Thanks in Advance.

Regards,

Prashanth Kumar K

Outcomes