public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jes Sorensen <jes@sgi.com>
To: carsteno@de.ibm.com
Cc: Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
	linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org,
	Christoph Hellwig <hch@lst.de>
Subject: Re: [patch] mspec - special memory driver and do_no_pfn handler
Date: Fri, 17 Mar 2006 14:58:06 +0100	[thread overview]
Message-ID: <441AC06E.1090909@sgi.com> (raw)
In-Reply-To: <441ABEDD.4070003@de.ibm.com>

Carsten Otte wrote:
> Jes Sorensen wrote:
>> Index: linux-2.6/include/linux/mm.h
>> ===================================================================
>> --- linux-2.6.orig/include/linux/mm.h
>> +++ linux-2.6/include/linux/mm.h
>> @@ -199,6 +199,7 @@
>>  	void (*open)(struct vm_area_struct * area);
>>  	void (*close)(struct vm_area_struct * area);
>>  	struct page * (*nopage)(struct vm_area_struct * area, unsigned long address, int *type);
>> +	long (*nopfn)(struct vm_area_struct * area, unsigned long address, int *type);
>>  	int (*populate)(struct vm_area_struct * area, unsigned long address, unsigned long len, pgprot_t prot, unsigned long pgoff, int nonblock);
>>  #ifdef CONFIG_NUMA
>>  	int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
> If you use address as parameter to nopfn, it won't work with highmem
> on 32bit systems. Alternative would be to use (unsigned long) phys. page
> frame number.

Hi Carsten,

The address comes from handle_pte_fault() passing it to do_no_pfn()
passing it to ->nopfn(), ie. it's the faulted address, not the physical
one.

> Your work in memory.c looks like the right thing to do.
> Afaics it will work for xip as well once I figure how to
> do COW. Cool stuff :-).

:-)

Cheers,
Jes



      parent reply	other threads:[~2006-03-17 13:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-16 16:55 [patch] mspec - special memory driver and do_no_pfn handler Jes Sorensen
2006-03-17  0:37 ` Andrew Morton
2006-03-17  1:04   ` Linus Torvalds
2006-03-17  2:13     ` Robin Holt
2006-03-17  4:58     ` Benjamin Herrenschmidt
2006-03-17  9:15       ` Jes Sorensen
2006-03-17 13:29         ` Carsten Otte
2006-03-17 18:03           ` Christoph Hellwig
2006-03-17  9:42     ` Jes Sorensen
2006-03-17 12:29     ` Carsten Otte
2006-03-17 12:28   ` [patch 1/2] do_no_pfn handler (was: Re: [patch] mspec - special memory driver and do_no_pfn handler) Jes Sorensen
2006-03-17 12:38   ` [patch 2/2] mspec driver " Jes Sorensen
2006-03-17 13:36     ` [patch 2/2] mspec driver Nick Piggin
2006-03-17 14:04       ` Jes Sorensen
2006-03-17 14:09         ` Nick Piggin
2006-03-17 14:11           ` Jes Sorensen
2006-03-17 14:16             ` Nick Piggin
2006-03-17 13:51 ` [patch] mspec - special memory driver and do_no_pfn handler Carsten Otte
2006-03-17 13:53   ` Carsten Otte
2006-03-17 13:56   ` Nick Piggin
2006-03-17 13:58   ` Jes Sorensen [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=441AC06E.1090909@sgi.com \
    --to=jes@sgi.com \
    --cc=akpm@osdl.org \
    --cc=carsteno@de.ibm.com \
    --cc=hch@lst.de \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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