[PATCH V7 1/5] AHCI Add the AHCI SATA feature on the MX53 platforms
From: Richard Zhu <hidden>
Date: 2011-09-01 03:09:15
Also in:
linux-ide
Hi Hector: What's happen before "> [ 7.073106] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro"? I re-based the patches to Sascha's imx-features branch, my sata device can work. Test sw environment: Sascha's imx-features branch, Test hw environment: iMX53 loco board, 32G sandisk ssd, tftp download the kernel image, and the nfs type rootfs is mounted. loop: module loaded ahci: SSS flag set, parallel bus scan disabled ahci imx53-ahci.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode ahci imx53-ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc scsi0 : ahci_platform ata1: SATA max UDMA/133 mmio [mem 0x10000000-0x10000fff] port 0x100 irq 28 FEC Ethernet Driver fec_enet_mii_bus: probed ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. mousedev: PS/2 mouse device common for all mice input: mma8450 as /devices/virtual/input/input0 i2c /dev entries driver imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0) sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: no vmmc regulator found mmc0: SDHCI controller on sdhci-esdhc-imx53.0 [sdhci-esdhc-imx53.0] using DMA mmc1: no vmmc regulator found mmc1: SDHCI controller on sdhci-esdhc-imx53.2 [sdhci-esdhc-imx53.2] using DMA usbcore: registered new interface driver usbhid usbhid: USB HID core driver TCP cubic registered NET: Registered protocol family 17 Registering the dns_resolver key type VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2 input: gpio-keys as /devices/platform/gpio-keys/input/input1 drivers/rtc/hctosys.c: unable to open rtc device (rtc0) eth0: Freescale FEC PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=1:00, irq=-1) mmc0: host does not support reading read-only switch. assuming write-enable. mmc0: new high speed SDHC card at address 0001 mmcblk0: mmc0:0001 00000 3.79 GiB mmcblk0: p1 p2 p3 ata1: softreset failed (device not ready) ata1: applying PMP SRST workaround and retrying ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-8: SanDisk SSD P4 32GB, SSD 8.00, max UDMA/133 ata1.00: 62533296 sectors, multi 1: LBA48 ata1.00: configured for UDMA/133 scsi 0:0:0:0: Direct-Access ATA SanDisk SSD P4 3 SSD PQ: 0 ANSI: 5 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 sda2 sd 0:0:0:0: [sda] Attached SCSI disk PHY: 1:00 - Link is Up - 100/Full Sending DHCP requests ., OK Best Regards Richard Zhu On 31 August 2011 20:57, Hector Oron [off-list ref] wrote:
Hello, 2011/8/31 Richard Zhu [off-list ref]:quoted
Hi Hector: Thanks for your help to tests these patches.Note I rebased this patches against 'imx-features' branch on Sascha's tree. I am noticing some obscure (to me) messages from kernel: [ ? ?6.874694] Adding 9767516k swap on /dev/sda3. ?Priority:-1 extents:1 across:9767516k [ ? ?7.073106] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro [ ? ?7.708399] ata1.00: exception Emask 0x12 SAct 0x3 SErr 0x1280500 action 0x6 frozen [ ? ?7.716219] ata1.00: irq_stat 0x08000000, interface fatal error [ ? ?7.722216] ata1: SError: { UnrecovData Proto 10B8B BadCRC TrStaTrns } [ ? ?7.728780] ata1.00: failed command: READ FPDMA QUEUED [ ? ?7.733995] ata1.00: cmd 60/00:00:f2:11:32/01:00:00:00:00/40 tag 0 ncq 131072 in [ ? ?7.734002] ? ? ? ? ?res 40/00:04:f2:11:32/00:00:00:00:00/40 Emask 0x12 (ATA bus error) [ ? ?7.749468] ata1.00: status: { DRDY } [ ? ?7.753176] ata1.00: failed command: READ FPDMA QUEUED [ ? ?7.758356] ata1.00: cmd 60/18:08:c2:14:32/00:00:00:00:00/40 tag 1 ncq 12288 in [ ? ?7.758363] ? ? ? ? ?res 40/00:04:f2:11:32/00:00:00:00:00/40 Emask 0x12 (ATA bus error) [ ? ?7.773739] ata1.00: status: { DRDY } [ ? ?7.777448] ata1: hard resetting link [ ? ?8.750427] ata1: softreset failed (device not ready) [ ? ?8.755551] ata1: applying PMP SRST workaround and retrying [ ? ?8.960435] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ ? ?8.981938] ata1.00: configured for UDMA/133 [ ? ?8.986535] ata1: EH complete [ ? 12.147912] eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:00, irq=-1) [ ? 12.521870] ata1.00: exception Emask 0x12 SAct 0xf SErr 0x800500 action 0x6 frozen [ ? 12.529518] ata1.00: irq_stat 0x08000000, interface fatal error [ ? 12.535546] ata1: SError: { UnrecovData Proto LinkSeq } [ ? 12.540851] ata1.00: failed command: READ FPDMA QUEUED [ ? 12.546039] ata1.00: cmd 60/00:00:a2:19:2c/01:00:00:00:00/40 tag 0 ncq 131072 in [ ? 12.546046] ? ? ? ? ?res 40/00:14:7a:aa:2c/00:00:00:00:00/40 Emask 0x12 (ATA bus error) [ ? 12.561519] ata1.00: status: { DRDY } [ ? 12.565209] ata1.00: failed command: READ FPDMA QUEUED [ ? 12.570419] ata1.00: cmd 60/00:08:1a:e9:2c/01:00:00:00:00/40 tag 1 ncq 131072 in [ ? 12.570426] ? ? ? ? ?res 40/00:14:7a:aa:2c/00:00:00:00:00/40 Emask 0x12 (ATA bus error) [ ? 12.585890] ata1.00: status: { DRDY } [ ? 12.589578] ata1.00: failed command: READ FPDMA QUEUED [ ? 12.594776] ata1.00: cmd 60/00:10:7a:aa:2c/01:00:00:00:00/40 tag 2 ncq 131072 in [ ? 12.594783] ? ? ? ? ?res 40/00:14:7a:aa:2c/00:00:00:00:00/40 Emask 0x12 (ATA bus error) [ ? 12.610240] ata1.00: status: { DRDY } [ ? 12.613945] ata1.00: failed command: READ FPDMA QUEUED [ ? 12.619118] ata1.00: cmd 60/e0:18:1a:10:2c/00:00:00:00:00/40 tag 3 ncq 114688 in [ ? 12.619125] ? ? ? ? ?res 40/00:14:7a:aa:2c/00:00:00:00:00/40 Emask 0x12 (ATA bus error) [ ? 12.634583] ata1.00: status: { DRDY } [ ? 12.638292] ata1: hard resetting link [ ? 13.790424] ata1: softreset failed (device not ready) [ ? 13.795543] ata1: applying PMP SRST workaround and retrying [ ? 14.000437] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ ? 14.021749] ata1.00: configured for UDMA/133 [ ? 14.026836] ata1: EH complete [ ? 14.140774] PHY: 1:00 - Link is Up - 100/Full Best regards, -- ?H?ctor Or?n ?-.. . -... .. .- -. ? -.. . ...- . .-.. --- .--. . .-.