From: "Huang, Ying" <ying.huang@intel.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andi Kleen <andi@firstfloor.org>,
torvalds@osdl.org, tglx@linutronix.de,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix left over EFI cache mapping problems
Date: Fri, 15 Feb 2008 10:52:33 +0800 [thread overview]
Message-ID: <1203043953.30010.14.camel@caritas-dev.intel.com> (raw)
In-Reply-To: <20080214183819.GA19846@elte.hu>
On Thu, 2008-02-14 at 19:38 +0100, Ingo Molnar wrote:
> * Andi Kleen <andi@firstfloor.org> wrote:
>
> > > this is indeed a bug (we change the attributes for a larger area
> > > than needed), but your fix is unclean. Find below a cleaner
> > > solution.
> >
> > You're still ignoring the other problem of set_memory_uc() not
> > handling fixmap and ioremap correctly. [...]
>
> No, we did not ignore it, and yes, you are wrong.
>
> One thing that you miss is that the 64-bit EFI runtime has to be marked
> uncacheable only if it the EFI image attribute signals an uncacheable
> area:
>
> if (!(md->attribute & EFI_MEMORY_WB))
> set_memory_uc(md->virt_addr, md->num_pages);
>
> and Linux EFI does not support device EFI runtimes. So your observation,
> while correct for non-RAM 64-bit EFI images, is theoretical at the
> moment and has no practical relevance.
On my test machine, there is EFI runtime memory area with EFI_MEMORY_UC
attribute. The following is cut from the dmesg:
EFI: mem75: type=4, attr=0xf, range=[0x000000007f4ff000-0x000000007f500000) (0MB)
EFI: mem76: type=11, attr=0x8000000000000001, range=[0x00000000fed1c000-0x00000000fed20000) (0MB)
EFI: mem77: type=11, attr=0x8000000000000001, range=[0x00000000fffb0000-0x00000000fffb4000) (0MB)
Where:
attr is md->attribute,
#define EFI_MEMORY_RUNTIME 0x8000000000000000
#define EFI_MEMORY_UC 0x0000000000000001
But because end_pfn_map contains the above UC memory area, efi_ioremap()
is not used on EFI 64.
Best Regards,
Huang Ying
next prev parent reply other threads:[~2008-02-15 2:56 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-14 13:13 [PATCH] Fix left over EFI cache mapping problems Andi Kleen
2008-02-14 16:12 ` Ingo Molnar
2008-02-14 17:16 ` Andi Kleen
2008-02-14 18:38 ` Ingo Molnar
2008-02-14 21:42 ` Andi Kleen
2008-02-14 22:08 ` Arjan van de Ven
2008-02-14 23:01 ` Andi Kleen
2008-02-15 2:52 ` Huang, Ying [this message]
2008-02-15 8:55 ` Andi Kleen
2008-02-15 9:16 ` Huang, Ying
2008-02-15 4:48 ` Huang, Ying
2008-02-15 5:44 ` Linus Torvalds
2008-02-15 6:24 ` Huang, Ying
2008-02-15 7:30 ` Ingo Molnar
2008-02-15 7:08 ` Ingo Molnar
2008-02-15 7:32 ` Huang, Ying
2008-02-18 1:53 ` Huang, Ying
2008-02-18 11:26 ` Andi Kleen
2008-02-18 14:05 ` Ingo Molnar
2008-02-15 8:48 ` Andi Kleen
2008-02-15 9:21 ` Huang, Ying
2008-02-15 9:43 ` Andi Kleen
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=1203043953.30010.14.camel@caritas-dev.intel.com \
--to=ying.huang@intel.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.