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 fails with psp04.00.00.10

Other Parts Discussed in Thread: PMP

I am trying to get a SATA drive to work on my 816x/389x DDR2 EVM board.  The drive is a Western Digital WD10EARS SATA drive.  I can get the drive to work with the psp04.00.00.07 version of the linux tree.  When I switch to the psp04.00.00.10 linux tree the drive is no longer recognized.  Here is a dump from the terminal showing the errors.

ahci ahci.0: forcing PORTS_IMPL to 0x3
ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi0 : ahci_platform
scsi1 : ahci_platform
ata1: SATA max UDMA/133 irq_stat 0x00400040, connection status changed irq 16
ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
m25p80 spi1.0: found m25p05-nonjedec, expected w25x32
m25p80 spi1.0: m25p05-nonjedec (64 Kbytes)
Creating 4 MTD partitions on "spi_flash":
0x000000000000-0x000000040000 : "U-Boot"
mtd: partition "U-Boot" extends beyond the end of device "spi_flash" -- size truncated to 0x10000
0x000000010000-0x000000012000 : "U-Boot Env"
mtd: partition "U-Boot Env" is out of reach -- disabled
0x000000000000-0x000000280000 : "Kernel"
mtd: partition "Kernel" extends beyond the end of device "spi_flash" -- size truncated to 0x10000
0x000000010000-0x000000010000 : "File System"
mtd: partition "File System" is out of reach -- disabled
omap2-nand driver initializing
No NAND device found.
No NAND device found.
davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
davinci_mdio davinci_mdio.0: detected phy mask fffffffd
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
PSTATE 1ff0000
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
1-0018 supply IOVDD not found, using dummy regulator
1-0018 supply DVDD not found, using dummy regulator
1-0018 supply AVDD not found, using dummy regulator
1-0018 supply DRVDD not found, using dummy regulator
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
ALSA device list:
  #0: TI81XX EVM
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
omap_voltage_late_init: Voltage driver support not added
mmc0: new SDHC card at address e624
mmcblk0: mmc0:e624 SD08G 7.40 GiB
 mmcblk0: p1 p2
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.15: Port Multiplier 1.1, 0x197b:0x2352 r0, 2 ports, feat 0x0/0x0
ata1.15: Asynchronous notification not supported, hotplug won't
         work on fan-out ports. Use warm-plug instead.
ata1.00: hard resetting link
ata1.00: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
ata1.01: hard resetting link
ata1.01: SATA link down (SStatus 0 SControl 320)
ata1.00: qc timeout (cmd 0xec)
ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
ata1.15: hard resetting link
ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: hard resetting link
ata1.00: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
ata1.00: qc timeout (cmd 0xec)
ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
ata1.15: hard resetting link
ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: hard resetting link
ata1.00: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
ata1.01: hard resetting link
ata1.01: SATA link down (SStatus 0 SControl 320)
ata1.00: qc timeout (cmd 0xec)
ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
ata1.00: failed to recover link after 3 tries, disabling
ata1.15: hard resetting link
ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: failed to read SCR 0 (Emask=0x40)
ata1.00: failed to write SCR 1 (Emask=0x40)
ata1.00: failed to clear SError.N (errno=-5)
ata1.15: hard resetting link
ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: failed to read SCR 0 (Emask=0x40)
ata1.00: failed to write SCR 1 (Emask=0x40)
ata1.00: failed to clear SError.N (errno=-5)
ata1.15: hard resetting link
ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: failed to read SCR 0 (Emask=0x40)
ata1.00: failed to write SCR 1 (Emask=0x40)
ata1.00: failed to clear SError.N (errno=-5)
ata1.15: hard resetting link
ata1.15: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: failed to read SCR 0 (Emask=0x40)
ata1.00: failed to write SCR 1 (Emask=0x40)
ata1.00: failed to clear SError.N (errno=-5)
ata1: failed to recover PMP after 5 tries, giving up
ata1.15: Port Multiplier detaching
ata1.00: disabled
ata1: exception Emask 0x2 SAct 0x0 SErr 0x0 action 0x6 frozen t4
ata1: irq_stat 0x00800000, incorrect PMP
ata1: hard resetting link
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1: EH complete

 

Any ideas on what I am missing?

  • Steve,

     

    Did you update your bootloader since this is new kernel (2.6.37)? Did you try a different sata driver?

    I've tried on release 04.00.00.12 which is also based on 2.6.37 and I don't see the problem. I am using SATA WD Scorpin 250G drive. See log below.

    BTW, Release 04.00.00.10 is based on newer kernel (2.6.37) than 04.00.00.07.

    ===sata2===

    ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata2.00: ATA-8: WDC WD2500BEKT-00A25T0, 01.01A01, max UDMA/133
    ata2.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    ata2.00: configured for UDMA/133
    scsi 1:0:0:0: Direct-Access     ATA      WDC WD2500BEKT-0 01.0 PQ: 0 ANSI: 5
    sd 1:0:0:0: Attached scsi generic sg1 type 0
    sd 1:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)
    sd 1:0:0:0: [sdb] Write Protect is off
    sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
     sdb: sdb1
    sd 1:0:0:0: [sdb] Attached SCSI disk

    ===sata1===

    ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata1.00: ATA-8: WDC WD2500BEKT-00A25T0, 01.01A01, max UDMA/133
    ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    ata1.00: configured for UDMA/133
    scsi 0:0:0:0: Direct-Access     ATA      WDC WD2500BEKT-0 01.0 PQ: 0 ANSI: 5
    sd 0:0:0:0: Attached scsi generic sg1 type 0
    sd 0:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)
    sd 0:0:0:0: [sdb] Write Protect is off
    sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO
     or FUA
    ., OK
    IP-Config: Got DHCP answer from 0.0.0.0, my address is 158.218.103.233
    IP-Config: Complete:
         device=eth0, addr=158.218.103.233, mask=255.255.254.0, gw=158.218.102.2,
         host=158.218.103.233, domain=am.dhcp.ti.com, nis-domain=(none),
         bootserver=0.0.0.0, rootserver=158.218.103.84, rootpath=
     sdb: sdb1
    sd 0:0:0:0: [sdb] Attached SCSI disk

     

    Regards,

    Yan

  • "Did you try a different sata driver?" should be "Did you try a different SATA drive?". Sorry for the typo error.

  • I have not tried another SATA drive because this is the only one we have.  I did update the u-boot.  This same hw (board and SATA) drive works with the old kernel.

  • Hi Steve ten Pas,

    Is this driver connected through a port-multiplier or directly?

    If it is connected through a port-multiplier, could you try connecting it directly.

    Regards

    Mansoor

  • Mansoor,

     

    I got it to work this afternoon.  The device that I plug the SATA drive into has two slots.  I tried the other on and it worked.  I thought I had tried that slot the other day and it  did not work. 

     

    Thanks,

    Steve