Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Jun Sun <jsun@mvista.com>
To: Teresa Tao <Teresat@tridentmicro.com>
Cc: linux-mips@linux-mips.org, jsun@mvista.com
Subject: Re: mmap'ed memory cacheable or uncheable
Date: Mon, 28 Jul 2003 14:24:01 -0700	[thread overview]
Message-ID: <20030728142401.K25784@mvista.com> (raw)
In-Reply-To: <61F6477DE6BED311B69F009027C3F58403AA396F@EXCHANGE>; from Teresat@tridentmicro.com on Fri, Jul 25, 2003 at 03:52:33PM -0700

On Fri, Jul 25, 2003 at 03:52:33PM -0700, Teresa Tao wrote:
> How about if I specify the following flags in my mmap routine just like what the pgprot_noncached micro did.
> 	pgprot_val(vma->vm_page_prot) &= ~_CACHE_MASK;
> 	pgprot_val(vma->vm_page_prot) |= _CACHE_UNCACHED;
> 
> Will this have kernel make the mmap'd memory non-cacheable? Or is there a mmap non-cacheable patch?
>

I think this might work.  Did you try it?  The performance will be bad
though as mmap() is used widely by userland.

Jun

  parent reply	other threads:[~2003-07-28 21:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-25 22:52 mmap'ed memory cacheable or uncheable Teresa Tao
2003-07-25 22:52 ` Teresa Tao
2003-07-28 21:24 ` Jun Sun [this message]
2003-07-29 16:09   ` Maciej W. Rozycki
  -- strict thread matches above, loose matches on Subject: below --
2003-07-25  3:26 Teresa Tao
2003-07-25  3:26 ` Teresa Tao
2003-07-25 22:02 ` Jun Sun
2003-07-31 11:31 ` Ralf Baechle

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=20030728142401.K25784@mvista.com \
    --to=jsun@mvista.com \
    --cc=Teresat@tridentmicro.com \
    --cc=linux-mips@linux-mips.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