All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Pat LaVarre <p.lavarre@ieee.org>, linux-ide@vger.kernel.org
Subject: Re: [PATCH] libata-core when not ata_id_use_dmadir despite yes SiliconI mage
Date: Sat, 15 May 2004 12:15:37 -0400	[thread overview]
Message-ID: <40A64229.7000600@pobox.com> (raw)
In-Reply-To: <200405151633.10473.bzolnier@elka.pw.edu.pl>

Bartlomiej Zolnierkiewicz wrote:
> On Saturday 15 of May 2004 16:20, Pat LaVarre wrote:
> 
>>>>>Subject: Re: SATA ATAPI work in progress
>>>>>...
>>>>>I doubt I can use this patch as is.  I believe,
>>>>>because I assembled my drive from components myself,
>>>>>its op xA1 Identify data has not changed,
>>>>>so I will see a misleading 0 False at:
>>>>>
>>>>>#define ata_id_use_dmadir(dev) ((dev)->id[62] & (1 << 15))
>>>
>>>Theory confirmed!
>>
>>Consequently now:
>>
>>In t13.org since the dawn of time, I see the requirement that compliant
>>ATAPI devices tolerate hosts creatively choosing to copy
>>(cmd->sc_data_direction != SCSI_DATA_WRITE) into (ata_taskfile.feature &
>>x04 ATAPI_DMADIR).
>>
>>I see devices constructed with Silicon Image 3611CT80 1.4 require such a
>>courtesy from the host.
>>
>>Therefore I propose that Linux, as host, offer that courtesy always.
> 
> 
> Makes sense.
> 
> Jeff, if you decide to do this remember to kill ata_id_use_dmadir()
> and ATA_DFLAG_DMADIR completely.  [ I'm sure you will. :-) ]

According to ATA/ATAPI7,

	A device that does not support the DMADIR feature may abort a
	command if the DMADIR bit is set to 1.

And this language makes sense, since it is unknown what all those cheap 
old ATAPI devices will do.  It's too risky to simply set this bit for 
all ATAPI devices, without lots of testing.

We can do so for our development here, but a better solution based on 
released parts will need to be found...

	Jeff




  reply	other threads:[~2004-05-15 16:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-15 14:20 [PATCH] libata-core when not ata_id_use_dmadir despite yes SiliconI mage Pat LaVarre
2004-05-15 14:33 ` Bartlomiej Zolnierkiewicz
2004-05-15 16:15   ` Jeff Garzik [this message]
2004-05-15 16:38     ` Bartlomiej Zolnierkiewicz
2004-05-15 16:39       ` Jeff Garzik
2004-05-15 16:46       ` [PATCH] libata-core when not ata_id_use_dmadir despite yesSili conI mage Pat LaVarre

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=40A64229.7000600@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=linux-ide@vger.kernel.org \
    --cc=p.lavarre@ieee.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.