From: Paul Mackerras <paulus@samba.org>
To: Christoph Raisch <RAISCH@de.ibm.com>
Cc: Roland Dreier <rdreier@cisco.com>,
linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org,
openib-general@openib.org
Subject: Re: [PATCH 2.6.19 2/4] ehca: hcp_phyp.c: correct page mapping in 64k page mode
Date: Thu, 9 Nov 2006 17:36:39 +1100 [thread overview]
Message-ID: <17746.52343.815568.368590@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <OF60EFC2CD.F8FB1D23-ONC1257220.00315F90-C1257220.0038B8E3@de.ibm.com>
Christoph Raisch writes:
> ioremap maps 4k pages on 4k kernels and on 64k pages on 64k kernels. So far
> the theory.
>
> This is true for memory.
And for I/O. :) ioremap updates the (Linux) page tables that map the
vmalloc/ioremap area, and that is at page granularity. So there is in
fact no difference in the end result in the page tables whether you
ask to map a small amount inside a page, or the whole page.
> On POWER the ebus memory is mapped by H_ENTER.
> The hypervisor checks for 4k page size on H_ENTER, reason see above.
The next part of the story is that the low-level MMU code on System-P
(pSeries) machines only does the H_ENTER when you access an I/O
mapping. It does H_ENTER for 4k pages for non-cacheable mappings,
and it only does the H_ENTER for the 4k subpages of a 64k page that
the kernel actually accesses.
So Roland is correct in his comment about how ioremap is called.
Regards,
Paul.
next prev parent reply other threads:[~2006-11-09 21:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-05 20:41 Hoang-Nam Nguyen
2006-11-07 19:25 ` Roland Dreier
2006-11-08 10:22 ` Christoph Raisch
2006-11-08 22:06 ` Roland Dreier
2006-11-09 6:36 ` Paul Mackerras [this message]
2006-11-09 21:58 ` Roland Dreier
2006-11-10 7:49 ` [openib-general] " Christoph Raisch
2006-11-10 8:46 ` Paul Mackerras
2006-11-13 16:39 ` Roland Dreier
2006-11-13 16:40 ` Christoph Raisch
2006-11-13 16:40 ` Roland Dreier
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=17746.52343.815568.368590@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=RAISCH@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=openib-general@openib.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
all inboxes | Powered by JetHome®