From: Arjan van de Ven <arjan@infradead.org>
To: Felix Rubinstein <felixru@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: /dev/mem implementation
Date: Mon, 18 Jan 2010 07:16:07 -0800 [thread overview]
Message-ID: <20100118071607.17d954a2@infradead.org> (raw)
In-Reply-To: <af0693f01001180418h6344e4b2v64f82e54ab3d9241@mail.gmail.com>
On Mon, 18 Jan 2010 14:18:22 +0200
Felix Rubinstein <felixru@gmail.com> wrote:
> The usecase is broadcom 10GbE switch driver which maps DMA memory to
> userspace. I can find one more libe1000 which uses char driver to map
> DMA memory to userspace too.
> So, how can I implement userspace drivers in recent kernels which want
> to map DMA memory to userspace if STRICT_DEVMEM or PAT (either of
> them) are enabled.
for these cases the driver should provide it's own mmap method that
exposes only those pages that the hardware has access to. You need
something like this anyway to deal with the dma mapping api....
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
prev parent reply other threads:[~2010-01-18 15:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-17 16:47 /dev/mem implementation Felix Rubinstein
2010-01-17 17:40 ` Arjan van de Ven
2010-01-18 10:22 ` Andi Kleen
2010-01-18 12:18 ` Felix Rubinstein
2010-01-18 15:16 ` Arjan van de Ven [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=20100118071607.17d954a2@infradead.org \
--to=arjan@infradead.org \
--cc=felixru@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.