Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Tejun Heo <tj@kernel.org>
Cc: Jeff Garzik <jeff@garzik.org>,
	IDE/ATA development list <linux-ide@vger.kernel.org>
Subject: Re: [PATCH] libata: use ATAPI dma even for data transfers not aligned to 16 bytes
Date: Mon, 16 Jun 2008 10:31:46 +0100	[thread overview]
Message-ID: <20080616103146.0bbdc641@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <485615B4.7070002@kernel.org>

On Mon, 16 Jun 2008 16:26:44 +0900
Tejun Heo <tj@kernel.org> wrote:

> Most ATAPI DMA failures are due to controller issues including choking
> on data buffer w/o proper padding or draining areas and should be
> worked around in LLDs.  The default 16 byte alignment check in
> ata_check_atapi_dma() only partially hides problems (well, that was
> the conclusion back then, at least).

You need to modify some of the drivers before you can remove this check
now. At least AMD, and probably nvidia (but who knows) require 4
byte alignment for internal buffering unless you reconfigure the FIFO
(actually we should be using inl/outl as well in the AMD case it seems -
docs are not 100% clear). I'm currently investigating this bit.

Alan

      reply	other threads:[~2008-06-16  9:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-16  7:26 [PATCH] libata: use ATAPI dma even for data transfers not aligned to 16 bytes Tejun Heo
2008-06-16  9:31 ` Alan Cox [this message]

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=20080616103146.0bbdc641@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=jeff@garzik.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=tj@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