From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Robert Hancock <hancockr@shaw.ca>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
ide <linux-ide@vger.kernel.org>
Subject: Re: sata_nv and dynamically changing DMA mask?
Date: Tue, 30 Oct 2007 10:05:42 +0000 [thread overview]
Message-ID: <20071030100542.3efe01ee@the-village.bc.nu> (raw)
In-Reply-To: <4726B064.3000906@shaw.ca>
On Mon, 29 Oct 2007 22:17:40 -0600
Robert Hancock <hancockr@shaw.ca> wrote:
> In the sata_nv driver, when running in ADMA mode, we can do 64-bit DMA.
> However, when an ATAPI device like a DVD drive is connected, we can't
> use ADMA mode, and so we have to abide by the restrictions of a normal
> SFF ATA controller and can only do 32-bit DMA. We detect this and try to
> set the blk_queue_bounce_limit, blk_queue_segment_boundary and
> blk_queue_max_hw_segments to the values corresponding to a normal SFF
> controller.
What about the DMA padding buffer from nv_adma_port_start and internal
buffers for commands like request sense that don't come via the request
queue directly.
Also it seems nv_adma_use_reg_mode() can decide to send other commands
via the non ADMA interface even for ATA devices. Are we 100% certain it
never decides to let through a command with DMA via the register
interface in this case - what do you see if you instrument the function ?
Alan
next prev parent reply other threads:[~2007-10-30 10:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 4:17 Robert Hancock
2007-10-30 10:05 ` Alan Cox [this message]
2007-10-30 23:59 ` Robert Hancock
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=20071030100542.3efe01ee@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=hancockr@shaw.ca \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®