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) softreset failed issue and link speed is 1.5Gbps DM8168

Other Parts Discussed in Thread: PMP, CCSTUDIO

Dear  all,

Details of Hardware

Processor  : Dm8168

SATA Device:TOSHIBA IH3671 chip (ADVANTEC  32G MSATA Industrial Solid State Drive, 820 MLC 4-Channel (-40~85C))

In Our customized board SATA1 and SATA2 is not working(Detection is failing after multiple software reset). Please find the below error log .

ISSUE: Always the ata link status is down,  Sata is not working  and link speed is 1.5Gbps

-----------------------Error Log related to SATA-------------------

ata1: softreset failed (device not ready)
ata1: softreset failed (device not ready)
ata1: link is slow to respond, please be patient (ready=0)
ata1: softreset failed (device not ready)
ata1: limiting SATA link speed to 1.5 Gbps
ata1: softreset failed (device not ready)
ata1: reset failed, giving up
ata2: SATA link down (SStatus 0 SControl 300)
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
----------------------------------End----------------------------------------------------------------

The following links i studied

http://patchwork.ozlabs.org/patch/73713/

http://arago-project.org/git/projects/?p=linux-omap3.git;a=commitdiff;h=84a34fba9ad4cc00736ad577893f87a3d0f10e19;hp=18b1f21d313ba77d037a746bab193982ead4e905

http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/287768/1004424.aspx

http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/150493.aspx


But If the same Kernel Image and SATA device tried in the EVM_dm8168 board SATA is working fine and link speed is 3Gbps, please find the below Log 

ata1: softreset failed (device not ready)
ata1: applying PMP SRST workaround and retrying
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: SQF-SMSM4-32G-S8E, S8FM06A7, max UDMA/133
ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      SQF-SMSM4-32G-S8 S8FM PQ: 0 ANSI: 5
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 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
ata2: SATA link down (SStatus 0 SControl 300)
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
devtmpfs: mounted

What may be the Issue ??


Please let us know your suggestions on the above mentioned queries
 
Any input from the forum members would be highly appreciated.
   
