From: Ingo Molnar <mingo@elte.hu>
To: Nick Piggin <npiggin@suse.de>
Cc: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>,
"Siddha, Suresh B" <suresh.b.siddha@intel.com>,
"andi@firstfloor.org" <andi@firstfloor.org>,
tglx@linutronix.de, linux-kernel@vger.kernel.org,
mingo@redhat.com, hpa@zytor.com,
Arjan van de Ven <arjan@infradead.org>
Subject: Re: [rfc][patch] x86: avoid highmem cache attribute aliasing
Date: Mon, 11 Aug 2008 19:10:19 +0200 [thread overview]
Message-ID: <20080811171019.GK4524@elte.hu> (raw)
In-Reply-To: <20080801011521.GB20407@wotan.suse.de>
* Nick Piggin <npiggin@suse.de> wrote:
> Highmem code can leave ptes and tlb entries around for a given page
> even after kunmap, and after it has been freed.
>
> From what I can gather, the PAT code may change the cache attributes
> of arbitrary physical addresses (ie. including highmem pages), which
> would result in aliases in the case that it operates on one of these
> lazy tlb highmem pages.
>
> Flushing kmaps should solve the problem.
>
> I've also just added code for conditional flushing if we haven't got
> any dangling highmem aliases -- this should help performance if we
> change page attributes frequently or systems that aren't using much
> highmem pages (eg. if < 4G RAM). Should be turned into 2 patches, but
> just for RFC...
hm, such aliasing might happen in theory - and i guess in practice too
if the AGP driver allocates/deallocates aperture in short succession.
Maybe this could corrupt the X framebuffer - or even generic kernel RAM.
Mind resending the two split up patches? The fix we might want to take
into v2.6.27, the speedup probably for v2.6.28.
But maybe i'm missing something obvious that prevents such problems on
32-bit systems - Venki, Suresh, what do you think?
Ingo
next prev parent reply other threads:[~2008-08-11 17:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-01 1:15 [rfc][patch] x86: avoid highmem cache attribute aliasing Nick Piggin
2008-08-11 17:10 ` Ingo Molnar [this message]
2008-08-11 19:09 ` Suresh Siddha
2008-08-15 15:22 ` Ingo Molnar
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=20080811171019.GK4524@elte.hu \
--to=mingo@elte.hu \
--cc=andi@firstfloor.org \
--cc=arjan@infradead.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=npiggin@suse.de \
--cc=suresh.b.siddha@intel.com \
--cc=tglx@linutronix.de \
--cc=venkatesh.pallipadi@intel.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