From: vb <vb@vsbe.com>
To: "Roland Dreier" <rdreier@cisco.com>
Cc: Arnd Bergmann <arnd@arndb.de>, linuxppc-embedded@ozlabs.org
Subject: Re: mmap and ppc460gt
Date: Wed, 27 Aug 2008 17:21:28 -0700 [thread overview]
Message-ID: <f608b67d0808271721n374acb05kd842a884cc4bf5c@mail.gmail.com> (raw)
In-Reply-To: <adawsi2j8wt.fsf@cisco.com>
On Wed, Aug 27, 2008 at 5:11 PM, Roland Dreier <rdreier@cisco.com> wrote:
> > The problem now is that that PCI register space gets mapped with
> > caching enabled (by looking at the TLB contents), so I still can't
> > control the device. I did some search and indeed UIO device driver
> > came up, I'll read the article. I was wondering though if there is a
> > simpler way to modify cache attributes of a region. mmap() doesn't
> > seem to provide an interface for that, is there some other function to
> > call to configure 'cache inhibit' attribute for a region?
>
> The issue would be related to phys_mem_access_prot() not doing the right
> thing in this case. In fact it looks like the arch/powerpc
> page_is_ram() implementation has the same bug that I fixed a long time
> ago for arch/ppc in 8b150478 ("[PATCH] ppc: make phys_mem_access_prot()
> work with pfns instead of addresses"). I'll send a patch a little later
> that you can try out.
>
Ronald, I will appreciate the patch that very much!
TIA,
/vb
> - R.
>
next prev parent reply other threads:[~2008-08-28 0:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-27 2:26 mmap and ppc460gt vb
2008-08-27 3:24 ` Roland Dreier
2008-08-27 8:13 ` Arnd Bergmann
2008-08-27 23:13 ` vb
2008-08-28 0:11 ` Roland Dreier
2008-08-28 0:21 ` vb [this message]
2008-08-28 3:12 ` Roland Dreier
2008-08-28 3:47 ` vb
2008-08-28 10:36 ` Josh Boyer
2008-08-30 3:39 ` [PATCH] powerpc: Avoid integer overflow in page_is_ram() Roland Dreier
2008-09-01 0:27 ` Benjamin Herrenschmidt
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=f608b67d0808271721n374acb05kd842a884cc4bf5c@mail.gmail.com \
--to=vb@vsbe.com \
--cc=arnd@arndb.de \
--cc=linuxppc-embedded@ozlabs.org \
--cc=rdreier@cisco.com \
/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;
as well as URLs for NNTP newsgroup(s).