From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>,
David Miller <davem@davemloft.net>,
clameter@sgi.com, hugh@veritas.com, James.Bottomley@steeleye.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Containment measures for slab objects on scatter gather lists
Date: Sat, 30 Jun 2007 00:11:38 +0100 [thread overview]
Message-ID: <20070630001138.6caeb745@the-village.bc.nu> (raw)
In-Reply-To: <20070629211434.GA21187@flint.arm.linux.org.uk>
> DMA to or from memory should be done via the DMA mapping API. If we're
> DMAing to/from a limited range within a page, either we should be using
> dma_map_single(), or dma_map_page() with an appropriate offset and size.
If those ranges overlap a cache line then the dma mapping API will not
save your backside.
On a system with a 32 byte cache granularity what happens if you get two
dma mapping calls for x and x+16. Right now the thing that avoids this
occurring is that the allocators don't pack stuff in that hard so x+16
always belongs to the same driver and we can hope driver authors are
sensible
> sizes, but they do happen. We handle this on ARM by writing back
> the overlapped lines and invalidating the rest before the DMA operation
> commences, and hope that the overlapped lines aren't touched for the
> duration of the DMA.)
The combination of "hope" and "DMA" isn't a good one for stable system
design. In this situation we should be waving large red flags
next prev parent reply other threads:[~2007-06-29 23:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-29 4:01 [PATCH] Containment measures for slab objects on scatter gather lists Christoph Lameter
2007-06-29 4:10 ` David Miller
2007-06-29 4:22 ` Christoph Lameter
2007-06-29 4:28 ` David Miller
2007-06-29 4:39 ` Christoph Lameter
2007-06-29 5:06 ` David Miller
2007-06-29 5:24 ` Andrew Morton
2007-06-29 5:37 ` David Miller
2007-06-29 5:45 ` Andrew Morton
2007-06-29 6:51 ` Christoph Lameter
2007-06-29 12:16 ` Alan Cox
2007-06-29 20:45 ` Andrew Morton
2007-06-29 21:14 ` Russell King
2007-06-29 23:11 ` Alan Cox [this message]
2007-06-30 7:54 ` Russell King
2007-06-29 22:39 ` Alan Cox
2007-06-29 6:50 ` Christoph Lameter
2007-06-30 8:49 ` Christoph Hellwig
2007-06-29 7:00 ` Christoph Lameter
2007-06-29 9:06 ` David Miller
2007-06-29 13:04 ` Hugh Dickins
2007-06-29 14:15 ` Christoph Lameter
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=20070630001138.6caeb745@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=James.Bottomley@steeleye.com \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=davem@davemloft.net \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+lkml@arm.linux.org.uk \
/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