All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Daney <ddaney@caviumnetworks.com>
To: Ed Okerson <ed.okerson@gmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: mmap KSEG1
Date: Fri, 04 Dec 2009 10:12:18 -0800	[thread overview]
Message-ID: <4B195102.1020606@caviumnetworks.com> (raw)
In-Reply-To: <83f0348b0912040952h40d4d151n79ca5fc33a830ee2@mail.gmail.com>

Ed Okerson wrote:
> Is it possible to mmap an address in KSEG1 so a user space app can
> read/write to an IO device uncached?
> 

It depends on your definition of 'possible'.  The mips32/64 architecture 
specification has a 'C' field in the EntryLo register that controls 
cachability, so given an appropriate device driver it should be doable.

Calling  __ioremap() with the appropriate flags should allow you to set 
the 'C' bits.

Depending on your requirements, you might be able to get by using 
/dev/mem and some 'sync' instructions, instead of establishing an 
uncached mapping.


David Daney

  reply	other threads:[~2009-12-04 18:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04 17:52 mmap KSEG1 Ed Okerson
2009-12-04 18:12 ` David Daney [this message]
2009-12-04 18:33 ` Thomas Bogendoerfer

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=4B195102.1020606@caviumnetworks.com \
    --to=ddaney@caviumnetworks.com \
    --cc=ed.okerson@gmail.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 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.