AnsweredAssumed Answered

Sata link down in kernel (3.14.28)

Question asked by fang on Apr 23, 2016

Sata can't be detected when I tested with kernel 3.10.53 and 3.14.28, but it works in uboot.

 

My test environment and procedures:

Processor: i.MX6Q

Reference board: imx6qsabresd

a) boot with mfg tool using micro usb cable.    

     Boot with mfg tool is only for my testing, in production it boots from flash .

b) kernel and rootfs are in SD card.

 

1. Test with kernel (linux-2.6-imx-rel_imx_3.10.53_1.1.0_ga.zip) & uboot (rel_imx_3.10.53_1.1.1)

     Sata can be detected in uboot and get manufacture, capacity info, but can't be detected in kernel.

    

  Prints in dmesg:

  ...

  Wait for CR ACK error!

  sata phy RX_PLL is stable!

  ahci: SSS flag set, parallel bus scan disabled

  ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode

  ahci ahci: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst

  scsi0 : ahci_platform

  ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 71

  ...

  sdhci: Secure Digital Host Controller Interface driver

  sdhci: Copyright(c) Pierre Ossman

  sdhci-pltfm: SDHCI platform and OF driver helper

  sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode

  ...

  ata1: SATA link down (SStatus 0 SControl 300)

  ata1.00: link offline, clearing class 1 to NONE

 

2. Test with kernel (rel_imx_3.14.28_1.0.0_ga.zip) & uboot (rel_imx_3.14.28_1.0.0_ga)

     Sata still can be detected in uboot, but can't be detected in kernel.

     And after upraged to kernel 3.14.28, I got one more issue is that i2c0 can't be detected which works fine with 3.10.53.

 

     I attached my linux config, device tree and log which I used with 3.14.28.

 

My question is why i2c0 can't be detected any more with the new kernel, i2c0's definition in device tree I didn't change.

I tried several different Sata disks, they are all can be detected in uboot, but not in kernel.

I think there maybe something wrong  in linux config or device tree.

 

I'll really appreciate if someone can help me sort it out.

Original Attachment has been moved to: ag13008_linux_defconfig.zip

Original Attachment has been moved to: imx6q-ag13008b.dts.zip

Original Attachment has been moved to: log.txt.zip

Outcomes