From: Stuart MENEFY <stuart.menefy@st.com>
To: linux-sh@vger.kernel.org
Subject: Re: ioremap() on SH
Date: Fri, 15 Feb 2008 13:15:48 +0000 [thread overview]
Message-ID: <47B59084.2030309@st.com> (raw)
In-Reply-To: <cda58cb80802140636i69449582v6ecc03449df46b02@mail.gmail.com>
Franck Bui-Huu wrote:
> Paul Mundt wrote:
>> 0xa000000 is the P2 base, which is the uncached start. In this case
>> PXSEG(0xa0000000) = 0xa0000000, so it depends on what you specify as the
>> ioremap flags. If you want a cacheable mapping, you will get back
>> 0x80000000 which is the cached equivalent of that address. If you want it
>> uncached, you will get back 0xa0000000. 0x80000000 and 0xa0000000 point
>> at exactly the same thing, just with different caching attributes.
>>
>
> Do you think that such mapping is correct ?
>
> That is to access a device at 0xa000 0000 (physical address), I can use
> the virtual address 0xa000 0000 or 0x8000 0000 ?
0xa000 0000 is not a 'correct' physical address in 29 bit mode. In this
example you should really be using physical 0. However traditionally
the SH kernel allowed this because in 29 bit mode it is not ambiguous.
In 32 bit mode this all changes. 0xa000 0000 is now a legitimate physical
address, and needs to be mapped using the TLB or PMB. The current
git kernel doesn't support ioremap for these addresses.
Stuart
next prev parent reply other threads:[~2008-02-15 13:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-14 14:36 ioremap() on SH Franck Bui-Huu
2008-02-14 14:57 ` Paul Mundt
2008-02-14 16:42 ` Franck Bui-Huu
2008-02-14 17:09 ` Paul Mundt
2008-02-14 19:39 ` Franck Bui-Huu
2008-02-15 13:15 ` Stuart MENEFY [this message]
2008-02-15 21:12 ` Franck Bui-Huu
2008-02-18 13:44 ` Stuart MENEFY
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=47B59084.2030309@st.com \
--to=stuart.menefy@st.com \
--cc=linux-sh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox