linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: jamie@shareable.org (Jamie Lokier)
To: linux-arm-kernel@lists.infradead.org
Subject: mapping uncached memory
Date: Wed, 17 Mar 2010 04:34:57 +0000	[thread overview]
Message-ID: <20100317043457.GA31847@shareable.org> (raw)
In-Reply-To: <20100316235422.GC13948@n2100.arm.linux.org.uk>

Russell King - ARM Linux wrote:
> Note that the whole "DMA to user mapped pages" issue is a _big_ can of
> worms and doesn't appear to have any sane and non-expensive solutions.

I'm still worried about whether this means certain programs,
especially well-known open source databases, are broken on some ARMs
when they use O_DIRECT file access.

Fyi, O_DIRECT is flag to open(), mostly used by databases and programs
like QEMU, and sometimes from scripts using "dd oflag=direct" and "dd
iflag=direct".

It tells the kernel that reads and writes are to bypass the page
cache.  That causes DMA to happen between the userspace buffers given
to read() and write(), and the disk interface.

Unfortunately, this isn't some obscure specialised driver interface :-(

-- Jamie

  reply	other threads:[~2010-03-17  4:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-16 23:17 mapping uncached memory Budhee Jamaich
2010-03-16 23:54 ` Russell King - ARM Linux
2010-03-17  4:34   ` Jamie Lokier [this message]
2010-03-17  8:02   ` Budhee Jamaich
2010-03-17  8:15     ` Russell King - ARM Linux
2010-03-17  9:09       ` Budhee Jamaich
2010-03-17 21:26       ` Colin Cross
2010-03-17 22:03         ` Catalin Marinas
2010-03-23 12:22   ` Budhee Jamaich

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=20100317043457.GA31847@shareable.org \
    --to=jamie@shareable.org \
    --cc=linux-arm-kernel@lists.infradead.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).