AnsweredAssumed Answered

imx6 sata eye pattern test

Question asked by jiang yaqiang on Oct 23, 2017
Latest reply on Apr 18, 2018 by Elmar Albert

HI anyone:

         My project using imx6q need to do eye pattern test for sata(sata signal test). We are success on 1.5G signal test, because the default signal is 1.5G. When we connect with  SATA hardisk, it does generate 3G signal, but after pull out the hardisk, SATA module reset to 1.5G. How to keep it to 3G?

 

The platform is : yocto , kernel:4.1.15

here is log:

 

root@imx6qsabresd:~# dmesg | grep ata -i
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Memory: 698308K/1048576K available (8264K kernel code, 447K rwdata, 3060K rodata, 432K init, 443K bss, 22588K reserved, 327680K cma-reserved, 0K highmem)
.data : 0x80b84000 - 0x80bf3f20 ( 448 kB)
[ 0.217144] libata version 3.00 loaded.
[ 2.151055] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[ 2.157721] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[ 2.164456] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[ 2.171341] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[ 2.181806] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[ 2.187532] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 2.195047] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
[ 2.206753] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 313
[ 2.763434] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2.774511] ata1.00: ATA-8: ST95005620AS, SD22, max UDMA/133
[ 2.778947] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 2.789386] ata1.00: configured for UDMA/133
[ 2.813687] scsi 0:0:0:0: Direct-Access ATA ST95005620AS SD22 PQ: 0 ANSI: 5
[ 2.849438] mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
[ 6.658768] EXT3-fs (mmcblk2p2): mounted filesystem with ordered data mode
[ 8.777651] FAT-fs (mmcblk2p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 9.162073] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

 

 

log when pull out the hardisk:

 

root@imx6qsabresd:~# ata1: exception Emask 0x10 SAct 0x0 SErr 0x10200 action 0xe frozen
ata1: irq_stat 0x00400000, PHY RDY changed
ata1: SError: { Persist PHYRdyChg }
ata1: hard resetting link
ata1: SATA link down (SStatus 0 SControl 300)
ata1: hard resetting link
ata1: SATA link down (SStatus 0 SControl 300)
ata1: limiting SATA link speed to 1.5 Gbps

Outcomes