From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Mark Lord <liml@rtr.ca>
Cc: Jeff Garzik <jgarzik@pobox.com>, Vitaliyi <imgrey@gmail.com>,
Tejun Heo <htejun@gmail.com>,
IDE/ATA development list <linux-ide@vger.kernel.org>
Subject: Re: [PATCH] libata: add support for READ/WRITE LONG
Date: Fri, 16 Mar 2007 17:33:50 +0300 [thread overview]
Message-ID: <45FAAACE.6000503@ru.mvista.com> (raw)
In-Reply-To: <45FAA822.7050208@rtr.ca>
Hello.
Mark Lord wrote:
>>> The fussy bit is that these commands require a non-standard
>>> sector size, usually 520 bytes instead of 512.
>> Which requires from the drivers to be able to turn off IDE prefetch
>> (and maybe posting too). I don't see that in this patch (or are you
>> expecting them to just "snoop' the commands and do it automagically?).
> Most controllers seem to be behave well enough
> and just not muck up. And if it fails on any "too clever" controllers,
> then no big deal -- we just switch to a controller that works instead.
IDE controllers are generally not known as "clever" -- and that's what's
frightening me... :-)
> This is not an essential command for normal operation.
> What it is for, is injecting errors so that we can experience
> firsthand the (excellent or crappy) error handling in the kernel
> and in applications. And then work out and test better strategies.
> So 100% working everywhere, for an obsolete opcode, isn't really
> essential to me. But it should work most places, and it does.
I don't think it should *correctly* work anywhere w/prefetch on, IDE bus
wise. Maybe that just doesn't show up on host side (but well might have been).
>> Again, ata_data_xfer() doesn't seem capable of performing ECC
>> read/writes
>> -- the ECC bytes must be transferred in 8-bit mode, AFAIR.
>> ata_data_xfer()
>> can oinly do that for optionally trailing odd byte.
> I have no idea what that was all about. Care to explain again?
Care to read the standards? :-/
> RWLONG transfer the ECC info 8-bits at a time, using 16-bit words
> to do so, no different from normal. ???
From ATA-1:
"The transfer of the vendor specific bytes shall be one byte at a time
over bits DD0-7 only (8-bits wide)."
> Here it is again with the whitespace not so messed up.
I'm sorry, it seems only being messed on my side, due to format=flowed. :-/
> The READ/WRITE LONG commands are theoretically obsolete,
> but the majority of drives in existance still implement them.
> The WRITE_LONG and WRITE_LONG_ONCE commands are of particular
> interest for fault injection testing -- eg. creating "media errors"
> at specific locations on a disk.
> The fussy bit is that these commands require a non-standard
> sector size, usually 520 bytes instead of 512.
It's 516 bytes, not 512 as you claim. Well, maybe the extra odd bytes
don't matter anyway in this GIGO case... :-)
> This patch adds support to libata for READ/WRITE LONG commands
> issued via SG_IO/ATA_16.
> This patch was generated against a 2.6.21-rc3-git7 base:
MBR, Sergei
next prev parent reply other threads:[~2007-03-16 14:34 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-11 7:22 libata extension Vitaliyi
2007-03-11 14:09 ` Bartlomiej Zolnierkiewicz
2007-03-12 14:47 ` Mark Lord
[not found] ` <3aac340703121003l43685599t8dbffe6247879a91@mail.gmail.com>
2007-03-12 17:12 ` Fwd: " Vitaliyi
2007-03-12 19:08 ` [PATCH] libata: add support for READ/WRITE LONG Mark Lord
2007-03-12 19:10 ` Mark Lord
2007-03-12 22:13 ` Alan Cox
2007-03-12 22:23 ` Mark Lord
2007-03-13 0:08 ` Alan Cox
2007-03-12 23:40 ` Mark Lord
2007-03-13 6:40 ` Tejun Heo
2007-03-13 10:46 ` Ric Wheeler
2007-03-16 12:28 ` Mark Lord
2007-03-16 14:02 ` Sergei Shtylyov
2007-03-16 14:22 ` Mark Lord
2007-03-16 14:33 ` Sergei Shtylyov [this message]
2007-03-16 14:42 ` Mark Lord
2007-03-16 14:43 ` Mark Lord
2007-03-16 14:58 ` Sergei Shtylyov
2007-03-16 15:07 ` Mark Lord
2007-03-16 15:23 ` Sergei Shtylyov
2007-03-16 15:32 ` Mark Lord
2007-03-16 17:08 ` Alan Cox
2007-03-16 18:54 ` Jeff Garzik
2007-03-16 20:16 ` Mark Lord
2007-03-16 20:38 ` Jeff Garzik
2007-03-16 21:05 ` Sergei Shtylyov
2007-03-16 21:09 ` Bartlomiej Zolnierkiewicz
2007-03-16 21:21 ` Mark Lord
2007-03-16 21:40 ` Bartlomiej Zolnierkiewicz
2007-04-04 6:20 ` Jeff Garzik
2007-03-16 15:15 ` Alan Cox
2007-03-16 14:16 ` Sergei Shtylyov
2007-03-16 15:01 ` Alan Cox
2007-03-16 14:15 ` Mark Lord
2007-03-16 14:23 ` Sergei Shtylyov
2007-03-16 14:33 ` Mark Lord
2007-03-16 15:23 ` Alan Cox
[not found] ` <3aac340703121007q35c7acf7t648e0ed7608be04d@mail.gmail.com>
[not found] ` <200703122106.39669.bzolnier@gmail.com>
2007-03-13 2:36 ` Fwd: libata extension Vitaliyi
2007-03-13 11:23 ` Jeff Garzik
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=45FAAACE.6000503@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=htejun@gmail.com \
--cc=imgrey@gmail.com \
--cc=jgarzik@pobox.com \
--cc=liml@rtr.ca \
--cc=linux-ide@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.