From: "Hans-Jürgen Koch" <hjk@linutronix.de>
To: Gleb Natapov <glebn@voltaire.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: uio and DMA memory allocations
Date: Sun, 17 Dec 2006 19:16:42 +0100 [thread overview]
Message-ID: <200612171916.43534.hjk@linutronix.de> (raw)
In-Reply-To: <20061217150445.GC11360@minantech.com>
Am Sonntag, 17. Dezember 2006 16:04 schrieb Gleb Natapov:
> Hi Hans,
>
> Will it be possible to allocate DMAable memory using uio
> framework (currently it isn't as far as I see). More specifically
> if a driver needs memory allocated with dma_alloc_coherent() will
> it be possible to allocate it and map into userspace using uio?
Hi Gleb,
I didn't write such a driver yet, but it is certainly possible.
As a first thought, I think we need a small change in the uio
framework mmap routine. AFAIK, dma_alloc_coherent() returns a
kernel virtual address that would not be handled properly by
the existing code. At the moment, we only have the choice between
logical and physical memory, we probably have to add virtual
memory, too. Thanks for that hint, I'll keep it in mind.
Hans
prev parent reply other threads:[~2006-12-17 18:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-17 15:04 uio and DMA memory allocations Gleb Natapov
2006-12-17 18:16 ` Hans-Jürgen Koch [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=200612171916.43534.hjk@linutronix.de \
--to=hjk@linutronix.de \
--cc=glebn@voltaire.com \
--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