mapping uncached memory

Jamie Lokier jamie at shareable.org
Wed Mar 17 00:34:57 EDT 2010


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



More information about the linux-arm-kernel mailing list