All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hugang <hugang@soulinfo.com>
To: Christoph Hellwig <hch@infradead.org>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Problem with remap_page_range/mmap
Date: Fri, 26 Mar 2004 17:58:29 +0800	[thread overview]
Message-ID: <20040326175829.083d7e72@localhost> (raw)
In-Reply-To: <20040326094656.A3812@infradead.org>

On Fri, 26 Mar 2004 09:46:56 +0000
Christoph Hellwig <hch@infradead.org> wrote:

> On Fri, Mar 26, 2004 at 10:36:19AM +0100, Christian Leber wrote:
> > What would be the good idea? I need at least 8 at least 4MB (2MB are
> > enough for 2.4) big physical memory pieces for DMA, mapped to
> > userspace.
> > 
> > remap_page_range for ia64.
> 
> Put the page structs into an array and return them from ->nopage.  The
> kernel pagefault code will set up the ptes for you.
> 
> Now actually getting 4MB of continguous memory is a different issue..
> 
> I'm surprised you actually managed to get the allocation to succeed.

There is more detailed information about make page usable to user space,
http://www.xml.com/ldd/chapter/book/ch13.html

Hope that's useful.

-- 
Hu Gang / Steve
Linux Registered User 204016
GPG Public Key: http://soulinfo.com/~hugang/hugang.asc

      reply	other threads:[~2004-03-26 10:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-25 23:48 Problem with remap_page_range/mmap Christian Leber
2004-03-26  7:17 ` Christoph Hellwig
2004-03-26  9:36   ` Christian Leber
2004-03-26  9:46     ` Christoph Hellwig
2004-03-26  9:58       ` Hugang [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=20040326175829.083d7e72@localhost \
    --to=hugang@soulinfo.com \
    --cc=hch@infradead.org \
    --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.