From: Jeff Garzik <jgarzik@pobox.com>
To: Mark Lord <liml@rtr.ca>
Cc: Tejun Heo <htejun@gmail.com>,
IDE/ATA development list <linux-ide@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>, Douglas Gilbert <dougg@torque.net>
Subject: Re: [PATCH 2.6.20-rc3] fix broken retval test in sr_block_ioctl
Date: Tue, 02 Jan 2007 17:37:37 -0500 [thread overview]
Message-ID: <459ADEB1.7080505@pobox.com> (raw)
In-Reply-To: <200701021730.07356.liml@rtr.ca>
Mark Lord wrote:
> This patch adds support for passing ATA_12 and ATA_16 commands
> through to ATAPI devices in libata. In practice, the upper layers will
> still currently prevent ATA_16 commands, as no (?) ATAPI drives support
> them yet. But it will work if such a drive is ever encountered.
>
> This patch is necessary for using SG_IO from userspace,
> and an upcoming hdparm release will be updated to use this interface.
>
> Signed-off-by: Mark Lord <mlord@pobox.com>
> ---
> Allow ATA_12 / ATA_16 passthru commands to be issued for ATAPI devices
Douglas Gilbert noticed this a while ago.
The patch's technical content is fine, but there is an open policy
question: For some devices, there is an opcode overlap (BLANK? Doug
probably remembers the issue better than I). And from a practical
standpoint, to handle any vendor weird-isms (nahhh those never happen in
ATAPI), it would be nice to be able to force the current (pre-mlord
patch) behavior to ensure that all opcodes are passed to ATAPI.
Absent a better idea, I would simply suggest adding a module parameter
that restores the "all opcodes are passed to device, guaranteed" mode.
I'm fine with changing the default behavior to that which is presented
by your patch.
Jeff
next prev parent reply other threads:[~2007-01-02 22:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-02 22:24 [PATCH 2.6.20-rc3] fix broken retval test in sr_block_ioctl Mark Lord
2007-01-02 22:30 ` Mark Lord
2007-01-02 22:32 ` [PATCH] Add ATA_12/ATA_16 support for libata ATAPI Mark Lord
2007-01-02 22:36 ` [PATCH] libata use ATA_12 in HDIO_* ioctls for ATAPI compatibility Mark Lord
2007-01-03 0:23 ` Mark Lord
2007-01-02 22:37 ` Jeff Garzik [this message]
2007-01-02 22:52 ` [PATCH 2.6.20-rc3] fix broken retval test in sr_block_ioctl Mark Lord
2007-01-02 23:12 ` Mark Lord
2007-01-03 3:36 ` Douglas Gilbert
2007-01-02 22:32 ` Jeff Garzik
2007-01-02 22:39 ` 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=459ADEB1.7080505@pobox.com \
--to=jgarzik@pobox.com \
--cc=akpm@osdl.org \
--cc=dougg@torque.net \
--cc=htejun@gmail.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 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).