linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Matt Fleming <matt@console-pimps.org>
Cc: Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org, Matthew Garrett <mjg@redhat.com>,
	Zhang Rui <rui.zhang@intel.com>,
	Huang Ying <huang.ying.caritas@gmail.com>,
	Keith Packard <keithp@keithp.com>,
	Matt Fleming <matt.fleming@intel.com>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] x86, efi: Delete efi_ioremap() and fix CONFIG_X86_32 oops
Date: Mon, 27 Feb 2012 18:33:23 -0800	[thread overview]
Message-ID: <4F4C3CF3.9030804@zytor.com> (raw)
In-Reply-To: <1329744626-5036-1-git-send-email-matt@console-pimps.org>

On 02/20/2012 05:30 AM, Matt Fleming wrote:
> 
> Despite first impressions, it's not possible to use ioremap_cache() to
> map all cached memory regions on CONFIG_X86_64 because of the way that
> the memory map might be configured as detailed in the following bug
> report,
> 
> 	https://bugzilla.redhat.com/show_bug.cgi?id=748516
> 
> Therefore, we need to ensure that any regions requiring a runtime
> mapping are covered by the direct kernel mapping table. Previously,
> this was taken care of by efi_ioremap() but if we handle this case
> earlier, in setup_arch(), we can delete the CONFIG_X86_32 and
> CONFIG_X86_64 efi_ioremap() implementations entirely.
> 

I went through the bug report but it's not entirely clear to me what the
fundamental root cause of the problem is, as opposed to what are
symptoms.  We need to straighten this out, and we need to do so fairly soon.

It would seem logical that we include in the kernel memory mapping the
regions we need, and *ONLY* the regions necessary; in particular we
shouldn't include *any* memory holes except for the < 1 MiB legacy
region (which is okay because of fixed MTRRs, but even that should be
eventually nuked.  That will require driver work hough.)

As I said, in a lot of ways the right thing would be for ioremap() to
manifest mappings in the standard 1:1 position, but when I very very
briefly looked at it it look ed like that would require core changes
which probably makes it too much work.

	-hpa



-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.


  parent reply	other threads:[~2012-02-28  2:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20 13:30 [PATCH] x86, efi: Delete efi_ioremap() and fix CONFIG_X86_32 oops Matt Fleming
2012-02-23  1:16 ` [tip:x86/urgent] " tip-bot for Matt Fleming
2012-02-23  2:20   ` Yinghai Lu
2012-02-23  3:32     ` H. Peter Anvin
2012-02-23 10:36       ` Yinghai Lu
2012-02-24  4:47         ` H. Peter Anvin
2012-02-28  2:27           ` H. Peter Anvin
2012-03-07 10:30             ` Matt Fleming
2012-03-07 18:05               ` Yinghai Lu
2012-03-08 11:28                 ` Matt Fleming
2012-03-08 18:59                   ` Yinghai Lu
2012-03-12 12:38                     ` Matt Fleming
2012-03-13  5:39                       ` Yinghai Lu
2012-03-15 12:40                         ` Matt Fleming
2012-03-15 17:54                           ` Yinghai Lu
2012-03-16 18:36                             ` Matt Fleming
2012-03-16 19:01                               ` Yinghai Lu
2012-03-07 18:14               ` Yinghai Lu
2012-03-07 18:18                 ` Matthew Garrett
2012-03-08 12:09                 ` Matt Fleming
2012-03-04  0:12   ` Keith Packard
2012-03-04  0:27     ` H. Peter Anvin
2012-03-04  1:33       ` Keith Packard
2012-03-05 10:45         ` Ingo Molnar
2012-03-07 18:31           ` Yinghai Lu
2012-03-05 11:48         ` Matt Fleming
2012-02-28  2:33 ` H. Peter Anvin [this message]
2012-02-28 17:35   ` [PATCH] " Matt Fleming

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=4F4C3CF3.9030804@zytor.com \
    --to=hpa@zytor.com \
    --cc=huang.ying.caritas@gmail.com \
    --cc=keithp@keithp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matt.fleming@intel.com \
    --cc=matt@console-pimps.org \
    --cc=mingo@elte.hu \
    --cc=mjg@redhat.com \
    --cc=rui.zhang@intel.com \
    --cc=tglx@linutronix.de \
    /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).