All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: ying.huang@intel.com, mingo@elte.hu, tglx@linutronix.de,
	yhlu.kernel@gmail.com, steiner@sgi.com, travis@sgi.com,
	linux-kernel@vger.kernel.org, andi@firstfloor.org,
	akpm@linux-foundation.org
Subject: Re: [PATCH 4/8] x86 boot: allow overlapping ebda and efi memmap memory ranges
Date: Mon, 16 Jun 2008 12:37:21 -0500	[thread overview]
Message-ID: <20080616123721.bb9195e6.pj@sgi.com> (raw)
In-Reply-To: <48569D62.9050107@zytor.com>

hpa, replying to pj:
> >> Would you recommend doing this with code in arch/x86/kernel/head.c,
> >> that did not invoke reserve_ebda_region() if efi_enabled was set?
> 
> I disagree with it

Ok - that's clear.

So it would seem that I am getting conflicting advice.

One person recommends code that only makes this safety reservation of
the ebda region in the non-EFI case:

    if (!efi_enabled)
	reserve_ebda_region();

and the other recommends code that always makes this safety reservation,
and that handles the possible resulting overlap with the EFI memmap:

    if (!range_in_ebda_area(pmap, pmap + memmap.nr_map * memmap.desc_size))
	reserve_early(pmap, pmap + memmap.nr_map * memmap.desc_size,
	    "EFI memmap");

(The above code should be adjusted in light of Yinghai's suggestion
that it handle partial overlap.)

The resolution of this conflict might be easy, however.

I will readily accept that there exist some 'classic' PCs for which
we need to reserve a 'safe' ebda area.

The question to me is this.  Are there PCs which (1) need such a safety
reservation of an ebda area -and- (2) boot with EFI enabled?  I am not
asking if there -could- be (in the abstract, there certainly is no law
of government or physics prohibiting such).  Rather I am asking as a
practical matter if there is, or is likely to be, such PCs "in the wild."

The safety reservation of this ebda area is a hack.  As hacks go, it is
a rather gentle hack, but still it is a hack.  As such, it is to be
avoided unless there is a practical need.  Some non-efi old PCs have that
need - no debate there.

Should we perpeturate this (gentle) hack for EFI systems as well?

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.940.382.4214

  reply	other threads:[~2008-06-16 17:37 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-16  6:29 [PATCH 1/8] x86 boot: x86_64 build reserve_bootmem_generic fix Paul Jackson
2008-06-16  6:29 ` [PATCH 2/8] x86 boot: e820 code indentation fix Paul Jackson
2008-06-16  6:29 ` [PATCH 3/8] x86 boot: x86_64 efi compiler warning fix Paul Jackson
2008-06-16  6:30 ` [PATCH 4/8] x86 boot: allow overlapping ebda and efi memmap memory ranges Paul Jackson
2008-06-16  6:54   ` Yinghai Lu
2008-06-16  7:32     ` Paul Jackson
2008-06-16  7:34       ` Yinghai Lu
2008-06-16  8:31         ` Paul Jackson
2008-06-16  7:07   ` Huang, Ying
2008-06-16  8:24     ` Paul Jackson
2008-06-16  8:53       ` Huang, Ying
2008-06-16  9:09         ` Paul Jackson
2008-06-16  9:14           ` Huang, Ying
2008-06-16 15:48         ` H. Peter Anvin
2008-06-16 16:38           ` Paul Jackson
2008-06-16 17:05             ` H. Peter Anvin
2008-06-16 17:37               ` Paul Jackson [this message]
2008-06-16 17:41                 ` Yinghai Lu
2008-06-16 18:09                   ` Paul Jackson
2008-06-16 18:18                     ` H. Peter Anvin
2008-06-16 18:53                       ` Alan Cox
2008-06-16 19:58                         ` H. Peter Anvin
2008-06-16 17:46                 ` H. Peter Anvin
2008-06-16 18:05                   ` Paul Jackson
2008-06-17  1:00                     ` Huang, Ying
2008-06-16  6:30 ` [PATCH 5/8] x86 boot: remap efi systab runtime from phys to virt Paul Jackson
2008-06-16  7:02   ` Huang, Ying
2008-06-16  8:06     ` Paul Jackson
2008-06-16  8:27       ` Huang, Ying
2008-06-16  8:26         ` Paul Jackson
2008-06-16  6:30 ` [PATCH 6/8] x86 boot: virtualize the efi runtime function callback addresses Paul Jackson
2008-06-16  6:30 ` [PATCH 7/8] x86 boot: show pfn addresses in hex not decimal in some kernel info printks Paul Jackson
2008-06-16  7:05   ` Yinghai Lu
2008-06-16  8:09     ` Paul Jackson
2008-06-16  6:30 ` [PATCH 8/8] x86 boot: more consistently use type int for node ids Paul Jackson
2008-06-16  6:50 ` [PATCH 1/8] x86 boot: x86_64 build reserve_bootmem_generic fix Yinghai Lu
2008-06-16  8:40   ` Paul Jackson

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=20080616123721.bb9195e6.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=akpm@linux-foundation.org \
    --cc=andi@firstfloor.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=steiner@sgi.com \
    --cc=tglx@linutronix.de \
    --cc=travis@sgi.com \
    --cc=yhlu.kernel@gmail.com \
    --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 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.