linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Albert Lee <albertcc@tw.ibm.com>
Cc: Linux IDE <linux-ide@vger.kernel.org>,
	Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
	Doug Maxey <dwm@maxeymade.com>
Subject: Re: [RFC] libata: add MODE_SENSE(6) emulation?
Date: Sun, 15 May 2005 22:29:38 -0400	[thread overview]
Message-ID: <42880592.40402@pobox.com> (raw)
In-Reply-To: <425393DB.3010702@tw.ibm.com>

Albert Lee wrote:
> Hi Jeff,
> 
>   Even though libata sets  sdev->use_10_for_ms = 1;
> libata still receives MODE_SENSE(6) and MODE_SELECT(6) commands during 
> the test.
> (These commands seems to be coming from the user space, not from the 
> SCSI mid-layer.)
> 
> Most ATAPI devices don't like it, and either return error or time out.
> (Ex.
> Attached scsi CD-ROM sr0 at scsi7, channel 0, id 0, lun 0
> ata7: command 0xa0 timeout, stat 0x50 host_stat 0x1)
> 
> Should MODE_SENSE(6) / MODE_SELECT(6) emulation be added to libata
> to fix this? This can also make the ATAPI devices look more like real 
> SCSI devices.

I would prefer not to add this emulation.

This has been standard behavior for ATAPI devices, and was the reason 
that use_10_for_{ms,rw} was created inside the kernel.

Userland applications should be fixed instead:  the current SCSI MMC 
specification does not list MODE SENSE(6) either, and ATAPI devices are 
most like MMC devices.

The applications should be updated with more knowledge of the MMC 
specification.

	Jeff



  reply	other threads:[~2005-05-16  2:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-06  7:46 [RFC] libata: add MODE_SENSE(6) emulation? Albert Lee
2005-05-16  2:29 ` Jeff Garzik [this message]
2005-05-16 13:21   ` 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=42880592.40402@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=albertcc@tw.ibm.com \
    --cc=bzolnier@gmail.com \
    --cc=dwm@maxeymade.com \
    --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).