Bug 6489

Summary: SATA harddisk error on mpc8315e-rdb
Product: [Build System, Metadata & Runtime] BSPs Reporter: Yi Zhao <yi.zhao>
Component: bsps-meta-yoctoAssignee: Kevin Hao <kexin.hao>
Status: VERIFIED FIXED QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, ke.zou, yi.zhao
Version: 1.7   
Target Milestone: 1.7 M2   
Hardware: mpc8315e-rdb   
OS: ppc   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Zhao 2014-06-30 08:21:22 UTC
Image location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7_M1.rc1/machines/mpc8315e-rdb/
git rev: master/68824d9b8f6e290da078383316b3f4b732585f2b

There are some error messages for sata when system boot up:
#######################
ata1.00: qc timeout (cmd 0x2f)
ata1: failed to read log page 10h (errno=-5)
ata1.00: exception Emask 0x41 SAct 0x10000 SErr 0x800 action 0x6 frozen
ata1: SError: { HostInt }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/08:80:e0:9a:a1/00:00:12:00:00/40 tag 16 ncq 4096 in
         res 50/00:00:af:9e:a1/00:00:12:00:00/e0 Emask 0x41 (internal error)
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: Hardreset failed, not off-lined 0
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sdb1): using internal journal
EXT3-fs (sdb1): recovery complete
EXT3-fs (sdb1): mounted filesystem with ordered data mode
ata1: Signature Update detected @ 504 msecs
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1.00: qc timeout (cmd 0x2f)
ata1: failed to read log page 10h (errno=-5)
ata1.00: exception Emask 0x41 SAct 0x20000 SErr 0x800 action 0x6 frozen
ata1: SError: { HostInt }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/08:88:e0:9a:a1/00:00:12:00:00/40 tag 17 ncq 4096 in
         res 50/00:00:af:9e:a1/00:00:12:00:00/e0 Emask 0x41 (internal error)
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: Hardreset failed, not off-lined 0
ata1: Signature Update detected @ 504 msecs
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1.00: qc timeout (cmd 0x2f)
ata1: failed to read log page 10h (errno=-5)
ata1.00: exception Emask 0x41 SAct 0x40000 SErr 0x800 action 0x6 frozen
ata1: SError: { HostInt }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/08:90:e0:9a:a1/00:00:12:00:00/40 tag 18 ncq 4096 in
         res 50/00:00:af:9e:a1/00:00:12:00:00/e0 Emask 0x41 (internal error)
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: Hardreset failed, not off-lined 0
ata1: Signature Update detected @ 504 msecs
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1.00: qc timeout (cmd 0x2f)
####################

And the harddisk partitions can not be mounted.
Comment 1 Yi Zhao 2014-08-29 07:33:18 UTC
This issue still exists in 20140826 build. (git rev: master/52b788c6df9201764130ab744bf67b770b24b896)

Looks like we need to update the kernel commit in meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.14.bbappend
Comment 2 Kevin Hao 2014-09-05 03:17:23 UTC
The patch from Bruce to update the SRCREV for mpc8315 has been merged. Please have a try.

commit 4900d763c94e4c030ceec4bc16d64d04a6970a21
Author: Bruce Ashfield <bruce.ashfield@windriver.com>
Date:   Sat Aug 30 00:46:05 2014 -0400

    yocto-bsps: update SRCREVs to linux-yocto latest
    
    Bumping the reference boards to the linux-yocto 3.14 latest SRCREVs.
    
    (From meta-yocto rev: 0fed8753eed45b29150f203b87cce25462596e9c)
    
    Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Comment 3 Yi Zhao 2014-09-09 07:31:15 UTC
Verified with 1.7 M3 rc1.
poky git rev: master/a44006262cf3b810ec78b4cccd8076102a7a0f3e