public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Yinghai Lu <yinghai@kernel.org>
To: Huang Ying <ying.huang@intel.com>
Cc: Brian Maly <bmaly@redhat.com>, Ingo Molnar <mingo@elte.hu>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Fix e820 end address with EFI
Date: Sun, 01 Mar 2009 18:32:01 -0800	[thread overview]
Message-ID: <49AB4521.8010909@kernel.org> (raw)
In-Reply-To: <1235960708.6204.176.camel@yhuang-dev.sh.intel.com>

Huang Ying wrote:
> On Mon, 2009-03-02 at 10:16 +0800, Yinghai Lu wrote:
>> Huang Ying wrote:
>>> On Mon, 2009-03-02 at 09:39 +0800, Brian Maly wrote:
>>>> Huang Ying wrote: 
>>>>> Hi, Brian,
>>>>>
>>>>> On Mon, 2009-03-02 at 04:13 +0800, Brian Maly wrote:
>>>>>   
>>>>>> I was able verify the kernel that does not boot on the MacBook (vanilla 
>>>>>> 2.6.29-rc4) does call efi_ioremap() which bails out early returning 
>>>>>> NULL. So no remapping happens in this case.  I have no idea if 
>>>>>> efi_ioremap ever does succeed in mapping any ranges though being I have 
>>>>>> no video or console this early in the boot and have to rely on triple 
>>>>>> faulting as a means of debugging.
>>>>>>     
>>>>> Please attach your dmesg of successful boot, so we can take a look at
>>>>> the EFI memory map.
>>>>>
>>>>> Best Regards,
>>>>> Huang Ying
>>>>>   
>>>> This dmesg is from a 2.6.25 kernel which works fine. I can gather
>>>> other debugging info from the booting kernels if needed. But its a
>>>> challenge to debug the bad kernel being efifb is initialized very late
>>>> (so you never even get to the video initialization and cant see any
>>>> logged messages) and since its a MacBook I dont have a real serial
>>>> port for serial console. The efi map is for MacBook has a different
>>>> layout from other EFI systems I have to test on. 2.6.29 kernel works
>>>> on every EFI system I have except MacBook.
>>> It seems that you have an EFI system which has too big runtime area.
>>>
>>> EFI: mem44: type=0, attr=0x8000000000000000, range=[0x000000007ff00000-0x0000000080000000) (1MB)
>>>
>>> efi_ioremap() can map only memory range < 400k now.
>>>
>>> It seems that efi_ioremap is the bottle net now. Can we just use
>>> init_memory_mapping() instead of efi_ioremap() for EFI runtime area?
>>>
>>> Yinghai, how about your opinion?
>> you could call init_memory_maping() in that efi_ioremap position?
>>
>> problems is how about 32bit?
> 
> efi_ioremap() is defined as ioremap_cache() on 32bit system. As that in
> arch/x86/include/asm/efi.h.
> 
> On 64bit system, efi_ioremap() can be a wrapper for
> init_memory_mapping(). Do you think it is appropriate?

so 64bit could use ioremap_cache() too?
we may keep 32bit and 64bit a bit consistent.

YH

  reply	other threads:[~2009-03-02  2:33 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-28 16:26 [PATCH] Fix e820 end address with EFI Brian Maly
2009-03-01  4:14 ` Yinghai Lu
2009-03-01  5:42   ` Yinghai Lu
2009-03-01 18:44     ` Brian Maly
2009-03-01 20:13     ` Brian Maly
2009-03-01 20:16       ` Yinghai Lu
2009-03-02  1:07       ` Huang Ying
2009-03-02  1:41         ` Brian Maly
2009-03-02  1:45         ` Brian Maly
     [not found]         ` <49AB38E7.60305@redhat.com>
2009-03-02  2:13           ` Huang Ying
2009-03-02  2:16             ` Yinghai Lu
2009-03-02  2:25               ` Huang Ying
2009-03-02  2:32                 ` Yinghai Lu [this message]
2009-03-02  2:37                   ` Huang Ying
2009-03-02  2:51                     ` Yinghai Lu
2009-03-02  7:45                       ` Huang Ying
2009-03-02 21:38                         ` Yinghai Lu
2009-03-03  1:07                           ` Huang Ying
2009-03-03  1:28                             ` Yinghai Lu
2009-03-03  2:22                               ` Huang Ying
2009-03-03  2:53                                 ` Yinghai Lu
2009-03-03  3:06                                   ` Huang Ying
2009-03-03  3:57                                     ` Yinghai Lu
2009-03-03  5:32                                       ` Huang Ying
2009-03-03  5:37                                         ` Yinghai Lu
2009-03-03  5:40                                           ` Huang Ying
2009-03-03  5:51                                             ` Yinghai Lu
2009-03-03  6:37                                               ` Huang Ying
2009-03-03  7:36                                                 ` [PATCH] x86: make init_memory_mapping could handle small range Yinghai Lu
2009-03-03  7:51                                                   ` [tip:x86/urgent] x86: fix init_memory_mapping() to handle small ranges Yinghai Lu
2009-03-02  2:57                     ` [PATCH] Fix e820 end address with EFI Brian Maly
2009-03-02  3:06                       ` Huang Ying

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=49AB4521.8010909@kernel.org \
    --to=yinghai@kernel.org \
    --cc=bmaly@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=ying.huang@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