From: ebiederm@xmission.com (Eric W. Biederman)
To: Andi Kleen <ak@suse.de>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i386, x86_64 Initial PAT implementation
Date: Mon, 29 Aug 2005 19:49:18 -0600 [thread overview]
Message-ID: <m1ll2kmbxd.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <200508300230.39844.ak@suse.de> (Andi Kleen's message of "Tue, 30 Aug 2005 02:30:39 +0200")
Andi Kleen <ak@suse.de> writes:
> On Tuesday 30 August 2005 02:20, Eric W. Biederman wrote:
>> PAT (or setting caching policy in the page table entries) has been a
>> long desired feature in the kernel and as large memory sizes become
>> more prevalent it becomes increasingly hard to specify all of the
>> regions that need write-back caching with just 8 MTRRs much less add
>> in the write-combining regions.
>
> [...]
>
> I don't think it's a good idea to provide the APIs for write combing
> to drivers without offering the facilities to avoid aliasing. Because
> otherwise we will need to change the API later anyways and there
> might be code creep with driver source using old unsafe accesses.
> So I would not merge it right now until it is more fully developed.
Everything I have provided is already there on some other architecture.
Even the possibility for aliasing is already there on x86.
How does my patch make anything worse?
Andy what do you expect to see as a solution to the aliasing problem?
Andy do you have any problem with my patch besides it does not
solve a theoretical problem it does not even introduce?
We need to get this at least into something like -mm where the community
can review the code and do development. Denying the code access to more
eyes sounds does not look like a way to solve the problem.
As best I can tell guaranteeing that we do not do aliasing is a totally separate
problem from PAT and it should be solved that way.
This is a practical problem for me. I have hardware where mtrrs
cannot be used to both map memory and setup all of the WC memory
regions I need. So this patch solves a real problem at a very minimal
impact to the kernel.
The only way I can imagine the infrastructure working with the drivers in
control (without rewriting all of the existing drivers) is to have
ioremap and io_remap_pfn_range fail when presented with an attempt
to map the same physical memory with different attributes. So from
that perspective we already have enough infrastructure to do
something.
The only real problems exist when you mix WB and (UC or WC) and I have only
made access to WC easier. Who is going to call ioremap or
io_remap_pfn_range on ram?
Eric
next prev parent reply other threads:[~2005-08-30 1:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-30 0:20 [PATCH] i386, x86_64 Initial PAT implementation Eric W. Biederman
[not found] ` <200508300230.39844.ak@suse.de>
2005-08-30 1:49 ` Eric W. Biederman [this message]
[not found] ` <200508300412.55027.ak@suse.de>
2005-08-30 6:21 ` solving page table access attribute aliasing Eric W. Biederman
[not found] ` <200508301714.35017.ak@suse.de>
2005-08-30 15:50 ` Eric W. Biederman
2005-08-30 14:45 ` [PATCH] i386, x86_64 Initial PAT implementation Alan Cox
2005-08-30 14:50 ` Andi Kleen
2005-08-30 15:31 ` Mikael Pettersson
2005-08-30 16:01 ` Eric W. Biederman
2005-08-30 15:20 ` Eric W. Biederman
[not found] ` <200508301748.50941.ak@suse.de>
2005-08-30 16:06 ` Eric W. Biederman
2005-08-30 17:06 ` Dave Jones
2005-08-31 1:39 ` Eric W. Biederman
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=m1ll2kmbxd.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@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