From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: EFI returning incorrect value?
Date: Tue, 26 Sep 2006 19:25:55 +0000 [thread overview]
Message-ID: <200609261325.55696.bjorn.helgaas@hp.com> (raw)
In-Reply-To: <004001c6e18c$972938d0$7401a8c0@Maelstrom>
On Tuesday 26 September 2006 10:55, JWM wrote:
> I've been trying to work through issues related to write combining on a
> Bull Ia64 system and something caught my attention.
> efi_range_is_wc returns a 0 - false or 1- true to say whether the
> address range is available for write combining.
> It calls efi_mem_attributes i.e.
>
> if(!(efi_mem_attributes(paddr) & EFI_MEMORY_WC))
> return 0;
That looks right to me. What problem do you see?
> However - the attribute returned from efi_mem_attributes is often 0 -
> which is defined as EFI_MEMORY_RUNTIME - or the range requires a runtime
> mapping. This doesn't seem to be what was wanted - unless EFI must have a
> mapping on this platform before WC is available for some reason.
EFI_MEMORY_RUNTIME is not zero:
#define EFI_MEMORY_RUNTIME ((u64)0x8000000000000000ULL)
The memory attributes EFI reports are independent of any kernel
virtual mappings.
What is your specific problem? What version of Linux are you using?
efi_mem_attribute() used to incorrectly return the attribute without
stripping out the EFI_MEMORY_RUNTIME bit. Is that part of the issue?
Can you post the EFI memory map (I think most implementations have
an EFI "memmap" command) and the specific WC mapping you need?
Bjorn
next prev parent reply other threads:[~2006-09-26 19:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-26 16:55 EFI returning incorrect value? JWM
2006-09-26 19:25 ` Bjorn Helgaas [this message]
2006-09-28 19:15 ` Bjorn Helgaas
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=200609261325.55696.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=linux-ia64@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