Thanks  
Narthan S

  • Narthan,

    Are you using EZSDK 5.05.02.00? What is the silicon revision of your DM816x device (2.1, 2.0, 1.1, 1.0)? Are you using SATA GEN3 device?

    Regards,
    Pavel

  • Dear Pavel,

    Nice to see you again, thanks for your response

    Please find the following details in our customized board.

    1: Sata related Details:  MO-300 mSATA Module
                                               Compliant with SATA III and SATA v 3.0 standard 


    2: EZSDK : ti-ezsdk_dm816x-evm_5_05_02_00 and also tried with the latest linux source for the ti-git    (linux-omap3 (version : 2.6.37)).

    Processor silicon Version: (DM8168CCYG ---> 2.1ver)

    If you need any other information, please let us know........

    Thanks,

    Narthan S

  • Narthan,

    Are you using external 100MHz differential clock source for the SATA PLL (not 20Mhz osc)?

    See also if the below links will be in help:

    http://processors.wiki.ti.com/index.php/EZSDK_Using_SATA_drive_for_Data

    http://processors.wiki.ti.com/index.php/TI_SATA_FAQ#My_HDD_supports_3Gbps_but_Linux_works_only_at_1.5Gbps

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_User_Guide#SATA_Driver

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_04.04.00.02_Feature_Performance_Guide#SATA_Driver

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/372345.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/372498.aspx

    Regards,
    Pavel

  • Dear Pavel,

    thanks for providing inputs and links related to SATA

    we probe SATA PLL that clk source having 100 Mhz.

    and we tried with the Kingston 60Gb (SATA Rev. 3.0 (6Gb/s) support) is detected with the link seed 1.5Gbps  

    The below log in our customized board

    -----------------------------------------------------------------Log---------------------------------------------------------------

    ata1: softreset failed (device not ready)
    ata1: softreset failed (device not ready)
    ata1: link is slow to respond, please be patient (ready=0)
    ata1: softreset failed (device not ready)
    ata1: limiting SATA link speed to 1.5 Gbps
    ata1: softreset failed (device not ready)
    ata1: applying PMP SRST workaround and retrying
    ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
    ata1.00: ATA-8: KINGSTON SMS200S360G, 524ABBF0, max UDMA/133
    ata1.00: 117231408 sectors, multi 1: LBA48 NCQ (depth 31/32)
    ata1.00: configured for UDMA/133
    scsi 0:0:0:0: Direct-Access ATA KINGSTON SMS200S 524A PQ: 0 ANSI: 5
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    sd 0:0:0:0: [sda] 117231408 512-byte logical blocks: (60.0 GB/55.8 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
    ata2: SATA link down (SStatus 0 SControl 300)
    EXT3-fs: barriers not enabled
    kjournald starting. Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete

    ------------------------------------------------------------------------End----------------------------------------------------------------------

    Same uImage and Kingston device with EVM Dm8168 board the link speed is in 3Gpbs

     

    ata1: softreset failed (device not ready)
    ata1: applying PMP SRST workaround and retrying
    ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata1.00: ATA-8: KINGSTON SMS200S360G, 524ABBF0, max UDMA/133
    ata1.00: 117231408 sectors, multi 1: LBA48 NCQ (depth 31/32)
    ata1.00: configured for UDMA/133
    scsi 0:0:0:0: Direct-Access ATA KINGSTON SMS200S 524A PQ: 0 ANSI: 5
    sd 1:0:0:0: [sda] 117231408 512-byte logical blocks: (60.0 GB/55.8 GiB)
    sd 1:0:0:0: [sda] Write Protect is off

    What may be the issue ???

    Whether Dm8168 supports SATA Gen 3, Or SATA Gen  2,  Or SATA Gen 1 ?

    if SATA Gen 3 is not supported, do Any pach to support SATA Gen 3 ?

    and we tried Adventec SATA Gen 3 device (toshiba chip) is not detecting and continuously soft reset will happened and finally it will fail.

    -----------------------------------------------------------------------------------------------------------------

    ata1: softreset failed (device not ready)

    ata1: softreset failed (device not ready)
    ata1: softreset failed (device not ready)
    ata1: link is slow to respond, please be patient (ready=0)
    ata1: softreset failed (device not ready)
    ata1: limiting SATA link speed to 1.5 Gbps
    ata1: softreset failed (device not ready)
    ata1: reset failed, giving up
    ata2: SATA link down (SStatus 0 SControl 300)
    EXT3-fs: barriers not enabled
    kjournald starting. Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    devtmpfs: mounted

    If you need any other information, please let us know........

    Thanks,

    Narthan S

  • Narthan,

    When something works fine on the DM816x EVM and the same thing does not work on DM816x custom board, this is most often indication for a HW malfunction in the DM816x custom board. Please double check the HW side, according to the below documents:

    DM816x datasheet, 9.17 Serial ATA Controller (SATA)

    DM816x EVM SATA schematics - from Spectrum Digital

    DM816x SATA diagnostic CCStudio test - from Spectrum Digital

    http://processors.wiki.ti.com/index.php/AM389x_C6A816x_DM816x_Hardware_Design_Guide

    http://processors.wiki.ti.com/index.php/DM816x_C6A816x_AM389x_Overview#SATA

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/186748.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/197523.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/360510.aspx

    Narthan Murthy said:
    Whether Dm8168 supports SATA Gen 3, Or SATA Gen  2,  Or SATA Gen 1 ?

    Gen2 (3Gbps) and Gen1 (1.5Gbps) are supported for all DM816x devices (2.1, 2.0, 1.1, 1.0). Only DM816x 2.1 device supports Gen3 (6Gbps), see DM816x datasheet and silicon errata, Advisory 2.0.64

    Narthan Murthy said:
    if SATA Gen 3 is not supported, do Any pach to support SATA Gen 3 ?

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/304287.aspx

    All SATA related patches:

    http://arago-project.org/git/projects/?p=linux-omap3.git&a=search&h=refs%2Fheads%2Fti81xx-master&st=commit&s=sata


    Regards,
    Pavel