All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Christian Leber <christian@leber.de>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Problem with remap_page_range/mmap
Date: Fri, 26 Mar 2004 09:46:56 +0000	[thread overview]
Message-ID: <20040326094656.A3812@infradead.org> (raw)
In-Reply-To: <20040326093619.GA15965@core.home>; from christian@leber.de on Fri, Mar 26, 2004 at 10:36:19AM +0100

On Fri, Mar 26, 2004 at 10:36:19AM +0100, Christian Leber wrote:
> It also didn´t work with PG_reserved.
> 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.
> 
> What is the reason why it doesn´t work? There seems to be no special
> 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.


  reply	other threads:[~2004-03-26  9:46 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 [this message]
2004-03-26  9:58       ` Hugang

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=20040326094656.A3812@infradead.org \
    --to=hch@infradead.org \
    --cc=christian@leber.de \
    --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.