This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SATA sometimes not detected in boot

Guru 20755 points

Hello,

We have some issue for a long time now with sata detection in kernel boot.

We observed the following:

1. We used PG 2.1 DM8148, with sata and we see that when the board is still cold the sata is not detected:

" PHY: 0:01 - Link is Up - 100/Full
Link not established, limiting speed
ata1: limiting SATA link speed to 1.5 Gbps
ata1: SATA link down (SStatus 1 SControl 310)
EXT3-fs: barriers not enabled
kjournald starting. Commit interval 5 seconds"

After the board is operated for some time, then tyhe boot is successful in detection of sata:

mmcblk0: p1 p2
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: SQF-SMSM4-128G-S8E, S8FM06A7, max UDMA/133
ata1.00: 250069680 sectors, multi 16: LBA48 NCQ (depth 31/32)
CPSW phy found : id is : 0x282f014
PHY 0:04 not found
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA SQF-SMSM4-128G-S S8FM PQ: 0 ANSI: 5

sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 250069680 512-byte logical blocks: (128 GB/119 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:

 

2. According to errata on this issue and guidance from e2e, we changed from PG2.1 to PG3.0

But now on trying the same testsm, we get exactly the same behaviour !

 

Is there any thing that we can do, or bypass this issue ?

Thank you,

Ran

 

 

  • Ran,

    Are you using latest code base (u-boot and linux kernel) for DVR RDK? Can you reproduce this issue on the DM814x TI EVM?

    BR
    Pavel
  • Hi Pavel,

    With EVM , I use same PSP 04.01.00.02 (evm and custom board have some difference in pinmux for example),

    There is no issue on EVM with sata:

    mmc0: host does not support reading read-only switch. assuming write-enable.

    mmc0: new high speed SDHC card at address e624

    mmcblk0: mmc0:e624 SD08G 7.40 GiB

    mmcblk0: p1 p2

    ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)

    ata1.00: ATA-8: WDC SSD-S0008S-7100, 2.1ME, max UDMA/133

    ata1.00: 15625008 sectors, multi 1: LBA48

    CPSW phy found : id is : 0x4dd074

    CPSW phy found : id is : 0x4dd074

    ata1.00: configured for UDMA/133

    scsi 0:0:0:0: Direct-Access     ATA      WDC SSD-S0008S-7 2.1M PQ: 0 ANSI: 5

    sd 0:0:0:0: Attached scsi generic sg0 type 0

    sd 0:0:0:0: [sda] 15625008 512-byte logical blocks: (8.00 GB/7.45 GiB)

    sd 0:0:0:0: [sda] Write Protect is off

    sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

    sda: sda1

    sd 0:0:0:0: [sda] Attached SCSI disk

    IP-Config: Guessing netmask 255.0.0.0

     

    Though note that it is a different sata device.

    Best Regards,

    Ran

  • Hi Pavel,

    Do you think it is a hardware issue in the custom board ?

    Regards,
    Ran
  • Ran,

    Yes, that seems to be custom board HW issue. See also if the below e2e threads will be in help:

    e2e.ti.com/.../357599
    e2e.ti.com/.../372345
    e2e.ti.com/.../207231
    e2e.ti.com/.../272413
    e2e.ti.com/.../147598

    BR
    Pavel