linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Lord <liml@rtr.ca>
To: Mathieu GELI <mathieu.geli@gmail.com>
Cc: Robert Hancock <hancockrwd@gmail.com>, linux-ide@vger.kernel.org
Subject: Re: CF to SATA bridge support
Date: Mon, 10 Aug 2009 09:33:17 -0400	[thread overview]
Message-ID: <4A80219D.7070708@rtr.ca> (raw)
In-Reply-To: <43479bc90908090923h40305e14mf726d30fbed0733f@mail.gmail.com>

Mathieu GELI wrote:
> Investigating the IORDY problem I did cross-build a custom 2.6.30.4
> (from kernel.org) arm kernel and patched it accordingly to [1].
> What results is : Compact Flash is now *detected* but when using it in
> real life (mkswap+swapon) things are getting bad.
> 
> at boot time :
> 
> [    2.190000] SCSI subsystem initialized
> [    2.410000] libata version 3.00 loaded.
> [    2.460000] sata_mv sata_mv.0: version 1.28
> [    2.470000] sata_mv sata_mv.0: slots 32 ports 2
> [    2.480000] scsi0 : sata_mv
> [    2.480000] scsi1 : sata_mv
> [    2.480000] ata1: SATA max UDMA/133 irq 29
> [    2.490000] ata2: SATA max UDMA/133 irq 29
> [    3.000000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> [    3.060000] ata1.00: CFA: LEXAR ATA FLASH, V2.02, max PIO4
> [    3.060000] ata1.00: 2003904 sectors, multi 0: LBA
> [    3.070000] ata1.00: applying bridge limits
> [    3.110000] ata1.00: configured for PIO4
> [    3.170000] ata1.00: configured for PIO4
> [    3.170000] ata1: EH complete
> [    3.170000] scsi 0:0:0:0: Direct-Access     ATA      LEXAR ATA
> FLASH  V2.0 PQ: 0 ANSI: 5
> [    3.690000] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [    3.710000] ata2.00: ATA-7: SAMSUNG HD103UJ, 1AA01118, max UDMA7
> [    3.710000] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
> [    3.740000] ata2.00: configured for UDMA/133
> [    3.740000] scsi 1:0:0:0: Direct-Access     ATA      SAMSUNG
> HD103UJ  1AA0 PQ: 0 ANSI: 5
> [    5.750000] Driver 'sd' needs updating - please use bus_type methods
> [    5.760000] sd 0:0:0:0: [sda] 2003904 512-byte hardware sectors:
> (1.02 GB/978 MiB)
> [    5.760000] sd 0:0:0:0: [sda] Write Protect is off
> [    5.770000] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
> [    5.770000] sd 0:0:0:0: [sda] Write cache: disabled, read cache:
> enabled, doesn't support DPO or FUA
> [    5.780000]  sda:<4>ata1: sata_mv: attempting PIO w/multiple DRQ:
> this may fail due to h/w errata
> [    5.810000]  sda1
> [    5.810000] ata1: sata_mv: attempting PIO w/multiple DRQ: this may
> fail due to h/w errata
> [    5.860000] sd 0:0:0:0: [sda] Attached SCSI removable disk
> [    5.870000] sd 1:0:0:0: [sdb] 1953525168 512-byte hardware sectors:
> (1.00 TB/931 GiB)
> [    5.880000] sd 1:0:0:0: [sdb] Write Protect is off
> [    5.880000] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
> [    5.880000] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
> enabled, doesn't support DPO or FUA
> [    5.890000]  sdb: sdb1 sdb2
> [    5.900000] sd 1:0:0:0: [sdb] Attached SCSI disk
> [    6.870000] ata1: sata_mv: attempting PIO w/multiple DRQ: this may
> fail due to h/w errata
> [    6.880000] ata1: sata_mv: attempting PIO w/multiple DRQ: this may
> fail due to h/w errata
> [    6.900000] ata1: sata_mv: attempting PIO w/multiple DRQ: this may
> fail due to h/w errata
> [    6.920000] ata1: sata_mv: attempting PIO w/multiple DRQ: this may
> fail due to h/w errata
> [    6.940000] ata1: sata_mv: attempting PIO w/multiple DRQ: this may
> fail due to h/w errata
> [    6.960000] ata1: sata_mv: attempting PIO w/multiple DRQ: this may
> fail due to h/w errata
> [    6.980000] ata1: sata_mv: attempting PIO w/multiple DRQ: this may
> fail due to h/w errata
> [    7.010000] ata1: sata_mv: attempting PIO w/multiple DRQ: this may
> fail due to h/w errata
> [    7.890000] device-mapper: uevent: version 1.0.3
> [...]
> 
> and after swapon and running memory demanding application :
> [ 2149.180000] ata1: hard resetting link
> [ 2149.700000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
> [ 2149.780000] ata1.00: configured for PIO0
> [ 2149.820000] ata1.00: configured for PIO0
> [ 2149.820000] sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
> [ 2149.830000] sd 0:0:0:0: [sda] Sense Key : Aborted Command [current]
> [descriptor]
> [ 2149.830000] Descriptor sense data with sense descriptors (in hex):
> [ 2149.840000]         72 0b 47 00 00 00 00 0c 00 0a 80 00 00 00 00 00
> [ 2149.850000]         00 00 80 f7
> [ 2149.850000] sd 0:0:0:0: [sda] Add. Sense: Scsi parity error
> [ 2149.860000] end_request: I/O error, dev sda, sector 33015
> [ 2149.860000] Write-error on swap-device (8:0:33023)
> [ 2149.870000] Write-error on swap-device (8:0:33031)
> [ 2149.870000] Write-error on swap-device (8:0:33039)
> [...]
> [ 2150.010000] Write-error on swap-device (8:0:33271)
> [ 2150.020000] ata1: EH complete
> [ 2150.060000] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
> [ 2150.070000] ata1.00: cmd 30/00:00:f7:81:00/00:00:00:00:00/e0 tag 0
> pio 131072 out
> [ 2150.070000]          res 58/00:00:f7:81:00/00:00:00:00:00/e0 Emask
> 0x2 (HSM violation)
> [ 2150.080000] ata1.00: status: { DRDY DRQ }
> [ 2150.090000] ata1: hard resetting link
> 
> While that's happening, userland is unresponsive.
> 
> On a side note, just running hdparm on it doesn't trigger all those errors :
> 
> $ sudo hdparm -tT /dev/sda
> 
> /dev/sda:
>  Timing cached reads:   160 MB in  2.02 seconds =  79.31 MB/sec
>  Timing buffered disk reads:   14 MB in  3.39 seconds =   4.13 MB/sec
..

Those errors are on WRITEs, not READs, so no surprise that "hdparm -t" works.
This could be an IORDY issue, or just due to how the the Marvell chips
are buggy when doing PIO of more than a single sector.  That was the only
errata we didn't do a complete workaround for, because it's so ugly.  :)

I have a CF-to-SATA adapter due to arrive here from DealExtreme.com in the
next week or so.  Remind me, and I'll try it out on some of the Marvell cards
here and see what happens.

Cheers


  reply	other threads:[~2009-08-10 13:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07 17:59 CF to SATA bridge support Mathieu GELI
2009-08-08  3:21 ` Robert Hancock
2009-08-08 18:35   ` Mathieu GELI
2009-08-09 16:23     ` Mathieu GELI
2009-08-10 13:33       ` Mark Lord [this message]
2009-08-29 13:48         ` Mark Lord
2009-08-29 14:22           ` Mark Lord
2009-08-29 15:47             ` Mark Lord
2009-08-29 15:59           ` Mark Lord
2009-08-29 16:10             ` Mark Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A80219D.7070708@rtr.ca \
    --to=liml@rtr.ca \
    --cc=hancockrwd@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=mathieu.geli@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).