From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Trent Piepho <tpiepho@freescale.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [RFC/PATCH 1/2] powerpc: Rework usage of _PAGE_COHERENT/NO_CACHE/GUARDED
Date: Thu, 11 Dec 2008 10:35:55 +1100 [thread overview]
Message-ID: <1228952156.22413.101.camel@pasglop> (raw)
In-Reply-To: <Pine.LNX.4.64.0812101416350.28806@t2.domain.actdsltmp>
> In the code that does the mapping. It's a lot cheaper to figure out if
> _PAGE_COHERENT is needed once per mapping instead of per page per fault.
What do you mean by "code that does the mapping" ?
The OR'ing or AND'ing out of one bit is pretty cheap regardless, so "a
lot cheaper" is very relative ;-) In the hash code, I doubt the
difference is even measurable.
> It sounds like getting it right is a lot more complicated than just one
> instruction. No M bit for non-SMP, except for some 74xx, or if a MPC107
> bridge is used, which should be determined at runtime. And does the MPC107
> thing apply to all pages or just those PCI memory behind the bridge? Or
> DMA?
It should really only apply to DMA, that is all RAM pages.
> > Well, because we need it set on non SMP on some 74xx.. maybe we can
> > have it set in PAGE_BASE only if CONFIG_SMP and CONFIG_6xx ?
>
> That's what I was thinking, set it in page base for SMP and other instances
> when we know it's necessary at compile time. If/when there is a runtime
> check, then it would be lot easier to put that check in the code that made
> the mapping instead of the miss handler.
What do you mean by "the code that made the mapping" ? I still don't get
it.
> It's rather new so I bet X servers that use it aren't widely deployed yet.
If at all :-)
> commit 45aec1ae72fc592f231e9e73ed9ed4d10cfbc0b5
> Author: venkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
> Date: Tue Mar 18 17:00:22 2008 -0700
>
> x86: PAT export resource_wc in pci sysfs
>
> Patch title is somewhat misleading, as it doesn't touch any x86 specific
> code. And people complain when I used booke instead of fsl-booke... like
> I want to make it any easier to have patches ignored.
Hehe,
Cheers,
Ben.
prev parent reply other threads:[~2008-12-10 23:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 5:50 [RFC/PATCH 1/2] powerpc: Rework usage of _PAGE_COHERENT/NO_CACHE/GUARDED Benjamin Herrenschmidt
2008-12-10 19:33 ` Trent Piepho
2008-12-10 20:42 ` Benjamin Herrenschmidt
2008-12-10 22:55 ` Trent Piepho
2008-12-10 23:35 ` Benjamin Herrenschmidt [this message]
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=1228952156.22413.101.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=tpiepho@freescale.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).