All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Cc: Jordi Mallach <jordi@gnu.org>
Subject: Re: memory management issue (Re: another regression on Efika)
Date: Wed, 25 Jul 2007 22:08:05 +0200	[thread overview]
Message-ID: <20070725200805.GA17393@aragorn> (raw)
In-Reply-To: <fb412d760707251051u3b07dc32l1a5642fbee9bd8b4@mail.gmail.com>

On Wed, Jul 25, 2007 at 12:51:27PM -0500, Hollis Blanchard wrote:
> 
> I was indeed trying to make it absolute. GRUB is linked at 0x10000, or
> 64KB. Add in all the modules and you still are only using a couple
> hundred KB.

But if GRUB is linked at 0x10000, how come the firmware loads it since
that's below the 0x19111e4 limit?  (or am I missing some physical vs logical
issue here?)

> I don't remember *why* I was trying to make it absolute; I'm sure it
> was to fix a problem (rather than I was bored). If we could get away
> from this anachronistic Changelog crap, the commit message would have
> told us exactly what we need to know.

I pasted the ChangeLog entries in an earlier mail.  Do you mean the CVS commit
message might have more information?

> I *think* it was because we have a relocation problem with OSes that
> are linked at 4MB, which is the case with Xen (and I believe yaboot).
> If GRUB is using that memory, we simply can't load anything there.
> 
> I think we can add some somewhat-special-case logic that says if there
> is nothing available below HEAP_LIMIT, claim something beginning as
> low as we can. That reduces functionality on such platforms (as
> described above), but there's little we can do about that unless
> firmware is fixed.

So the purpose of HEAP_LIMIT is to support code that is linked at fixed
addresses?

> My big question is this: why is Efika firmware saying that 0x19111e4
> (around 25MB) is the first available address?

What is wrong with that?  Is it general practice that all firmwares load
at low addresses so that non-relocatable code can be linked at 4MB or such?

> BTW, does Jordi have any details on this Mac problem?

He said that after appliing the patch that makes heaplimit a relative address
it still won't work.  /memory/available:

  00003000 0000d000 0002d000 007d3000 00848000 1f3b8000

I'm CCing him.

-- 
Robert Millan

My spam trap is honeypot@aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.



  reply	other threads:[~2007-07-25 20:05 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02 18:16 another regression on Efika Robert Millan
2007-07-02 21:14 ` Robert Millan
2007-07-04 16:18 ` Hollis Blanchard
2007-07-10 10:04   ` Jordi Mallach
2007-07-10 14:08     ` memory management issue (Re: another regression on Efika) Robert Millan
2007-07-10 20:32       ` Hollis Blanchard
2007-07-13 22:08         ` Robert Millan
2007-07-24 19:59           ` Robert Millan
2007-07-25 17:51             ` Hollis Blanchard
2007-07-25 20:08               ` Robert Millan [this message]
2007-07-25 23:25                 ` Hollis Blanchard
2007-07-27  8:05                   ` Robert Millan
     [not found]                     ` <20070727103310.GA1539@powerlinux.fr>
2007-07-27 19:15                       ` Robert Millan
2007-07-29 19:30                         ` Robert Millan
2007-07-30 20:11                           ` [PATCH] efika memory issues Robert Millan
2007-07-30 22:35                             ` Hollis Blanchard
2007-07-31 14:38                               ` Robert Millan
2007-07-31 15:55                                 ` Hollis Blanchard
2007-07-31 19:42                                   ` Robert Millan
2007-08-01 17:34                                     ` Hollis Blanchard
2007-08-01 18:27                                       ` Robert Millan
2007-09-30 20:10                                         ` [PATCH] fix memory management on efika/pegasos Robert Millan
2007-10-01 18:18                                           ` Marcin Kurek
2007-10-01 22:25                                           ` Marcin Kurek
2007-10-02 19:42                                             ` Robert Millan
2007-10-03 23:38                                               ` Marcin Kurek
2007-10-04 20:47                                                 ` Robert Millan
2007-07-10 14:10     ` OF disk naming scheme (Re: another regression on Efika) Robert Millan
2007-07-10 19:26       ` Jordi Mallach
2007-07-13 22:16         ` Robert Millan
2007-07-22  9:33           ` Robert Millan
2007-07-22 14:37             ` Marco Gerards
2007-07-22 20:25               ` Robert Millan
2007-08-12 14:56                 ` proposed solution using "ofpathname -a" (Re: OF disk naming scheme) Robert Millan
2007-08-05 10:03 ` updated regression diff (Re: another regression on Efika) Robert Millan

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=20070725200805.GA17393@aragorn \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.org \
    --cc=jordi@gnu.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.